google-cloud-dataproc-v1beta2 0.2.3 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dataproc/v1beta2.rb +3 -0
  3. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policies_services_pb.rb +5 -5
  4. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/client.rb +5 -5
  5. data/lib/google/cloud/dataproc/v1beta2/cluster_controller.rb +1 -0
  6. data/lib/google/cloud/dataproc/v1beta2/cluster_controller/client.rb +25 -20
  7. data/lib/google/cloud/dataproc/v1beta2/cluster_controller/operations.rb +2 -2
  8. data/lib/google/cloud/dataproc/v1beta2/cluster_controller/paths.rb +52 -0
  9. data/lib/google/cloud/dataproc/v1beta2/clusters_pb.rb +8 -0
  10. data/lib/google/cloud/dataproc/v1beta2/clusters_services_pb.rb +6 -6
  11. data/lib/google/cloud/dataproc/v1beta2/job_controller/client.rb +9 -9
  12. data/lib/google/cloud/dataproc/v1beta2/job_controller/operations.rb +2 -2
  13. data/lib/google/cloud/dataproc/v1beta2/jobs_services_pb.rb +7 -7
  14. data/lib/google/cloud/dataproc/v1beta2/shared_pb.rb +1 -2
  15. data/lib/google/cloud/dataproc/v1beta2/version.rb +1 -1
  16. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/client.rb +11 -10
  17. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/operations.rb +2 -2
  18. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/paths.rb +19 -0
  19. data/lib/google/cloud/dataproc/v1beta2/workflow_templates_pb.rb +5 -0
  20. data/lib/google/cloud/dataproc/v1beta2/workflow_templates_services_pb.rb +9 -8
  21. data/proto_docs/google/api/resource.rb +50 -14
  22. data/proto_docs/google/cloud/dataproc/v1beta2/autoscaling_policies.rb +13 -7
  23. data/proto_docs/google/cloud/dataproc/v1beta2/clusters.rb +64 -21
  24. data/proto_docs/google/cloud/dataproc/v1beta2/jobs.rb +14 -13
  25. data/proto_docs/google/cloud/dataproc/v1beta2/shared.rb +3 -6
  26. data/proto_docs/google/cloud/dataproc/v1beta2/workflow_templates.rb +42 -8
  27. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8fc29d8235f7a6fe9e03389c6e050b6989883c9ea8aa97aeb7c2e1b14a4f1a5
4
- data.tar.gz: ac1f3c5a18eb176f0c19d76f7e6e06cbe79f722b70038f897c99af29fc57a3f3
3
+ metadata.gz: 1229f6c3178d75a3ce80793f131691a1e0a825f5cab6f4d1a05fba90e5c85bd6
4
+ data.tar.gz: 72af750946171085f3becb42260ba03d28683540317b6aa13d2e566fc12d3f12
5
5
  SHA512:
6
- metadata.gz: '069f7827cfc59b768f83e86a524e5494f94ed69b1f15ddc972d8fa5d7c10967f238930c5789ec92d5ccb492dab84b63e962fe9fc6ed74d807f07a1f6cdd50f56'
7
- data.tar.gz: 64a71f901a22db0189377b016bd46a7d8e91505b077ebe0bafcba77f7177e6cd0006855e53249ed222d24f62929868685429d6e492c6b89f643dda211ccba7e5
6
+ metadata.gz: 45f38c9b14846ae3181a00851b3e5c74a2cd11e6c302a68523be53b30a6ff90f2e35c82dbd716025582b7bd0eff9448510c7c739464f4051ae1bc0993f9ed8dc
7
+ data.tar.gz: 28b185f88cc097882d4523a987066f0473b101c37bc45d692ae4c82c05360497c4b3b4d43907aa643585b034657e14e354a1e80a4c20298db4cbfd1eb5aab3f7
@@ -36,3 +36,6 @@ module Google
36
36
  end
37
37
  end
38
38
  end
39
+
40
+ helper_path = ::File.join __dir__, "v1beta2", "_helpers.rb"
41
+ require "google/cloud/dataproc/v1beta2/_helpers" if ::File.file? helper_path
@@ -35,19 +35,19 @@ module Google
35
35
  self.service_name = 'google.cloud.dataproc.v1beta2.AutoscalingPolicyService'
36
36
 
37
37
  # Creates new autoscaling policy.
38
- rpc :CreateAutoscalingPolicy, CreateAutoscalingPolicyRequest, AutoscalingPolicy
38
+ rpc :CreateAutoscalingPolicy, ::Google::Cloud::Dataproc::V1beta2::CreateAutoscalingPolicyRequest, ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy
39
39
  # Updates (replaces) autoscaling policy.
