google-cloud-network_services-v1 0.a → 0.1.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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/network_services/v1/bindings_override.rb +279 -0
  6. data/lib/google/cloud/network_services/v1/dep_service/client.rb +1503 -0
  7. data/lib/google/cloud/network_services/v1/dep_service/credentials.rb +47 -0
  8. data/lib/google/cloud/network_services/v1/dep_service/operations.rb +809 -0
  9. data/lib/google/cloud/network_services/v1/dep_service/paths.rb +88 -0
  10. data/lib/google/cloud/network_services/v1/dep_service/rest/client.rb +1414 -0
  11. data/lib/google/cloud/network_services/v1/dep_service/rest/operations.rb +902 -0
  12. data/lib/google/cloud/network_services/v1/dep_service/rest/service_stub.rb +663 -0
  13. data/lib/google/cloud/network_services/v1/dep_service/rest.rb +54 -0
  14. data/lib/google/cloud/network_services/v1/dep_service.rb +56 -0
  15. data/lib/google/cloud/network_services/v1/network_services/client.rb +4383 -0
  16. data/lib/google/cloud/network_services/v1/network_services/credentials.rb +47 -0
  17. data/lib/google/cloud/network_services/v1/network_services/operations.rb +809 -0
  18. data/lib/google/cloud/network_services/v1/network_services/paths.rb +278 -0
  19. data/lib/google/cloud/network_services/v1/network_services/rest/client.rb +4093 -0
  20. data/lib/google/cloud/network_services/v1/network_services/rest/operations.rb +902 -0
  21. data/lib/google/cloud/network_services/v1/network_services/rest/service_stub.rb +2385 -0
  22. data/lib/google/cloud/network_services/v1/network_services/rest.rb +52 -0
  23. data/lib/google/cloud/network_services/v1/network_services.rb +54 -0
  24. data/lib/google/cloud/network_services/v1/rest.rb +39 -0
  25. data/lib/google/cloud/network_services/v1/version.rb +7 -2
  26. data/lib/google/cloud/network_services/v1.rb +46 -0
  27. data/lib/google/cloud/networkservices/v1/common_pb.rb +51 -0
  28. data/lib/google/cloud/networkservices/v1/dep_pb.rb +75 -0
  29. data/lib/google/cloud/networkservices/v1/dep_services_pb.rb +64 -0
  30. data/lib/google/cloud/networkservices/v1/endpoint_policy_pb.rb +58 -0
  31. data/lib/google/cloud/networkservices/v1/gateway_pb.rb +56 -0
  32. data/lib/google/cloud/networkservices/v1/grpc_route_pb.rb +69 -0
  33. data/lib/google/cloud/networkservices/v1/http_route_pb.rb +74 -0
  34. data/lib/google/cloud/networkservices/v1/mesh_pb.rb +55 -0
  35. data/lib/google/cloud/networkservices/v1/network_services_pb.rb +53 -0
  36. data/lib/google/cloud/networkservices/v1/network_services_services_pb.rb +120 -0
  37. data/lib/google/cloud/networkservices/v1/service_binding_pb.rb +52 -0
  38. data/lib/google/cloud/networkservices/v1/tcp_route_pb.rb +59 -0
  39. data/lib/google/cloud/networkservices/v1/tls_route_pb.rb +59 -0
  40. data/lib/google-cloud-network_services-v1.rb +21 -0
  41. data/proto_docs/README.md +4 -0
  42. data/proto_docs/google/api/client.rb +399 -0
  43. data/proto_docs/google/api/field_behavior.rb +85 -0
  44. data/proto_docs/google/api/field_info.rb +65 -0
  45. data/proto_docs/google/api/launch_stage.rb +71 -0
  46. data/proto_docs/google/api/resource.rb +222 -0
  47. data/proto_docs/google/cloud/networkservices/v1/common.rb +147 -0
  48. data/proto_docs/google/cloud/networkservices/v1/dep.rb +569 -0
  49. data/proto_docs/google/cloud/networkservices/v1/endpoint_policy.rb +194 -0
  50. data/proto_docs/google/cloud/networkservices/v1/gateway.rb +187 -0
  51. data/proto_docs/google/cloud/networkservices/v1/grpc_route.rb +430 -0
  52. data/proto_docs/google/cloud/networkservices/v1/http_route.rb +670 -0
  53. data/proto_docs/google/cloud/networkservices/v1/mesh.rb +155 -0
  54. data/proto_docs/google/cloud/networkservices/v1/service_binding.rb +131 -0
  55. data/proto_docs/google/cloud/networkservices/v1/tcp_route.rb +247 -0
  56. data/proto_docs/google/cloud/networkservices/v1/tls_route.rb +219 -0
  57. data/proto_docs/google/longrunning/operations.rb +164 -0
  58. data/proto_docs/google/protobuf/any.rb +145 -0
  59. data/proto_docs/google/protobuf/duration.rb +98 -0
  60. data/proto_docs/google/protobuf/empty.rb +34 -0
  61. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  62. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  63. data/proto_docs/google/rpc/status.rb +48 -0
  64. data/proto_docs/google/type/expr.rb +75 -0
  65. metadata +144 -10
