google-cloud-talent-v4beta1 0.3.0 → 0.4.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/talent/v4beta1/application_service/client.rb +18 -18
- data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +18 -18
- data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +8 -8
- data/lib/google/cloud/talent/v4beta1/completion/paths.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +5 -5
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +23 -23
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +7 -7
- data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +19 -19
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +18 -18
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- metadata +6 -6
@@ -74,7 +74,7 @@ module Google
|
|
74
74
|
|
75
75
|
"projects/#{project}/tenants/#{tenant}/companies/#{company}"
|
76
76
|
end),
|
77
|
-
"company:project"
|
77
|
+
"company:project" => (proc do |project:, company:|
|
78
78
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
79
79
|
|
80
80
|
"projects/#{project}/companies/#{company}"
|
@@ -115,7 +115,7 @@ module Google
|
|
115
115
|
|
116
116
|
"projects/#{project}/tenants/#{tenant}/jobs/#{job}"
|
117
117
|
end),
|
118
|
-
"job:project"
|
118
|
+
"job:project" => (proc do |project:, job:|
|
119
119
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
120
120
|
|
121
121
|
"projects/#{project}/jobs/#{job}"
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
parent_config = while namespace.any?
|
61
61
|
parent_name = namespace.join "::"
|
62
62
|
parent_const = const_get parent_name
|
63
|
-
break parent_const.configure if parent_const
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
64
64
|
namespace.pop
|
65
65
|
end
|
66
66
|
default_config = Client::Configuration.new parent_config
|
@@ -70,9 +70,9 @@ module Google
|
|
70
70
|
default_config.rpcs.get_company.timeout = 30.0
|
71
71
|
default_config.rpcs.get_company.retry_policy = {
|
72
72
|
initial_delay: 0.1,
|
73
|
-
|
74
|
-
|
75
|
-
|
73
|
+
max_delay: 60.0,
|
74
|
+
multiplier: 1.3,
|
75
|
+
retry_codes: [4, 14]
|
76
76
|
}
|
77
77
|
|
78
78
|
default_config.rpcs.update_company.timeout = 30.0
|
@@ -80,17 +80,17 @@ module Google
|
|
80
80
|
default_config.rpcs.delete_company.timeout = 30.0
|
81
81
|
default_config.rpcs.delete_company.retry_policy = {
|
82
82
|
initial_delay: 0.1,
|
83
|
-
|
84
|
-
|
85
|
-
|
83
|
+
max_delay: 60.0,
|
84
|
+
multiplier: 1.3,
|
85
|
+
retry_codes: [4, 14]
|
86
86
|
}
|
87
87
|
|
88
88
|
default_config.rpcs.list_companies.timeout = 30.0
|
89
89
|
default_config.rpcs.list_companies.retry_policy = {
|
90
90
|
initial_delay: 0.1,
|
91
|
-
|
92
|
-
|
93
|
-
|
91
|
+
max_delay: 60.0,
|
92
|
+
multiplier: 1.3,
|
93
|
+
retry_codes: [4, 14]
|
94
94
|
}
|
95
95
|
|
96
96
|
default_config
|
@@ -159,7 +159,7 @@ module Google
|
|
159
159
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
160
160
|
@config.endpoint == Client.configure.endpoint &&
|
161
161
|
!@config.endpoint.split(".").first.include?("-")
|
162
|
-
credentials ||= Credentials.default scope:
|
162
|
+
credentials ||= Credentials.default scope: @config.scope,
|
163
163
|
enable_self_signed_jwt: enable_self_signed_jwt
|
164
164
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
165
165
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -648,7 +648,7 @@ module Google
|
|
648
648
|
config_attr :scope, nil, ::String, ::Array, nil
|
649
649
|
config_attr :lib_name, nil, ::String, nil
|
650
650
|
config_attr :lib_version, nil, ::String, nil
|
651
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
651
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
652
652
|
config_attr :interceptors, nil, ::Array, nil
|
653
653
|
config_attr :timeout, nil, ::Numeric, nil
|
654
654
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -669,7 +669,7 @@ module Google
|
|
669
669
|
def rpcs
|
670
670
|
@rpcs ||= begin
|
671
671
|
parent_rpcs = nil
|
672
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
672
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
673
673
|
Rpcs.new parent_rpcs
|
674
674
|
end
|
675
675
|
end
|
@@ -720,15 +720,15 @@ module Google
|
|
720
720
|
|
721
721
|
# @private
|
722
722
|
def initialize parent_rpcs = nil
|
723
|
-
create_company_config = parent_rpcs
|
723
|
+
create_company_config = parent_rpcs.create_company if parent_rpcs.respond_to? :create_company
|
724
724
|
@create_company = ::Gapic::Config::Method.new create_company_config
|
725
|
-
get_company_config = parent_rpcs
|
725
|
+
get_company_config = parent_rpcs.get_company if parent_rpcs.respond_to? :get_company
|
726
726
|
@get_company = ::Gapic::Config::Method.new get_company_config
|
727
|
-
update_company_config = parent_rpcs
|
727
|
+
update_company_config = parent_rpcs.update_company if parent_rpcs.respond_to? :update_company
|
728
728
|
@update_company = ::Gapic::Config::Method.new update_company_config
|
729
|
-
delete_company_config = parent_rpcs
|
729
|
+
delete_company_config = parent_rpcs.delete_company if parent_rpcs.respond_to? :delete_company
|
730
730
|
@delete_company = ::Gapic::Config::Method.new delete_company_config
|
731
|
-
list_companies_config = parent_rpcs
|
731
|
+
list_companies_config = parent_rpcs.list_companies if parent_rpcs.respond_to? :list_companies
|
732
732
|
@list_companies = ::Gapic::Config::Method.new list_companies_config
|
733
733
|
|
734
734
|
yield self if block_given?
|
@@ -53,7 +53,7 @@ module Google
|
|
53
53
|
|
54
54
|
"projects/#{project}/tenants/#{tenant}/companies/#{company}"
|
55
55
|
end),
|
56
|
-
"company:project"
|
56
|
+
"company:project" => (proc do |project:, company:|
|
57
57
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
58
|
|
59
59
|
"projects/#{project}/companies/#{company}"
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
parent_config = while namespace.any?
|
61
61
|
parent_name = namespace.join "::"
|
62
62
|
parent_const = const_get parent_name
|
63
|
-
break parent_const.configure if parent_const
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
64
64
|
namespace.pop
|
65
65
|
end
|
66
66
|
default_config = Client::Configuration.new parent_config
|
@@ -68,9 +68,9 @@ module Google
|
|
68
68
|
default_config.rpcs.complete_query.timeout = 30.0
|
69
69
|
default_config.rpcs.complete_query.retry_policy = {
|
70
70
|
initial_delay: 0.1,
|
71
|
-
|
72
|
-
|
73
|
-
|
71
|
+
max_delay: 60.0,
|
72
|
+
multiplier: 1.3,
|
73
|
+
retry_codes: [4, 14]
|
74
74
|
}
|
75
75
|
|
76
76
|
default_config
|
@@ -139,7 +139,7 @@ module Google
|
|
139
139
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
140
140
|
@config.endpoint == Client.configure.endpoint &&
|
141
141
|
!@config.endpoint.split(".").first.include?("-")
|
142
|
-
credentials ||= Credentials.default scope:
|
142
|
+
credentials ||= Credentials.default scope: @config.scope,
|
143
143
|
enable_self_signed_jwt: enable_self_signed_jwt
|
144
144
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
145
145
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -351,7 +351,7 @@ module Google
|
|
351
351
|
config_attr :scope, nil, ::String, ::Array, nil
|
352
352
|
config_attr :lib_name, nil, ::String, nil
|
353
353
|
config_attr :lib_version, nil, ::String, nil
|
354
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
354
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
355
355
|
config_attr :interceptors, nil, ::Array, nil
|
356
356
|
config_attr :timeout, nil, ::Numeric, nil
|
357
357
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -372,7 +372,7 @@ module Google
|
|
372
372
|
def rpcs
|
373
373
|
@rpcs ||= begin
|
374
374
|
parent_rpcs = nil
|
375
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
375
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
376
376
|
Rpcs.new parent_rpcs
|
377
377
|
end
|
378
378
|
end
|
@@ -403,7 +403,7 @@ module Google
|
|
403
403
|
|
404
404
|
# @private
|
405
405
|
def initialize parent_rpcs = nil
|
406
|
-
complete_query_config = parent_rpcs
|
406
|
+
complete_query_config = parent_rpcs.complete_query if parent_rpcs.respond_to? :complete_query
|
407
407
|
@complete_query = ::Gapic::Config::Method.new complete_query_config
|
408
408
|
|
409
409
|
yield self if block_given?
|
@@ -53,7 +53,7 @@ module Google
|
|
53
53
|
|
54
54
|
"projects/#{project}/tenants/#{tenant}/companies/#{company}"
|
55
55
|
end),
|
56
|
-
"company:project"
|
56
|
+
"company:project" => (proc do |project:, company:|
|
57
57
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
58
|
|
59
59
|
"projects/#{project}/companies/#{company}"
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
parent_config = while namespace.any?
|
61
61
|
parent_name = namespace.join "::"
|
62
62
|
parent_const = const_get parent_name
|
63
|
-
break parent_const.configure if parent_const
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
64
64
|
namespace.pop
|
65
65
|
end
|
66
66
|
default_config = Client::Configuration.new parent_config
|
@@ -133,7 +133,7 @@ module Google
|
|
133
133
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
134
134
|
@config.endpoint == Client.configure.endpoint &&
|
135
135
|
!@config.endpoint.split(".").first.include?("-")
|
136
|
-
credentials ||= Credentials.default scope:
|
136
|
+
credentials ||= Credentials.default scope: @config.scope,
|
137
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
138
138
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
139
139
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -323,7 +323,7 @@ module Google
|
|
323
323
|
config_attr :scope, nil, ::String, ::Array, nil
|
324
324
|
config_attr :lib_name, nil, ::String, nil
|
325
325
|
config_attr :lib_version, nil, ::String, nil
|
326
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
326
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
327
327
|
config_attr :interceptors, nil, ::Array, nil
|
328
328
|
config_attr :timeout, nil, ::Numeric, nil
|
329
329
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -344,7 +344,7 @@ module Google
|
|
344
344
|
def rpcs
|
345
345
|
@rpcs ||= begin
|
346
346
|
parent_rpcs = nil
|
347
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
347
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
348
348
|
Rpcs.new parent_rpcs
|
349
349
|
end
|
350
350
|
end
|
@@ -375,7 +375,7 @@ module Google
|
|
375
375
|
|
376
376
|
# @private
|
377
377
|
def initialize parent_rpcs = nil
|
378
|
-
create_client_event_config = parent_rpcs
|
378
|
+
create_client_event_config = parent_rpcs.create_client_event if parent_rpcs.respond_to? :create_client_event
|
379
379
|
@create_client_event = ::Gapic::Config::Method.new create_client_event_config
|
380
380
|
|
381
381
|
yield self if block_given?
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
parent_config = while namespace.any?
|
61
61
|
parent_name = namespace.join "::"
|
62
62
|
parent_const = const_get parent_name
|
63
|
-
break parent_const.configure if parent_const
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
64
64
|
namespace.pop
|
65
65
|
end
|
66
66
|
default_config = Client::Configuration.new parent_config
|
@@ -72,9 +72,9 @@ module Google
|
|
72
72
|
default_config.rpcs.get_job.timeout = 30.0
|
73
73
|
default_config.rpcs.get_job.retry_policy = {
|
74
74
|
initial_delay: 0.1,
|
75
|
-
|
76
|
-
|
77
|
-
|
75
|
+
max_delay: 60.0,
|
76
|
+
multiplier: 1.3,
|
77
|
+
retry_codes: [4, 14]
|
78
78
|
}
|
79
79
|
|
80
80
|
default_config.rpcs.update_job.timeout = 30.0
|
@@ -84,9 +84,9 @@ module Google
|
|
84
84
|
default_config.rpcs.delete_job.timeout = 30.0
|
85
85
|
default_config.rpcs.delete_job.retry_policy = {
|
86
86
|
initial_delay: 0.1,
|
87
|
-
|
88
|
-
|
89
|
-
|
87
|
+
max_delay: 60.0,
|
88
|
+
multiplier: 1.3,
|
89
|
+
retry_codes: [4, 14]
|
90
90
|
}
|
91
91
|
|
92
92
|
default_config.rpcs.batch_delete_jobs.timeout = 30.0
|
@@ -94,9 +94,9 @@ module Google
|
|
94
94
|
default_config.rpcs.list_jobs.timeout = 30.0
|
95
95
|
default_config.rpcs.list_jobs.retry_policy = {
|
96
96
|
initial_delay: 0.1,
|
97
|
-
|
98
|
-
|
99
|
-
|
97
|
+
max_delay: 60.0,
|
98
|
+
multiplier: 1.3,
|
99
|
+
retry_codes: [4, 14]
|
100
100
|
}
|
101
101
|
|
102
102
|
default_config.rpcs.search_jobs.timeout = 30.0
|
@@ -169,7 +169,7 @@ module Google
|
|
169
169
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
170
170
|
@config.endpoint == Client.configure.endpoint &&
|
171
171
|
!@config.endpoint.split(".").first.include?("-")
|
172
|
-
credentials ||= Credentials.default scope:
|
172
|
+
credentials ||= Credentials.default scope: @config.scope,
|
173
173
|
enable_self_signed_jwt: enable_self_signed_jwt
|
174
174
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
175
175
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -1541,7 +1541,7 @@ module Google
|
|
1541
1541
|
config_attr :scope, nil, ::String, ::Array, nil
|
1542
1542
|
config_attr :lib_name, nil, ::String, nil
|
1543
1543
|
config_attr :lib_version, nil, ::String, nil
|
1544
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1544
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
1545
1545
|
config_attr :interceptors, nil, ::Array, nil
|
1546
1546
|
config_attr :timeout, nil, ::Numeric, nil
|
1547
1547
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -1562,7 +1562,7 @@ module Google
|
|
1562
1562
|
def rpcs
|
1563
1563
|
@rpcs ||= begin
|
1564
1564
|
parent_rpcs = nil
|
1565
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
1565
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1566
1566
|
Rpcs.new parent_rpcs
|
1567
1567
|
end
|
1568
1568
|
end
|
@@ -1638,25 +1638,25 @@ module Google
|
|
1638
1638
|
|
1639
1639
|
# @private
|
1640
1640
|
def initialize parent_rpcs = nil
|
1641
|
-
create_job_config = parent_rpcs
|
1641
|
+
create_job_config = parent_rpcs.create_job if parent_rpcs.respond_to? :create_job
|
1642
1642
|
@create_job = ::Gapic::Config::Method.new create_job_config
|
1643
|
-
batch_create_jobs_config = parent_rpcs
|
1643
|
+
batch_create_jobs_config = parent_rpcs.batch_create_jobs if parent_rpcs.respond_to? :batch_create_jobs
|
1644
1644
|
@batch_create_jobs = ::Gapic::Config::Method.new batch_create_jobs_config
|
1645
|
-
get_job_config = parent_rpcs
|
1645
|
+
get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job
|
1646
1646
|
@get_job = ::Gapic::Config::Method.new get_job_config
|
1647
|
-
update_job_config = parent_rpcs
|
1647
|
+
update_job_config = parent_rpcs.update_job if parent_rpcs.respond_to? :update_job
|
1648
1648
|
@update_job = ::Gapic::Config::Method.new update_job_config
|
1649
|
-
batch_update_jobs_config = parent_rpcs
|
1649
|
+
batch_update_jobs_config = parent_rpcs.batch_update_jobs if parent_rpcs.respond_to? :batch_update_jobs
|
1650
1650
|
@batch_update_jobs = ::Gapic::Config::Method.new batch_update_jobs_config
|
1651
|
-
delete_job_config = parent_rpcs
|
1651
|
+
delete_job_config = parent_rpcs.delete_job if parent_rpcs.respond_to? :delete_job
|
1652
1652
|
@delete_job = ::Gapic::Config::Method.new delete_job_config
|
1653
|
-
batch_delete_jobs_config = parent_rpcs
|
1653
|
+
batch_delete_jobs_config = parent_rpcs.batch_delete_jobs if parent_rpcs.respond_to? :batch_delete_jobs
|
1654
1654
|
@batch_delete_jobs = ::Gapic::Config::Method.new batch_delete_jobs_config
|
1655
|
-
list_jobs_config = parent_rpcs
|
1655
|
+
list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs
|
1656
1656
|
@list_jobs = ::Gapic::Config::Method.new list_jobs_config
|
1657
|
-
search_jobs_config = parent_rpcs
|
1657
|
+
search_jobs_config = parent_rpcs.search_jobs if parent_rpcs.respond_to? :search_jobs
|
1658
1658
|
@search_jobs = ::Gapic::Config::Method.new search_jobs_config
|
1659
|
-
search_jobs_for_alert_config = parent_rpcs
|
1659
|
+
search_jobs_for_alert_config = parent_rpcs.search_jobs_for_alert if parent_rpcs.respond_to? :search_jobs_for_alert
|
1660
1660
|
@search_jobs_for_alert = ::Gapic::Config::Method.new search_jobs_for_alert_config
|
1661
1661
|
|
1662
1662
|
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?
|
@@ -53,7 +53,7 @@ module Google
|
|
53
53
|
|
54
54
|
"projects/#{project}/tenants/#{tenant}/companies/#{company}"
|
55
55
|
end),
|
56
|
-
"company:project"
|
56
|
+
"company:project" => (proc do |project:, company:|
|
57
57
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
58
|
|
59
59
|
"projects/#{project}/companies/#{company}"
|
@@ -94,7 +94,7 @@ module Google
|
|
94
94
|
|
95
95
|
"projects/#{project}/tenants/#{tenant}/jobs/#{job}"
|
96
96
|
end),
|
97
|
-
"job:project"
|
97
|
+
"job:project" => (proc do |project:, job:|
|
98
98
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
99
99
|
|
100
100
|
"projects/#{project}/jobs/#{job}"
|
@@ -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,9 +69,9 @@ module Google
|
|
69
69
|
default_config.rpcs.list_profiles.timeout = 30.0
|
70
70
|
default_config.rpcs.list_profiles.retry_policy = {
|
71
71
|
initial_delay: 0.1,
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
max_delay: 60.0,
|
73
|
+
multiplier: 1.3,
|
74
|
+
retry_codes: [4, 14]
|
75
75
|
}
|
76
76
|
|
77
77
|
default_config.rpcs.create_profile.timeout = 30.0
|
@@ -79,9 +79,9 @@ module Google
|
|
79
79
|
default_config.rpcs.get_profile.timeout = 30.0
|
80
80
|
default_config.rpcs.get_profile.retry_policy = {
|
81
81
|
initial_delay: 0.1,
|
82
|
-
|
83
|
-
|
84
|
-
|
82
|
+
max_delay: 60.0,
|
83
|
+
multiplier: 1.3,
|
84
|
+
retry_codes: [4, 14]
|
85
85
|
}
|
86
86
|
|
87
87
|
default_config.rpcs.update_profile.timeout = 30.0
|
@@ -89,9 +89,9 @@ module Google
|
|
89
89
|
default_config.rpcs.delete_profile.timeout = 30.0
|
90
90
|
default_config.rpcs.delete_profile.retry_policy = {
|
91
91
|
initial_delay: 0.1,
|
92
|
-
|
93
|
-
|
94
|
-
|
92
|
+
max_delay: 60.0,
|
93
|
+
multiplier: 1.3,
|
94
|
+
retry_codes: [4, 14]
|
95
95
|
}
|
96
96
|
|
97
97
|
default_config.rpcs.search_profiles.timeout = 30.0
|
@@ -162,7 +162,7 @@ module Google
|
|
162
162
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
163
163
|
@config.endpoint == Client.configure.endpoint &&
|
164
164
|
!@config.endpoint.split(".").first.include?("-")
|
165
|
-
credentials ||= Credentials.default scope:
|
165
|
+
credentials ||= Credentials.default scope: @config.scope,
|
166
166
|
enable_self_signed_jwt: enable_self_signed_jwt
|
167
167
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
168
168
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -901,7 +901,7 @@ module Google
|
|
901
901
|
config_attr :scope, nil, ::String, ::Array, nil
|
902
902
|
config_attr :lib_name, nil, ::String, nil
|
903
903
|
config_attr :lib_version, nil, ::String, nil
|
904
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
904
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
905
905
|
config_attr :interceptors, nil, ::Array, nil
|
906
906
|
config_attr :timeout, nil, ::Numeric, nil
|
907
907
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -922,7 +922,7 @@ module Google
|
|
922
922
|
def rpcs
|
923
923
|
@rpcs ||= begin
|
924
924
|
parent_rpcs = nil
|
925
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
925
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
926
926
|
Rpcs.new parent_rpcs
|
927
927
|
end
|
928
928
|
end
|
@@ -978,17 +978,17 @@ module Google
|
|
978
978
|
|
979
979
|
# @private
|
980
980
|
def initialize parent_rpcs = nil
|
981
|
-
list_profiles_config = parent_rpcs
|
981
|
+
list_profiles_config = parent_rpcs.list_profiles if parent_rpcs.respond_to? :list_profiles
|
982
982
|
@list_profiles = ::Gapic::Config::Method.new list_profiles_config
|
983
|
-
create_profile_config = parent_rpcs
|
983
|
+
create_profile_config = parent_rpcs.create_profile if parent_rpcs.respond_to? :create_profile
|
984
984
|
@create_profile = ::Gapic::Config::Method.new create_profile_config
|
985
|
-
get_profile_config = parent_rpcs
|
985
|
+
get_profile_config = parent_rpcs.get_profile if parent_rpcs.respond_to? :get_profile
|
986
986
|
@get_profile = ::Gapic::Config::Method.new get_profile_config
|
987
|
-
update_profile_config = parent_rpcs
|
987
|
+
update_profile_config = parent_rpcs.update_profile if parent_rpcs.respond_to? :update_profile
|
988
988
|
@update_profile = ::Gapic::Config::Method.new update_profile_config
|
989
|
-
delete_profile_config = parent_rpcs
|
989
|
+
delete_profile_config = parent_rpcs.delete_profile if parent_rpcs.respond_to? :delete_profile
|
990
990
|
@delete_profile = ::Gapic::Config::Method.new delete_profile_config
|
991
|
-
search_profiles_config = parent_rpcs
|
991
|
+
search_profiles_config = parent_rpcs.search_profiles if parent_rpcs.respond_to? :search_profiles
|
992
992
|
@search_profiles = ::Gapic::Config::Method.new search_profiles_config
|
993
993
|
|
994
994
|
yield self if block_given?
|