40
40
  #
41
41
  # Disabled check for update_mask, because all updates will be full
42
42
  # replacements.
43
- rpc :UpdateAutoscalingPolicy, UpdateAutoscalingPolicyRequest, AutoscalingPolicy
43
+ rpc :UpdateAutoscalingPolicy, ::Google::Cloud::Dataproc::V1beta2::UpdateAutoscalingPolicyRequest, ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy
44
44
  # Retrieves autoscaling policy.
45
- rpc :GetAutoscalingPolicy, GetAutoscalingPolicyRequest, AutoscalingPolicy
45
+ rpc :GetAutoscalingPolicy, ::Google::Cloud::Dataproc::V1beta2::GetAutoscalingPolicyRequest, ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy
46
46
  # Lists autoscaling policies in the project.
47
- rpc :ListAutoscalingPolicies, ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse
47
+ rpc :ListAutoscalingPolicies, ::Google::Cloud::Dataproc::V1beta2::ListAutoscalingPoliciesRequest, ::Google::Cloud::Dataproc::V1beta2::ListAutoscalingPoliciesResponse
48
48
  # Deletes an autoscaling policy. It is an error to delete an autoscaling
49
49
  # policy that is in use by one or more clusters.
50
- rpc :DeleteAutoscalingPolicy, DeleteAutoscalingPolicyRequest, Google::Protobuf::Empty
50
+ rpc :DeleteAutoscalingPolicy, ::Google::Cloud::Dataproc::V1beta2::DeleteAutoscalingPolicyRequest, ::Google::Protobuf::Empty
51
51
  end
52
52
 
53
53
  Stub = Service.rpc_stub_class
@@ -73,7 +73,7 @@ module Google
73
73
  initial_delay: 0.1,
74
74
  max_delay: 60.0,
75
75
  multiplier: 1.3,
76
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
76
+ retry_codes: [4, 14]
77
77
  }
78
78
 
79
79
  default_config.rpcs.get_autoscaling_policy.timeout = 600.0
@@ -81,7 +81,7 @@ module Google
81
81
  initial_delay: 0.1,
82
82
  max_delay: 60.0,
83
83
  multiplier: 1.3,
84
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
84
+ retry_codes: [4, 14]
85
85
  }
86
86
 
87
87
  default_config.rpcs.list_autoscaling_policies.timeout = 600.0
@@ -89,7 +89,7 @@ module Google
89
89
  initial_delay: 0.1,
90
90
  max_delay: 60.0,
91
91
  multiplier: 1.3,
92
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
92
+ retry_codes: [4, 14]
93
93
  }
94
94
 
95
95
  default_config.rpcs.delete_autoscaling_policy.timeout = 600.0
@@ -637,7 +637,7 @@ module Google
637
637
 
638
638
  config_attr :endpoint, "dataproc.googleapis.com", ::String
639
639
  config_attr :credentials, nil do |value|
640
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
640
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
641
641
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
642
642
  allowed.any? { |klass| klass === value }
643
643
  end
@@ -677,7 +677,7 @@ module Google
677
677
  # Each configuration object is of type `Gapic::Config::Method` and includes
678
678
  # the following configuration fields:
679
679
  #
680
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
680
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
681
681
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
682
682
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
683
683
  # include the following keys:
@@ -23,6 +23,7 @@ require "gapic/config/method"
23
23
  require "google/cloud/dataproc/v1beta2/version"
24
24
 
25
25
  require "google/cloud/dataproc/v1beta2/cluster_controller/credentials"
26
+ require "google/cloud/dataproc/v1beta2/cluster_controller/paths"
26
27
  require "google/cloud/dataproc/v1beta2/cluster_controller/operations"
27
28
  require "google/cloud/dataproc/v1beta2/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
 
@@ -69,7 +71,7 @@ module Google
69
71
  initial_delay: 0.1,
70
72
  max_delay: 60.0,
71
73
  multiplier: 1.3,
72
- retry_codes: ["UNAVAILABLE"]
74
+ retry_codes: [14]
73
75
  }
74
76
 
75
77
  default_config.rpcs.update_cluster.timeout = 300.0
@@ -77,7 +79,7 @@ module Google
77
79
  initial_delay: 0.1,
78
80
  max_delay: 60.0,
79
81
  multiplier: 1.3,
80
- retry_codes: ["UNAVAILABLE"]
82
+ retry_codes: [14]
81
83
  }