@@ -0,0 +1,1414 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/networkservices/v1/dep_pb"
21
+ require "google/cloud/network_services/v1/dep_service/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+ require "google/iam/v1/rest"
24
+
25
+ module Google
26
+ module Cloud
27
+ module NetworkServices
28
+ module V1
29
+ module DepService
30
+ module Rest
31
+ ##
32
+ # REST client for the DepService service.
33
+ #
34
+ # Service describing handlers for resources.
35
+ #
36
+ class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
40
+ # @private
41
+ DEFAULT_ENDPOINT_TEMPLATE = "networkservices.$UNIVERSE_DOMAIN$"
42
+
43
+ include Paths
44
+
45
+ # @private
46
+ attr_reader :dep_service_stub
47
+
48
+ ##
49
+ # Configure the DepService Client class.
50
+ #
51
+ # See {::Google::Cloud::NetworkServices::V1::DepService::Rest::Client::Configuration}
52
+ # for a description of the configuration fields.
53
+ #
54
+ # @example
55
+ #
56
+ # # Modify the configuration for all DepService clients
57
+ # ::Google::Cloud::NetworkServices::V1::DepService::Rest::Client.configure do |config|
58
+ # config.timeout = 10.0
59
+ # end
60
+ #
61
+ # @yield [config] Configure the Client client.
62
+ # @yieldparam config [Client::Configuration]
63
+ #
64
+ # @return [Client::Configuration]
65
+ #
66
+ def self.configure
67
+ @configure ||= begin
68
+ namespace = ["Google", "Cloud", "NetworkServices", "V1"]
69
+ parent_config = while namespace.any?
70
+ parent_name = namespace.join "::"
71
+ parent_const = const_get parent_name
72
+ break parent_const.configure if parent_const.respond_to? :configure
73
+ namespace.pop
74
+ end
75
+ default_config = Client::Configuration.new parent_config
76
+
77
+ default_config
78
+ end
79
+ yield @configure if block_given?
80
+ @configure
81
+ end
82
+
83
+ ##
84
+ # Configure the DepService Client instance.
85
+ #
86
+ # The configuration is set to the derived mode, meaning that values can be changed,
87
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
88
+ # should be made on {Client.configure}.
89
+ #
90
+ # See {::Google::Cloud::NetworkServices::V1::DepService::Rest::Client::Configuration}
91
+ # for a description of the configuration fields.
92
+ #
93
+ # @yield [config] Configure the Client client.
94
+ # @yieldparam config [Client::Configuration]
95
+ #
96
+ # @return [Client::Configuration]
97
+ #
98
+ def configure
99
+ yield @config if block_given?
100
+ @config
101
+ end
102
+
103
+ ##
104
+ # The effective universe domain
105
+ #
106
+ # @return [String]
107
+ #
108
+ def universe_domain
109
+ @dep_service_stub.universe_domain
110
+ end
111
+
112
+ ##
113
+ # Create a new DepService REST client object.
114
+ #
115
+ # @example
116
+ #
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
119
+ #
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
124
+ #
125
+ # @yield [config] Configure the DepService client.
126
+ # @yieldparam config [Client::Configuration]
127
+ #
128
+ def initialize
129
+ # Create the configuration object
130
+ @config = Configuration.new Client.configure
131
+
132
+ # Yield the configuration if needed
133
+ yield @config if block_given?
134
+
135
+ # Create credentials
136
+ credentials = @config.credentials
137
+ # Use self-signed JWT if the endpoint is unchanged from default,
138
+ # but only if the default endpoint does not have a region prefix.
139
+ enable_self_signed_jwt = @config.endpoint.nil? ||
140
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
141
+ !@config.endpoint.split(".").first.include?("-"))
142
+ credentials ||= Credentials.default scope: @config.scope,
143
+ enable_self_signed_jwt: enable_self_signed_jwt
144
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
145
+ credentials = Credentials.new credentials, scope: @config.scope
146
+ end
147
+
148
+ @quota_project_id = @config.quota_project
149
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
150
+
151
+ @operations_client = ::Google::Cloud::NetworkServices::V1::DepService::Rest::Operations.new do |config|
152
+ config.credentials = credentials
153
+ config.quota_project = @quota_project_id
154
+ config.endpoint = @config.endpoint
155
+ config.universe_domain = @config.universe_domain
156
+ end
157
+
158
+ @dep_service_stub = ::Google::Cloud::NetworkServices::V1::DepService::Rest::ServiceStub.new(
159
+ endpoint: @config.endpoint,
160
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
161
+ universe_domain: @config.universe_domain,
162
+ credentials: credentials
163
+ )
164
+
165
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
166
+ config.credentials = credentials
167
+ config.quota_project = @quota_project_id
168
+ config.endpoint = @dep_service_stub.endpoint
169
+ config.universe_domain = @dep_service_stub.universe_domain
170
+ config.bindings_override = @config.bindings_override
171
+ end
172
+
173
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
174
+ config.credentials = credentials
175
+ config.quota_project = @quota_project_id
176
+ config.endpoint = @dep_service_stub.endpoint
177
+ config.universe_domain = @dep_service_stub.universe_domain
178
+ config.bindings_override = @config.bindings_override
179
+ end
180
+ end
181
+
182
+ ##
183
+ # Get the associated client for long-running operations.
184
+ #
185
+ # @return [::Google::Cloud::NetworkServices::V1::DepService::Rest::Operations]
186
+ #
187
+ attr_reader :operations_client
188
+
189
+ ##
190
+ # Get the associated client for mix-in of the Locations.
191
+ #
192
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
193
+ #
194
+ attr_reader :location_client
195
+
196
+ ##
197
+ # Get the associated client for mix-in of the IAMPolicy.
198
+ #
199
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
200
+ #
201
+ attr_reader :iam_policy_client
202
+
203
+ # Service calls
204
+
205
+ ##
206
+ # Lists `LbTrafficExtension` resources in a given project and location.
207
+ #
208
+ # @overload list_lb_traffic_extensions(request, options = nil)
209
+ # Pass arguments to `list_lb_traffic_extensions` via a request object, either of type
210
+ # {::Google::Cloud::NetworkServices::V1::ListLbTrafficExtensionsRequest} or an equivalent Hash.
211
+ #
212
+ # @param request [::Google::Cloud::NetworkServices::V1::ListLbTrafficExtensionsRequest, ::Hash]
213
+ # A request object representing the call parameters. Required. To specify no
214
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
215
+ # @param options [::Gapic::CallOptions, ::Hash]
216
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
217
+ #
218
+ # @overload list_lb_traffic_extensions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
219
+ # Pass arguments to `list_lb_traffic_extensions` via keyword arguments. Note that at
220
+ # least one keyword argument is required. To specify no parameters, or to keep all
221
+ # the default parameter values, pass an empty Hash as a request object (see above).
222
+ #
223
+ # @param parent [::String]
224
+ # Required. The project and location from which the `LbTrafficExtension`
225
+ # resources are listed, specified in the following format:
226
+ # `projects/{project}/locations/{location}`.
227
+ # @param page_size [::Integer]
228
+ # Optional. Requested page size. The server might return fewer items than
229
+ # requested. If unspecified, the server picks an appropriate default.
230
+ # @param page_token [::String]
231
+ # Optional. A token identifying a page of results that the server returns.
232
+ # @param filter [::String]
233
+ # Optional. Filtering results.
234
+ # @param order_by [::String]
235
+ # Optional. Hint for how to order the results.
236
+ # @yield [result, operation] Access the result along with the TransportOperation object
237
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListLbTrafficExtensionsResponse]
238
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
239
+ #
240
+ # @return [::Google::Cloud::NetworkServices::V1::ListLbTrafficExtensionsResponse]
241
+ #
242
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
243
+ #
244
+ # @example Basic example
245
+ # require "google/cloud/network_services/v1"
246
+ #
247
+ # # Create a client object. The client can be reused for multiple calls.
248
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
249
+ #
250
+ # # Create a request. To set request fields, pass in keyword arguments.
251
+ # request = Google::Cloud::NetworkServices::V1::ListLbTrafficExtensionsRequest.new
252
+ #
253
+ # # Call the list_lb_traffic_extensions method.
254
+ # result = client.list_lb_traffic_extensions request
255
+ #
256
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
257
+ # # over elements, and API calls will be issued to fetch pages as needed.
258
+ # result.each do |item|
259
+ # # Each element is of type ::Google::Cloud::NetworkServices::V1::LbTrafficExtension.
260
+ # p item
261
+ # end
262
+ #
263
+ def list_lb_traffic_extensions request, options = nil
264
+ raise ::ArgumentError, "request must be provided" if request.nil?
265
+
266
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::ListLbTrafficExtensionsRequest
267
+
268
+ # Converts hash and nil to an options object
269
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
270
+
271
+ # Customize the options with defaults
272
+ call_metadata = @config.rpcs.list_lb_traffic_extensions.metadata.to_h
273
+
274
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
275
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
276
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
277
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
278
+ transports_version_send: [:rest]
279
+
280
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
281
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
282
+
283
+ options.apply_defaults timeout: @config.rpcs.list_lb_traffic_extensions.timeout,
284
+ metadata: call_metadata,
285
+ retry_policy: @config.rpcs.list_lb_traffic_extensions.retry_policy
286
+
287
+ options.apply_defaults timeout: @config.timeout,
288
+ metadata: @config.metadata,
289
+ retry_policy: @config.retry_policy
290
+
291
+ @dep_service_stub.list_lb_traffic_extensions request, options do |result, operation|
292
+ yield result, operation if block_given?
293
+ return result
294
+ end
295
+ rescue ::Gapic::Rest::Error => e
296
+ raise ::Google::Cloud::Error.from_error(e)
297
+ end
298
+
299
+ ##
300
+ # Gets details of the specified `LbTrafficExtension` resource.
301
+ #
302
+ # @overload get_lb_traffic_extension(request, options = nil)
303
+ # Pass arguments to `get_lb_traffic_extension` via a request object, either of type
304
+ # {::Google::Cloud::NetworkServices::V1::GetLbTrafficExtensionRequest} or an equivalent Hash.
305
+ #
306
+ # @param request [::Google::Cloud::NetworkServices::V1::GetLbTrafficExtensionRequest, ::Hash]
307
+ # A request object representing the call parameters. Required. To specify no
308
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
309
+ # @param options [::Gapic::CallOptions, ::Hash]
310
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
311
+ #
312
+ # @overload get_lb_traffic_extension(name: nil)
313
+ # Pass arguments to `get_lb_traffic_extension` via keyword arguments. Note that at
314
+ # least one keyword argument is required. To specify no parameters, or to keep all
315
+ # the default parameter values, pass an empty Hash as a request object (see above).
316
+ #
317
+ # @param name [::String]
318
+ # Required. A name of the `LbTrafficExtension` resource to get. Must be in
319
+ # the format
320
+ # `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`.
321
+ # @yield [result, operation] Access the result along with the TransportOperation object
322
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::LbTrafficExtension]
323
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
324
+ #
325
+ # @return [::Google::Cloud::NetworkServices::V1::LbTrafficExtension]
326
+ #
327
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
328
+ #
329
+ # @example Basic example
330
+ # require "google/cloud/network_services/v1"
331
+ #
332
+ # # Create a client object. The client can be reused for multiple calls.
333
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
334
+ #
335
+ # # Create a request. To set request fields, pass in keyword arguments.
336
+ # request = Google::Cloud::NetworkServices::V1::GetLbTrafficExtensionRequest.new
337
+ #
338
+ # # Call the get_lb_traffic_extension method.
339
+ # result = client.get_lb_traffic_extension request
340
+ #
341
+ # # The returned object is of type Google::Cloud::NetworkServices::V1::LbTrafficExtension.
342
+ # p result
343
+ #
344
+ def get_lb_traffic_extension request, options = nil
345
+ raise ::ArgumentError, "request must be provided" if request.nil?
346
+
347
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::GetLbTrafficExtensionRequest
348
+
349
+ # Converts hash and nil to an options object
350
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
351
+
352
+ # Customize the options with defaults
353
+ call_metadata = @config.rpcs.get_lb_traffic_extension.metadata.to_h
354
+
355
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
356
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
357
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
358
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
359
+ transports_version_send: [:rest]
360
+
361
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
362
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
363
+
364
+ options.apply_defaults timeout: @config.rpcs.get_lb_traffic_extension.timeout,
365
+ metadata: call_metadata,
366
+ retry_policy: @config.rpcs.get_lb_traffic_extension.retry_policy
367
+
368
+ options.apply_defaults timeout: @config.timeout,
369
+ metadata: @config.metadata,
370
+ retry_policy: @config.retry_policy
371
+
372
+ @dep_service_stub.get_lb_traffic_extension request, options do |result, operation|
373
+ yield result, operation if block_given?
374
+ return result
375
+ end
376
+ rescue ::Gapic::Rest::Error => e
377
+ raise ::Google::Cloud::Error.from_error(e)
378
+ end
379
+
380
+ ##
381
+ # Creates a new `LbTrafficExtension` resource in a given project and
382
+ # location.
383
+ #
384
+ # @overload create_lb_traffic_extension(request, options = nil)
385
+ # Pass arguments to `create_lb_traffic_extension` via a request object, either of type
386
+ # {::Google::Cloud::NetworkServices::V1::CreateLbTrafficExtensionRequest} or an equivalent Hash.
387
+ #
388
+ # @param request [::Google::Cloud::NetworkServices::V1::CreateLbTrafficExtensionRequest, ::Hash]
389
+ # A request object representing the call parameters. Required. To specify no
390
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
391
+ # @param options [::Gapic::CallOptions, ::Hash]
392
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
393
+ #
394
+ # @overload create_lb_traffic_extension(parent: nil, lb_traffic_extension_id: nil, lb_traffic_extension: nil, request_id: nil)
395
+ # Pass arguments to `create_lb_traffic_extension` via keyword arguments. Note that at
396
+ # least one keyword argument is required. To specify no parameters, or to keep all
397
+ # the default parameter values, pass an empty Hash as a request object (see above).
398
+ #
399
+ # @param parent [::String]
400
+ # Required. The parent resource of the `LbTrafficExtension` resource. Must be
401
+ # in the format `projects/{project}/locations/{location}`.
402
+ # @param lb_traffic_extension_id [::String]
403
+ # Required. User-provided ID of the `LbTrafficExtension` resource to be
404
+ # created.
405
+ # @param lb_traffic_extension [::Google::Cloud::NetworkServices::V1::LbTrafficExtension, ::Hash]
406
+ # Required. `LbTrafficExtension` resource to be created.
407
+ # @param request_id [::String]
408
+ # Optional. An optional request ID to identify requests. Specify a unique
409
+ # request ID so that if you must retry your request, the server can ignore
410
+ # the request if it has already been completed. The server guarantees
411
+ # that for at least 60 minutes since the first request.
412
+ #
413
+ # For example, consider a situation where you make an initial request and the
414
+ # request times out. If you make the request again with the same request
415
+ # ID, the server can check if original operation with the same request ID
416
+ # was received, and if so, ignores the second request. This prevents
417
+ # clients from accidentally creating duplicate commitments.
418
+ #
419
+ # The request ID must be a valid UUID with the exception that zero UUID is
420
+ # not supported (00000000-0000-0000-0000-000000000000).
421
+ # @yield [result, operation] Access the result along with the TransportOperation object
422
+ # @yieldparam result [::Gapic::Operation]
423
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
424
+ #
425
+ # @return [::Gapic::Operation]
426
+ #
427
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
428
+ #
429
+ # @example Basic example
430
+ # require "google/cloud/network_services/v1"
431
+ #
432
+ # # Create a client object. The client can be reused for multiple calls.
433
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
434
+ #
435
+ # # Create a request. To set request fields, pass in keyword arguments.
436
+ # request = Google::Cloud::NetworkServices::V1::CreateLbTrafficExtensionRequest.new
437
+ #
438
+ # # Call the create_lb_traffic_extension method.
439
+ # result = client.create_lb_traffic_extension request
440
+ #
441
+ # # The returned object is of type Gapic::Operation. You can use it to
442
+ # # check the status of an operation, cancel it, or wait for results.
443
+ # # Here is how to wait for a response.
444
+ # result.wait_until_done! timeout: 60
445
+ # if result.response?
446
+ # p result.response
447
+ # else
448
+ # puts "No response received."
449
+ # end
450
+ #
451
+ def create_lb_traffic_extension request, options = nil
452
+ raise ::ArgumentError, "request must be provided" if request.nil?
453
+
454
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::CreateLbTrafficExtensionRequest
455
+
456
+ # Converts hash and nil to an options object
457
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
458
+
459
+ # Customize the options with defaults
460
+ call_metadata = @config.rpcs.create_lb_traffic_extension.metadata.to_h
461
+
462
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
463
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
464
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
465
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
466
+ transports_version_send: [:rest]
467
+
468
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
469
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
470
+
471
+ options.apply_defaults timeout: @config.rpcs.create_lb_traffic_extension.timeout,
472
+ metadata: call_metadata,
473
+ retry_policy: @config.rpcs.create_lb_traffic_extension.retry_policy
474
+
475
+ options.apply_defaults timeout: @config.timeout,
476
+ metadata: @config.metadata,
477
+ retry_policy: @config.retry_policy
478
+
479
+ @dep_service_stub.create_lb_traffic_extension request, options do |result, operation|
480
+ result = ::Gapic::Operation.new result, @operations_client, options: options
481
+ yield result, operation if block_given?
482
+ return result
483
+ end
484
+ rescue ::Gapic::Rest::Error => e
485
+ raise ::Google::Cloud::Error.from_error(e)
486
+ end
487
+
488
+ ##
489
+ # Updates the parameters of the specified `LbTrafficExtension` resource.
490
+ #
491
+ # @overload update_lb_traffic_extension(request, options = nil)
492
+ # Pass arguments to `update_lb_traffic_extension` via a request object, either of type
493
+ # {::Google::Cloud::NetworkServices::V1::UpdateLbTrafficExtensionRequest} or an equivalent Hash.
494
+ #
495
+ # @param request [::Google::Cloud::NetworkServices::V1::UpdateLbTrafficExtensionRequest, ::Hash]
496
+ # A request object representing the call parameters. Required. To specify no
497
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
498
+ # @param options [::Gapic::CallOptions, ::Hash]
499
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
500
+ #
501
+ # @overload update_lb_traffic_extension(update_mask: nil, lb_traffic_extension: nil, request_id: nil)
502
+ # Pass arguments to `update_lb_traffic_extension` via keyword arguments. Note that at
503
+ # least one keyword argument is required. To specify no parameters, or to keep all
504
+ # the default parameter values, pass an empty Hash as a request object (see above).
505
+ #
506
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
507
+ # Required. Used to specify the fields to be overwritten in the
508
+ # `LbTrafficExtension` resource by the update.
509
+ # The fields specified in the update_mask are relative to the resource, not
510
+ # the full request. A field is overwritten if it is in the mask. If the
511
+ # user does not specify a mask, then all fields are overwritten.
512
+ # @param lb_traffic_extension [::Google::Cloud::NetworkServices::V1::LbTrafficExtension, ::Hash]
513
+ # Required. `LbTrafficExtension` resource being updated.
514
+ # @param request_id [::String]
515
+ # Optional. An optional request ID to identify requests. Specify a unique
516
+ # request ID so that if you must retry your request, the server can ignore
517
+ # the request if it has already been completed. The server guarantees
518
+ # that for at least 60 minutes since the first request.
519
+ #
520
+ # For example, consider a situation where you make an initial request and the
521
+ # request times out. If you make the request again with the same request
522
+ # ID, the server can check if original operation with the same request ID
523
+ # was received, and if so, ignores the second request. This prevents
524
+ # clients from accidentally creating duplicate commitments.
525
+ #
526
+ # The request ID must be a valid UUID with the exception that zero UUID is
527
+ # not supported (00000000-0000-0000-0000-000000000000).
528
+ # @yield [result, operation] Access the result along with the TransportOperation object
529
+ # @yieldparam result [::Gapic::Operation]
530
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
531
+ #
532
+ # @return [::Gapic::Operation]
533
+ #
534
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
535
+ #
536
+ # @example Basic example
537
+ # require "google/cloud/network_services/v1"
538
+ #
539
+ # # Create a client object. The client can be reused for multiple calls.
540
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
541
+ #
542
+ # # Create a request. To set request fields, pass in keyword arguments.
543
+ # request = Google::Cloud::NetworkServices::V1::UpdateLbTrafficExtensionRequest.new
544
+ #
545
+ # # Call the update_lb_traffic_extension method.
546
+ # result = client.update_lb_traffic_extension request
547
+ #
548
+ # # The returned object is of type Gapic::Operation. You can use it to
549
+ # # check the status of an operation, cancel it, or wait for results.
550
+ # # Here is how to wait for a response.
551
+ # result.wait_until_done! timeout: 60
552
+ # if result.response?
553
+ # p result.response
554
+ # else
555
+ # puts "No response received."
556
+ # end
557
+ #
558
+ def update_lb_traffic_extension request, options = nil
559
+ raise ::ArgumentError, "request must be provided" if request.nil?
560
+
561
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::UpdateLbTrafficExtensionRequest
562
+
563
+ # Converts hash and nil to an options object
564
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
565
+
566
+ # Customize the options with defaults
567
+ call_metadata = @config.rpcs.update_lb_traffic_extension.metadata.to_h
568
+
569
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
570
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
571
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
572
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
573
+ transports_version_send: [:rest]
574
+
575
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
576
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
577
+
578
+ options.apply_defaults timeout: @config.rpcs.update_lb_traffic_extension.timeout,
579
+ metadata: call_metadata,
580
+ retry_policy: @config.rpcs.update_lb_traffic_extension.retry_policy
581
+
582
+ options.apply_defaults timeout: @config.timeout,
583
+ metadata: @config.metadata,
584
+ retry_policy: @config.retry_policy
585
+
586
+ @dep_service_stub.update_lb_traffic_extension request, options do |result, operation|
587
+ result = ::Gapic::Operation.new result, @operations_client, options: options
588
+ yield result, operation if block_given?
589
+ return result
590
+ end
591
+ rescue ::Gapic::Rest::Error => e
592
+ raise ::Google::Cloud::Error.from_error(e)
593
+ end
594
+
595
+ ##
596
+ # Deletes the specified `LbTrafficExtension` resource.
597
+ #
598
+ # @overload delete_lb_traffic_extension(request, options = nil)
599
+ # Pass arguments to `delete_lb_traffic_extension` via a request object, either of type
600
+ # {::Google::Cloud::NetworkServices::V1::DeleteLbTrafficExtensionRequest} or an equivalent Hash.
601
+ #
602
+ # @param request [::Google::Cloud::NetworkServices::V1::DeleteLbTrafficExtensionRequest, ::Hash]
603
+ # A request object representing the call parameters. Required. To specify no
604
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
605
+ # @param options [::Gapic::CallOptions, ::Hash]
606
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
607
+ #
608
+ # @overload delete_lb_traffic_extension(name: nil, request_id: nil)
609
+ # Pass arguments to `delete_lb_traffic_extension` via keyword arguments. Note that at
610
+ # least one keyword argument is required. To specify no parameters, or to keep all
611
+ # the default parameter values, pass an empty Hash as a request object (see above).
612
+ #
613
+ # @param name [::String]
614
+ # Required. The name of the `LbTrafficExtension` resource to delete. Must be
615
+ # in the format
616
+ # `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`.
617
+ # @param request_id [::String]
618
+ # Optional. An optional request ID to identify requests. Specify a unique
619
+ # request ID so that if you must retry your request, the server can ignore
620
+ # the request if it has already been completed. The server guarantees
621
+ # that for at least 60 minutes after the first request.
622
+ #
623
+ # For example, consider a situation where you make an initial request and the
624
+ # request times out. If you make the request again with the same request
625
+ # ID, the server can check if original operation with the same request ID
626
+ # was received, and if so, ignores the second request. This prevents
627
+ # clients from accidentally creating duplicate commitments.
628
+ #
629
+ # The request ID must be a valid UUID with the exception that zero UUID is
630
+ # not supported (00000000-0000-0000-0000-000000000000).
631
+ # @yield [result, operation] Access the result along with the TransportOperation object
632
+ # @yieldparam result [::Gapic::Operation]
633
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
634
+ #
635
+ # @return [::Gapic::Operation]
636
+ #
637
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
638
+ #
639
+ # @example Basic example
640
+ # require "google/cloud/network_services/v1"
641
+ #
642
+ # # Create a client object. The client can be reused for multiple calls.
643
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
644
+ #
645
+ # # Create a request. To set request fields, pass in keyword arguments.
646
+ # request = Google::Cloud::NetworkServices::V1::DeleteLbTrafficExtensionRequest.new
647
+ #
648
+ # # Call the delete_lb_traffic_extension method.
649
+ # result = client.delete_lb_traffic_extension request
650
+ #
651
+ # # The returned object is of type Gapic::Operation. You can use it to
652
+ # # check the status of an operation, cancel it, or wait for results.
653
+ # # Here is how to wait for a response.
654
+ # result.wait_until_done! timeout: 60
655
+ # if result.response?
656
+ # p result.response
657
+ # else
658
+ # puts "No response received."
659
+ # end
660
+ #
661
+ def delete_lb_traffic_extension request, options = nil
662
+ raise ::ArgumentError, "request must be provided" if request.nil?
663
+
664
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::DeleteLbTrafficExtensionRequest
665
+
666
+ # Converts hash and nil to an options object
667
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
668
+
669
+ # Customize the options with defaults
670
+ call_metadata = @config.rpcs.delete_lb_traffic_extension.metadata.to_h
671
+
672
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
673
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
674
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
675
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
676
+ transports_version_send: [:rest]
677
+
678
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
679
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
680
+
681
+ options.apply_defaults timeout: @config.rpcs.delete_lb_traffic_extension.timeout,
682
+ metadata: call_metadata,
683
+ retry_policy: @config.rpcs.delete_lb_traffic_extension.retry_policy
684
+
685
+ options.apply_defaults timeout: @config.timeout,
686
+ metadata: @config.metadata,
687
+ retry_policy: @config.retry_policy
688
+
689
+ @dep_service_stub.delete_lb_traffic_extension request, options do |result, operation|
690
+ result = ::Gapic::Operation.new result, @operations_client, options: options
691
+ yield result, operation if block_given?
692
+ return result
693
+ end
694
+ rescue ::Gapic::Rest::Error => e
695
+ raise ::Google::Cloud::Error.from_error(e)
696
+ end
697
+
698
+ ##
699
+ # Lists `LbRouteExtension` resources in a given project and location.
700
+ #
701
+ # @overload list_lb_route_extensions(request, options = nil)
702
+ # Pass arguments to `list_lb_route_extensions` via a request object, either of type
703
+ # {::Google::Cloud::NetworkServices::V1::ListLbRouteExtensionsRequest} or an equivalent Hash.
704
+ #
705
+ # @param request [::Google::Cloud::NetworkServices::V1::ListLbRouteExtensionsRequest, ::Hash]
706
+ # A request object representing the call parameters. Required. To specify no
707
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
708
+ # @param options [::Gapic::CallOptions, ::Hash]
709
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
710
+ #
711
+ # @overload list_lb_route_extensions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
712
+ # Pass arguments to `list_lb_route_extensions` via keyword arguments. Note that at
713
+ # least one keyword argument is required. To specify no parameters, or to keep all
714
+ # the default parameter values, pass an empty Hash as a request object (see above).
715
+ #
716
+ # @param parent [::String]
717
+ # Required. The project and location from which the `LbRouteExtension`
718
+ # resources are listed, specified in the following format:
719
+ # `projects/{project}/locations/{location}`.
720
+ # @param page_size [::Integer]
721
+ # Optional. Requested page size. The server might return fewer items than
722
+ # requested. If unspecified, the server picks an appropriate default.
723
+ # @param page_token [::String]
724
+ # Optional. A token identifying a page of results that the server returns.
725
+ # @param filter [::String]
726
+ # Optional. Filtering results.
727
+ # @param order_by [::String]
728
+ # Optional. Hint for how to order the results.
729
+ # @yield [result, operation] Access the result along with the TransportOperation object
730
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListLbRouteExtensionsResponse]
731
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
732
+ #
733
+ # @return [::Google::Cloud::NetworkServices::V1::ListLbRouteExtensionsResponse]
734
+ #
735
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
736
+ #
737
+ # @example Basic example
738
+ # require "google/cloud/network_services/v1"
739
+ #
740
+ # # Create a client object. The client can be reused for multiple calls.
741
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
742
+ #
743
+ # # Create a request. To set request fields, pass in keyword arguments.
744
+ # request = Google::Cloud::NetworkServices::V1::ListLbRouteExtensionsRequest.new
745
+ #
746
+ # # Call the list_lb_route_extensions method.
747
+ # result = client.list_lb_route_extensions request
748
+ #
749
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
750
+ # # over elements, and API calls will be issued to fetch pages as needed.
751
+ # result.each do |item|
752
+ # # Each element is of type ::Google::Cloud::NetworkServices::V1::LbRouteExtension.
753
+ # p item
754
+ # end
755
+ #
756
+ def list_lb_route_extensions request, options = nil
757
+ raise ::ArgumentError, "request must be provided" if request.nil?
758
+
759
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::ListLbRouteExtensionsRequest
760
+
761
+ # Converts hash and nil to an options object
762
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
763
+
764
+ # Customize the options with defaults
765
+ call_metadata = @config.rpcs.list_lb_route_extensions.metadata.to_h
766
+
767
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
768
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
769
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
770
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
771
+ transports_version_send: [:rest]
772
+
773
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
774
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
775
+
776
+ options.apply_defaults timeout: @config.rpcs.list_lb_route_extensions.timeout,
777
+ metadata: call_metadata,
778
+ retry_policy: @config.rpcs.list_lb_route_extensions.retry_policy
779
+
780
+ options.apply_defaults timeout: @config.timeout,
781
+ metadata: @config.metadata,
782
+ retry_policy: @config.retry_policy
783
+
784
+ @dep_service_stub.list_lb_route_extensions request, options do |result, operation|
785
+ yield result, operation if block_given?
786
+ return result
787
+ end
788
+ rescue ::Gapic::Rest::Error => e
789
+ raise ::Google::Cloud::Error.from_error(e)
790
+ end
791
+
792
+ ##
793
+ # Gets details of the specified `LbRouteExtension` resource.
794
+ #
795
+ # @overload get_lb_route_extension(request, options = nil)
796
+ # Pass arguments to `get_lb_route_extension` via a request object, either of type
797
+ # {::Google::Cloud::NetworkServices::V1::GetLbRouteExtensionRequest} or an equivalent Hash.
798
+ #
799
+ # @param request [::Google::Cloud::NetworkServices::V1::GetLbRouteExtensionRequest, ::Hash]
800
+ # A request object representing the call parameters. Required. To specify no
801
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
802
+ # @param options [::Gapic::CallOptions, ::Hash]
803
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
804
+ #
805
+ # @overload get_lb_route_extension(name: nil)
806
+ # Pass arguments to `get_lb_route_extension` via keyword arguments. Note that at
807
+ # least one keyword argument is required. To specify no parameters, or to keep all
808
+ # the default parameter values, pass an empty Hash as a request object (see above).
809
+ #
810
+ # @param name [::String]
811
+ # Required. A name of the `LbRouteExtension` resource to get. Must be in the
812
+ # format
813
+ # `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`.
814
+ # @yield [result, operation] Access the result along with the TransportOperation object
815
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::LbRouteExtension]
816
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
817
+ #
818
+ # @return [::Google::Cloud::NetworkServices::V1::LbRouteExtension]
819
+ #
820
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
821
+ #
822
+ # @example Basic example
823
+ # require "google/cloud/network_services/v1"
824
+ #
825
+ # # Create a client object. The client can be reused for multiple calls.
826
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
827
+ #
828
+ # # Create a request. To set request fields, pass in keyword arguments.
829
+ # request = Google::Cloud::NetworkServices::V1::GetLbRouteExtensionRequest.new
830
+ #
831
+ # # Call the get_lb_route_extension method.
832
+ # result = client.get_lb_route_extension request
833
+ #
834
+ # # The returned object is of type Google::Cloud::NetworkServices::V1::LbRouteExtension.
835
+ # p result
836
+ #
837
+ def get_lb_route_extension request, options = nil
838
+ raise ::ArgumentError, "request must be provided" if request.nil?
839
+
840
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::GetLbRouteExtensionRequest
841
+
842
+ # Converts hash and nil to an options object
843
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
844
+
845
+ # Customize the options with defaults
846
+ call_metadata = @config.rpcs.get_lb_route_extension.metadata.to_h
847
+
848
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
849
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
850
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
851
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
852
+ transports_version_send: [:rest]
853
+
854
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
855
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
856
+
857
+ options.apply_defaults timeout: @config.rpcs.get_lb_route_extension.timeout,
858
+ metadata: call_metadata,
859
+ retry_policy: @config.rpcs.get_lb_route_extension.retry_policy
860
+
861
+ options.apply_defaults timeout: @config.timeout,
862
+ metadata: @config.metadata,
863
+ retry_policy: @config.retry_policy
864
+
865
+ @dep_service_stub.get_lb_route_extension request, options do |result, operation|
866
+ yield result, operation if block_given?
867
+ return result
868
+ end
869
+ rescue ::Gapic::Rest::Error => e
870
+ raise ::Google::Cloud::Error.from_error(e)
871
+ end
872
+
873
+ ##
874
+ # Creates a new `LbRouteExtension` resource in a given project and location.
875
+ #
876
+ # @overload create_lb_route_extension(request, options = nil)
877
+ # Pass arguments to `create_lb_route_extension` via a request object, either of type
878
+ # {::Google::Cloud::NetworkServices::V1::CreateLbRouteExtensionRequest} or an equivalent Hash.
879
+ #
880
+ # @param request [::Google::Cloud::NetworkServices::V1::CreateLbRouteExtensionRequest, ::Hash]
881
+ # A request object representing the call parameters. Required. To specify no
882
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
883
+ # @param options [::Gapic::CallOptions, ::Hash]
884
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
885
+ #
886
+ # @overload create_lb_route_extension(parent: nil, lb_route_extension_id: nil, lb_route_extension: nil, request_id: nil)
887
+ # Pass arguments to `create_lb_route_extension` via keyword arguments. Note that at
888
+ # least one keyword argument is required. To specify no parameters, or to keep all
889
+ # the default parameter values, pass an empty Hash as a request object (see above).
890
+ #
891
+ # @param parent [::String]
892
+ # Required. The parent resource of the `LbRouteExtension` resource. Must be
893
+ # in the format `projects/{project}/locations/{location}`.
894
+ # @param lb_route_extension_id [::String]
895
+ # Required. User-provided ID of the `LbRouteExtension` resource to be
896
+ # created.
897
+ # @param lb_route_extension [::Google::Cloud::NetworkServices::V1::LbRouteExtension, ::Hash]
898
+ # Required. `LbRouteExtension` resource to be created.
899
+ # @param request_id [::String]
900
+ # Optional. An optional request ID to identify requests. Specify a unique
901
+ # request ID so that if you must retry your request, the server can ignore
902
+ # the request if it has already been completed. The server guarantees
903
+ # that for at least 60 minutes since the first request.
904
+ #
905
+ # For example, consider a situation where you make an initial request and the
906
+ # request times out. If you make the request again with the same request
907
+ # ID, the server can check if original operation with the same request ID
908
+ # was received, and if so, ignores the second request. This prevents
909
+ # clients from accidentally creating duplicate commitments.
910
+ #
911
+ # The request ID must be a valid UUID with the exception that zero UUID is
912
+ # not supported (00000000-0000-0000-0000-000000000000).
913
+ # @yield [result, operation] Access the result along with the TransportOperation object
914
+ # @yieldparam result [::Gapic::Operation]
915
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
916
+ #
917
+ # @return [::Gapic::Operation]
918
+ #
919
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
920
+ #
921
+ # @example Basic example
922
+ # require "google/cloud/network_services/v1"
923
+ #
924
+ # # Create a client object. The client can be reused for multiple calls.
925
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
926
+ #
927
+ # # Create a request. To set request fields, pass in keyword arguments.
928
+ # request = Google::Cloud::NetworkServices::V1::CreateLbRouteExtensionRequest.new
929
+ #
930
+ # # Call the create_lb_route_extension method.
931
+ # result = client.create_lb_route_extension request
932
+ #
933
+ # # The returned object is of type Gapic::Operation. You can use it to
934
+ # # check the status of an operation, cancel it, or wait for results.
935
+ # # Here is how to wait for a response.
936
+ # result.wait_until_done! timeout: 60
937
+ # if result.response?
938
+ # p result.response
939
+ # else
940
+ # puts "No response received."
941
+ # end
942
+ #
943
+ def create_lb_route_extension request, options = nil
944
+ raise ::ArgumentError, "request must be provided" if request.nil?
945
+
946
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::CreateLbRouteExtensionRequest
947
+
948
+ # Converts hash and nil to an options object
949
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
950
+
951
+ # Customize the options with defaults
952
+ call_metadata = @config.rpcs.create_lb_route_extension.metadata.to_h
953
+
954
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
955
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
956
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
957
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
958
+ transports_version_send: [:rest]
959
+
960
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
961
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
962
+
963
+ options.apply_defaults timeout: @config.rpcs.create_lb_route_extension.timeout,
964
+ metadata: call_metadata,
965
+ retry_policy: @config.rpcs.create_lb_route_extension.retry_policy
966
+
967
+ options.apply_defaults timeout: @config.timeout,
968
+ metadata: @config.metadata,
969
+ retry_policy: @config.retry_policy
970
+
971
+ @dep_service_stub.create_lb_route_extension request, options do |result, operation|
972
+ result = ::Gapic::Operation.new result, @operations_client, options: options
973
+ yield result, operation if block_given?
974
+ return result
975
+ end
976
+ rescue ::Gapic::Rest::Error => e
977
+ raise ::Google::Cloud::Error.from_error(e)
978
+ end
979
+
980
+ ##
981
+ # Updates the parameters of the specified `LbRouteExtension` resource.
982
+ #
983
+ # @overload update_lb_route_extension(request, options = nil)
984
+ # Pass arguments to `update_lb_route_extension` via a request object, either of type
985
+ # {::Google::Cloud::NetworkServices::V1::UpdateLbRouteExtensionRequest} or an equivalent Hash.
986
+ #
987
+ # @param request [::Google::Cloud::NetworkServices::V1::UpdateLbRouteExtensionRequest, ::Hash]
988
+ # A request object representing the call parameters. Required. To specify no
989
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
990
+ # @param options [::Gapic::CallOptions, ::Hash]
991
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
992
+ #
993
+ # @overload update_lb_route_extension(update_mask: nil, lb_route_extension: nil, request_id: nil)
994
+ # Pass arguments to `update_lb_route_extension` via keyword arguments. Note that at
995
+ # least one keyword argument is required. To specify no parameters, or to keep all
996
+ # the default parameter values, pass an empty Hash as a request object (see above).
997
+ #
998
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
999
+ # Required. Used to specify the fields to be overwritten in the
1000
+ # `LbRouteExtension` resource by the update.
1001
+ # The fields specified in the update_mask are relative to the resource, not
1002
+ # the full request. A field is overwritten if it is in the mask. If the
1003
+ # user does not specify a mask, then all fields are overwritten.
1004
+ # @param lb_route_extension [::Google::Cloud::NetworkServices::V1::LbRouteExtension, ::Hash]
1005
+ # Required. `LbRouteExtension` resource being updated.
1006
+ # @param request_id [::String]
1007
+ # Optional. An optional request ID to identify requests. Specify a unique
1008
+ # request ID so that if you must retry your request, the server can ignore
1009
+ # the request if it has already been completed. The server guarantees
1010
+ # that for at least 60 minutes since the first request.
1011
+ #
1012
+ # For example, consider a situation where you make an initial request and the
1013
+ # request times out. If you make the request again with the same request
1014
+ # ID, the server can check if original operation with the same request ID
1015
+ # was received, and if so, ignores the second request. This prevents
1016
+ # clients from accidentally creating duplicate commitments.
1017
+ #
1018
+ # The request ID must be a valid UUID with the exception that zero UUID is
1019
+ # not supported (00000000-0000-0000-0000-000000000000).
1020
+ # @yield [result, operation] Access the result along with the TransportOperation object
1021
+ # @yieldparam result [::Gapic::Operation]
1022
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1023
+ #
1024
+ # @return [::Gapic::Operation]
1025
+ #
1026
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1027
+ #
1028
+ # @example Basic example
1029
+ # require "google/cloud/network_services/v1"
1030
+ #
1031
+ # # Create a client object. The client can be reused for multiple calls.
1032
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
1033
+ #
1034
+ # # Create a request. To set request fields, pass in keyword arguments.
1035
+ # request = Google::Cloud::NetworkServices::V1::UpdateLbRouteExtensionRequest.new
1036
+ #
1037
+ # # Call the update_lb_route_extension method.
1038
+ # result = client.update_lb_route_extension request
1039
+ #
1040
+ # # The returned object is of type Gapic::Operation. You can use it to
1041
+ # # check the status of an operation, cancel it, or wait for results.
1042
+ # # Here is how to wait for a response.
1043
+ # result.wait_until_done! timeout: 60
1044
+ # if result.response?
1045
+ # p result.response
1046
+ # else
1047
+ # puts "No response received."
1048
+ # end
1049
+ #
1050
+ def update_lb_route_extension request, options = nil
1051
+ raise ::ArgumentError, "request must be provided" if request.nil?
1052
+
1053
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::UpdateLbRouteExtensionRequest
1054
+
1055
+ # Converts hash and nil to an options object
1056
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1057
+
1058
+ # Customize the options with defaults
1059
+ call_metadata = @config.rpcs.update_lb_route_extension.metadata.to_h
1060
+
1061
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1062
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1063
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1064
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
1065
+ transports_version_send: [:rest]
1066
+
1067
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1068
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1069
+
1070
+ options.apply_defaults timeout: @config.rpcs.update_lb_route_extension.timeout,
1071
+ metadata: call_metadata,
1072
+ retry_policy: @config.rpcs.update_lb_route_extension.retry_policy
1073
+
1074
+ options.apply_defaults timeout: @config.timeout,
1075
+ metadata: @config.metadata,
1076
+ retry_policy: @config.retry_policy
1077
+
1078
+ @dep_service_stub.update_lb_route_extension request, options do |result, operation|
1079
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1080
+ yield result, operation if block_given?
1081
+ return result
1082
+ end
1083
+ rescue ::Gapic::Rest::Error => e
1084
+ raise ::Google::Cloud::Error.from_error(e)
1085
+ end
1086
+
1087
+ ##
1088
+ # Deletes the specified `LbRouteExtension` resource.
1089
+ #
1090
+ # @overload delete_lb_route_extension(request, options = nil)
1091
+ # Pass arguments to `delete_lb_route_extension` via a request object, either of type
1092
+ # {::Google::Cloud::NetworkServices::V1::DeleteLbRouteExtensionRequest} or an equivalent Hash.
1093
+ #
1094
+ # @param request [::Google::Cloud::NetworkServices::V1::DeleteLbRouteExtensionRequest, ::Hash]
1095
+ # A request object representing the call parameters. Required. To specify no
1096
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1097
+ # @param options [::Gapic::CallOptions, ::Hash]
1098
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1099
+ #
1100
+ # @overload delete_lb_route_extension(name: nil, request_id: nil)
1101
+ # Pass arguments to `delete_lb_route_extension` via keyword arguments. Note that at
1102
+ # least one keyword argument is required. To specify no parameters, or to keep all
1103
+ # the default parameter values, pass an empty Hash as a request object (see above).
1104
+ #
1105
+ # @param name [::String]
1106
+ # Required. The name of the `LbRouteExtension` resource to delete. Must be in
1107
+ # the format
1108
+ # `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`.
1109
+ # @param request_id [::String]
1110
+ # Optional. An optional request ID to identify requests. Specify a unique
1111
+ # request ID so that if you must retry your request, the server can ignore
1112
+ # the request if it has already been completed. The server guarantees
1113
+ # that for at least 60 minutes after the first request.
1114
+ #
1115
+ # For example, consider a situation where you make an initial request and the
1116
+ # request times out. If you make the request again with the same request
1117
+ # ID, the server can check if original operation with the same request ID
1118
+ # was received, and if so, ignores the second request. This prevents
1119
+ # clients from accidentally creating duplicate commitments.
1120
+ #
1121
+ # The request ID must be a valid UUID with the exception that zero UUID is
1122
+ # not supported (00000000-0000-0000-0000-000000000000).
1123
+ # @yield [result, operation] Access the result along with the TransportOperation object
1124
+ # @yieldparam result [::Gapic::Operation]
1125
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1126
+ #
1127
+ # @return [::Gapic::Operation]
1128
+ #
1129
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1130
+ #
1131
+ # @example Basic example
1132
+ # require "google/cloud/network_services/v1"
1133
+ #
1134
+ # # Create a client object. The client can be reused for multiple calls.
1135
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
1136
+ #
1137
+ # # Create a request. To set request fields, pass in keyword arguments.
1138
+ # request = Google::Cloud::NetworkServices::V1::DeleteLbRouteExtensionRequest.new
1139
+ #
1140
+ # # Call the delete_lb_route_extension method.
1141
+ # result = client.delete_lb_route_extension request
1142
+ #
1143
+ # # The returned object is of type Gapic::Operation. You can use it to
1144
+ # # check the status of an operation, cancel it, or wait for results.
1145
+ # # Here is how to wait for a response.
1146
+ # result.wait_until_done! timeout: 60
1147
+ # if result.response?
1148
+ # p result.response
1149
+ # else
1150
+ # puts "No response received."
1151
+ # end
1152
+ #
1153
+ def delete_lb_route_extension request, options = nil
1154
+ raise ::ArgumentError, "request must be provided" if request.nil?
1155
+
1156
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::DeleteLbRouteExtensionRequest
1157
+
1158
+ # Converts hash and nil to an options object
1159
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1160
+
1161
+ # Customize the options with defaults
1162
+ call_metadata = @config.rpcs.delete_lb_route_extension.metadata.to_h
1163
+
1164
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1165
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1166
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1167
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
1168
+ transports_version_send: [:rest]
1169
+
1170
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1171
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1172
+
1173
+ options.apply_defaults timeout: @config.rpcs.delete_lb_route_extension.timeout,
1174
+ metadata: call_metadata,
1175
+ retry_policy: @config.rpcs.delete_lb_route_extension.retry_policy
1176
+
1177
+ options.apply_defaults timeout: @config.timeout,
1178
+ metadata: @config.metadata,
1179
+ retry_policy: @config.retry_policy
1180
+
1181
+ @dep_service_stub.delete_lb_route_extension request, options do |result, operation|
1182
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1183
+ yield result, operation if block_given?
1184
+ return result
1185
+ end
1186
+ rescue ::Gapic::Rest::Error => e
1187
+ raise ::Google::Cloud::Error.from_error(e)
1188
+ end
1189
+
1190
+ ##
1191
+ # Configuration class for the DepService REST API.
1192
+ #
1193
+ # This class represents the configuration for DepService REST,
1194
+ # providing control over timeouts, retry behavior, logging, transport
1195
+ # parameters, and other low-level controls. Certain parameters can also be
1196
+ # applied individually to specific RPCs. See
1197
+ # {::Google::Cloud::NetworkServices::V1::DepService::Rest::Client::Configuration::Rpcs}
1198
+ # for a list of RPCs that can be configured independently.
1199
+ #
1200
+ # Configuration can be applied globally to all clients, or to a single client
1201
+ # on construction.
1202
+ #
1203
+ # @example
1204
+ #
1205
+ # # Modify the global config, setting the timeout for
1206
+ # # list_lb_traffic_extensions to 20 seconds,
1207
+ # # and all remaining timeouts to 10 seconds.
1208
+ # ::Google::Cloud::NetworkServices::V1::DepService::Rest::Client.configure do |config|
1209
+ # config.timeout = 10.0
1210
+ # config.rpcs.list_lb_traffic_extensions.timeout = 20.0
1211
+ # end
1212
+ #
1213
+ # # Apply the above configuration only to a new client.
1214
+ # client = ::Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new do |config|
1215
+ # config.timeout = 10.0
1216
+ # config.rpcs.list_lb_traffic_extensions.timeout = 20.0
1217
+ # end
1218
+ #
1219
+ # @!attribute [rw] endpoint
1220
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1221
+ # nil, indicating to use the default endpoint in the current universe domain.
1222
+ # @return [::String,nil]
1223
+ # @!attribute [rw] credentials
1224
+ # Credentials to send with calls. You may provide any of the following types:
1225
+ # * (`String`) The path to a service account key file in JSON format
1226
+ # * (`Hash`) A service account key as a Hash
1227
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1228
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1229
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1230
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1231
+ # * (`nil`) indicating no credentials
1232
+ # @return [::Object]
1233
+ # @!attribute [rw] scope
1234
+ # The OAuth scopes
1235
+ # @return [::Array<::String>]
1236
+ # @!attribute [rw] lib_name
1237
+ # The library name as recorded in instrumentation and logging
1238
+ # @return [::String]
1239
+ # @!attribute [rw] lib_version
1240
+ # The library version as recorded in instrumentation and logging
1241
+ # @return [::String]
1242
+ # @!attribute [rw] timeout
1243
+ # The call timeout in seconds.
1244
+ # @return [::Numeric]
1245
+ # @!attribute [rw] metadata
1246
+ # Additional headers to be sent with the call.
1247
+ # @return [::Hash{::Symbol=>::String}]
1248
+ # @!attribute [rw] retry_policy
1249
+ # The retry policy. The value is a hash with the following keys:
1250
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1251
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1252
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1253
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1254
+ # trigger a retry.
1255
+ # @return [::Hash]
1256
+ # @!attribute [rw] quota_project
1257
+ # A separate project against which to charge quota.
1258
+ # @return [::String]
1259
+ # @!attribute [rw] universe_domain
1260
+ # The universe domain within which to make requests. This determines the
1261
+ # default endpoint URL. The default value of nil uses the environment
1262
+ # universe (usually the default "googleapis.com" universe).
1263
+ # @return [::String,nil]
1264
+ #
1265
+ class Configuration
1266
+ extend ::Gapic::Config
1267
+
1268
+ # @private
1269
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1270
+ DEFAULT_ENDPOINT = "networkservices.googleapis.com"
1271
+
1272
+ config_attr :endpoint, nil, ::String, nil
1273
+ config_attr :credentials, nil do |value|
1274
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1275
+ allowed.any? { |klass| klass === value }
1276
+ end
1277
+ config_attr :scope, nil, ::String, ::Array, nil
1278
+ config_attr :lib_name, nil, ::String, nil
1279
+ config_attr :lib_version, nil, ::String, nil
1280
+ config_attr :timeout, nil, ::Numeric, nil
1281
+ config_attr :metadata, nil, ::Hash, nil
1282
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1283
+ config_attr :quota_project, nil, ::String, nil
1284
+ config_attr :universe_domain, nil, ::String, nil
1285
+
1286
+ # @private
1287
+ # Overrides for http bindings for the RPCs of this service
1288
+ # are only used when this service is used as mixin, and only
1289
+ # by the host service.
1290
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
1291
+ config_attr :bindings_override, {}, ::Hash, nil
1292
+
1293
+ # @private
1294
+ def initialize parent_config = nil
1295
+ @parent_config = parent_config unless parent_config.nil?
1296
+
1297
+ yield self if block_given?
1298
+ end
1299
+
1300
+ ##
1301
+ # Configurations for individual RPCs
1302
+ # @return [Rpcs]
1303
+ #
1304
+ def rpcs
1305
+ @rpcs ||= begin
1306
+ parent_rpcs = nil
1307
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1308
+ Rpcs.new parent_rpcs
1309
+ end
1310
+ end
1311
+
1312
+ ##
1313
+ # Configuration RPC class for the DepService API.
1314
+ #
1315
+ # Includes fields providing the configuration for each RPC in this service.
1316
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1317
+ # the following configuration fields:
1318
+ #
1319
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1320
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
1321
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1322
+ # include the following keys:
1323
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1324
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1325
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1326
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1327
+ # trigger a retry.
1328
+ #
1329
+ class Rpcs
1330
+ ##
1331
+ # RPC-specific configuration for `list_lb_traffic_extensions`
1332
+ # @return [::Gapic::Config::Method]
1333
+ #
1334
+ attr_reader :list_lb_traffic_extensions
1335
+ ##
1336
+ # RPC-specific configuration for `get_lb_traffic_extension`
1337
+ # @return [::Gapic::Config::Method]
1338
+ #
1339
+ attr_reader :get_lb_traffic_extension
1340
+ ##
1341
+ # RPC-specific configuration for `create_lb_traffic_extension`
1342
+ # @return [::Gapic::Config::Method]
1343
+ #
1344
+ attr_reader :create_lb_traffic_extension
1345
+ ##
1346
+ # RPC-specific configuration for `update_lb_traffic_extension`
1347
+ # @return [::Gapic::Config::Method]
1348
+ #
1349
+ attr_reader :update_lb_traffic_extension
1350
+ ##
1351
+ # RPC-specific configuration for `delete_lb_traffic_extension`
1352
+ # @return [::Gapic::Config::Method]
1353
+ #
1354
+ attr_reader :delete_lb_traffic_extension
1355
+ ##
1356
+ # RPC-specific configuration for `list_lb_route_extensions`
1357
+ # @return [::Gapic::Config::Method]
1358
+ #
1359
+ attr_reader :list_lb_route_extensions
1360
+ ##
1361
+ # RPC-specific configuration for `get_lb_route_extension`
1362
+ # @return [::Gapic::Config::Method]
1363
+ #
1364
+ attr_reader :get_lb_route_extension
1365
+ ##
1366
+ # RPC-specific configuration for `create_lb_route_extension`
1367
+ # @return [::Gapic::Config::Method]
1368
+ #
1369
+ attr_reader :create_lb_route_extension
1370
+ ##
1371
+ # RPC-specific configuration for `update_lb_route_extension`
1372
+ # @return [::Gapic::Config::Method]
1373
+ #
1374
+ attr_reader :update_lb_route_extension
1375
+ ##
1376
+ # RPC-specific configuration for `delete_lb_route_extension`
1377
+ # @return [::Gapic::Config::Method]
1378
+ #
1379
+ attr_reader :delete_lb_route_extension
1380
+
1381
+ # @private
1382
+ def initialize parent_rpcs = nil
1383
+ list_lb_traffic_extensions_config = parent_rpcs.list_lb_traffic_extensions if parent_rpcs.respond_to? :list_lb_traffic_extensions
1384
+ @list_lb_traffic_extensions = ::Gapic::Config::Method.new list_lb_traffic_extensions_config
1385
+ get_lb_traffic_extension_config = parent_rpcs.get_lb_traffic_extension if parent_rpcs.respond_to? :get_lb_traffic_extension
1386
+ @get_lb_traffic_extension = ::Gapic::Config::Method.new get_lb_traffic_extension_config
1387
+ create_lb_traffic_extension_config = parent_rpcs.create_lb_traffic_extension if parent_rpcs.respond_to? :create_lb_traffic_extension
1388
+ @create_lb_traffic_extension = ::Gapic::Config::Method.new create_lb_traffic_extension_config
1389
+ update_lb_traffic_extension_config = parent_rpcs.update_lb_traffic_extension if parent_rpcs.respond_to? :update_lb_traffic_extension
1390
+ @update_lb_traffic_extension = ::Gapic::Config::Method.new update_lb_traffic_extension_config
1391
+ delete_lb_traffic_extension_config = parent_rpcs.delete_lb_traffic_extension if parent_rpcs.respond_to? :delete_lb_traffic_extension
1392
+ @delete_lb_traffic_extension = ::Gapic::Config::Method.new delete_lb_traffic_extension_config
1393
+ list_lb_route_extensions_config = parent_rpcs.list_lb_route_extensions if parent_rpcs.respond_to? :list_lb_route_extensions
1394
+ @list_lb_route_extensions = ::Gapic::Config::Method.new list_lb_route_extensions_config
1395
+ get_lb_route_extension_config = parent_rpcs.get_lb_route_extension if parent_rpcs.respond_to? :get_lb_route_extension
1396
+ @get_lb_route_extension = ::Gapic::Config::Method.new get_lb_route_extension_config
1397
+ create_lb_route_extension_config = parent_rpcs.create_lb_route_extension if parent_rpcs.respond_to? :create_lb_route_extension
1398
+ @create_lb_route_extension = ::Gapic::Config::Method.new create_lb_route_extension_config
1399
+ update_lb_route_extension_config = parent_rpcs.update_lb_route_extension if parent_rpcs.respond_to? :update_lb_route_extension
1400
+ @update_lb_route_extension = ::Gapic::Config::Method.new update_lb_route_extension_config
1401
+ delete_lb_route_extension_config = parent_rpcs.delete_lb_route_extension if parent_rpcs.respond_to? :delete_lb_route_extension
1402
+ @delete_lb_route_extension = ::Gapic::Config::Method.new delete_lb_route_extension_config
1403
+
1404
+ yield self if block_given?
1405
+ end
1406
+ end
1407
+ end
1408
+ end
1409
+ end
1410
+ end
1411
+ end
1412
+ end
1413
+ end
1414
+ end