google-cloud-network_services-v1beta1 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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/cloud/network_services/v1beta1/bindings_override.rb +108 -0
  6. data/lib/google/cloud/network_services/v1beta1/dep_service/client.rb +2076 -0
  7. data/lib/google/cloud/network_services/v1beta1/dep_service/credentials.rb +47 -0
  8. data/lib/google/cloud/network_services/v1beta1/dep_service/operations.rb +843 -0
  9. data/lib/google/cloud/network_services/v1beta1/dep_service/paths.rb +107 -0
  10. data/lib/google/cloud/network_services/v1beta1/dep_service/rest/client.rb +1937 -0
  11. data/lib/google/cloud/network_services/v1beta1/dep_service/rest/operations.rb +927 -0
  12. data/lib/google/cloud/network_services/v1beta1/dep_service/rest/service_stub.rb +1002 -0
  13. data/lib/google/cloud/network_services/v1beta1/dep_service/rest.rb +54 -0
  14. data/lib/google/cloud/network_services/v1beta1/dep_service.rb +56 -0
  15. data/lib/google/cloud/network_services/v1beta1/network_services/client.rb +947 -0
  16. data/lib/google/cloud/network_services/v1beta1/network_services/credentials.rb +47 -0
  17. data/lib/google/cloud/network_services/v1beta1/network_services/operations.rb +843 -0
  18. data/lib/google/cloud/network_services/v1beta1/network_services/paths.rb +126 -0
  19. data/lib/google/cloud/network_services/v1beta1/network_services/rest/client.rb +878 -0
  20. data/lib/google/cloud/network_services/v1beta1/network_services/rest/operations.rb +927 -0
  21. data/lib/google/cloud/network_services/v1beta1/network_services/rest/service_stub.rb +388 -0
  22. data/lib/google/cloud/network_services/v1beta1/network_services/rest.rb +54 -0
  23. data/lib/google/cloud/network_services/v1beta1/network_services.rb +56 -0
  24. data/lib/google/cloud/network_services/v1beta1/rest.rb +39 -0
  25. data/lib/google/cloud/network_services/v1beta1/version.rb +7 -2
  26. data/lib/google/cloud/network_services/v1beta1.rb +46 -0
  27. data/lib/google/cloud/networkservices/v1beta1/common_pb.rb +29 -0
  28. data/lib/google/cloud/networkservices/v1beta1/dep_pb.rb +67 -0
  29. data/lib/google/cloud/networkservices/v1beta1/dep_services_pb.rb +74 -0
  30. data/lib/google/cloud/networkservices/v1beta1/endpoint_policy_pb.rb +34 -0
  31. data/lib/google/cloud/networkservices/v1beta1/network_services_pb.rb +25 -0
  32. data/lib/google/cloud/networkservices/v1beta1/network_services_services_pb.rb +53 -0
  33. data/lib/google-cloud-network_services-v1beta1.rb +21 -0
  34. data/proto_docs/README.md +4 -0
  35. data/proto_docs/google/api/client.rb +593 -0
  36. data/proto_docs/google/api/field_behavior.rb +85 -0
  37. data/proto_docs/google/api/field_info.rb +88 -0
  38. data/proto_docs/google/api/launch_stage.rb +71 -0
  39. data/proto_docs/google/api/resource.rb +227 -0
  40. data/proto_docs/google/cloud/networkservices/v1beta1/common.rb +147 -0
  41. data/proto_docs/google/cloud/networkservices/v1beta1/dep.rb +928 -0
  42. data/proto_docs/google/cloud/networkservices/v1beta1/endpoint_policy.rb +196 -0
  43. data/proto_docs/google/longrunning/operations.rb +191 -0
  44. data/proto_docs/google/protobuf/any.rb +145 -0
  45. data/proto_docs/google/protobuf/duration.rb +98 -0
  46. data/proto_docs/google/protobuf/empty.rb +34 -0
  47. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  48. data/proto_docs/google/protobuf/timestamp.rb +128 -0
  49. data/proto_docs/google/rpc/status.rb +48 -0
  50. metadata +111 -9