82
84
 
83
85
  default_config.rpcs.delete_cluster.timeout = 300.0
@@ -85,7 +87,7 @@ module Google
85
87
  initial_delay: 0.1,
86
88
  max_delay: 60.0,
87
89
  multiplier: 1.3,
88
- retry_codes: ["UNAVAILABLE"]
90
+ retry_codes: [14]
89
91
  }
90
92
 
91
93
  default_config.rpcs.get_cluster.timeout = 300.0
@@ -93,7 +95,7 @@ module Google
93
95
  initial_delay: 0.1,
94
96
  max_delay: 60.0,
95
97
  multiplier: 1.3,
96
- retry_codes: ["INTERNAL", "DEADLINE_EXCEEDED", "UNAVAILABLE"]
98
+ retry_codes: [13, 4, 14]
97
99
  }
98
100
 
99
101
  default_config.rpcs.list_clusters.timeout = 300.0
@@ -101,7 +103,7 @@ module Google
101
103
  initial_delay: 0.1,
102
104
  max_delay: 60.0,
103
105
  multiplier: 1.3,
104
- retry_codes: ["INTERNAL", "DEADLINE_EXCEEDED", "UNAVAILABLE"]
106
+ retry_codes: [13, 4, 14]
105
107
  }
106
108
 
107
109
  default_config.rpcs.diagnose_cluster.timeout = 300.0
@@ -109,7 +111,7 @@ module Google
109
111
  initial_delay: 0.1,
110
112
  max_delay: 60.0,
111
113
  multiplier: 1.3,
112
- retry_codes: ["UNAVAILABLE"]
114
+ retry_codes: [14]
113
115
  }
114
116
 
115
117
  default_config
@@ -232,10 +234,11 @@ module Google
232
234
  # Required. The cluster to create.
233
235
  # @param request_id [::String]
234
236
  # Optional. A unique id used to identify the request. If the server
235
- # receives two {::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest CreateClusterRequest} requests with the same
236
- # id, then the second request will be ignored and the
237
- # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the backend
238
- # is returned.
237
+ # receives two
238
+ # {::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest CreateClusterRequest}
239
+ # requests with the same id, then the second request will be ignored and the
240
+ # first {::Google::Longrunning::Operation google.longrunning.Operation} created
241
+ # and stored in the backend is returned.
239
242
  #
240
243
  # It is recommended to always set this value to a
241
244
  # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -392,10 +395,11 @@ module Google
392
395
  # </table>
393
396
  # @param request_id [::String]
394
397
  # Optional. A unique id used to identify the request. If the server
395
- # receives two {::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest UpdateClusterRequest} requests with the same
396
- # id, then the second request will be ignored and the
397
- # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
398
- # backend is returned.
398
+ # receives two
399
+ # {::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest UpdateClusterRequest}
400
+ # requests with the same id, then the second request will be ignored and the
401
+ # first {::Google::Longrunning::Operation google.longrunning.Operation} created
402
+ # and stored in the backend is returned.
399
403
  #
400
404
  # It is recommended to always set this value to a
401
405
  # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -483,10 +487,11 @@ module Google
483
487
  # (with error NOT_FOUND) if cluster with specified UUID does not exist.
484
488
  # @param request_id [::String]
485
489
  # Optional. A unique id used to identify the request. If the server
486
- # receives two {::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest DeleteClusterRequest} requests with the same
487
- # id, then the second request will be ignored and the
488
- # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
489
- # backend is returned.
490
+ # receives two
491
+ # {::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest DeleteClusterRequest}
492
+ # requests with the same id, then the second request will be ignored and the
493
+ # first {::Google::Longrunning::Operation google.longrunning.Operation} created
494
+ # and stored in the backend is returned.
490
495
  #
491
496
  # It is recommended to always set this value to a
492
497
  # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -875,7 +880,7 @@ module Google
875
880
 
876
881
  config_attr :endpoint, "dataproc.googleapis.com", ::String
877
882
  config_attr :credentials, nil do |value|
878
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
883
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
879
884
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
880
885
  allowed.any? { |klass| klass === value }
881
886
  end
@@ -915,7 +920,7 @@ module Google
915
920
  # Each configuration object is of type `Gapic::Config::Method` and includes
916
921
  # the following configuration fields:
917
922
  #
918
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
923
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
919
924
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
920
925
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
921
926
  # include the following keys:
@@ -475,7 +475,7 @@ module Google
475
475
 
476
476
  config_attr :endpoint, "dataproc.googleapis.com", ::String
