google-cloud-dataproc-v1 0.4.0 → 0.5.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/LICENSE.md +188 -190
- data/README.md +2 -2
- data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +18 -18
- data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/paths.rb +1 -1
- data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +38 -38
- data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +7 -7
- data/lib/google/cloud/dataproc/v1/job_controller/client.rb +43 -43
- data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +7 -7
- data/lib/google/cloud/dataproc/v1/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +32 -32
- data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +7 -7
- data/lib/google/cloud/dataproc/v1/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
|
@@ -926,7 +926,7 @@ module Google
|
|
926
926
|
config_attr :scope, nil, ::String, ::Array, nil
|
927
927
|
config_attr :lib_name, nil, ::String, nil
|
928
928
|
config_attr :lib_version, nil, ::String, nil
|
929
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
929
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
930
930
|
config_attr :interceptors, nil, ::Array, nil
|
931
931
|
config_attr :timeout, nil, ::Numeric, nil
|
932
932
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -947,7 +947,7 @@ module Google
|
|
947
947
|
def rpcs
|
948
948
|
@rpcs ||= begin
|
949
949
|
parent_rpcs = nil
|
950
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
950
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
951
951
|
Rpcs.new parent_rpcs
|
952
952
|
end
|
953
953
|
end
|
@@ -1008,19 +1008,19 @@ module Google
|
|
1008
1008
|
|
1009
1009
|
# @private
|
1010
1010
|
def initialize parent_rpcs = nil
|
1011
|
-
create_workflow_template_config = parent_rpcs
|
1011
|
+
create_workflow_template_config = parent_rpcs.create_workflow_template if parent_rpcs.respond_to? :create_workflow_template
|
1012
1012
|
@create_workflow_template = ::Gapic::Config::Method.new create_workflow_template_config
|
1013
|
-
get_workflow_template_config = parent_rpcs
|
1013
|
+
get_workflow_template_config = parent_rpcs.get_workflow_template if parent_rpcs.respond_to? :get_workflow_template
|
1014
1014
|
@get_workflow_template = ::Gapic::Config::Method.new get_workflow_template_config
|
1015
|
-
instantiate_workflow_template_config = parent_rpcs
|
1015
|
+
instantiate_workflow_template_config = parent_rpcs.instantiate_workflow_template if parent_rpcs.respond_to? :instantiate_workflow_template
|
1016
1016
|
@instantiate_workflow_template = ::Gapic::Config::Method.new instantiate_workflow_template_config
|
1017
|
-
instantiate_inline_workflow_template_config = parent_rpcs
|
1017
|
+
instantiate_inline_workflow_template_config = parent_rpcs.instantiate_inline_workflow_template if parent_rpcs.respond_to? :instantiate_inline_workflow_template
|
1018
1018
|
@instantiate_inline_workflow_template = ::Gapic::Config::Method.new instantiate_inline_workflow_template_config
|
1019
|
-
update_workflow_template_config = parent_rpcs
|
1019
|
+
update_workflow_template_config = parent_rpcs.update_workflow_template if parent_rpcs.respond_to? :update_workflow_template
|
1020
1020
|
@update_workflow_template = ::Gapic::Config::Method.new update_workflow_template_config
|
1021
|
-
list_workflow_templates_config = parent_rpcs
|
1021
|
+
list_workflow_templates_config = parent_rpcs.list_workflow_templates if parent_rpcs.respond_to? :list_workflow_templates
|
1022
1022
|
@list_workflow_templates = ::Gapic::Config::Method.new list_workflow_templates_config
|
1023
|
-
delete_workflow_template_config = parent_rpcs
|
1023
|
+
delete_workflow_template_config = parent_rpcs.delete_workflow_template if parent_rpcs.respond_to? :delete_workflow_template
|
1024
1024
|
@delete_workflow_template = ::Gapic::Config::Method.new delete_workflow_template_config
|
1025
1025
|
|
1026
1026
|
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?
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
# @return [::String]
|
83
83
|
def workflow_template_path **args
|
84
84
|
resources = {
|
85
|
-
"project:region:workflow_template"
|
85
|
+
"project:region:workflow_template" => (proc do |project:, region:, workflow_template:|
|
86
86
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
87
87
|
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
88
88
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dataproc-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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-08 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
|
@@ -221,14 +221,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
221
221
|
requirements:
|
222
222
|
- - ">="
|
223
223
|
- !ruby/object:Gem::Version
|
224
|
-
version: '2.
|
224
|
+
version: '2.5'
|
225
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - ">="
|
228
228
|
- !ruby/object:Gem::Version
|
229
229
|
version: '0'
|
230
230
|
requirements: []
|
231
|
-
rubygems_version: 3.2.
|
231
|
+
rubygems_version: 3.2.13
|
232
232
|
signing_key:
|
233
233
|
specification_version: 4
|
234
234
|
summary: API Client library for the Cloud Dataproc V1 API
|