google-cloud-dataproc-v1 0.4.0 → 0.5.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/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
@@ -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
|
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
parent_config = while namespace.any?
|
60
60
|
parent_name = namespace.join "::"
|
61
61
|
parent_const = const_get parent_name
|
62
|
-
break parent_const.configure if parent_const
|
62
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
63
63
|
namespace.pop
|
64
64
|
end
|
65
65
|
default_config = Client::Configuration.new parent_config
|
@@ -67,49 +67,49 @@ module Google
|
|
67
67
|
default_config.rpcs.create_cluster.timeout = 300.0
|
68
68
|
default_config.rpcs.create_cluster.retry_policy = {
|
69
69
|
initial_delay: 0.1,
|
70
|
-
|
71
|
-
|
72
|
-
|
70
|
+
max_delay: 60.0,
|
71
|
+
multiplier: 1.3,
|
72
|
+
retry_codes: [14]
|
73
73
|
}
|
74
74
|
|
75
75
|
default_config.rpcs.update_cluster.timeout = 300.0
|
76
76
|
default_config.rpcs.update_cluster.retry_policy = {
|
77
77
|
initial_delay: 0.1,
|
78
|
-
|
79
|
-
|
80
|
-
|
78
|
+
max_delay: 60.0,
|
79
|
+
multiplier: 1.3,
|
80
|
+
retry_codes: [14]
|
81
81
|
}
|
82
82
|
|
83
83
|
default_config.rpcs.delete_cluster.timeout = 300.0
|
84
84
|
default_config.rpcs.delete_cluster.retry_policy = {
|
85
85
|
initial_delay: 0.1,
|
86
|
-
|
87
|
-
|
88
|
-
|
86
|
+
max_delay: 60.0,
|
87
|
+
multiplier: 1.3,
|
88
|
+
retry_codes: [14]
|
89
89
|
}
|
90
90
|
|
91
91
|
default_config.rpcs.get_cluster.timeout = 300.0
|
92
92
|
default_config.rpcs.get_cluster.retry_policy = {
|
93
93
|
initial_delay: 0.1,
|
94
|
-
|
95
|
-
|
96
|
-
|
94
|
+
max_delay: 60.0,
|
95
|
+
multiplier: 1.3,
|
96
|
+
retry_codes: [13, 4, 14]
|
97
97
|
}
|
98
98
|
|
99
99
|
default_config.rpcs.list_clusters.timeout = 300.0
|
100
100
|
default_config.rpcs.list_clusters.retry_policy = {
|
101
101
|
initial_delay: 0.1,
|
102
|
-
|
103
|
-
|
104
|
-
|
102
|
+
max_delay: 60.0,
|
103
|
+
multiplier: 1.3,
|
104
|
+
retry_codes: [13, 4, 14]
|
105
105
|
}
|
106
106
|
|
107
107
|
default_config.rpcs.diagnose_cluster.timeout = 300.0
|
108
108
|
default_config.rpcs.diagnose_cluster.retry_policy = {
|
109
109
|
initial_delay: 0.1,
|
110
|
-
|
111
|
-
|
112
|
-
|
110
|
+
max_delay: 60.0,
|
111
|
+
multiplier: 1.3,
|
112
|
+
retry_codes: [14]
|
113
113
|
}
|
114
114
|
|
115
115
|
default_config
|
@@ -178,7 +178,7 @@ module Google
|
|
178
178
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
179
179
|
@config.endpoint == Client.configure.endpoint &&
|
180
180
|
!@config.endpoint.split(".").first.include?("-")
|
181
|
-
credentials ||= Credentials.default scope:
|
181
|
+
credentials ||= Credentials.default scope: @config.scope,
|
182
182
|
enable_self_signed_jwt: enable_self_signed_jwt
|
183
183
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
184
184
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -276,7 +276,7 @@ module Google
|
|
276
276
|
|
277
277
|
header_params = {
|
278
278
|
"project_id" => request.project_id,
|
279
|
-
"region"
|
279
|
+
"region" => request.region
|
280
280
|
}
|
281
281
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
282
282
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
@@ -426,8 +426,8 @@ module Google
|
|
426
426
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
427
427
|
|
428
428
|
header_params = {
|
429
|
-
"project_id"
|
430
|
-
"region"
|
429
|
+
"project_id" => request.project_id,
|
430
|
+
"region" => request.region,
|
431
431
|
"cluster_name" => request.cluster_name
|
432
432
|
}
|
433
433
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
@@ -517,8 +517,8 @@ module Google
|
|
517
517
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
518
518
|
|
519
519
|
header_params = {
|
520
|
-
"project_id"
|
521
|
-
"region"
|
520
|
+
"project_id" => request.project_id,
|
521
|
+
"region" => request.region,
|
522
522
|
"cluster_name" => request.cluster_name
|
523
523
|
}
|
524
524
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
@@ -591,8 +591,8 @@ module Google
|
|
591
591
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
592
592
|
|
593
593
|
header_params = {
|
594
|
-
"project_id"
|
595
|
-
"region"
|
594
|
+
"project_id" => request.project_id,
|
595
|
+
"region" => request.region,
|
596
596
|
"cluster_name" => request.cluster_name
|
597
597
|
}
|
598
598
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
@@ -687,7 +687,7 @@ module Google
|
|
687
687
|
|
688
688
|
header_params = {
|
689
689
|
"project_id" => request.project_id,
|
690
|
-
"region"
|
690
|
+
"region" => request.region
|
691
691
|
}
|
692
692
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
693
693
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
@@ -765,8 +765,8 @@ module Google
|
|
765
765
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
766
766
|
|
767
767
|
header_params = {
|
768
|
-
"project_id"
|
769
|
-
"region"
|
768
|
+
"project_id" => request.project_id,
|
769
|
+
"region" => request.region,
|
770
770
|
"cluster_name" => request.cluster_name
|
771
771
|
}
|
772
772
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
@@ -879,7 +879,7 @@ module Google
|
|
879
879
|
config_attr :scope, nil, ::String, ::Array, nil
|
880
880
|
config_attr :lib_name, nil, ::String, nil
|
881
881
|
config_attr :lib_version, nil, ::String, nil
|
882
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
882
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
883
883
|
config_attr :interceptors, nil, ::Array, nil
|
884
884
|
config_attr :timeout, nil, ::Numeric, nil
|
885
885
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -900,7 +900,7 @@ module Google
|
|
900
900
|
def rpcs
|
901
901
|
@rpcs ||= begin
|
902
902
|
parent_rpcs = nil
|
903
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
903
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
904
904
|
Rpcs.new parent_rpcs
|
905
905
|
end
|
906
906
|
end
|
@@ -956,17 +956,17 @@ module Google
|
|
956
956
|
|
957
957
|
# @private
|
958
958
|
def initialize parent_rpcs = nil
|
959
|
-
create_cluster_config = parent_rpcs
|
959
|
+
create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
|
960
960
|
@create_cluster = ::Gapic::Config::Method.new create_cluster_config
|
961
|
-
update_cluster_config = parent_rpcs
|
961
|
+
update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
|
962
962
|
@update_cluster = ::Gapic::Config::Method.new update_cluster_config
|
963
|
-
delete_cluster_config = parent_rpcs
|
963
|
+
delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
|
964
964
|
@delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
|
965
|
-
get_cluster_config = parent_rpcs
|
965
|
+
get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
|
966
966
|
@get_cluster = ::Gapic::Config::Method.new get_cluster_config
|
967
|
-
list_clusters_config = parent_rpcs
|
967
|
+
list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
|
968
968
|
@list_clusters = ::Gapic::Config::Method.new list_clusters_config
|
969
|
-
diagnose_cluster_config = parent_rpcs
|
969
|
+
diagnose_cluster_config = parent_rpcs.diagnose_cluster if parent_rpcs.respond_to? :diagnose_cluster
|
970
970
|
@diagnose_cluster = ::Gapic::Config::Method.new diagnose_cluster_config
|
971
971
|
|
972
972
|
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?
|