477
477
  config_attr :credentials, nil do |value|
478
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
479
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
480
480
  allowed.any? { |klass| klass === value }
481
481
  end
@@ -515,7 +515,7 @@ module Google
515
515
  # Each configuration object is of type `Gapic::Config::Method` and includes
516
516
  # the following configuration fields:
517
517
  #
518
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
518
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
519
519
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
520
520
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
521
521
  # include the following keys:
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 V1beta2
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
+ extend self
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -26,6 +26,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
26
26
  end
27
27
  add_message "google.cloud.dataproc.v1beta2.ClusterConfig" do
28
28
  optional :config_bucket, :string, 1
29
+ optional :temp_bucket, :string, 2
29
30
  optional :gce_cluster_config, :message, 8, "google.cloud.dataproc.v1beta2.GceClusterConfig"
30
31
  optional :master_config, :message, 9, "google.cloud.dataproc.v1beta2.InstanceGroupConfig"
31
32
  optional :worker_config, :message, 10, "google.cloud.dataproc.v1beta2.InstanceGroupConfig"
@@ -74,10 +75,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
74
75
  optional :machine_type_uri, :string, 4
75
76
  optional :disk_config, :message, 5, "google.cloud.dataproc.v1beta2.DiskConfig"
76
77
  optional :is_preemptible, :bool, 6
78
+ optional :preemptibility, :enum, 10, "google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility"
77
79
  optional :managed_group_config, :message, 7, "google.cloud.dataproc.v1beta2.ManagedGroupConfig"
78
80
  repeated :accelerators, :message, 8, "google.cloud.dataproc.v1beta2.AcceleratorConfig"
79
81
  optional :min_cpu_platform, :string, 9
80
82
  end
83
+ add_enum "google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility" do
84
+ value :PREEMPTIBILITY_UNSPECIFIED, 0
85
+ value :NON_PREEMPTIBLE, 1
86
+ value :PREEMPTIBLE, 2
87
+ end
81
88
  add_message "google.cloud.dataproc.v1beta2.ManagedGroupConfig" do
82
89
  optional :instance_template_name, :string, 1
83
90
  optional :instance_group_manager_name, :string, 2
@@ -227,6 +234,7 @@ module Google
227
234
  EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.EncryptionConfig").msgclass
228
235
  GceClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.GceClusterConfig").msgclass
229
236
  InstanceGroupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.InstanceGroupConfig").msgclass
237
+ InstanceGroupConfig::Preemptibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility").enummodule
230
238
  ManagedGroupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ManagedGroupConfig").msgclass
231
239
  AcceleratorConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.AcceleratorConfig").msgclass
232
240
  DiskConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.DiskConfig").msgclass
@@ -37,19 +37,19 @@ module Google
37
37
  # Creates a cluster in a project. The returned
38
38
  # [Operation.metadata][google.longrunning.Operation.metadata] will be
39
39
  # [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
40
- rpc :CreateCluster, CreateClusterRequest, Google::Longrunning::Operation
40
+ rpc :CreateCluster, ::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest, ::Google::Longrunning::Operation
41
41
  # Updates a cluster in a project. The returned
42
42
  # [Operation.metadata][google.longrunning.Operation.metadata] will be
43
43
  # [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
44
- rpc :UpdateCluster, UpdateClusterRequest, Google::Longrunning::Operation
44
+ rpc :UpdateCluster, ::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest, ::Google::Longrunning::Operation
45
45
  # Deletes a cluster in a project. The returned
46
46
  # [Operation.metadata][google.longrunning.Operation.metadata] will be
47
47
  # [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
48
- rpc :DeleteCluster, DeleteClusterRequest, Google::Longrunning::Operation
48
+ rpc :DeleteCluster, ::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest, ::Google::Longrunning::Operation
49
49
  # Gets the resource representation for a cluster in a project.
50
- rpc :GetCluster, GetClusterRequest, Cluster
50
+ rpc :GetCluster, ::Google::Cloud::Dataproc::V1beta2::GetClusterRequest, ::Google::Cloud::Dataproc::V1beta2::Cluster
51
51
  # Lists all regions/{region}/clusters in a project alphabetically.
52
- rpc :ListClusters, ListClustersRequest, ListClustersResponse
52
+ rpc :ListClusters, ::Google::Cloud::Dataproc::V1beta2::ListClustersRequest, ::Google::Cloud::Dataproc::V1beta2::ListClustersResponse
53
53
  # Gets cluster diagnostic information. The returned
54
54
  # [Operation.metadata][google.longrunning.Operation.metadata] will be
