google-cloud-talent-v4beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +71 -0
  6. data/lib/google-cloud-talent-v4beta1.rb +21 -0
  7. data/lib/google/cloud/common_resources_pb.rb +15 -0
  8. data/lib/google/cloud/talent/v4beta1.rb +41 -0
  9. data/lib/google/cloud/talent/v4beta1/application_pb.rb +64 -0
  10. data/lib/google/cloud/talent/v4beta1/application_service.rb +50 -0
  11. data/lib/google/cloud/talent/v4beta1/application_service/client.rb +717 -0
  12. data/lib/google/cloud/talent/v4beta1/application_service/credentials.rb +52 -0
  13. data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +155 -0
  14. data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +56 -0
  15. data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +54 -0
  16. data/lib/google/cloud/talent/v4beta1/batch_pb.rb +19 -0
  17. data/lib/google/cloud/talent/v4beta1/common_pb.rb +342 -0
  18. data/lib/google/cloud/talent/v4beta1/company_pb.rb +42 -0
  19. data/lib/google/cloud/talent/v4beta1/company_service.rb +49 -0
  20. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +732 -0
  21. data/lib/google/cloud/talent/v4beta1/company_service/credentials.rb +52 -0
  22. data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +105 -0
  23. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +57 -0
  24. data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +54 -0
  25. data/lib/google/cloud/talent/v4beta1/completion.rb +49 -0
  26. data/lib/google/cloud/talent/v4beta1/completion/client.rb +407 -0
  27. data/lib/google/cloud/talent/v4beta1/completion/credentials.rb +52 -0
  28. data/lib/google/cloud/talent/v4beta1/completion/paths.rb +105 -0
  29. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +57 -0
  30. data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +46 -0
  31. data/lib/google/cloud/talent/v4beta1/event_pb.rb +70 -0
  32. data/lib/google/cloud/talent/v4beta1/event_service.rb +49 -0
  33. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +379 -0
  34. data/lib/google/cloud/talent/v4beta1/event_service/credentials.rb +52 -0
  35. data/lib/google/cloud/talent/v4beta1/event_service/paths.rb +64 -0
  36. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +28 -0
  37. data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +51 -0
  38. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +188 -0
  39. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +28 -0
  40. data/lib/google/cloud/talent/v4beta1/job_pb.rb +73 -0
  41. data/lib/google/cloud/talent/v4beta1/job_service.rb +50 -0
  42. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +1660 -0
  43. data/lib/google/cloud/talent/v4beta1/job_service/credentials.rb +52 -0
  44. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +564 -0
  45. data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +146 -0
  46. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +167 -0
  47. data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +86 -0
  48. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +214 -0
  49. data/lib/google/cloud/talent/v4beta1/profile_service.rb +50 -0
  50. data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +992 -0
  51. data/lib/google/cloud/talent/v4beta1/profile_service/credentials.rb +52 -0
  52. data/lib/google/cloud/talent/v4beta1/profile_service/paths.rb +69 -0
  53. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +92 -0
  54. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +63 -0
  55. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +35 -0
  56. data/lib/google/cloud/talent/v4beta1/tenant_service.rb +49 -0
  57. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +712 -0
  58. data/lib/google/cloud/talent/v4beta1/tenant_service/credentials.rb +52 -0
  59. data/lib/google/cloud/talent/v4beta1/tenant_service/paths.rb +64 -0
  60. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +56 -0
  61. data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +53 -0
  62. data/lib/google/cloud/talent/v4beta1/version.rb +28 -0
  63. data/proto_docs/README.md +4 -0
  64. data/proto_docs/google/api/field_behavior.rb +59 -0
  65. data/proto_docs/google/api/resource.rb +247 -0
  66. data/proto_docs/google/cloud/talent/v4beta1/application.rb +169 -0
  67. data/proto_docs/google/cloud/talent/v4beta1/application_service.rb +122 -0
  68. data/proto_docs/google/cloud/talent/v4beta1/common.rb +1106 -0
  69. data/proto_docs/google/cloud/talent/v4beta1/company.rb +117 -0
  70. data/proto_docs/google/cloud/talent/v4beta1/company_service.rb +138 -0
  71. data/proto_docs/google/cloud/talent/v4beta1/completion_service.rb +143 -0
  72. data/proto_docs/google/cloud/talent/v4beta1/event.rb +237 -0
  73. data/proto_docs/google/cloud/talent/v4beta1/event_service.rb +43 -0
  74. data/proto_docs/google/cloud/talent/v4beta1/filters.rb +818 -0
  75. data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +69 -0
  76. data/proto_docs/google/cloud/talent/v4beta1/job.rb +356 -0
  77. data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +746 -0
  78. data/proto_docs/google/cloud/talent/v4beta1/profile.rb +811 -0
  79. data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +392 -0
  80. data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +77 -0
  81. data/proto_docs/google/cloud/talent/v4beta1/tenant_service.rb +118 -0
  82. data/proto_docs/google/longrunning/operations.rb +150 -0
  83. data/proto_docs/google/protobuf/any.rb +138 -0
  84. data/proto_docs/google/protobuf/duration.rb +98 -0
  85. data/proto_docs/google/protobuf/empty.rb +36 -0
  86. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  87. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  88. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  89. data/proto_docs/google/rpc/status.rb +46 -0
  90. data/proto_docs/google/type/date.rb +50 -0
  91. data/proto_docs/google/type/latlng.rb +38 -0
  92. data/proto_docs/google/type/money.rb +43 -0
  93. data/proto_docs/google/type/postal_address.rb +135 -0
  94. data/proto_docs/google/type/timeofday.rb +44 -0
  95. metadata +251 -0
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/talent/v4beta1"
@@ -0,0 +1,15 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/common_resources.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/resource_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
+ end
10
+ end
11
+
12
+ module Google
13
+ module Cloud
14
+ end
15
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/talent/v4beta1/application_service"
20
+ require "google/cloud/talent/v4beta1/company_service"
21
+ require "google/cloud/talent/v4beta1/completion"
22
+ require "google/cloud/talent/v4beta1/event_service"
23
+ require "google/cloud/talent/v4beta1/job_service"
24
+ require "google/cloud/talent/v4beta1/profile_service"
25
+ require "google/cloud/talent/v4beta1/tenant_service"
26
+ require "google/cloud/talent/v4beta1/version"
27
+
28
+ module Google
29
+ module Cloud
30
+ module Talent
31
+ ##
32
+ # To load this package, including all its services, and instantiate a client:
33
+ #
34
+ # require "google/cloud/talent/v4beta1"
35
+ # client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
36
+ #
37
+ module V4beta1
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,64 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/talent/v4beta1/application.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/cloud/talent/v4beta1/common_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ require 'google/protobuf/wrappers_pb'
12
+ require 'google/type/date_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/talent/v4beta1/application.proto", :syntax => :proto3) do
15
+ add_message "google.cloud.talent.v4beta1.Application" do
16
+ optional :name, :string, 1
17
+ optional :external_id, :string, 31
18
+ optional :profile, :string, 2
19
+ optional :job, :string, 4
20
+ optional :company, :string, 5
21
+ optional :application_date, :message, 7, "google.type.Date"
22
+ optional :stage, :enum, 11, "google.cloud.talent.v4beta1.Application.ApplicationStage"
23
+ optional :state, :enum, 13, "google.cloud.talent.v4beta1.Application.ApplicationState"
24
+ repeated :interviews, :message, 16, "google.cloud.talent.v4beta1.Interview"
25
+ optional :referral, :message, 18, "google.protobuf.BoolValue"
26
+ optional :create_time, :message, 19, "google.protobuf.Timestamp"
27
+ optional :update_time, :message, 20, "google.protobuf.Timestamp"
28
+ optional :outcome_notes, :string, 21
29
+ optional :outcome, :enum, 22, "google.cloud.talent.v4beta1.Outcome"
30
+ optional :is_match, :message, 28, "google.protobuf.BoolValue"
31
+ optional :job_title_snippet, :string, 29
32
+ end
33
+ add_enum "google.cloud.talent.v4beta1.Application.ApplicationState" do
34
+ value :APPLICATION_STATE_UNSPECIFIED, 0
35
+ value :IN_PROGRESS, 1
36
+ value :CANDIDATE_WITHDREW, 2
37
+ value :EMPLOYER_WITHDREW, 3
38
+ value :COMPLETED, 4
39
+ value :CLOSED, 5
40
+ end
41
+ add_enum "google.cloud.talent.v4beta1.Application.ApplicationStage" do
42
+ value :APPLICATION_STAGE_UNSPECIFIED, 0
43
+ value :NEW, 1
44
+ value :SCREEN, 2
45
+ value :HIRING_MANAGER_REVIEW, 3
46
+ value :INTERVIEW, 4
47
+ value :OFFER_EXTENDED, 5
48
+ value :OFFER_ACCEPTED, 6
49
+ value :STARTED, 7
50
+ end
51
+ end
52
+ end
53
+
54
+ module Google
55
+ module Cloud
56
+ module Talent
57
+ module V4beta1
58
+ Application = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Application").msgclass
59
+ Application::ApplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Application.ApplicationState").enummodule
60
+ Application::ApplicationStage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Application.ApplicationStage").enummodule
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/talent/v4beta1/version"
24
+
25
+ require "google/cloud/talent/v4beta1/application_service/credentials"
26
+ require "google/cloud/talent/v4beta1/application_service/paths"
27
+ require "google/cloud/talent/v4beta1/application_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Talent
32
+ module V4beta1
33
+ ##
34
+ # A service that handles application management, including CRUD and
35
+ # enumeration.
36
+ #
37
+ # To load this service and instantiate a client:
38
+ #
39
+ # require "google/cloud/talent/v4beta1/application_service"
40
+ # client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
41
+ #
42
+ module ApplicationService
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "application_service", "helpers.rb"
50
+ require "google/cloud/talent/v4beta1/application_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,717 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/talent/v4beta1/application_service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Talent
25
+ module V4beta1
26
+ module ApplicationService
27
+ ##
28
+ # Client for the ApplicationService service.
29
+ #
30
+ # A service that handles application management, including CRUD and
31
+ # enumeration.
32
+ #
33
+ class Client
34
+ include Paths
35
+
36
+ # @private
37
+ attr_reader :application_service_stub
38
+
39
+ ##
40
+ # Configure the ApplicationService Client class.
41
+ #
42
+ # See {Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration}
43
+ # for a description of the configuration fields.
44
+ #
45
+ # ## Example
46
+ #
47
+ # To modify the configuration for all ApplicationService clients:
48
+ #
49
+ # Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
50
+ # config.timeout = 10_000
51
+ # end
52
+ #
53
+ # @yield [config] Configure the Client client.
54
+ # @yieldparam config [Client::Configuration]
55
+ #
56
+ # @return [Client::Configuration]
57
+ #
58
+ def self.configure
59
+ @configure ||= begin
60
+ namespace = ["Google", "Cloud", "Talent", "V4beta1"]
61
+ parent_config = while namespace.any?
62
+ parent_name = namespace.join "::"
63
+ parent_const = const_get parent_name
64
+ break parent_const.configure if parent_const&.respond_to? :configure
65
+ namespace.pop
66
+ end
67
+ default_config = Client::Configuration.new parent_config
68
+
69
+ default_config.rpcs.create_application.timeout = 30.0
70
+
71
+ default_config.rpcs.get_application.timeout = 30.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
77
+ }
78
+
79
+ default_config.rpcs.update_application.timeout = 30.0
80
+
81
+ default_config.rpcs.delete_application.timeout = 30.0
82
+ default_config.rpcs.delete_application.retry_policy = {
83
+ initial_delay: 0.1,
84
+ max_delay: 60.0,
85
+ multiplier: 1.3,
86
+ retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
87
+ }
88
+
89
+ default_config.rpcs.list_applications.timeout = 30.0
90
+ default_config.rpcs.list_applications.retry_policy = {
91
+ initial_delay: 0.1,
92
+ max_delay: 60.0,
93
+ multiplier: 1.3,
94
+ retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
95
+ }
96
+
97
+ default_config
98
+ end
99
+ yield @configure if block_given?
100
+ @configure
101
+ end
102
+
103
+ ##
104
+ # Configure the ApplicationService Client instance.
105
+ #
106
+ # The configuration is set to the derived mode, meaning that values can be changed,
107
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
108
+ # should be made on {Client.configure}.
109
+ #
110
+ # See {Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration}
111
+ # for a description of the configuration fields.
112
+ #
113
+ # @yield [config] Configure the Client client.
114
+ # @yieldparam config [Client::Configuration]
115
+ #
116
+ # @return [Client::Configuration]
117
+ #
118
+ def configure
119
+ yield @config if block_given?
120
+ @config
121
+ end
122
+
123
+ ##
124
+ # Create a new ApplicationService client object.
125
+ #
126
+ # ## Examples
127
+ #
128
+ # To create a new ApplicationService client with the default
129
+ # configuration:
130
+ #
131
+ # client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
132
+ #
133
+ # To create a new ApplicationService client with a custom
134
+ # configuration:
135
+ #
136
+ # client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
137
+ # config.timeout = 10_000
138
+ # end
139
+ #
140
+ # @yield [config] Configure the ApplicationService client.
141
+ # @yieldparam config [Client::Configuration]
142
+ #
143
+ def initialize
144
+ # These require statements are intentionally placed here to initialize
145
+ # the gRPC module only when it's required.
146
+ # See https://github.com/googleapis/toolkit/issues/446
147
+ require "gapic/grpc"
148
+ require "google/cloud/talent/v4beta1/application_service_services_pb"
149
+
150
+ # Create the configuration object
151
+ @config = Configuration.new Client.configure
152
+
153
+ # Yield the configuration if needed
154
+ yield @config if block_given?
155
+
156
+ # Create credentials
157
+ credentials = @config.credentials
158
+ credentials ||= Credentials.default scope: @config.scope
159
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
160
+ credentials = Credentials.new credentials, scope: @config.scope
161
+ end
162
+ @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
163
+
164
+ @application_service_stub = Gapic::ServiceStub.new(
165
+ Google::Cloud::Talent::V4beta1::ApplicationService::Stub,
166
+ credentials: credentials,
167
+ endpoint: @config.endpoint,
168
+ channel_args: @config.channel_args,
169
+ interceptors: @config.interceptors
170
+ )
171
+ end
172
+
173
+ # Service calls
174
+
175
+ ##
176
+ # Creates a new application entity.
177
+ #
178
+ # @overload create_application(request, options = nil)
179
+ # Pass arguments to `create_application` via a request object, either of type
180
+ # {Google::Cloud::Talent::V4beta1::CreateApplicationRequest} or an equivalent Hash.
181
+ #
182
+ # @param request [Google::Cloud::Talent::V4beta1::CreateApplicationRequest, Hash]
183
+ # A request object representing the call parameters. Required. To specify no
184
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
185
+ # @param options [Gapic::CallOptions, Hash]
186
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
187
+ #
188
+ # @overload create_application(parent: nil, application: nil)
189
+ # Pass arguments to `create_application` via keyword arguments. Note that at
190
+ # least one keyword argument is required. To specify no parameters, or to keep all
191
+ # the default parameter values, pass an empty Hash as a request object (see above).
192
+ #
193
+ # @param parent [String]
194
+ # Required. Resource name of the profile under which the application is created.
195
+ #
196
+ # The format is
197
+ # "projects/\\{project_id}/tenants/\\{tenant_id}/profiles/\\{profile_id}".
198
+ # For example, "projects/foo/tenants/bar/profiles/baz".
199
+ # @param application [Google::Cloud::Talent::V4beta1::Application, Hash]
200
+ # Required. The application to be created.
201
+ #
202
+ # @yield [response, operation] Access the result along with the RPC operation
203
+ # @yieldparam response [Google::Cloud::Talent::V4beta1::Application]
204
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
205
+ #
206
+ # @return [Google::Cloud::Talent::V4beta1::Application]
207
+ #
208
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
209
+ #
210
+ def create_application request, options = nil
211
+ raise ArgumentError, "request must be provided" if request.nil?
212
+
213
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CreateApplicationRequest
214
+
215
+ # Converts hash and nil to an options object
216
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
217
+
218
+ # Customize the options with defaults
219
+ metadata = @config.rpcs.create_application.metadata.to_h
220
+
221
+ # Set x-goog-api-client and x-goog-user-project headers
222
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
223
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
224
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
225
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
226
+
227
+ header_params = {
228
+ "parent" => request.parent
229
+ }
230
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
231
+ metadata[:"x-goog-request-params"] ||= request_params_header
232
+
233
+ options.apply_defaults timeout: @config.rpcs.create_application.timeout,
234
+ metadata: metadata,
235
+ retry_policy: @config.rpcs.create_application.retry_policy
236
+ options.apply_defaults metadata: @config.metadata,
237
+ retry_policy: @config.retry_policy
238
+
239
+ @application_service_stub.call_rpc :create_application, request, options: options do |response, operation|
240
+ yield response, operation if block_given?
241
+ return response
242
+ end
243
+ rescue GRPC::BadStatus => e
244
+ raise Google::Cloud::Error.from_error(e)
245
+ end
246
+
247
+ ##
248
+ # Retrieves specified application.
249
+ #
250
+ # @overload get_application(request, options = nil)
251
+ # Pass arguments to `get_application` via a request object, either of type
252
+ # {Google::Cloud::Talent::V4beta1::GetApplicationRequest} or an equivalent Hash.
253
+ #
254
+ # @param request [Google::Cloud::Talent::V4beta1::GetApplicationRequest, Hash]
255
+ # A request object representing the call parameters. Required. To specify no
256
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
257
+ # @param options [Gapic::CallOptions, Hash]
258
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
259
+ #
260
+ # @overload get_application(name: nil)
261
+ # Pass arguments to `get_application` via keyword arguments. Note that at
262
+ # least one keyword argument is required. To specify no parameters, or to keep all
263
+ # the default parameter values, pass an empty Hash as a request object (see above).
264
+ #
265
+ # @param name [String]
266
+ # Required. The resource name of the application to be retrieved.
267
+ #
268
+ # The format is
269
+ # "projects/\\{project_id}/tenants/\\{tenant_id}/profiles/\\{profile_id}/applications/\\{application_id}".
270
+ # For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".
271
+ #
272
+ # @yield [response, operation] Access the result along with the RPC operation
273
+ # @yieldparam response [Google::Cloud::Talent::V4beta1::Application]
274
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
275
+ #
276
+ # @return [Google::Cloud::Talent::V4beta1::Application]
277
+ #
278
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
279
+ #
280
+ def get_application request, options = nil
281
+ raise ArgumentError, "request must be provided" if request.nil?
282
+
283
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::GetApplicationRequest
284
+
285
+ # Converts hash and nil to an options object
286
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
287
+
288
+ # Customize the options with defaults
289
+ metadata = @config.rpcs.get_application.metadata.to_h
290
+
291
+ # Set x-goog-api-client and x-goog-user-project headers
292
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
293
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
294
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
295
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
296
+
297
+ header_params = {
298
+ "name" => request.name
299
+ }
300
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
301
+ metadata[:"x-goog-request-params"] ||= request_params_header
302
+
303
+ options.apply_defaults timeout: @config.rpcs.get_application.timeout,
304
+ metadata: metadata,
305
+ retry_policy: @config.rpcs.get_application.retry_policy
306
+ options.apply_defaults metadata: @config.metadata,
307
+ retry_policy: @config.retry_policy
308
+
309
+ @application_service_stub.call_rpc :get_application, request, options: options do |response, operation|
310
+ yield response, operation if block_given?
311
+ return response
312
+ end
313
+ rescue GRPC::BadStatus => e
314
+ raise Google::Cloud::Error.from_error(e)
315
+ end
316
+
317
+ ##
318
+ # Updates specified application.
319
+ #
320
+ # @overload update_application(request, options = nil)
321
+ # Pass arguments to `update_application` via a request object, either of type
322
+ # {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest} or an equivalent Hash.
323
+ #
324
+ # @param request [Google::Cloud::Talent::V4beta1::UpdateApplicationRequest, Hash]
325
+ # A request object representing the call parameters. Required. To specify no
326
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
327
+ # @param options [Gapic::CallOptions, Hash]
328
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
329
+ #
330
+ # @overload update_application(application: nil, update_mask: nil)
331
+ # Pass arguments to `update_application` via keyword arguments. Note that at
332
+ # least one keyword argument is required. To specify no parameters, or to keep all
333
+ # the default parameter values, pass an empty Hash as a request object (see above).
334
+ #
335
+ # @param application [Google::Cloud::Talent::V4beta1::Application, Hash]
336
+ # Required. The application resource to replace the current resource in the system.
337
+ # @param update_mask [Google::Protobuf::FieldMask, Hash]
338
+ # Strongly recommended for the best service experience.
339
+ #
340
+ # If {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#update_mask update_mask} is provided, only the specified fields in
341
+ # {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#application application} are updated. Otherwise all the fields are updated.
342
+ #
343
+ # A field mask to specify the application fields to be updated. Only
344
+ # top level fields of {Google::Cloud::Talent::V4beta1::Application Application} are supported.
345
+ #
346
+ # @yield [response, operation] Access the result along with the RPC operation
347
+ # @yieldparam response [Google::Cloud::Talent::V4beta1::Application]
348
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
349
+ #
350
+ # @return [Google::Cloud::Talent::V4beta1::Application]
351
+ #
352
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
353
+ #
354
+ def update_application request, options = nil
355
+ raise ArgumentError, "request must be provided" if request.nil?
356
+
357
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::UpdateApplicationRequest
358
+
359
+ # Converts hash and nil to an options object
360
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
361
+
362
+ # Customize the options with defaults
363
+ metadata = @config.rpcs.update_application.metadata.to_h
364
+
365
+ # Set x-goog-api-client and x-goog-user-project headers
366
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
367
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
368
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
369
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
370
+
371
+ header_params = {
372
+ "application.name" => request.application.name
373
+ }
374
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
375
+ metadata[:"x-goog-request-params"] ||= request_params_header
376
+
377
+ options.apply_defaults timeout: @config.rpcs.update_application.timeout,
378
+ metadata: metadata,
379
+ retry_policy: @config.rpcs.update_application.retry_policy
380
+ options.apply_defaults metadata: @config.metadata,
381
+ retry_policy: @config.retry_policy
382
+
383
+ @application_service_stub.call_rpc :update_application, request, options: options do |response, operation|
384
+ yield response, operation if block_given?
385
+ return response
386
+ end
387
+ rescue GRPC::BadStatus => e
388
+ raise Google::Cloud::Error.from_error(e)
389
+ end
390
+
391
+ ##
392
+ # Deletes specified application.
393
+ #
394
+ # @overload delete_application(request, options = nil)
395
+ # Pass arguments to `delete_application` via a request object, either of type
396
+ # {Google::Cloud::Talent::V4beta1::DeleteApplicationRequest} or an equivalent Hash.
397
+ #
398
+ # @param request [Google::Cloud::Talent::V4beta1::DeleteApplicationRequest, Hash]
399
+ # A request object representing the call parameters. Required. To specify no
400
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
401
+ # @param options [Gapic::CallOptions, Hash]
402
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
403
+ #
404
+ # @overload delete_application(name: nil)
405
+ # Pass arguments to `delete_application` via keyword arguments. Note that at
406
+ # least one keyword argument is required. To specify no parameters, or to keep all
407
+ # the default parameter values, pass an empty Hash as a request object (see above).
408
+ #
409
+ # @param name [String]
410
+ # Required. The resource name of the application to be deleted.
411
+ #
412
+ # The format is
413
+ # "projects/\\{project_id}/tenants/\\{tenant_id}/profiles/\\{profile_id}/applications/\\{application_id}".
414
+ # For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".
415
+ #
416
+ # @yield [response, operation] Access the result along with the RPC operation
417
+ # @yieldparam response [Google::Protobuf::Empty]
418
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
419
+ #
420
+ # @return [Google::Protobuf::Empty]
421
+ #
422
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
423
+ #
424
+ def delete_application request, options = nil
425
+ raise ArgumentError, "request must be provided" if request.nil?
426
+
427
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::DeleteApplicationRequest
428
+
429
+ # Converts hash and nil to an options object
430
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
431
+
432
+ # Customize the options with defaults
433
+ metadata = @config.rpcs.delete_application.metadata.to_h
434
+
435
+ # Set x-goog-api-client and x-goog-user-project headers
436
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
437
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
438
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
439
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
440
+
441
+ header_params = {
442
+ "name" => request.name
443
+ }
444
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
445
+ metadata[:"x-goog-request-params"] ||= request_params_header
446
+
447
+ options.apply_defaults timeout: @config.rpcs.delete_application.timeout,
448
+ metadata: metadata,
449
+ retry_policy: @config.rpcs.delete_application.retry_policy
450
+ options.apply_defaults metadata: @config.metadata,
451
+ retry_policy: @config.retry_policy
452
+
453
+ @application_service_stub.call_rpc :delete_application, request, options: options do |response, operation|
454
+ yield response, operation if block_given?
455
+ return response
456
+ end
457
+ rescue GRPC::BadStatus => e
458
+ raise Google::Cloud::Error.from_error(e)
459
+ end
460
+
461
+ ##
462
+ # Lists all applications associated with the profile.
463
+ #
464
+ # @overload list_applications(request, options = nil)
465
+ # Pass arguments to `list_applications` via a request object, either of type
466
+ # {Google::Cloud::Talent::V4beta1::ListApplicationsRequest} or an equivalent Hash.
467
+ #
468
+ # @param request [Google::Cloud::Talent::V4beta1::ListApplicationsRequest, Hash]
469
+ # A request object representing the call parameters. Required. To specify no
470
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
471
+ # @param options [Gapic::CallOptions, Hash]
472
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
473
+ #
474
+ # @overload list_applications(parent: nil, page_token: nil, page_size: nil)
475
+ # Pass arguments to `list_applications` via keyword arguments. Note that at
476
+ # least one keyword argument is required. To specify no parameters, or to keep all
477
+ # the default parameter values, pass an empty Hash as a request object (see above).
478
+ #
479
+ # @param parent [String]
480
+ # Required. Resource name of the profile under which the application is created.
481
+ #
482
+ # The format is
483
+ # "projects/\\{project_id}/tenants/\\{tenant_id}/profiles/\\{profile_id}", for
484
+ # example, "projects/foo/tenants/bar/profiles/baz".
485
+ # @param page_token [String]
486
+ # The starting indicator from which to return results.
487
+ # @param page_size [Integer]
488
+ # The maximum number of applications to be returned, at most 100.
489
+ # Default is 100 if a non-positive number is provided.
490
+ #
491
+ # @yield [response, operation] Access the result along with the RPC operation
492
+ # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Application>]
493
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
494
+ #
495
+ # @return [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Application>]
496
+ #
497
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
498
+ #
499
+ def list_applications request, options = nil
500
+ raise ArgumentError, "request must be provided" if request.nil?
501
+
502
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::ListApplicationsRequest
503
+
504
+ # Converts hash and nil to an options object
505
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
506
+
507
+ # Customize the options with defaults
508
+ metadata = @config.rpcs.list_applications.metadata.to_h
509
+
510
+ # Set x-goog-api-client and x-goog-user-project headers
511
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
512
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
513
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
514
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
515
+
516
+ header_params = {
517
+ "parent" => request.parent
518
+ }
519
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
520
+ metadata[:"x-goog-request-params"] ||= request_params_header
521
+
522
+ options.apply_defaults timeout: @config.rpcs.list_applications.timeout,
523
+ metadata: metadata,
524
+ retry_policy: @config.rpcs.list_applications.retry_policy
525
+ options.apply_defaults metadata: @config.metadata,
526
+ retry_policy: @config.retry_policy
527
+
528
+ @application_service_stub.call_rpc :list_applications, request, options: options do |response, operation|
529
+ response = Gapic::PagedEnumerable.new @application_service_stub, :list_applications, request, response, operation, options
530
+ yield response, operation if block_given?
531
+ return response
532
+ end
533
+ rescue GRPC::BadStatus => e
534
+ raise Google::Cloud::Error.from_error(e)
535
+ end
536
+
537
+ ##
538
+ # Configuration class for the ApplicationService API.
539
+ #
540
+ # This class represents the configuration for ApplicationService,
541
+ # providing control over timeouts, retry behavior, logging, transport
542
+ # parameters, and other low-level controls. Certain parameters can also be
543
+ # applied individually to specific RPCs. See
544
+ # {Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration::Rpcs}
545
+ # for a list of RPCs that can be configured independently.
546
+ #
547
+ # Configuration can be applied globally to all clients, or to a single client
548
+ # on construction.
549
+ #
550
+ # # Examples
551
+ #
552
+ # To modify the global config, setting the timeout for create_application
553
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
554
+ #
555
+ # Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
556
+ # config.timeout = 10_000
557
+ # config.rpcs.create_application.timeout = 20_000
558
+ # end
559
+ #
560
+ # To apply the above configuration only to a new client:
561
+ #
562
+ # client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
563
+ # config.timeout = 10_000
564
+ # config.rpcs.create_application.timeout = 20_000
565
+ # end
566
+ #
567
+ # @!attribute [rw] endpoint
568
+ # The hostname or hostname:port of the service endpoint.
569
+ # Defaults to `"jobs.googleapis.com"`.
570
+ # @return [String]
571
+ # @!attribute [rw] credentials
572
+ # Credentials to send with calls. You may provide any of the following types:
573
+ # * (`String`) The path to a service account key file in JSON format
574
+ # * (`Hash`) A service account key as a Hash
575
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
576
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
577
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
578
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
579
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
580
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
581
+ # * (`nil`) indicating no credentials
582
+ # @return [Object]
583
+ # @!attribute [rw] scope
584
+ # The OAuth scopes
585
+ # @return [Array<String>]
586
+ # @!attribute [rw] lib_name
587
+ # The library name as recorded in instrumentation and logging
588
+ # @return [String]
589
+ # @!attribute [rw] lib_version
590
+ # The library version as recorded in instrumentation and logging
591
+ # @return [String]
592
+ # @!attribute [rw] channel_args
593
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
594
+ # `GRPC::Core::Channel` object is provided as the credential.
595
+ # @return [Hash]
596
+ # @!attribute [rw] interceptors
597
+ # An array of interceptors that are run before calls are executed.
598
+ # @return [Array<GRPC::ClientInterceptor>]
599
+ # @!attribute [rw] timeout
600
+ # The call timeout in milliseconds.
601
+ # @return [Numeric]
602
+ # @!attribute [rw] metadata
603
+ # Additional gRPC headers to be sent with the call.
604
+ # @return [Hash{Symbol=>String}]
605
+ # @!attribute [rw] retry_policy
606
+ # The retry policy. The value is a hash with the following keys:
607
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
608
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
609
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
610
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
611
+ # trigger a retry.
612
+ # @return [Hash]
613
+ #
614
+ class Configuration
615
+ extend Gapic::Config
616
+
617
+ config_attr :endpoint, "jobs.googleapis.com", String
618
+ config_attr :credentials, nil do |value|
619
+ allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
620
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
621
+ allowed.any? { |klass| klass === value }
622
+ end
623
+ config_attr :scope, nil, String, Array, nil
624
+ config_attr :lib_name, nil, String, nil
625
+ config_attr :lib_version, nil, String, nil
626
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
627
+ config_attr :interceptors, nil, Array, nil
628
+ config_attr :timeout, nil, Numeric, nil
629
+ config_attr :metadata, nil, Hash, nil
630
+ config_attr :retry_policy, nil, Hash, Proc, nil
631
+
632
+ # @private
633
+ def initialize parent_config = nil
634
+ @parent_config = parent_config unless parent_config.nil?
635
+
636
+ yield self if block_given?
637
+ end
638
+
639
+ ##
640
+ # Configurations for individual RPCs
641
+ # @return [Rpcs]
642
+ #
643
+ def rpcs
644
+ @rpcs ||= begin
645
+ parent_rpcs = nil
646
+ parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
647
+ Rpcs.new parent_rpcs
648
+ end
649
+ end
650
+
651
+ ##
652
+ # Configuration RPC class for the ApplicationService API.
653
+ #
654
+ # Includes fields providing the configuration for each RPC in this service.
655
+ # Each configuration object is of type `Gapic::Config::Method` and includes
656
+ # the following configuration fields:
657
+ #
658
+ # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
659
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
660
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
661
+ # include the following keys:
662
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
663
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
664
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
665
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
666
+ # trigger a retry.
667
+ #
668
+ class Rpcs
669
+ ##
670
+ # RPC-specific configuration for `create_application`
671
+ # @return [Gapic::Config::Method]
672
+ #
673
+ attr_reader :create_application
674
+ ##
675
+ # RPC-specific configuration for `get_application`
676
+ # @return [Gapic::Config::Method]
677
+ #
678
+ attr_reader :get_application
679
+ ##
680
+ # RPC-specific configuration for `update_application`
681
+ # @return [Gapic::Config::Method]
682
+ #
683
+ attr_reader :update_application
684
+ ##
685
+ # RPC-specific configuration for `delete_application`
686
+ # @return [Gapic::Config::Method]
687
+ #
688
+ attr_reader :delete_application
689
+ ##
690
+ # RPC-specific configuration for `list_applications`
691
+ # @return [Gapic::Config::Method]
692
+ #
693
+ attr_reader :list_applications
694
+
695
+ # @private
696
+ def initialize parent_rpcs = nil
697
+ create_application_config = parent_rpcs&.create_application if parent_rpcs&.respond_to? :create_application
698
+ @create_application = Gapic::Config::Method.new create_application_config
699
+ get_application_config = parent_rpcs&.get_application if parent_rpcs&.respond_to? :get_application
700
+ @get_application = Gapic::Config::Method.new get_application_config
701
+ update_application_config = parent_rpcs&.update_application if parent_rpcs&.respond_to? :update_application
702
+ @update_application = Gapic::Config::Method.new update_application_config
703
+ delete_application_config = parent_rpcs&.delete_application if parent_rpcs&.respond_to? :delete_application
704
+ @delete_application = Gapic::Config::Method.new delete_application_config
705
+ list_applications_config = parent_rpcs&.list_applications if parent_rpcs&.respond_to? :list_applications
706
+ @list_applications = Gapic::Config::Method.new list_applications_config
707
+
708
+ yield self if block_given?
709
+ end
710
+ end
711
+ end
712
+ end
713
+ end
714
+ end
715
+ end
716
+ end
717
+ end