@@ -0,0 +1,947 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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/v1beta1/network_services_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1"
23
+
24
+ module Google
25
+ module Cloud
26
+ module NetworkServices
27
+ module V1beta1
28
+ module NetworkServices
29
+ ##
30
+ # Client for the NetworkServices service.
31
+ #
32
+ # Service describing handlers for resources.
33
+ #
34
+ class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
38
+ # @private
39
+ DEFAULT_ENDPOINT_TEMPLATE = "networkservices.$UNIVERSE_DOMAIN$"
40
+
41
+ include Paths
42
+
43
+ # @private
44
+ attr_reader :network_services_stub
45
+
46
+ ##
47
+ # Configure the NetworkServices Client class.
48
+ #
49
+ # See {::Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client::Configuration}
50
+ # for a description of the configuration fields.
51
+ #
52
+ # @example
53
+ #
54
+ # # Modify the configuration for all NetworkServices clients
55
+ # ::Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
58
+ #
59
+ # @yield [config] Configure the Client client.
60
+ # @yieldparam config [Client::Configuration]
61
+ #
62
+ # @return [Client::Configuration]
63
+ #
64
+ def self.configure
65
+ @configure ||= begin
66
+ namespace = ["Google", "Cloud", "NetworkServices", "V1beta1"]
67
+ parent_config = while namespace.any?
68
+ parent_name = namespace.join "::"
69
+ parent_const = const_get parent_name
70
+ break parent_const.configure if parent_const.respond_to? :configure
71
+ namespace.pop
72
+ end
73
+ default_config = Client::Configuration.new parent_config
74
+
75
+ default_config.timeout = 60.0
76
+
77
+ default_config
78
+ end
79
+ yield @configure if block_given?
80
+ @configure
81
+ end
82
+
83
+ ##
84
+ # Configure the NetworkServices 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::V1beta1::NetworkServices::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
+ @network_services_stub.universe_domain
110
+ end
111
+
112
+ ##
113
+ # Create a new NetworkServices client object.
114
+ #
115
+ # @example
116
+ #
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client.new
119
+ #
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
124
+ #
125
+ # @yield [config] Configure the NetworkServices client.
126
+ # @yieldparam config [Client::Configuration]
127
+ #
128
+ def initialize
129
+ # These require statements are intentionally placed here to initialize
130
+ # the gRPC module only when it's required.
131
+ # See https://github.com/googleapis/toolkit/issues/446
132
+ require "gapic/grpc"
133
+ require "google/cloud/networkservices/v1beta1/network_services_services_pb"
134
+
135
+ # Create the configuration object
136
+ @config = Configuration.new Client.configure
137
+
138
+ # Yield the configuration if needed
139
+ yield @config if block_given?
140
+
141
+ # Create credentials
142
+ credentials = @config.credentials
143
+ # Use self-signed JWT if the endpoint is unchanged from default,
144
+ # but only if the default endpoint does not have a region prefix.
145
+ enable_self_signed_jwt = @config.endpoint.nil? ||
146
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
147
+ !@config.endpoint.split(".").first.include?("-"))
148
+ credentials ||= Credentials.default scope: @config.scope,
149
+ enable_self_signed_jwt: enable_self_signed_jwt
150
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
151
+ credentials = Credentials.new credentials, scope: @config.scope
152
+ end
153
+ @quota_project_id = @config.quota_project
154
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
155
+
156
+ @operations_client = Operations.new do |config|
157
+ config.credentials = credentials
158
+ config.quota_project = @quota_project_id
159
+ config.endpoint = @config.endpoint
160
+ config.universe_domain = @config.universe_domain
161
+ end
162
+
163
+ @network_services_stub = ::Gapic::ServiceStub.new(
164
+ ::Google::Cloud::NetworkServices::V1beta1::NetworkServices::Stub,
165
+ credentials: credentials,
166
+ endpoint: @config.endpoint,
167
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
168
+ universe_domain: @config.universe_domain,
169
+ channel_args: @config.channel_args,
170
+ interceptors: @config.interceptors,
171
+ channel_pool_config: @config.channel_pool,
172
+ logger: @config.logger
173
+ )
174
+
175
+ @network_services_stub.stub_logger&.info do |entry|
176
+ entry.set_system_name
177
+ entry.set_service
178
+ entry.message = "Created client for #{entry.service}"
179
+ entry.set_credentials_fields credentials
180
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
181
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
182
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
183
+ end
184
+
185
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
186
+ config.credentials = credentials
187
+ config.quota_project = @quota_project_id
188
+ config.endpoint = @network_services_stub.endpoint
189
+ config.universe_domain = @network_services_stub.universe_domain
190
+ config.logger = @network_services_stub.logger if config.respond_to? :logger=
191
+ end
192
+
193
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
194
+ config.credentials = credentials
195
+ config.quota_project = @quota_project_id
196
+ config.endpoint = @network_services_stub.endpoint
197
+ config.universe_domain = @network_services_stub.universe_domain
198
+ config.logger = @network_services_stub.logger if config.respond_to? :logger=
199
+ end
200
+ end
201
+
202
+ ##
203
+ # Get the associated client for long-running operations.
204
+ #
205
+ # @return [::Google::Cloud::NetworkServices::V1beta1::NetworkServices::Operations]
206
+ #
207
+ attr_reader :operations_client
208
+
209
+ ##
210
+ # Get the associated client for mix-in of the Locations.
211
+ #
212
+ # @return [Google::Cloud::Location::Locations::Client]
213
+ #
214
+ attr_reader :location_client
215
+
216
+ ##
217
+ # Get the associated client for mix-in of the IAMPolicy.
218
+ #
219
+ # @return [Google::Iam::V1::IAMPolicy::Client]
220
+ #
221
+ attr_reader :iam_policy_client
222
+
223
+ ##
224
+ # The logger used for request/response debug logging.
225
+ #
226
+ # @return [Logger]
227
+ #
228
+ def logger
229
+ @network_services_stub.logger
230
+ end
231
+
232
+ # Service calls
233
+
234
+ ##
235
+ # Lists EndpointPolicies in a given project and location.
236
+ #
237
+ # @overload list_endpoint_policies(request, options = nil)
238
+ # Pass arguments to `list_endpoint_policies` via a request object, either of type
239
+ # {::Google::Cloud::NetworkServices::V1beta1::ListEndpointPoliciesRequest} or an equivalent Hash.
240
+ #
241
+ # @param request [::Google::Cloud::NetworkServices::V1beta1::ListEndpointPoliciesRequest, ::Hash]
242
+ # A request object representing the call parameters. Required. To specify no
243
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
244
+ # @param options [::Gapic::CallOptions, ::Hash]
245
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
246
+ #
247
+ # @overload list_endpoint_policies(parent: nil, page_size: nil, page_token: nil)
248
+ # Pass arguments to `list_endpoint_policies` via keyword arguments. Note that at
249
+ # least one keyword argument is required. To specify no parameters, or to keep all
250
+ # the default parameter values, pass an empty Hash as a request object (see above).
251
+ #
252
+ # @param parent [::String]
253
+ # Required. The project and location from which the EndpointPolicies should
254
+ # be listed, specified in the format `projects/*/locations/global`.
255
+ # @param page_size [::Integer]
256
+ # Maximum number of EndpointPolicies to return per call.
257
+ # @param page_token [::String]
258
+ # The value returned by the last `ListEndpointPoliciesResponse`
259
+ # Indicates that this is a continuation of a prior
260
+ # `ListEndpointPolicies` call, and that the system should return the
261
+ # next page of data.
262
+ #
263
+ # @yield [response, operation] Access the result along with the RPC operation
264
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::NetworkServices::V1beta1::EndpointPolicy>]
265
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
266
+ #
267
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::NetworkServices::V1beta1::EndpointPolicy>]
268
+ #
269
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
270
+ #
271
+ # @example Basic example
272
+ # require "google/cloud/network_services/v1beta1"
273
+ #
274
+ # # Create a client object. The client can be reused for multiple calls.
275
+ # client = Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client.new
276
+ #
277
+ # # Create a request. To set request fields, pass in keyword arguments.
278
+ # request = Google::Cloud::NetworkServices::V1beta1::ListEndpointPoliciesRequest.new
279
+ #
280
+ # # Call the list_endpoint_policies method.
281
+ # result = client.list_endpoint_policies request
282
+ #
283
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
284
+ # # over elements, and API calls will be issued to fetch pages as needed.
285
+ # result.each do |item|
286
+ # # Each element is of type ::Google::Cloud::NetworkServices::V1beta1::EndpointPolicy.
287
+ # p item
288
+ # end
289
+ #
290
+ def list_endpoint_policies request, options = nil
291
+ raise ::ArgumentError, "request must be provided" if request.nil?
292
+
293
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1beta1::ListEndpointPoliciesRequest
294
+
295
+ # Converts hash and nil to an options object
296
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
297
+
298
+ # Customize the options with defaults
299
+ metadata = @config.rpcs.list_endpoint_policies.metadata.to_h
300
+
301
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
302
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
303
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
304
+ gapic_version: ::Google::Cloud::NetworkServices::V1beta1::VERSION
305
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
306
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
307
+
308
+ header_params = {}
309
+ if request.parent
310
+ header_params["parent"] = request.parent
311
+ end
312
+
313
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
314
+ metadata[:"x-goog-request-params"] ||= request_params_header
315
+
316
+ options.apply_defaults timeout: @config.rpcs.list_endpoint_policies.timeout,
317
+ metadata: metadata,
318
+ retry_policy: @config.rpcs.list_endpoint_policies.retry_policy
319
+
320
+ options.apply_defaults timeout: @config.timeout,
321
+ metadata: @config.metadata,
322
+ retry_policy: @config.retry_policy
323
+
324
+ @network_services_stub.call_rpc :list_endpoint_policies, request, options: options do |response, operation|
325
+ response = ::Gapic::PagedEnumerable.new @network_services_stub, :list_endpoint_policies, request, response, operation, options
326
+ yield response, operation if block_given?
327
+ throw :response, response
328
+ end
329
+ rescue ::GRPC::BadStatus => e
330
+ raise ::Google::Cloud::Error.from_error(e)
331
+ end
332
+
333
+ ##
334
+ # Gets details of a single EndpointPolicy.
335
+ #
336
+ # @overload get_endpoint_policy(request, options = nil)
337
+ # Pass arguments to `get_endpoint_policy` via a request object, either of type
338
+ # {::Google::Cloud::NetworkServices::V1beta1::GetEndpointPolicyRequest} or an equivalent Hash.
339
+ #
340
+ # @param request [::Google::Cloud::NetworkServices::V1beta1::GetEndpointPolicyRequest, ::Hash]
341
+ # A request object representing the call parameters. Required. To specify no
342
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
343
+ # @param options [::Gapic::CallOptions, ::Hash]
344
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
345
+ #
346
+ # @overload get_endpoint_policy(name: nil)
347
+ # Pass arguments to `get_endpoint_policy` via keyword arguments. Note that at
348
+ # least one keyword argument is required. To specify no parameters, or to keep all
349
+ # the default parameter values, pass an empty Hash as a request object (see above).
350
+ #
351
+ # @param name [::String]
352
+ # Required. A name of the EndpointPolicy to get. Must be in the format
353
+ # `projects/*/locations/global/endpointPolicies/*`.
354
+ #
355
+ # @yield [response, operation] Access the result along with the RPC operation
356
+ # @yieldparam response [::Google::Cloud::NetworkServices::V1beta1::EndpointPolicy]
357
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
358
+ #
359
+ # @return [::Google::Cloud::NetworkServices::V1beta1::EndpointPolicy]
360
+ #
361
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
362
+ #
363
+ # @example Basic example
364
+ # require "google/cloud/network_services/v1beta1"
365
+ #
366
+ # # Create a client object. The client can be reused for multiple calls.
367
+ # client = Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client.new
368
+ #
369
+ # # Create a request. To set request fields, pass in keyword arguments.
370
+ # request = Google::Cloud::NetworkServices::V1beta1::GetEndpointPolicyRequest.new
371
+ #
372
+ # # Call the get_endpoint_policy method.
373
+ # result = client.get_endpoint_policy request
374
+ #
375
+ # # The returned object is of type Google::Cloud::NetworkServices::V1beta1::EndpointPolicy.
376
+ # p result
377
+ #
378
+ def get_endpoint_policy request, options = nil
379
+ raise ::ArgumentError, "request must be provided" if request.nil?
380
+
381
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1beta1::GetEndpointPolicyRequest
382
+
383
+ # Converts hash and nil to an options object
384
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
385
+
386
+ # Customize the options with defaults
387
+ metadata = @config.rpcs.get_endpoint_policy.metadata.to_h
388
+
389
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
390
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
391
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
392
+ gapic_version: ::Google::Cloud::NetworkServices::V1beta1::VERSION
393
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
394
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
395
+
396
+ header_params = {}
397
+ if request.name
398
+ header_params["name"] = request.name
399
+ end
400
+
401
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
402
+ metadata[:"x-goog-request-params"] ||= request_params_header
403
+
404
+ options.apply_defaults timeout: @config.rpcs.get_endpoint_policy.timeout,
405
+ metadata: metadata,
406
+ retry_policy: @config.rpcs.get_endpoint_policy.retry_policy
407
+
408
+ options.apply_defaults timeout: @config.timeout,
409
+ metadata: @config.metadata,
410
+ retry_policy: @config.retry_policy
411
+
412
+ @network_services_stub.call_rpc :get_endpoint_policy, request, options: options do |response, operation|
413
+ yield response, operation if block_given?
414
+ end
415
+ rescue ::GRPC::BadStatus => e
416
+ raise ::Google::Cloud::Error.from_error(e)
417
+ end
418
+
419
+ ##
420
+ # Creates a new EndpointPolicy in a given project and location.
421
+ #
422
+ # @overload create_endpoint_policy(request, options = nil)
423
+ # Pass arguments to `create_endpoint_policy` via a request object, either of type
424
+ # {::Google::Cloud::NetworkServices::V1beta1::CreateEndpointPolicyRequest} or an equivalent Hash.
425
+ #
426
+ # @param request [::Google::Cloud::NetworkServices::V1beta1::CreateEndpointPolicyRequest, ::Hash]
427
+ # A request object representing the call parameters. Required. To specify no
428
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
429
+ # @param options [::Gapic::CallOptions, ::Hash]
430
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
431
+ #
432
+ # @overload create_endpoint_policy(parent: nil, endpoint_policy_id: nil, endpoint_policy: nil)
433
+ # Pass arguments to `create_endpoint_policy` via keyword arguments. Note that at
434
+ # least one keyword argument is required. To specify no parameters, or to keep all
435
+ # the default parameter values, pass an empty Hash as a request object (see above).
436
+ #
437
+ # @param parent [::String]
438
+ # Required. The parent resource of the EndpointPolicy. Must be in the
439
+ # format `projects/*/locations/global`.
440
+ # @param endpoint_policy_id [::String]
441
+ # Required. Short name of the EndpointPolicy resource to be created.
442
+ # E.g. "CustomECS".
443
+ # @param endpoint_policy [::Google::Cloud::NetworkServices::V1beta1::EndpointPolicy, ::Hash]
444
+ # Required. EndpointPolicy resource to be created.
445
+ #
446
+ # @yield [response, operation] Access the result along with the RPC operation
447
+ # @yieldparam response [::Gapic::Operation]
448
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
449
+ #
450
+ # @return [::Gapic::Operation]
451
+ #
452
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
453
+ #
454
+ # @example Basic example
455
+ # require "google/cloud/network_services/v1beta1"
456
+ #
457
+ # # Create a client object. The client can be reused for multiple calls.
458
+ # client = Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client.new
459
+ #
460
+ # # Create a request. To set request fields, pass in keyword arguments.
461
+ # request = Google::Cloud::NetworkServices::V1beta1::CreateEndpointPolicyRequest.new
462
+ #
463
+ # # Call the create_endpoint_policy method.
464
+ # result = client.create_endpoint_policy request
465
+ #
466
+ # # The returned object is of type Gapic::Operation. You can use it to
467
+ # # check the status of an operation, cancel it, or wait for results.
468
+ # # Here is how to wait for a response.
469
+ # result.wait_until_done! timeout: 60
470
+ # if result.response?
471
+ # p result.response
472
+ # else
473
+ # puts "No response received."
474
+ # end
475
+ #
476
+ def create_endpoint_policy request, options = nil
477
+ raise ::ArgumentError, "request must be provided" if request.nil?
478
+
479
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1beta1::CreateEndpointPolicyRequest
480
+
481
+ # Converts hash and nil to an options object
482
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
483
+
484
+ # Customize the options with defaults
485
+ metadata = @config.rpcs.create_endpoint_policy.metadata.to_h
486
+
487
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
488
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
489
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
490
+ gapic_version: ::Google::Cloud::NetworkServices::V1beta1::VERSION
491
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
492
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
493
+
494
+ header_params = {}
495
+ if request.parent
496
+ header_params["parent"] = request.parent
497
+ end
498
+
499
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
500
+ metadata[:"x-goog-request-params"] ||= request_params_header
501
+
502
+ options.apply_defaults timeout: @config.rpcs.create_endpoint_policy.timeout,
503
+ metadata: metadata,
504
+ retry_policy: @config.rpcs.create_endpoint_policy.retry_policy
505
+
506
+ options.apply_defaults timeout: @config.timeout,
507
+ metadata: @config.metadata,
508
+ retry_policy: @config.retry_policy
509
+
510
+ @network_services_stub.call_rpc :create_endpoint_policy, request, options: options do |response, operation|
511
+ response = ::Gapic::Operation.new response, @operations_client, options: options
512
+ yield response, operation if block_given?
513
+ throw :response, response
514
+ end
515
+ rescue ::GRPC::BadStatus => e
516
+ raise ::Google::Cloud::Error.from_error(e)
517
+ end
518
+
519
+ ##
520
+ # Updates the parameters of a single EndpointPolicy.
521
+ #
522
+ # @overload update_endpoint_policy(request, options = nil)
523
+ # Pass arguments to `update_endpoint_policy` via a request object, either of type
524
+ # {::Google::Cloud::NetworkServices::V1beta1::UpdateEndpointPolicyRequest} or an equivalent Hash.
525
+ #
526
+ # @param request [::Google::Cloud::NetworkServices::V1beta1::UpdateEndpointPolicyRequest, ::Hash]
527
+ # A request object representing the call parameters. Required. To specify no
528
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
529
+ # @param options [::Gapic::CallOptions, ::Hash]
530
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
531
+ #
532
+ # @overload update_endpoint_policy(update_mask: nil, endpoint_policy: nil)
533
+ # Pass arguments to `update_endpoint_policy` via keyword arguments. Note that at
534
+ # least one keyword argument is required. To specify no parameters, or to keep all
535
+ # the default parameter values, pass an empty Hash as a request object (see above).
536
+ #
537
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
538
+ # Optional. Field mask is used to specify the fields to be overwritten in the
539
+ # EndpointPolicy resource by the update.
540
+ # The fields specified in the update_mask are relative to the resource, not
541
+ # the full request. A field will be overwritten if it is in the mask. If the
542
+ # user does not provide a mask then all fields will be overwritten.
543
+ # @param endpoint_policy [::Google::Cloud::NetworkServices::V1beta1::EndpointPolicy, ::Hash]
544
+ # Required. Updated EndpointPolicy resource.
545
+ #
546
+ # @yield [response, operation] Access the result along with the RPC operation
547
+ # @yieldparam response [::Gapic::Operation]
548
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
549
+ #
550
+ # @return [::Gapic::Operation]
551
+ #
552
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
553
+ #
554
+ # @example Basic example
555
+ # require "google/cloud/network_services/v1beta1"
556
+ #
557
+ # # Create a client object. The client can be reused for multiple calls.
558
+ # client = Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client.new
559
+ #
560
+ # # Create a request. To set request fields, pass in keyword arguments.
561
+ # request = Google::Cloud::NetworkServices::V1beta1::UpdateEndpointPolicyRequest.new
562
+ #
563
+ # # Call the update_endpoint_policy method.
564
+ # result = client.update_endpoint_policy request
565
+ #
566
+ # # The returned object is of type Gapic::Operation. You can use it to
567
+ # # check the status of an operation, cancel it, or wait for results.
568
+ # # Here is how to wait for a response.
569
+ # result.wait_until_done! timeout: 60
570
+ # if result.response?
571
+ # p result.response
572
+ # else
573
+ # puts "No response received."
574
+ # end
575
+ #
576
+ def update_endpoint_policy request, options = nil
577
+ raise ::ArgumentError, "request must be provided" if request.nil?
578
+
579
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1beta1::UpdateEndpointPolicyRequest
580
+
581
+ # Converts hash and nil to an options object
582
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
583
+
584
+ # Customize the options with defaults
585
+ metadata = @config.rpcs.update_endpoint_policy.metadata.to_h
586
+
587
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
588
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
589
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
590
+ gapic_version: ::Google::Cloud::NetworkServices::V1beta1::VERSION
591
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
592
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
593
+
594
+ header_params = {}
595
+ if request.endpoint_policy&.name
596
+ header_params["endpoint_policy.name"] = request.endpoint_policy.name
597
+ end
598
+
599
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
600
+ metadata[:"x-goog-request-params"] ||= request_params_header
601
+
602
+ options.apply_defaults timeout: @config.rpcs.update_endpoint_policy.timeout,
603
+ metadata: metadata,
604
+ retry_policy: @config.rpcs.update_endpoint_policy.retry_policy
605
+
606
+ options.apply_defaults timeout: @config.timeout,
607
+ metadata: @config.metadata,
608
+ retry_policy: @config.retry_policy
609
+
610
+ @network_services_stub.call_rpc :update_endpoint_policy, request, options: options do |response, operation|
611
+ response = ::Gapic::Operation.new response, @operations_client, options: options
612
+ yield response, operation if block_given?
613
+ throw :response, response
614
+ end
615
+ rescue ::GRPC::BadStatus => e
616
+ raise ::Google::Cloud::Error.from_error(e)
617
+ end
618
+
619
+ ##
620
+ # Deletes a single EndpointPolicy.
621
+ #
622
+ # @overload delete_endpoint_policy(request, options = nil)
623
+ # Pass arguments to `delete_endpoint_policy` via a request object, either of type
624
+ # {::Google::Cloud::NetworkServices::V1beta1::DeleteEndpointPolicyRequest} or an equivalent Hash.
625
+ #
626
+ # @param request [::Google::Cloud::NetworkServices::V1beta1::DeleteEndpointPolicyRequest, ::Hash]
627
+ # A request object representing the call parameters. Required. To specify no
628
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
629
+ # @param options [::Gapic::CallOptions, ::Hash]
630
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
631
+ #
632
+ # @overload delete_endpoint_policy(name: nil)
633
+ # Pass arguments to `delete_endpoint_policy` via keyword arguments. Note that at
634
+ # least one keyword argument is required. To specify no parameters, or to keep all
635
+ # the default parameter values, pass an empty Hash as a request object (see above).
636
+ #
637
+ # @param name [::String]
638
+ # Required. A name of the EndpointPolicy to delete. Must be in the format
639
+ # `projects/*/locations/global/endpointPolicies/*`.
640
+ #
641
+ # @yield [response, operation] Access the result along with the RPC operation
642
+ # @yieldparam response [::Gapic::Operation]
643
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
644
+ #
645
+ # @return [::Gapic::Operation]
646
+ #
647
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
648
+ #
649
+ # @example Basic example
650
+ # require "google/cloud/network_services/v1beta1"
651
+ #
652
+ # # Create a client object. The client can be reused for multiple calls.
653
+ # client = Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client.new
654
+ #
655
+ # # Create a request. To set request fields, pass in keyword arguments.
656
+ # request = Google::Cloud::NetworkServices::V1beta1::DeleteEndpointPolicyRequest.new
657
+ #
658
+ # # Call the delete_endpoint_policy method.
659
+ # result = client.delete_endpoint_policy request
660
+ #
661
+ # # The returned object is of type Gapic::Operation. You can use it to
662
+ # # check the status of an operation, cancel it, or wait for results.
663
+ # # Here is how to wait for a response.
664
+ # result.wait_until_done! timeout: 60
665
+ # if result.response?
666
+ # p result.response
667
+ # else
668
+ # puts "No response received."
669
+ # end
670
+ #
671
+ def delete_endpoint_policy request, options = nil
672
+ raise ::ArgumentError, "request must be provided" if request.nil?
673
+
674
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1beta1::DeleteEndpointPolicyRequest
675
+
676
+ # Converts hash and nil to an options object
677
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
678
+
679
+ # Customize the options with defaults
680
+ metadata = @config.rpcs.delete_endpoint_policy.metadata.to_h
681
+
682
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
683
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
684
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
685
+ gapic_version: ::Google::Cloud::NetworkServices::V1beta1::VERSION
686
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
687
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
688
+
689
+ header_params = {}
690
+ if request.name
691
+ header_params["name"] = request.name
692
+ end
693
+
694
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
695
+ metadata[:"x-goog-request-params"] ||= request_params_header
696
+
697
+ options.apply_defaults timeout: @config.rpcs.delete_endpoint_policy.timeout,
698
+ metadata: metadata,
699
+ retry_policy: @config.rpcs.delete_endpoint_policy.retry_policy
700
+
701
+ options.apply_defaults timeout: @config.timeout,
702
+ metadata: @config.metadata,
703
+ retry_policy: @config.retry_policy
704
+
705
+ @network_services_stub.call_rpc :delete_endpoint_policy, request, options: options do |response, operation|
706
+ response = ::Gapic::Operation.new response, @operations_client, options: options
707
+ yield response, operation if block_given?
708
+ throw :response, response
709
+ end
710
+ rescue ::GRPC::BadStatus => e
711
+ raise ::Google::Cloud::Error.from_error(e)
712
+ end
713
+
714
+ ##
715
+ # Configuration class for the NetworkServices API.
716
+ #
717
+ # This class represents the configuration for NetworkServices,
718
+ # providing control over timeouts, retry behavior, logging, transport
719
+ # parameters, and other low-level controls. Certain parameters can also be
720
+ # applied individually to specific RPCs. See
721
+ # {::Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client::Configuration::Rpcs}
722
+ # for a list of RPCs that can be configured independently.
723
+ #
724
+ # Configuration can be applied globally to all clients, or to a single client
725
+ # on construction.
726
+ #
727
+ # @example
728
+ #
729
+ # # Modify the global config, setting the timeout for
730
+ # # list_endpoint_policies to 20 seconds,
731
+ # # and all remaining timeouts to 10 seconds.
732
+ # ::Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client.configure do |config|
733
+ # config.timeout = 10.0
734
+ # config.rpcs.list_endpoint_policies.timeout = 20.0
735
+ # end
736
+ #
737
+ # # Apply the above configuration only to a new client.
738
+ # client = ::Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client.new do |config|
739
+ # config.timeout = 10.0
740
+ # config.rpcs.list_endpoint_policies.timeout = 20.0
741
+ # end
742
+ #
743
+ # @!attribute [rw] endpoint
744
+ # A custom service endpoint, as a hostname or hostname:port. The default is
745
+ # nil, indicating to use the default endpoint in the current universe domain.
746
+ # @return [::String,nil]
747
+ # @!attribute [rw] credentials
748
+ # Credentials to send with calls. You may provide any of the following types:
749
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
750
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
751
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
752
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
753
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
754
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
755
+ # * (`nil`) indicating no credentials
756
+ #
757
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
758
+ # is deprecated. Providing an unvalidated credential configuration to
759
+ # Google APIs can compromise the security of your systems and data.
760
+ #
761
+ # @example
762
+ #
763
+ # # The recommended way to provide credentials is to use the `make_creds` method
764
+ # # on the appropriate credentials class for your environment.
765
+ #
766
+ # require "googleauth"
767
+ #
768
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
769
+ # json_key_io: ::File.open("/path/to/keyfile.json")
770
+ # )
771
+ #
772
+ # client = ::Google::Cloud::NetworkServices::V1beta1::NetworkServices::Client.new do |config|
773
+ # config.credentials = credentials
774
+ # end
775
+ #
776
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
777
+ # external source for authentication to Google Cloud, you must validate it before
778
+ # providing it to a Google API client library. Providing an unvalidated credential
779
+ # configuration to Google APIs can compromise the security of your systems and data.
780
+ # For more information, refer to [Validate credential configurations from external
781
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
782
+ # @return [::Object]
783
+ # @!attribute [rw] scope
784
+ # The OAuth scopes
785
+ # @return [::Array<::String>]
786
+ # @!attribute [rw] lib_name
787
+ # The library name as recorded in instrumentation and logging
788
+ # @return [::String]
789
+ # @!attribute [rw] lib_version
790
+ # The library version as recorded in instrumentation and logging
791
+ # @return [::String]
792
+ # @!attribute [rw] channel_args
793
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
794
+ # `GRPC::Core::Channel` object is provided as the credential.
795
+ # @return [::Hash]
796
+ # @!attribute [rw] interceptors
797
+ # An array of interceptors that are run before calls are executed.
798
+ # @return [::Array<::GRPC::ClientInterceptor>]
799
+ # @!attribute [rw] timeout
800
+ # The call timeout in seconds.
801
+ # @return [::Numeric]
802
+ # @!attribute [rw] metadata
803
+ # Additional gRPC headers to be sent with the call.
804
+ # @return [::Hash{::Symbol=>::String}]
805
+ # @!attribute [rw] retry_policy
806
+ # The retry policy. The value is a hash with the following keys:
807
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
808
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
809
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
810
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
811
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
812
+ # trigger a retry.
813
+ # @return [::Hash]
814
+ # @!attribute [rw] quota_project
815
+ # A separate project against which to charge quota.
816
+ # @return [::String]
817
+ # @!attribute [rw] universe_domain
818
+ # The universe domain within which to make requests. This determines the
819
+ # default endpoint URL. The default value of nil uses the environment
820
+ # universe (usually the default "googleapis.com" universe).
821
+ # @return [::String,nil]
822
+ # @!attribute [rw] logger
823
+ # A custom logger to use for request/response debug logging, or the value
824
+ # `:default` (the default) to construct a default logger, or `nil` to
825
+ # explicitly disable logging.
826
+ # @return [::Logger,:default,nil]
827
+ #
828
+ class Configuration
829
+ extend ::Gapic::Config
830
+
831
+ # @private
832
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
833
+ DEFAULT_ENDPOINT = "networkservices.googleapis.com"
834
+
835
+ config_attr :endpoint, nil, ::String, nil
836
+ config_attr :credentials, nil do |value|
837
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
838
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
839
+ allowed.any? { |klass| klass === value }
840
+ end
841
+ config_attr :scope, nil, ::String, ::Array, nil
842
+ config_attr :lib_name, nil, ::String, nil
843
+ config_attr :lib_version, nil, ::String, nil
844
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
845
+ config_attr :interceptors, nil, ::Array, nil
846
+ config_attr :timeout, nil, ::Numeric, nil
847
+ config_attr :metadata, nil, ::Hash, nil
848
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
849
+ config_attr :quota_project, nil, ::String, nil
850
+ config_attr :universe_domain, nil, ::String, nil
851
+ config_attr :logger, :default, ::Logger, nil, :default
852
+
853
+ # @private
854
+ def initialize parent_config = nil
855
+ @parent_config = parent_config unless parent_config.nil?
856
+
857
+ yield self if block_given?
858
+ end
859
+
860
+ ##
861
+ # Configurations for individual RPCs
862
+ # @return [Rpcs]
863
+ #
864
+ def rpcs
865
+ @rpcs ||= begin
866
+ parent_rpcs = nil
867
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
868
+ Rpcs.new parent_rpcs
869
+ end
870
+ end
871
+
872
+ ##
873
+ # Configuration for the channel pool
874
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
875
+ #
876
+ def channel_pool
877
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
878
+ end
879
+
880
+ ##
881
+ # Configuration RPC class for the NetworkServices API.
882
+ #
883
+ # Includes fields providing the configuration for each RPC in this service.
884
+ # Each configuration object is of type `Gapic::Config::Method` and includes
885
+ # the following configuration fields:
886
+ #
887
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
888
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
889
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
890
+ # include the following keys:
891
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
892
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
893
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
894
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
895
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
896
+ # trigger a retry.
897
+ #
898
+ class Rpcs
899
+ ##
900
+ # RPC-specific configuration for `list_endpoint_policies`
901
+ # @return [::Gapic::Config::Method]
902
+ #
903
+ attr_reader :list_endpoint_policies
904
+ ##
905
+ # RPC-specific configuration for `get_endpoint_policy`
906
+ # @return [::Gapic::Config::Method]
907
+ #
908
+ attr_reader :get_endpoint_policy
909
+ ##
910
+ # RPC-specific configuration for `create_endpoint_policy`
911
+ # @return [::Gapic::Config::Method]
912
+ #
913
+ attr_reader :create_endpoint_policy
914
+ ##
915
+ # RPC-specific configuration for `update_endpoint_policy`
916
+ # @return [::Gapic::Config::Method]
917
+ #
918
+ attr_reader :update_endpoint_policy
919
+ ##
920
+ # RPC-specific configuration for `delete_endpoint_policy`
921
+ # @return [::Gapic::Config::Method]
922
+ #
923
+ attr_reader :delete_endpoint_policy
924
+
925
+ # @private
926
+ def initialize parent_rpcs = nil
927
+ list_endpoint_policies_config = parent_rpcs.list_endpoint_policies if parent_rpcs.respond_to? :list_endpoint_policies
928
+ @list_endpoint_policies = ::Gapic::Config::Method.new list_endpoint_policies_config
929
+ get_endpoint_policy_config = parent_rpcs.get_endpoint_policy if parent_rpcs.respond_to? :get_endpoint_policy
930
+ @get_endpoint_policy = ::Gapic::Config::Method.new get_endpoint_policy_config
931
+ create_endpoint_policy_config = parent_rpcs.create_endpoint_policy if parent_rpcs.respond_to? :create_endpoint_policy
932
+ @create_endpoint_policy = ::Gapic::Config::Method.new create_endpoint_policy_config
933
+ update_endpoint_policy_config = parent_rpcs.update_endpoint_policy if parent_rpcs.respond_to? :update_endpoint_policy
934
+ @update_endpoint_policy = ::Gapic::Config::Method.new update_endpoint_policy_config
935
+ delete_endpoint_policy_config = parent_rpcs.delete_endpoint_policy if parent_rpcs.respond_to? :delete_endpoint_policy
936
+ @delete_endpoint_policy = ::Gapic::Config::Method.new delete_endpoint_policy_config
937
+
938
+ yield self if block_given?
939
+ end
940
+ end
941
+ end
942
+ end
943
+ end
944
+ end
945
+ end
946
+ end
947
+ end