google-cloud-talent-v4beta1 0.2.5 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/LICENSE.md +188 -190
- data/README.md +67 -3
- data/lib/google/cloud/talent/v4beta1.rb +3 -0
- data/lib/google/cloud/talent/v4beta1/application_service/client.rb +20 -23
- data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +5 -5
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +20 -23
- data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +5 -5
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +14 -11
- data/lib/google/cloud/talent/v4beta1/completion/paths.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +13 -7
- data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +25 -28
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +96 -11
- data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +10 -10
- data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +21 -24
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +6 -6
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +20 -23
- data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +5 -5
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +12 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/longrunning/operations.rb +17 -3
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- data/proto_docs/google/type/date.rb +14 -11
- data/proto_docs/google/type/latlng.rb +2 -2
- data/proto_docs/google/type/money.rb +1 -1
- data/proto_docs/google/type/timeofday.rb +2 -1
- metadata +19 -11
@@ -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
|
@@ -70,28 +70,19 @@ module Google
|
|
70
70
|
|
71
71
|
default_config.rpcs.get_application.timeout = 30.0
|
72
72
|
default_config.rpcs.get_application.retry_policy = {
|
73
|
-
initial_delay: 0.1,
|
74
|
-
max_delay: 60.0,
|
75
|
-
multiplier: 1.3,
|
76
|
-
retry_codes: [4, 14]
|
73
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
77
74
|
}
|
78
75
|
|
79
76
|
default_config.rpcs.update_application.timeout = 30.0
|
80
77
|
|
81
78
|
default_config.rpcs.delete_application.timeout = 30.0
|
82
79
|
default_config.rpcs.delete_application.retry_policy = {
|
83
|
-
initial_delay: 0.1,
|
84
|
-
max_delay: 60.0,
|
85
|
-
multiplier: 1.3,
|
86
|
-
retry_codes: [4, 14]
|
80
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
87
81
|
}
|
88
82
|
|
89
83
|
default_config.rpcs.list_applications.timeout = 30.0
|
90
84
|
default_config.rpcs.list_applications.retry_policy = {
|
91
|
-
initial_delay: 0.1,
|
92
|
-
max_delay: 60.0,
|
93
|
-
multiplier: 1.3,
|
94
|
-
retry_codes: [4, 14]
|
85
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
95
86
|
}
|
96
87
|
|
97
88
|
default_config
|
@@ -155,8 +146,14 @@ module Google
|
|
155
146
|
|
156
147
|
# Create credentials
|
157
148
|
credentials = @config.credentials
|
158
|
-
|
159
|
-
if
|
149
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
150
|
+
# but only if the default endpoint does not have a region prefix.
|
151
|
+
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
152
|
+
@config.endpoint == Client.configure.endpoint &&
|
153
|
+
!@config.endpoint.split(".").first.include?("-")
|
154
|
+
credentials ||= Credentials.default scope: @config.scope,
|
155
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
156
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
160
157
|
credentials = Credentials.new credentials, scope: @config.scope
|
161
158
|
end
|
162
159
|
@quota_project_id = @config.quota_project
|
@@ -627,7 +624,7 @@ module Google
|
|
627
624
|
config_attr :scope, nil, ::String, ::Array, nil
|
628
625
|
config_attr :lib_name, nil, ::String, nil
|
629
626
|
config_attr :lib_version, nil, ::String, nil
|
630
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
627
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
631
628
|
config_attr :interceptors, nil, ::Array, nil
|
632
629
|
config_attr :timeout, nil, ::Numeric, nil
|
633
630
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -648,7 +645,7 @@ module Google
|
|
648
645
|
def rpcs
|
649
646
|
@rpcs ||= begin
|
650
647
|
parent_rpcs = nil
|
651
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
648
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
652
649
|
Rpcs.new parent_rpcs
|
653
650
|
end
|
654
651
|
end
|
@@ -660,7 +657,7 @@ module Google
|
|
660
657
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
661
658
|
# the following configuration fields:
|
662
659
|
#
|
663
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
660
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
664
661
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
665
662
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
666
663
|
# include the following keys:
|
@@ -699,15 +696,15 @@ module Google
|
|
699
696
|
|
700
697
|
# @private
|
701
698
|
def initialize parent_rpcs = nil
|
702
|
-
create_application_config = parent_rpcs
|
699
|
+
create_application_config = parent_rpcs.create_application if parent_rpcs.respond_to? :create_application
|
703
700
|
@create_application = ::Gapic::Config::Method.new create_application_config
|
704
|
-
get_application_config = parent_rpcs
|
701
|
+
get_application_config = parent_rpcs.get_application if parent_rpcs.respond_to? :get_application
|
705
702
|
@get_application = ::Gapic::Config::Method.new get_application_config
|
706
|
-
update_application_config = parent_rpcs
|
703
|
+
update_application_config = parent_rpcs.update_application if parent_rpcs.respond_to? :update_application
|
707
704
|
@update_application = ::Gapic::Config::Method.new update_application_config
|
708
|
-
delete_application_config = parent_rpcs
|
705
|
+
delete_application_config = parent_rpcs.delete_application if parent_rpcs.respond_to? :delete_application
|
709
706
|
@delete_application = ::Gapic::Config::Method.new delete_application_config
|
710
|
-
list_applications_config = parent_rpcs
|
707
|
+
list_applications_config = parent_rpcs.list_applications if parent_rpcs.respond_to? :list_applications
|
711
708
|
@list_applications = ::Gapic::Config::Method.new list_applications_config
|
712
709
|
|
713
710
|
yield self if block_given?
|
@@ -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}"
|
@@ -35,15 +35,15 @@ module Google
|
|
35
35
|
self.service_name = 'google.cloud.talent.v4beta1.ApplicationService'
|
36
36
|
|
37
37
|
# Creates a new application entity.
|
38
|
-
rpc :CreateApplication, Google::Cloud::Talent::V4beta1::CreateApplicationRequest, Google::Cloud::Talent::V4beta1::Application
|
38
|
+
rpc :CreateApplication, ::Google::Cloud::Talent::V4beta1::CreateApplicationRequest, ::Google::Cloud::Talent::V4beta1::Application
|
39
39
|
# Retrieves specified application.
|
40
|
-
rpc :GetApplication, Google::Cloud::Talent::V4beta1::GetApplicationRequest, Google::Cloud::Talent::V4beta1::Application
|
40
|
+
rpc :GetApplication, ::Google::Cloud::Talent::V4beta1::GetApplicationRequest, ::Google::Cloud::Talent::V4beta1::Application
|
41
41
|
# Updates specified application.
|
42
|
-
rpc :UpdateApplication, Google::Cloud::Talent::V4beta1::UpdateApplicationRequest, Google::Cloud::Talent::V4beta1::Application
|
42
|
+
rpc :UpdateApplication, ::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest, ::Google::Cloud::Talent::V4beta1::Application
|
43
43
|
# Deletes specified application.
|
44
|
-
rpc :DeleteApplication, Google::Cloud::Talent::V4beta1::DeleteApplicationRequest, Google::Protobuf::Empty
|
44
|
+
rpc :DeleteApplication, ::Google::Cloud::Talent::V4beta1::DeleteApplicationRequest, ::Google::Protobuf::Empty
|
45
45
|
# Lists all applications associated with the profile.
|
46
|
-
rpc :ListApplications, Google::Cloud::Talent::V4beta1::ListApplicationsRequest, Google::Cloud::Talent::V4beta1::ListApplicationsResponse
|
46
|
+
rpc :ListApplications, ::Google::Cloud::Talent::V4beta1::ListApplicationsRequest, ::Google::Cloud::Talent::V4beta1::ListApplicationsResponse
|
47
47
|
end
|
48
48
|
|
49
49
|
Stub = Service.rpc_stub_class
|
@@ -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
|
@@ -69,28 +69,19 @@ module Google
|
|
69
69
|
|
70
70
|
default_config.rpcs.get_company.timeout = 30.0
|
71
71
|
default_config.rpcs.get_company.retry_policy = {
|
72
|
-
initial_delay: 0.1,
|
73
|
-
max_delay: 60.0,
|
74
|
-
multiplier: 1.3,
|
75
|
-
retry_codes: [4, 14]
|
72
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
76
73
|
}
|
77
74
|
|
78
75
|
default_config.rpcs.update_company.timeout = 30.0
|
79
76
|
|
80
77
|
default_config.rpcs.delete_company.timeout = 30.0
|
81
78
|
default_config.rpcs.delete_company.retry_policy = {
|
82
|
-
initial_delay: 0.1,
|
83
|
-
max_delay: 60.0,
|
84
|
-
multiplier: 1.3,
|
85
|
-
retry_codes: [4, 14]
|
79
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
86
80
|
}
|
87
81
|
|
88
82
|
default_config.rpcs.list_companies.timeout = 30.0
|
89
83
|
default_config.rpcs.list_companies.retry_policy = {
|
90
|
-
initial_delay: 0.1,
|
91
|
-
max_delay: 60.0,
|
92
|
-
multiplier: 1.3,
|
93
|
-
retry_codes: [4, 14]
|
84
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
94
85
|
}
|
95
86
|
|
96
87
|
default_config
|
@@ -154,8 +145,14 @@ module Google
|
|
154
145
|
|
155
146
|
# Create credentials
|
156
147
|
credentials = @config.credentials
|
157
|
-
|
158
|
-
if
|
148
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
149
|
+
# but only if the default endpoint does not have a region prefix.
|
150
|
+
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
151
|
+
@config.endpoint == Client.configure.endpoint &&
|
152
|
+
!@config.endpoint.split(".").first.include?("-")
|
153
|
+
credentials ||= Credentials.default scope: @config.scope,
|
154
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
155
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
159
156
|
credentials = Credentials.new credentials, scope: @config.scope
|
160
157
|
end
|
161
158
|
@quota_project_id = @config.quota_project
|
@@ -642,7 +639,7 @@ module Google
|
|
642
639
|
config_attr :scope, nil, ::String, ::Array, nil
|
643
640
|
config_attr :lib_name, nil, ::String, nil
|
644
641
|
config_attr :lib_version, nil, ::String, nil
|
645
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
642
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
646
643
|
config_attr :interceptors, nil, ::Array, nil
|
647
644
|
config_attr :timeout, nil, ::Numeric, nil
|
648
645
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -663,7 +660,7 @@ module Google
|
|
663
660
|
def rpcs
|
664
661
|
@rpcs ||= begin
|
665
662
|
parent_rpcs = nil
|
666
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
663
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
667
664
|
Rpcs.new parent_rpcs
|
668
665
|
end
|
669
666
|
end
|
@@ -675,7 +672,7 @@ module Google
|
|
675
672
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
676
673
|
# the following configuration fields:
|
677
674
|
#
|
678
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
675
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
679
676
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
680
677
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
681
678
|
# include the following keys:
|
@@ -714,15 +711,15 @@ module Google
|
|
714
711
|
|
715
712
|
# @private
|
716
713
|
def initialize parent_rpcs = nil
|
717
|
-
create_company_config = parent_rpcs
|
714
|
+
create_company_config = parent_rpcs.create_company if parent_rpcs.respond_to? :create_company
|
718
715
|
@create_company = ::Gapic::Config::Method.new create_company_config
|
719
|
-
get_company_config = parent_rpcs
|
716
|
+
get_company_config = parent_rpcs.get_company if parent_rpcs.respond_to? :get_company
|
720
717
|
@get_company = ::Gapic::Config::Method.new get_company_config
|
721
|
-
update_company_config = parent_rpcs
|
718
|
+
update_company_config = parent_rpcs.update_company if parent_rpcs.respond_to? :update_company
|
722
719
|
@update_company = ::Gapic::Config::Method.new update_company_config
|
723
|
-
delete_company_config = parent_rpcs
|
720
|
+
delete_company_config = parent_rpcs.delete_company if parent_rpcs.respond_to? :delete_company
|
724
721
|
@delete_company = ::Gapic::Config::Method.new delete_company_config
|
725
|
-
list_companies_config = parent_rpcs
|
722
|
+
list_companies_config = parent_rpcs.list_companies if parent_rpcs.respond_to? :list_companies
|
726
723
|
@list_companies = ::Gapic::Config::Method.new list_companies_config
|
727
724
|
|
728
725
|
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}"
|
@@ -34,16 +34,16 @@ module Google
|
|
34
34
|
self.service_name = 'google.cloud.talent.v4beta1.CompanyService'
|
35
35
|
|
36
36
|
# Creates a new company entity.
|
37
|
-
rpc :CreateCompany, Google::Cloud::Talent::V4beta1::CreateCompanyRequest, Google::Cloud::Talent::V4beta1::Company
|
37
|
+
rpc :CreateCompany, ::Google::Cloud::Talent::V4beta1::CreateCompanyRequest, ::Google::Cloud::Talent::V4beta1::Company
|
38
38
|
# Retrieves specified company.
|
39
|
-
rpc :GetCompany, Google::Cloud::Talent::V4beta1::GetCompanyRequest, Google::Cloud::Talent::V4beta1::Company
|
39
|
+
rpc :GetCompany, ::Google::Cloud::Talent::V4beta1::GetCompanyRequest, ::Google::Cloud::Talent::V4beta1::Company
|
40
40
|
# Updates specified company.
|
41
|
-
rpc :UpdateCompany, Google::Cloud::Talent::V4beta1::UpdateCompanyRequest, Google::Cloud::Talent::V4beta1::Company
|
41
|
+
rpc :UpdateCompany, ::Google::Cloud::Talent::V4beta1::UpdateCompanyRequest, ::Google::Cloud::Talent::V4beta1::Company
|
42
42
|
# Deletes specified company.
|
43
43
|
# Prerequisite: The company has no jobs associated with it.
|
44
|
-
rpc :DeleteCompany, Google::Cloud::Talent::V4beta1::DeleteCompanyRequest, Google::Protobuf::Empty
|
44
|
+
rpc :DeleteCompany, ::Google::Cloud::Talent::V4beta1::DeleteCompanyRequest, ::Google::Protobuf::Empty
|
45
45
|
# Lists all companies associated with the project.
|
46
|
-
rpc :ListCompanies, Google::Cloud::Talent::V4beta1::ListCompaniesRequest, Google::Cloud::Talent::V4beta1::ListCompaniesResponse
|
46
|
+
rpc :ListCompanies, ::Google::Cloud::Talent::V4beta1::ListCompaniesRequest, ::Google::Cloud::Talent::V4beta1::ListCompaniesResponse
|
47
47
|
end
|
48
48
|
|
49
49
|
Stub = Service.rpc_stub_class
|
@@ -60,17 +60,14 @@ 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
|
67
67
|
|
68
68
|
default_config.rpcs.complete_query.timeout = 30.0
|
69
69
|
default_config.rpcs.complete_query.retry_policy = {
|
70
|
-
initial_delay: 0.1,
|
71
|
-
max_delay: 60.0,
|
72
|
-
multiplier: 1.3,
|
73
|
-
retry_codes: [4, 14]
|
70
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
74
71
|
}
|
75
72
|
|
76
73
|
default_config
|
@@ -134,8 +131,14 @@ module Google
|
|
134
131
|
|
135
132
|
# Create credentials
|
136
133
|
credentials = @config.credentials
|
137
|
-
|
138
|
-
if
|
134
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
135
|
+
# but only if the default endpoint does not have a region prefix.
|
136
|
+
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
137
|
+
@config.endpoint == Client.configure.endpoint &&
|
138
|
+
!@config.endpoint.split(".").first.include?("-")
|
139
|
+
credentials ||= Credentials.default scope: @config.scope,
|
140
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
141
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
139
142
|
credentials = Credentials.new credentials, scope: @config.scope
|
140
143
|
end
|
141
144
|
@quota_project_id = @config.quota_project
|
@@ -345,7 +348,7 @@ module Google
|
|
345
348
|
config_attr :scope, nil, ::String, ::Array, nil
|
346
349
|
config_attr :lib_name, nil, ::String, nil
|
347
350
|
config_attr :lib_version, nil, ::String, nil
|
348
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
351
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
349
352
|
config_attr :interceptors, nil, ::Array, nil
|
350
353
|
config_attr :timeout, nil, ::Numeric, nil
|
351
354
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -366,7 +369,7 @@ module Google
|
|
366
369
|
def rpcs
|
367
370
|
@rpcs ||= begin
|
368
371
|
parent_rpcs = nil
|
369
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
372
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
370
373
|
Rpcs.new parent_rpcs
|
371
374
|
end
|
372
375
|
end
|
@@ -378,7 +381,7 @@ module Google
|
|
378
381
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
379
382
|
# the following configuration fields:
|
380
383
|
#
|
381
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
384
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
382
385
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
383
386
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
384
387
|
# include the following keys:
|
@@ -397,7 +400,7 @@ module Google
|
|
397
400
|
|
398
401
|
# @private
|
399
402
|
def initialize parent_rpcs = nil
|
400
|
-
complete_query_config = parent_rpcs
|
403
|
+
complete_query_config = parent_rpcs.complete_query if parent_rpcs.respond_to? :complete_query
|
401
404
|
@complete_query = ::Gapic::Config::Method.new complete_query_config
|
402
405
|
|
403
406
|
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}"
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
|
36
36
|
# Completes the specified prefix with keyword suggestions.
|
37
37
|
# Intended for use by a job search auto-complete search box.
|
38
|
-
rpc :CompleteQuery, Google::Cloud::Talent::V4beta1::CompleteQueryRequest, Google::Cloud::Talent::V4beta1::CompleteQueryResponse
|
38
|
+
rpc :CompleteQuery, ::Google::Cloud::Talent::V4beta1::CompleteQueryRequest, ::Google::Cloud::Talent::V4beta1::CompleteQueryResponse
|
39
39
|
end
|
40
40
|
|
41
41
|
Stub = Service.rpc_stub_class
|
@@ -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
|
@@ -128,8 +128,14 @@ module Google
|
|
128
128
|
|
129
129
|
# Create credentials
|
130
130
|
credentials = @config.credentials
|
131
|
-
|
132
|
-
if
|
131
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
132
|
+
# but only if the default endpoint does not have a region prefix.
|
133
|
+
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
134
|
+
@config.endpoint == Client.configure.endpoint &&
|
135
|
+
!@config.endpoint.split(".").first.include?("-")
|
136
|
+
credentials ||= Credentials.default scope: @config.scope,
|
137
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
138
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
133
139
|
credentials = Credentials.new credentials, scope: @config.scope
|
134
140
|
end
|
135
141
|
@quota_project_id = @config.quota_project
|
@@ -317,7 +323,7 @@ module Google
|
|
317
323
|
config_attr :scope, nil, ::String, ::Array, nil
|
318
324
|
config_attr :lib_name, nil, ::String, nil
|
319
325
|
config_attr :lib_version, nil, ::String, nil
|
320
|
-
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)
|
321
327
|
config_attr :interceptors, nil, ::Array, nil
|
322
328
|
config_attr :timeout, nil, ::Numeric, nil
|
323
329
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -338,7 +344,7 @@ module Google
|
|
338
344
|
def rpcs
|
339
345
|
@rpcs ||= begin
|
340
346
|
parent_rpcs = nil
|
341
|
-
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)
|
342
348
|
Rpcs.new parent_rpcs
|
343
349
|
end
|
344
350
|
end
|
@@ -350,7 +356,7 @@ module Google
|
|
350
356
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
351
357
|
# the following configuration fields:
|
352
358
|
#
|
353
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
359
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
354
360
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
355
361
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
356
362
|
# include the following keys:
|
@@ -369,7 +375,7 @@ module Google
|
|
369
375
|
|
370
376
|
# @private
|
371
377
|
def initialize parent_rpcs = nil
|
372
|
-
create_client_event_config = parent_rpcs
|
378
|
+
create_client_event_config = parent_rpcs.create_client_event if parent_rpcs.respond_to? :create_client_event
|
373
379
|
@create_client_event = ::Gapic::Config::Method.new create_client_event_config
|
374
380
|
|
375
381
|
yield self if block_given?
|
@@ -40,7 +40,7 @@ module Google
|
|
40
40
|
# [Learn
|
41
41
|
# more](https://cloud.google.com/talent-solution/docs/management-tools)
|
42
42
|
# about self service tools.
|
43
|
-
rpc :CreateClientEvent, Google::Cloud::Talent::V4beta1::CreateClientEventRequest, Google::Cloud::Talent::V4beta1::ClientEvent
|
43
|
+
rpc :CreateClientEvent, ::Google::Cloud::Talent::V4beta1::CreateClientEventRequest, ::Google::Cloud::Talent::V4beta1::ClientEvent
|
44
44
|
end
|
45
45
|
|
46
46
|
Stub = Service.rpc_stub_class
|