google-cloud-dataproc-v1beta2 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/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
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
|
55
55
|
"projects/#{project}/locations/#{location}/autoscalingPolicies/#{autoscaling_policy}"
|
56
56
|
end),
|
57
|
-
"autoscaling_policy:project:region"
|
57
|
+
"autoscaling_policy:project:region" => (proc do |project:, region:, autoscaling_policy:|
|
58
58
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
59
59
|
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
60
60
|
|
@@ -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,49 +69,49 @@ module Google
|
|
69
69
|
default_config.rpcs.create_cluster.timeout = 300.0
|
70
70
|
default_config.rpcs.create_cluster.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.update_cluster.timeout = 300.0
|
78
78
|
default_config.rpcs.update_cluster.retry_policy = {
|
79
79
|
initial_delay: 0.1,
|
80
|
-
|
81
|
-
|
82
|
-
|
80
|
+
max_delay: 60.0,
|
81
|
+
multiplier: 1.3,
|
82
|
+
retry_codes: [14]
|
83
83
|
}
|
84
84
|
|
85
85
|
default_config.rpcs.delete_cluster.timeout = 300.0
|
86
86
|
default_config.rpcs.delete_cluster.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.get_cluster.timeout = 300.0
|
94
94
|
default_config.rpcs.get_cluster.retry_policy = {
|
95
95
|
initial_delay: 0.1,
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
max_delay: 60.0,
|
97
|
+
multiplier: 1.3,
|
98
|
+
retry_codes: [13, 4, 14]
|
99
99
|
}
|
100
100
|
|
101
101
|
default_config.rpcs.list_clusters.timeout = 300.0
|
102
102
|
default_config.rpcs.list_clusters.retry_policy = {
|
103
103
|
initial_delay: 0.1,
|
104
|
-
|
105
|
-
|
106
|
-
|
104
|
+
max_delay: 60.0,
|
105
|
+
multiplier: 1.3,
|
106
|
+
retry_codes: [13, 4, 14]
|
107
107
|
}
|
108
108
|
|
109
109
|
default_config.rpcs.diagnose_cluster.timeout = 300.0
|
110
110
|
default_config.rpcs.diagnose_cluster.retry_policy = {
|
111
111
|
initial_delay: 0.1,
|
112
|
-
|
113
|
-
|
114
|
-
|
112
|
+
max_delay: 60.0,
|
113
|
+
multiplier: 1.3,
|
114
|
+
retry_codes: [14]
|
115
115
|
}
|
116
116
|
|
117
117
|
default_config
|
@@ -180,7 +180,7 @@ module Google
|
|
180
180
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
181
181
|
@config.endpoint == Client.configure.endpoint &&
|
182
182
|
!@config.endpoint.split(".").first.include?("-")
|
183
|
-
credentials ||= Credentials.default scope:
|
183
|
+
credentials ||= Credentials.default scope: @config.scope,
|
184
184
|
enable_self_signed_jwt: enable_self_signed_jwt
|
185
185
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
186
186
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -279,7 +279,7 @@ module Google
|
|
279
279
|
|
280
280
|
header_params = {
|
281
281
|
"project_id" => request.project_id,
|
282
|
-
"region"
|
282
|
+
"region" => request.region
|
283
283
|
}
|
284
284
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
285
285
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
@@ -439,8 +439,8 @@ module Google
|
|
439
439
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
440
440
|
|
441
441
|
header_params = {
|
442
|
-
"project_id"
|
443
|
-
"region"
|
442
|
+
"project_id" => request.project_id,
|
443
|
+
"region" => request.region,
|
444
444
|
"cluster_name" => request.cluster_name
|
445
445
|
}
|
446
446
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
@@ -531,8 +531,8 @@ module Google
|
|
531
531
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
532
532
|
|
533
533
|
header_params = {
|
534
|
-
"project_id"
|
535
|
-
"region"
|
534
|
+
"project_id" => request.project_id,
|
535
|
+
"region" => request.region,
|
536
536
|
"cluster_name" => request.cluster_name
|
537
537
|
}
|
538
538
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
@@ -605,8 +605,8 @@ module Google
|
|
605
605
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
606
606
|
|
607
607
|
header_params = {
|
608
|
-
"project_id"
|
609
|
-
"region"
|
608
|
+
"project_id" => request.project_id,
|
609
|
+
"region" => request.region,
|
610
610
|
"cluster_name" => request.cluster_name
|
611
611
|
}
|
612
612
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
@@ -701,7 +701,7 @@ module Google
|
|
701
701
|
|
702
702
|
header_params = {
|
703
703
|
"project_id" => request.project_id,
|
704
|
-
"region"
|
704
|
+
"region" => request.region
|
705
705
|
}
|
706
706
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
707
707
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
@@ -779,8 +779,8 @@ module Google
|
|
779
779
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
780
780
|
|
781
781
|
header_params = {
|
782
|
-
"project_id"
|
783
|
-
"region"
|
782
|
+
"project_id" => request.project_id,
|
783
|
+
"region" => request.region,
|
784
784
|
"cluster_name" => request.cluster_name
|
785
785
|
}
|
786
786
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
@@ -893,7 +893,7 @@ module Google
|
|
893
893
|
config_attr :scope, nil, ::String, ::Array, nil
|
894
894
|
config_attr :lib_name, nil, ::String, nil
|
895
895
|
config_attr :lib_version, nil, ::String, nil
|
896
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
896
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
897
897
|
config_attr :interceptors, nil, ::Array, nil
|
898
898
|
config_attr :timeout, nil, ::Numeric, nil
|
899
899
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -914,7 +914,7 @@ module Google
|
|
914
914
|
def rpcs
|
915
915
|
@rpcs ||= begin
|
916
916
|
parent_rpcs = nil
|
917
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
917
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
918
918
|
Rpcs.new parent_rpcs
|
919
919
|
end
|
920
920
|
end
|
@@ -970,17 +970,17 @@ module Google
|
|
970
970
|
|
971
971
|
# @private
|
972
972
|
def initialize parent_rpcs = nil
|
973
|
-
create_cluster_config = parent_rpcs
|
973
|
+
create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
|
974
974
|
@create_cluster = ::Gapic::Config::Method.new create_cluster_config
|
975
|
-
update_cluster_config = parent_rpcs
|
975
|
+
update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
|
976
976
|
@update_cluster = ::Gapic::Config::Method.new update_cluster_config
|
977
|
-
delete_cluster_config = parent_rpcs
|
977
|
+
delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
|
978
978
|
@delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
|
979
|
-
get_cluster_config = parent_rpcs
|
979
|
+
get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
|
980
980
|
@get_cluster = ::Gapic::Config::Method.new get_cluster_config
|
981
|
-
list_clusters_config = parent_rpcs
|
981
|
+
list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
|
982
982
|
@list_clusters = ::Gapic::Config::Method.new list_clusters_config
|
983
|
-
diagnose_cluster_config = parent_rpcs
|
983
|
+
diagnose_cluster_config = parent_rpcs.diagnose_cluster if parent_rpcs.respond_to? :diagnose_cluster
|
984
984
|
@diagnose_cluster = ::Gapic::Config::Method.new diagnose_cluster_config
|
985
985
|
|
986
986
|
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?
|
@@ -58,7 +58,7 @@ module Google
|
|
58
58
|
parent_config = while namespace.any?
|
59
59
|
parent_name = namespace.join "::"
|
60
60
|
parent_const = const_get parent_name
|
61
|
-
break parent_const.configure if parent_const
|
61
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
62
62
|
namespace.pop
|
63
63
|
end
|
64
64
|
default_config = Client::Configuration.new parent_config
|
@@ -66,57 +66,57 @@ module Google
|
|
66
66
|
default_config.rpcs.submit_job.timeout = 900.0
|
67
67
|
default_config.rpcs.submit_job.retry_policy = {
|
68
68
|
initial_delay: 0.1,
|
69
|
-
|
70
|
-
|
71
|
-
|
69
|
+
max_delay: 60.0,
|
70
|
+
multiplier: 1.3,
|
71
|
+
retry_codes: [14]
|
72
72
|
}
|
73
73
|
|
74
74
|
default_config.rpcs.submit_job_as_operation.timeout = 900.0
|
75
75
|
default_config.rpcs.submit_job_as_operation.retry_policy = {
|
76
76
|
initial_delay: 0.1,
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
max_delay: 60.0,
|
78
|
+
multiplier: 1.3,
|
79
|
+
retry_codes: [14]
|
80
80
|
}
|
81
81
|
|
82
82
|
default_config.rpcs.get_job.timeout = 900.0
|
83
83
|
default_config.rpcs.get_job.retry_policy = {
|
84
84
|
initial_delay: 0.1,
|
85
|
-
|
86
|
-
|
87
|
-
|
85
|
+
max_delay: 60.0,
|
86
|
+
multiplier: 1.3,
|
87
|
+
retry_codes: [4, 13, 14]
|
88
88
|
}
|
89
89
|
|
90
90
|
default_config.rpcs.list_jobs.timeout = 900.0
|
91
91
|
default_config.rpcs.list_jobs.retry_policy = {
|
92
92
|
initial_delay: 0.1,
|
93
|
-
|
94
|
-
|
95
|
-
|
93
|
+
max_delay: 60.0,
|
94
|
+
multiplier: 1.3,
|
95
|
+
retry_codes: [4, 13, 14]
|
96
96
|
}
|
97
97
|
|
98
98
|
default_config.rpcs.update_job.timeout = 900.0
|
99
99
|
default_config.rpcs.update_job.retry_policy = {
|
100
100
|
initial_delay: 0.1,
|
101
|
-
|
102
|
-
|
103
|
-
|
101
|
+
max_delay: 60.0,
|
102
|
+
multiplier: 1.3,
|
103
|
+
retry_codes: [14]
|
104
104
|
}
|
105
105
|
|
106
106
|
default_config.rpcs.cancel_job.timeout = 900.0
|
107
107
|
default_config.rpcs.cancel_job.retry_policy = {
|
108
108
|
initial_delay: 0.1,
|
109
|
-
|
110
|
-
|
111
|
-
|
109
|
+
max_delay: 60.0,
|
110
|
+
multiplier: 1.3,
|
111
|
+
retry_codes: [4, 13, 14]
|
112
112
|
}
|
113
113
|
|
114
114
|
default_config.rpcs.delete_job.timeout = 900.0
|
115
115
|
default_config.rpcs.delete_job.retry_policy = {
|
116
116
|
initial_delay: 0.1,
|
117
|
-
|
118
|
-
|
119
|
-
|
117
|
+
max_delay: 60.0,
|
118
|
+
multiplier: 1.3,
|
119
|
+
retry_codes: [14]
|
120
120
|
}
|
121
121
|
|
122
122
|
default_config
|
@@ -185,7 +185,7 @@ module Google
|
|
185
185
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
186
186
|
@config.endpoint == Client.configure.endpoint &&
|
187
187
|
!@config.endpoint.split(".").first.include?("-")
|
188
|
-
credentials ||= Credentials.default scope:
|
188
|
+
credentials ||= Credentials.default scope: @config.scope,
|
189
189
|
enable_self_signed_jwt: enable_self_signed_jwt
|
190
190
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
191
191
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -281,7 +281,7 @@ module Google
|
|
281
281
|
|
282
282
|
header_params = {
|
283
283
|
"project_id" => request.project_id,
|
284
|
-
"region"
|
284
|
+
"region" => request.region
|
285
285
|
}
|
286
286
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
287
287
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
@@ -365,7 +365,7 @@ module Google
|
|
365
365
|
|
366
366
|
header_params = {
|
367
367
|
"project_id" => request.project_id,
|
368
|
-
"region"
|
368
|
+
"region" => request.region
|
369
369
|
}
|
370
370
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
371
371
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
@@ -438,8 +438,8 @@ module Google
|
|
438
438
|
|
439
439
|
header_params = {
|
440
440
|
"project_id" => request.project_id,
|
441
|
-
"region"
|
442
|
-
"job_id"
|
441
|
+
"region" => request.region,
|
442
|
+
"job_id" => request.job_id
|
443
443
|
}
|
444
444
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
445
445
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
@@ -537,7 +537,7 @@ module Google
|
|
537
537
|
|
538
538
|
header_params = {
|
539
539
|
"project_id" => request.project_id,
|
540
|
-
"region"
|
540
|
+
"region" => request.region
|
541
541
|
}
|
542
542
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
543
543
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
@@ -619,8 +619,8 @@ module Google
|
|
619
619
|
|
620
620
|
header_params = {
|
621
621
|
"project_id" => request.project_id,
|
622
|
-
"region"
|
623
|
-
"job_id"
|
622
|
+
"region" => request.region,
|
623
|
+
"job_id" => request.job_id
|
624
624
|
}
|
625
625
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
626
626
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
@@ -696,8 +696,8 @@ module Google
|
|
696
696
|
|
697
697
|
header_params = {
|
698
698
|
"project_id" => request.project_id,
|
699
|
-
"region"
|
700
|
-
"job_id"
|
699
|
+
"region" => request.region,
|
700
|
+
"job_id" => request.job_id
|
701
701
|
}
|
702
702
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
703
703
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
@@ -770,8 +770,8 @@ module Google
|
|
770
770
|
|
771
771
|
header_params = {
|
772
772
|
"project_id" => request.project_id,
|
773
|
-
"region"
|
774
|
-
"job_id"
|
773
|
+
"region" => request.region,
|
774
|
+
"job_id" => request.job_id
|
775
775
|
}
|
776
776
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
777
777
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
@@ -882,7 +882,7 @@ module Google
|
|
882
882
|
config_attr :scope, nil, ::String, ::Array, nil
|
883
883
|
config_attr :lib_name, nil, ::String, nil
|
884
884
|
config_attr :lib_version, nil, ::String, nil
|
885
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
885
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
886
886
|
config_attr :interceptors, nil, ::Array, nil
|
887
887
|
config_attr :timeout, nil, ::Numeric, nil
|
888
888
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -903,7 +903,7 @@ module Google
|
|
903
903
|
def rpcs
|
904
904
|
@rpcs ||= begin
|
905
905
|
parent_rpcs = nil
|
906
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
906
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
907
907
|
Rpcs.new parent_rpcs
|
908
908
|
end
|
909
909
|
end
|
@@ -964,19 +964,19 @@ module Google
|
|
964
964
|
|
965
965
|
# @private
|
966
966
|
def initialize parent_rpcs = nil
|
967
|
-
submit_job_config = parent_rpcs
|
967
|
+
submit_job_config = parent_rpcs.submit_job if parent_rpcs.respond_to? :submit_job
|
968
968
|
@submit_job = ::Gapic::Config::Method.new submit_job_config
|
969
|
-
submit_job_as_operation_config = parent_rpcs
|
969
|
+
submit_job_as_operation_config = parent_rpcs.submit_job_as_operation if parent_rpcs.respond_to? :submit_job_as_operation
|
970
970
|
@submit_job_as_operation = ::Gapic::Config::Method.new submit_job_as_operation_config
|
971
|
-
get_job_config = parent_rpcs
|
971
|
+
get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job
|
972
972
|
@get_job = ::Gapic::Config::Method.new get_job_config
|
973
|
-
list_jobs_config = parent_rpcs
|
973
|
+
list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs
|
974
974
|
@list_jobs = ::Gapic::Config::Method.new list_jobs_config
|
975
|
-
update_job_config = parent_rpcs
|
975
|
+
update_job_config = parent_rpcs.update_job if parent_rpcs.respond_to? :update_job
|
976
976
|
@update_job = ::Gapic::Config::Method.new update_job_config
|
977
|
-
cancel_job_config = parent_rpcs
|
977
|
+
cancel_job_config = parent_rpcs.cancel_job if parent_rpcs.respond_to? :cancel_job
|
978
978
|
@cancel_job = ::Gapic::Config::Method.new cancel_job_config
|
979
|
-
delete_job_config = parent_rpcs
|
979
|
+
delete_job_config = parent_rpcs.delete_job if parent_rpcs.respond_to? :delete_job
|
980
980
|
@delete_job = ::Gapic::Config::Method.new delete_job_config
|
981
981
|
|
982
982
|
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?
|