google-cloud-dataproc-v1beta2 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +2 -2
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/client.rb +18 -18
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/paths.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/client.rb +38 -38
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/operations.rb +7 -7
- data/lib/google/cloud/dataproc/v1beta2/job_controller/client.rb +43 -43
- data/lib/google/cloud/dataproc/v1beta2/job_controller/operations.rb +7 -7
- data/lib/google/cloud/dataproc/v1beta2/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/client.rb +32 -32
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/operations.rb +7 -7
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/paths.rb +1 -1
- metadata +6 -6
@@ -61,7 +61,7 @@ module Google
|
|
61
61
|
parent_config = while namespace.any?
|
62
62
|
parent_name = namespace.join "::"
|
63
63
|
parent_const = const_get parent_name
|
64
|
-
break parent_const.configure if parent_const
|
64
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
65
65
|
namespace.pop
|
66
66
|
end
|
67
67
|
default_config = Client::Configuration.new parent_config
|
@@ -69,57 +69,57 @@ module Google
|
|
69
69
|
default_config.rpcs.create_workflow_template.timeout = 600.0
|
70
70
|
default_config.rpcs.create_workflow_template.retry_policy = {
|
71
71
|
initial_delay: 0.1,
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
max_delay: 60.0,
|
73
|
+
multiplier: 1.3,
|
74
|
+
retry_codes: [14]
|
75
75
|
}
|
76
76
|
|
77
77
|
default_config.rpcs.get_workflow_template.timeout = 600.0
|
78
78
|
default_config.rpcs.get_workflow_template.retry_policy = {
|
79
79
|
initial_delay: 0.1,
|
80
|
-
|
81
|
-
|
82
|
-
|
80
|
+
max_delay: 60.0,
|
81
|
+
multiplier: 1.3,
|
82
|
+
retry_codes: [4, 13, 14]
|
83
83
|
}
|
84
84
|
|
85
85
|
default_config.rpcs.instantiate_workflow_template.timeout = 600.0
|
86
86
|
default_config.rpcs.instantiate_workflow_template.retry_policy = {
|
87
87
|
initial_delay: 0.1,
|
88
|
-
|
89
|
-
|
90
|
-
|
88
|
+
max_delay: 60.0,
|
89
|
+
multiplier: 1.3,
|
90
|
+
retry_codes: [14]
|
91
91
|
}
|
92
92
|
|
93
93
|
default_config.rpcs.instantiate_inline_workflow_template.timeout = 600.0
|
94
94
|
default_config.rpcs.instantiate_inline_workflow_template.retry_policy = {
|
95
95
|
initial_delay: 0.1,
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
max_delay: 60.0,
|
97
|
+
multiplier: 1.3,
|
98
|
+
retry_codes: [14]
|
99
99
|
}
|
100
100
|
|
101
101
|
default_config.rpcs.update_workflow_template.timeout = 600.0
|
102
102
|
default_config.rpcs.update_workflow_template.retry_policy = {
|
103
103
|
initial_delay: 0.1,
|
104
|
-
|
105
|
-
|
106
|
-
|
104
|
+
max_delay: 60.0,
|
105
|
+
multiplier: 1.3,
|
106
|
+
retry_codes: [14]
|
107
107
|
}
|
108
108
|
|
109
109
|
default_config.rpcs.list_workflow_templates.timeout = 600.0
|
110
110
|
default_config.rpcs.list_workflow_templates.retry_policy = {
|
111
111
|
initial_delay: 0.1,
|
112
|
-
|
113
|
-
|
114
|
-
|
112
|
+
max_delay: 60.0,
|
113
|
+
multiplier: 1.3,
|
114
|
+
retry_codes: [4, 13, 14]
|
115
115
|
}
|
116
116
|
|
117
117
|
default_config.rpcs.delete_workflow_template.timeout = 600.0
|
118
118
|
default_config.rpcs.delete_workflow_template.retry_policy = {
|
119
119
|
initial_delay: 0.1,
|
120
|
-
|
121
|
-
|
122
|
-
|
120
|
+
max_delay: 60.0,
|
121
|
+
multiplier: 1.3,
|
122
|
+
retry_codes: [14]
|
123
123
|
}
|
124
124
|
|
125
125
|
default_config
|
@@ -188,7 +188,7 @@ module Google
|
|
188
188
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
189
189
|
@config.endpoint == Client.configure.endpoint &&
|
190
190
|
!@config.endpoint.split(".").first.include?("-")
|
191
|
-
credentials ||= Credentials.default scope:
|
191
|
+
credentials ||= Credentials.default scope: @config.scope,
|
192
192
|
enable_self_signed_jwt: enable_self_signed_jwt
|
193
193
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
194
194
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -931,7 +931,7 @@ module Google
|
|
931
931
|
config_attr :scope, nil, ::String, ::Array, nil
|
932
932
|
config_attr :lib_name, nil, ::String, nil
|
933
933
|
config_attr :lib_version, nil, ::String, nil
|
934
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
934
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
935
935
|
config_attr :interceptors, nil, ::Array, nil
|
936
936
|
config_attr :timeout, nil, ::Numeric, nil
|
937
937
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -952,7 +952,7 @@ module Google
|
|
952
952
|
def rpcs
|
953
953
|
@rpcs ||= begin
|
954
954
|
parent_rpcs = nil
|
955
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
955
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
956
956
|
Rpcs.new parent_rpcs
|
957
957
|
end
|
958
958
|
end
|
@@ -1013,19 +1013,19 @@ module Google
|
|
1013
1013
|
|
1014
1014
|
# @private
|
1015
1015
|
def initialize parent_rpcs = nil
|
1016
|
-
create_workflow_template_config = parent_rpcs
|
1016
|
+
create_workflow_template_config = parent_rpcs.create_workflow_template if parent_rpcs.respond_to? :create_workflow_template
|
1017
1017
|
@create_workflow_template = ::Gapic::Config::Method.new create_workflow_template_config
|
1018
|
-
get_workflow_template_config = parent_rpcs
|
1018
|
+
get_workflow_template_config = parent_rpcs.get_workflow_template if parent_rpcs.respond_to? :get_workflow_template
|
1019
1019
|
@get_workflow_template = ::Gapic::Config::Method.new get_workflow_template_config
|
1020
|
-
instantiate_workflow_template_config = parent_rpcs
|
1020
|
+
instantiate_workflow_template_config = parent_rpcs.instantiate_workflow_template if parent_rpcs.respond_to? :instantiate_workflow_template
|
1021
1021
|
@instantiate_workflow_template = ::Gapic::Config::Method.new instantiate_workflow_template_config
|
1022
|
-
instantiate_inline_workflow_template_config = parent_rpcs
|
1022
|
+
instantiate_inline_workflow_template_config = parent_rpcs.instantiate_inline_workflow_template if parent_rpcs.respond_to? :instantiate_inline_workflow_template
|
1023
1023
|
@instantiate_inline_workflow_template = ::Gapic::Config::Method.new instantiate_inline_workflow_template_config
|
1024
|
-
update_workflow_template_config = parent_rpcs
|
1024
|
+
update_workflow_template_config = parent_rpcs.update_workflow_template if parent_rpcs.respond_to? :update_workflow_template
|
1025
1025
|
@update_workflow_template = ::Gapic::Config::Method.new update_workflow_template_config
|
1026
|
-
list_workflow_templates_config = parent_rpcs
|
1026
|
+
list_workflow_templates_config = parent_rpcs.list_workflow_templates if parent_rpcs.respond_to? :list_workflow_templates
|
1027
1027
|
@list_workflow_templates = ::Gapic::Config::Method.new list_workflow_templates_config
|
1028
|
-
delete_workflow_template_config = parent_rpcs
|
1028
|
+
delete_workflow_template_config = parent_rpcs.delete_workflow_template if parent_rpcs.respond_to? :delete_workflow_template
|
1029
1029
|
@delete_workflow_template = ::Gapic::Config::Method.new delete_workflow_template_config
|
1030
1030
|
|
1031
1031
|
yield self if block_given?
|
@@ -560,7 +560,7 @@ module Google
|
|
560
560
|
config_attr :scope, nil, ::String, ::Array, nil
|
561
561
|
config_attr :lib_name, nil, ::String, nil
|
562
562
|
config_attr :lib_version, nil, ::String, nil
|
563
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
563
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
564
564
|
config_attr :interceptors, nil, ::Array, nil
|
565
565
|
config_attr :timeout, nil, ::Numeric, nil
|
566
566
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -581,7 +581,7 @@ module Google
|
|
581
581
|
def rpcs
|
582
582
|
@rpcs ||= begin
|
583
583
|
parent_rpcs = nil
|
584
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
584
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
585
585
|
Rpcs.new parent_rpcs
|
586
586
|
end
|
587
587
|
end
|
@@ -632,15 +632,15 @@ module Google
|
|
632
632
|
|
633
633
|
# @private
|
634
634
|
def initialize parent_rpcs = nil
|
635
|
-
list_operations_config = parent_rpcs
|
635
|
+
list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
|
636
636
|
@list_operations = ::Gapic::Config::Method.new list_operations_config
|
637
|
-
get_operation_config = parent_rpcs
|
637
|
+
get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
|
638
638
|
@get_operation = ::Gapic::Config::Method.new get_operation_config
|
639
|
-
delete_operation_config = parent_rpcs
|
639
|
+
delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation
|
640
640
|
@delete_operation = ::Gapic::Config::Method.new delete_operation_config
|
641
|
-
cancel_operation_config = parent_rpcs
|
641
|
+
cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
|
642
642
|
@cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
|
643
|
-
wait_operation_config = parent_rpcs
|
643
|
+
wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation
|
644
644
|
@wait_operation = ::Gapic::Config::Method.new wait_operation_config
|
645
645
|
|
646
646
|
yield self if block_given?
|
@@ -101,7 +101,7 @@ module Google
|
|
101
101
|
# @return [::String]
|
102
102
|
def workflow_template_path **args
|
103
103
|
resources = {
|
104
|
-
"project:region:workflow_template"
|
104
|
+
"project:region:workflow_template" => (proc do |project:, region:, workflow_template:|
|
105
105
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
106
106
|
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
107
107
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dataproc-v1beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.25.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.25.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -222,14 +222,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
222
222
|
requirements:
|
223
223
|
- - ">="
|
224
224
|
- !ruby/object:Gem::Version
|
225
|
-
version: '2.
|
225
|
+
version: '2.5'
|
226
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
227
|
requirements:
|
228
228
|
- - ">="
|
229
229
|
- !ruby/object:Gem::Version
|
230
230
|
version: '0'
|
231
231
|
requirements: []
|
232
|
-
rubygems_version: 3.2.
|
232
|
+
rubygems_version: 3.2.13
|
233
233
|
signing_key:
|
234
234
|
specification_version: 4
|
235
235
|
summary: API Client library for the Cloud Dataproc V1beta2 API
|