55
55
  # [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
@@ -57,7 +57,7 @@ module Google
57
57
  # [Operation.response][google.longrunning.Operation.response]
58
58
  # contains
59
59
  # [Empty][google.protobuf.Empty].
60
- rpc :DiagnoseCluster, DiagnoseClusterRequest, Google::Longrunning::Operation
60
+ rpc :DiagnoseCluster, ::Google::Cloud::Dataproc::V1beta2::DiagnoseClusterRequest, ::Google::Longrunning::Operation
61
61
  end
62
62
 
63
63
  Stub = Service.rpc_stub_class
@@ -68,7 +68,7 @@ module Google
68
68
  initial_delay: 0.1,
69
69
  max_delay: 60.0,
70
70
  multiplier: 1.3,
71
- retry_codes: ["UNAVAILABLE"]
71
+ retry_codes: [14]
72
72
  }
73
73
 
74
74
  default_config.rpcs.submit_job_as_operation.timeout = 900.0
@@ -76,7 +76,7 @@ module Google
76
76
  initial_delay: 0.1,
77
77
  max_delay: 60.0,
78
78
  multiplier: 1.3,
79
- retry_codes: ["UNAVAILABLE"]
79
+ retry_codes: [14]
80
80
  }
81
81
 
82
82
  default_config.rpcs.get_job.timeout = 900.0
@@ -84,7 +84,7 @@ module Google
84
84
  initial_delay: 0.1,
85
85
  max_delay: 60.0,
86
86
  multiplier: 1.3,
87
- retry_codes: ["DEADLINE_EXCEEDED", "INTERNAL", "UNAVAILABLE"]
87
+ retry_codes: [4, 13, 14]
88
88
  }
89
89
 
90
90
  default_config.rpcs.list_jobs.timeout = 900.0
@@ -92,7 +92,7 @@ module Google
92
92
  initial_delay: 0.1,
93
93
  max_delay: 60.0,
94
94
  multiplier: 1.3,
95
- retry_codes: ["DEADLINE_EXCEEDED", "INTERNAL", "UNAVAILABLE"]
95
+ retry_codes: [4, 13, 14]
96
96
  }
97
97
 
98
98
  default_config.rpcs.update_job.timeout = 900.0
@@ -100,7 +100,7 @@ module Google
100
100
  initial_delay: 0.1,
101
101
  max_delay: 60.0,
102
102
  multiplier: 1.3,
103
- retry_codes: ["UNAVAILABLE"]
103
+ retry_codes: [14]
104
104
  }
105
105
 
106
106
  default_config.rpcs.cancel_job.timeout = 900.0
@@ -108,7 +108,7 @@ module Google
108
108
  initial_delay: 0.1,
109
109
  max_delay: 60.0,
110
110
  multiplier: 1.3,
111
- retry_codes: ["DEADLINE_EXCEEDED", "INTERNAL", "UNAVAILABLE"]
111
+ retry_codes: [4, 13, 14]
112
112
  }
113
113
 
114
114
  default_config.rpcs.delete_job.timeout = 900.0
@@ -116,7 +116,7 @@ module Google
116
116
  initial_delay: 0.1,
117
117
  max_delay: 60.0,
118
118
  multiplier: 1.3,
119
- retry_codes: ["UNAVAILABLE"]
119
+ retry_codes: [14]
120
120
  }
121
121
 
122
122
  default_config
@@ -869,7 +869,7 @@ module Google
869
869
 
870
870
  config_attr :endpoint, "dataproc.googleapis.com", ::String
871
871
  config_attr :credentials, nil do |value|
872
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
872
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
873
873
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
874
874
  allowed.any? { |klass| klass === value }
875
875
  end
@@ -909,7 +909,7 @@ module Google
909
909
  # Each configuration object is of type `Gapic::Config::Method` and includes
910
910
  # the following configuration fields:
911
911
  #
912
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
912
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
913
913
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
914
914
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
915
915
  # include the following keys:
@@ -475,7 +475,7 @@ module Google
475
475
 
476
476
  config_attr :endpoint, "dataproc.googleapis.com", ::String
477
477
  config_attr :credentials, nil do |value|
478
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
479
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
480
480
  allowed.any? { |klass| klass === value }
481
481
  end
@@ -515,7 +515,7 @@ module Google
515
515
  # Each configuration object is of type `Gapic::Config::Method` and includes
516
516
  # the following configuration fields:
517
517
  #
518
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
518
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
519
519
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
520
520
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
521
521
  # include the following keys: