google-cloud-network_security-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 (126) 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_security/v1/address_group_service/client.rb +1457 -0
  6. data/lib/google/cloud/network_security/v1/address_group_service/credentials.rb +47 -0
  7. data/lib/google/cloud/network_security/v1/address_group_service/operations.rb +843 -0
  8. data/lib/google/cloud/network_security/v1/address_group_service/paths.rb +110 -0
  9. data/lib/google/cloud/network_security/v1/address_group_service.rb +52 -0
  10. data/lib/google/cloud/network_security/v1/dns_threat_detector_service/client.rb +900 -0
  11. data/lib/google/cloud/network_security/v1/dns_threat_detector_service/credentials.rb +47 -0
  12. data/lib/google/cloud/network_security/v1/dns_threat_detector_service/paths.rb +86 -0
  13. data/lib/google/cloud/network_security/v1/dns_threat_detector_service.rb +49 -0
  14. data/lib/google/cloud/network_security/v1/firewall_activation/client.rb +2098 -0
  15. data/lib/google/cloud/network_security/v1/firewall_activation/credentials.rb +47 -0
  16. data/lib/google/cloud/network_security/v1/firewall_activation/operations.rb +843 -0
  17. data/lib/google/cloud/network_security/v1/firewall_activation/paths.rb +165 -0
  18. data/lib/google/cloud/network_security/v1/firewall_activation.rb +50 -0
  19. data/lib/google/cloud/network_security/v1/intercept/client.rb +2599 -0
  20. data/lib/google/cloud/network_security/v1/intercept/credentials.rb +47 -0
  21. data/lib/google/cloud/network_security/v1/intercept/operations.rb +843 -0
  22. data/lib/google/cloud/network_security/v1/intercept/paths.rb +160 -0
  23. data/lib/google/cloud/network_security/v1/intercept.rb +51 -0
  24. data/lib/google/cloud/network_security/v1/mirroring/client.rb +2598 -0
  25. data/lib/google/cloud/network_security/v1/mirroring/credentials.rb +47 -0
  26. data/lib/google/cloud/network_security/v1/mirroring/operations.rb +843 -0
  27. data/lib/google/cloud/network_security/v1/mirroring/paths.rb +160 -0
  28. data/lib/google/cloud/network_security/v1/mirroring.rb +50 -0
  29. data/lib/google/cloud/network_security/v1/network_security/client.rb +5161 -0
  30. data/lib/google/cloud/network_security/v1/network_security/credentials.rb +47 -0
  31. data/lib/google/cloud/network_security/v1/network_security/operations.rb +843 -0
  32. data/lib/google/cloud/network_security/v1/network_security/paths.rb +280 -0
  33. data/lib/google/cloud/network_security/v1/network_security.rb +52 -0
  34. data/lib/google/cloud/network_security/v1/organization_address_group_service/client.rb +1457 -0
  35. data/lib/google/cloud/network_security/v1/organization_address_group_service/credentials.rb +47 -0
  36. data/lib/google/cloud/network_security/v1/organization_address_group_service/operations.rb +843 -0
  37. data/lib/google/cloud/network_security/v1/organization_address_group_service/paths.rb +110 -0
  38. data/lib/google/cloud/network_security/v1/organization_address_group_service.rb +52 -0
  39. data/lib/google/cloud/network_security/v1/organization_security_profile_group_service/client.rb +1471 -0
  40. data/lib/google/cloud/network_security/v1/organization_security_profile_group_service/credentials.rb +47 -0
  41. data/lib/google/cloud/network_security/v1/organization_security_profile_group_service/operations.rb +843 -0
  42. data/lib/google/cloud/network_security/v1/organization_security_profile_group_service/paths.rb +191 -0
  43. data/lib/google/cloud/network_security/v1/organization_security_profile_group_service.rb +50 -0
  44. data/lib/google/cloud/network_security/v1/security_profile_group_service/client.rb +1472 -0
  45. data/lib/google/cloud/network_security/v1/security_profile_group_service/credentials.rb +47 -0
  46. data/lib/google/cloud/network_security/v1/security_profile_group_service/operations.rb +843 -0
  47. data/lib/google/cloud/network_security/v1/security_profile_group_service/paths.rb +191 -0
  48. data/lib/google/cloud/network_security/v1/security_profile_group_service.rb +51 -0
  49. data/lib/google/cloud/network_security/v1/sse_realm_service/client.rb +1316 -0
  50. data/lib/google/cloud/network_security/v1/sse_realm_service/credentials.rb +47 -0
  51. data/lib/google/cloud/network_security/v1/sse_realm_service/operations.rb +843 -0
  52. data/lib/google/cloud/network_security/v1/sse_realm_service/paths.rb +88 -0
  53. data/lib/google/cloud/network_security/v1/sse_realm_service.rb +50 -0
  54. data/lib/google/cloud/network_security/v1/version.rb +7 -2
  55. data/lib/google/cloud/network_security/v1.rb +49 -0
  56. data/lib/google/cloud/networksecurity/v1/address_group_pb.rb +46 -0
  57. data/lib/google/cloud/networksecurity/v1/address_group_services_pb.rb +97 -0
  58. data/lib/google/cloud/networksecurity/v1/authorization_policy_pb.rb +37 -0
  59. data/lib/google/cloud/networksecurity/v1/authz_policy_pb.rb +56 -0
  60. data/lib/google/cloud/networksecurity/v1/backend_authentication_config_pb.rb +33 -0
  61. data/lib/google/cloud/networksecurity/v1/client_tls_policy_pb.rb +33 -0
  62. data/lib/google/cloud/networksecurity/v1/common_pb.rb +24 -0
  63. data/lib/google/cloud/networksecurity/v1/dns_threat_detector_pb.rb +36 -0
  64. data/lib/google/cloud/networksecurity/v1/dns_threat_detector_services_pb.rb +53 -0
  65. data/lib/google/cloud/networksecurity/v1/firewall_activation_pb.rb +48 -0
  66. data/lib/google/cloud/networksecurity/v1/firewall_activation_services_pb.rb +73 -0
  67. data/lib/google/cloud/networksecurity/v1/gateway_security_policy_pb.rb +32 -0
  68. data/lib/google/cloud/networksecurity/v1/gateway_security_policy_rule_pb.rb +33 -0
  69. data/lib/google/cloud/networksecurity/v1/intercept_pb.rb +71 -0
  70. data/lib/google/cloud/networksecurity/v1/intercept_services_pb.rb +104 -0
  71. data/lib/google/cloud/networksecurity/v1/mirroring_pb.rb +72 -0
  72. data/lib/google/cloud/networksecurity/v1/mirroring_services_pb.rb +103 -0
  73. data/lib/google/cloud/networksecurity/v1/network_security_pb.rb +35 -0
  74. data/lib/google/cloud/networksecurity/v1/network_security_services_pb.rb +138 -0
  75. data/lib/google/cloud/networksecurity/v1/security_profile_group_intercept_pb.rb +24 -0
  76. data/lib/google/cloud/networksecurity/v1/security_profile_group_mirroring_pb.rb +24 -0
  77. data/lib/google/cloud/networksecurity/v1/security_profile_group_pb.rb +31 -0
  78. data/lib/google/cloud/networksecurity/v1/security_profile_group_service_pb.rb +42 -0
  79. data/lib/google/cloud/networksecurity/v1/security_profile_group_service_services_pb.rb +98 -0
  80. data/lib/google/cloud/networksecurity/v1/security_profile_group_threatprevention_pb.rb +30 -0
  81. data/lib/google/cloud/networksecurity/v1/security_profile_group_urlfiltering_pb.rb +25 -0
  82. data/lib/google/cloud/networksecurity/v1/server_tls_policy_pb.rb +35 -0
  83. data/lib/google/cloud/networksecurity/v1/sse_realm_pb.rb +46 -0
  84. data/lib/google/cloud/networksecurity/v1/sse_realm_services_pb.rb +59 -0
  85. data/lib/google/cloud/networksecurity/v1/tls_inspection_policy_pb.rb +34 -0
  86. data/lib/google/cloud/networksecurity/v1/tls_pb.rb +26 -0
  87. data/lib/google/cloud/networksecurity/v1/url_list_pb.rb +32 -0
  88. data/lib/google-cloud-network_security-v1.rb +21 -0
  89. data/proto_docs/README.md +4 -0
  90. data/proto_docs/google/api/client.rb +593 -0
  91. data/proto_docs/google/api/field_behavior.rb +85 -0
  92. data/proto_docs/google/api/field_info.rb +88 -0
  93. data/proto_docs/google/api/launch_stage.rb +71 -0
  94. data/proto_docs/google/api/resource.rb +227 -0
  95. data/proto_docs/google/cloud/networksecurity/v1/address_group.rb +374 -0
  96. data/proto_docs/google/cloud/networksecurity/v1/authorization_policy.rb +263 -0
  97. data/proto_docs/google/cloud/networksecurity/v1/authz_policy.rb +735 -0
  98. data/proto_docs/google/cloud/networksecurity/v1/backend_authentication_config.rb +217 -0
  99. data/proto_docs/google/cloud/networksecurity/v1/client_tls_policy.rb +162 -0
  100. data/proto_docs/google/cloud/networksecurity/v1/common.rb +57 -0
  101. data/proto_docs/google/cloud/networksecurity/v1/dns_threat_detector.rb +159 -0
  102. data/proto_docs/google/cloud/networksecurity/v1/firewall_activation.rb +469 -0
  103. data/proto_docs/google/cloud/networksecurity/v1/gateway_security_policy.rb +144 -0
  104. data/proto_docs/google/cloud/networksecurity/v1/gateway_security_policy_rule.rb +178 -0
  105. data/proto_docs/google/cloud/networksecurity/v1/intercept.rb +960 -0
  106. data/proto_docs/google/cloud/networksecurity/v1/mirroring.rb +970 -0
  107. data/proto_docs/google/cloud/networksecurity/v1/security_profile_group.rb +166 -0
  108. data/proto_docs/google/cloud/networksecurity/v1/security_profile_group_intercept.rb +38 -0
  109. data/proto_docs/google/cloud/networksecurity/v1/security_profile_group_mirroring.rb +38 -0
  110. data/proto_docs/google/cloud/networksecurity/v1/security_profile_group_service.rb +211 -0
  111. data/proto_docs/google/cloud/networksecurity/v1/security_profile_group_threatprevention.rb +193 -0
  112. data/proto_docs/google/cloud/networksecurity/v1/security_profile_group_urlfiltering.rb +66 -0
  113. data/proto_docs/google/cloud/networksecurity/v1/server_tls_policy.rb +251 -0
  114. data/proto_docs/google/cloud/networksecurity/v1/sse_realm.rb +388 -0
  115. data/proto_docs/google/cloud/networksecurity/v1/tls.rb +90 -0
  116. data/proto_docs/google/cloud/networksecurity/v1/tls_inspection_policy.rb +239 -0
  117. data/proto_docs/google/cloud/networksecurity/v1/url_list.rb +144 -0
  118. data/proto_docs/google/longrunning/operations.rb +191 -0
  119. data/proto_docs/google/protobuf/any.rb +145 -0
  120. data/proto_docs/google/protobuf/duration.rb +98 -0
  121. data/proto_docs/google/protobuf/empty.rb +34 -0
  122. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  123. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  124. data/proto_docs/google/rpc/status.rb +48 -0
  125. data/proto_docs/google/type/expr.rb +75 -0
  126. metadata +186 -9
@@ -0,0 +1,2599 @@
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/networksecurity/v1/intercept_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1"
23
+
24
+ module Google
25
+ module Cloud
26
+ module NetworkSecurity
27
+ module V1
28
+ module Intercept
29
+ ##
30
+ # Client for the Intercept service.
31
+ #
32
+ # Service for Third-Party Packet Intercept (TPPI).
33
+ # TPPI is the "in-band" flavor of the Network Security Integrations product.
34
+ #
35
+ class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
39
+ # @private
40
+ DEFAULT_ENDPOINT_TEMPLATE = "networksecurity.$UNIVERSE_DOMAIN$"
41
+
42
+ include Paths
43
+
44
+ # @private
45
+ attr_reader :intercept_stub
46
+
47
+ ##
48
+ # Configure the Intercept Client class.
49
+ #
50
+ # See {::Google::Cloud::NetworkSecurity::V1::Intercept::Client::Configuration}
51
+ # for a description of the configuration fields.
52
+ #
53
+ # @example
54
+ #
55
+ # # Modify the configuration for all Intercept clients
56
+ # ::Google::Cloud::NetworkSecurity::V1::Intercept::Client.configure do |config|
57
+ # config.timeout = 10.0
58
+ # end
59
+ #
60
+ # @yield [config] Configure the Client client.
61
+ # @yieldparam config [Client::Configuration]
62
+ #
63
+ # @return [Client::Configuration]
64
+ #
65
+ def self.configure
66
+ @configure ||= begin
67
+ namespace = ["Google", "Cloud", "NetworkSecurity", "V1"]
68
+ parent_config = while namespace.any?
69
+ parent_name = namespace.join "::"
70
+ parent_const = const_get parent_name
71
+ break parent_const.configure if parent_const.respond_to? :configure
72
+ namespace.pop
73
+ end
74
+ default_config = Client::Configuration.new parent_config
75
+
76
+ default_config
77
+ end
78
+ yield @configure if block_given?
79
+ @configure
80
+ end
81
+
82
+ ##
83
+ # Configure the Intercept Client instance.
84
+ #
85
+ # The configuration is set to the derived mode, meaning that values can be changed,
86
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
87
+ # should be made on {Client.configure}.
88
+ #
89
+ # See {::Google::Cloud::NetworkSecurity::V1::Intercept::Client::Configuration}
90
+ # for a description of the configuration fields.
91
+ #
92
+ # @yield [config] Configure the Client client.
93
+ # @yieldparam config [Client::Configuration]
94
+ #
95
+ # @return [Client::Configuration]
96
+ #
97
+ def configure
98
+ yield @config if block_given?
99
+ @config
100
+ end
101
+
102
+ ##
103
+ # The effective universe domain
104
+ #
105
+ # @return [String]
106
+ #
107
+ def universe_domain
108
+ @intercept_stub.universe_domain
109
+ end
110
+
111
+ ##
112
+ # Create a new Intercept client object.
113
+ #
114
+ # @example
115
+ #
116
+ # # Create a client using the default configuration
117
+ # client = ::Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
118
+ #
119
+ # # Create a client using a custom configuration
120
+ # client = ::Google::Cloud::NetworkSecurity::V1::Intercept::Client.new do |config|
121
+ # config.timeout = 10.0
122
+ # end
123
+ #
124
+ # @yield [config] Configure the Intercept client.
125
+ # @yieldparam config [Client::Configuration]
126
+ #
127
+ def initialize
128
+ # These require statements are intentionally placed here to initialize
129
+ # the gRPC module only when it's required.
130
+ # See https://github.com/googleapis/toolkit/issues/446
131
+ require "gapic/grpc"
132
+ require "google/cloud/networksecurity/v1/intercept_services_pb"
133
+
134
+ # Create the configuration object
135
+ @config = Configuration.new Client.configure
136
+
137
+ # Yield the configuration if needed
138
+ yield @config if block_given?
139
+
140
+ # Create credentials
141
+ credentials = @config.credentials
142
+ # Use self-signed JWT if the endpoint is unchanged from default,
143
+ # but only if the default endpoint does not have a region prefix.
144
+ enable_self_signed_jwt = @config.endpoint.nil? ||
145
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
146
+ !@config.endpoint.split(".").first.include?("-"))
147
+ credentials ||= Credentials.default scope: @config.scope,
148
+ enable_self_signed_jwt: enable_self_signed_jwt
149
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
150
+ credentials = Credentials.new credentials, scope: @config.scope
151
+ end
152
+ @quota_project_id = @config.quota_project
153
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
154
+
155
+ @operations_client = Operations.new do |config|
156
+ config.credentials = credentials
157
+ config.quota_project = @quota_project_id
158
+ config.endpoint = @config.endpoint
159
+ config.universe_domain = @config.universe_domain
160
+ end
161
+
162
+ @intercept_stub = ::Gapic::ServiceStub.new(
163
+ ::Google::Cloud::NetworkSecurity::V1::Intercept::Stub,
164
+ credentials: credentials,
165
+ endpoint: @config.endpoint,
166
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
167
+ universe_domain: @config.universe_domain,
168
+ channel_args: @config.channel_args,
169
+ interceptors: @config.interceptors,
170
+ channel_pool_config: @config.channel_pool,
171
+ logger: @config.logger
172
+ )
173
+
174
+ @intercept_stub.stub_logger&.info do |entry|
175
+ entry.set_system_name
176
+ entry.set_service
177
+ entry.message = "Created client for #{entry.service}"
178
+ entry.set_credentials_fields credentials
179
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
180
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
181
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
182
+ end
183
+
184
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
185
+ config.credentials = credentials
186
+ config.quota_project = @quota_project_id
187
+ config.endpoint = @intercept_stub.endpoint
188
+ config.universe_domain = @intercept_stub.universe_domain
189
+ config.logger = @intercept_stub.logger if config.respond_to? :logger=
190
+ end
191
+
192
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
193
+ config.credentials = credentials
194
+ config.quota_project = @quota_project_id
195
+ config.endpoint = @intercept_stub.endpoint
196
+ config.universe_domain = @intercept_stub.universe_domain
197
+ config.logger = @intercept_stub.logger if config.respond_to? :logger=
198
+ end
199
+ end
200
+
201
+ ##
202
+ # Get the associated client for long-running operations.
203
+ #
204
+ # @return [::Google::Cloud::NetworkSecurity::V1::Intercept::Operations]
205
+ #
206
+ attr_reader :operations_client
207
+
208
+ ##
209
+ # Get the associated client for mix-in of the Locations.
210
+ #
211
+ # @return [Google::Cloud::Location::Locations::Client]
212
+ #
213
+ attr_reader :location_client
214
+
215
+ ##
216
+ # Get the associated client for mix-in of the IAMPolicy.
217
+ #
218
+ # @return [Google::Iam::V1::IAMPolicy::Client]
219
+ #
220
+ attr_reader :iam_policy_client
221
+
222
+ ##
223
+ # The logger used for request/response debug logging.
224
+ #
225
+ # @return [Logger]
226
+ #
227
+ def logger
228
+ @intercept_stub.logger
229
+ end
230
+
231
+ # Service calls
232
+
233
+ ##
234
+ # Lists endpoint groups in a given project and location.
235
+ # See https://google.aip.dev/132.
236
+ #
237
+ # @overload list_intercept_endpoint_groups(request, options = nil)
238
+ # Pass arguments to `list_intercept_endpoint_groups` via a request object, either of type
239
+ # {::Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupsRequest} or an equivalent Hash.
240
+ #
241
+ # @param request [::Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupsRequest, ::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_intercept_endpoint_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
248
+ # Pass arguments to `list_intercept_endpoint_groups` 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 parent, which owns this collection of endpoint groups.
254
+ # Example: `projects/123456789/locations/global`.
255
+ # See https://google.aip.dev/132 for more details.
256
+ # @param page_size [::Integer]
257
+ # Optional. Requested page size. Server may return fewer items than
258
+ # requested. If unspecified, server will pick an appropriate default. See
259
+ # https://google.aip.dev/158 for more details.
260
+ # @param page_token [::String]
261
+ # Optional. A page token, received from a previous
262
+ # `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
263
+ # page. When paginating, all other parameters provided to
264
+ # `ListInterceptEndpointGroups` must match the call that provided the page
265
+ # token.
266
+ # See https://google.aip.dev/158 for more details.
267
+ # @param filter [::String]
268
+ # Optional. Filter expression.
269
+ # See https://google.aip.dev/160#filtering for more details.
270
+ # @param order_by [::String]
271
+ # Optional. Sort expression.
272
+ # See https://google.aip.dev/132#ordering for more details.
273
+ #
274
+ # @yield [response, operation] Access the result along with the RPC operation
275
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup>]
276
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
277
+ #
278
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup>]
279
+ #
280
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
281
+ #
282
+ # @example Basic example
283
+ # require "google/cloud/network_security/v1"
284
+ #
285
+ # # Create a client object. The client can be reused for multiple calls.
286
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
287
+ #
288
+ # # Create a request. To set request fields, pass in keyword arguments.
289
+ # request = Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupsRequest.new
290
+ #
291
+ # # Call the list_intercept_endpoint_groups method.
292
+ # result = client.list_intercept_endpoint_groups request
293
+ #
294
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
295
+ # # over elements, and API calls will be issued to fetch pages as needed.
296
+ # result.each do |item|
297
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup.
298
+ # p item
299
+ # end
300
+ #
301
+ def list_intercept_endpoint_groups request, options = nil
302
+ raise ::ArgumentError, "request must be provided" if request.nil?
303
+
304
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupsRequest
305
+
306
+ # Converts hash and nil to an options object
307
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
308
+
309
+ # Customize the options with defaults
310
+ metadata = @config.rpcs.list_intercept_endpoint_groups.metadata.to_h
311
+
312
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
313
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
314
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
315
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
316
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
317
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
318
+
319
+ header_params = {}
320
+ if request.parent
321
+ header_params["parent"] = request.parent
322
+ end
323
+
324
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
325
+ metadata[:"x-goog-request-params"] ||= request_params_header
326
+
327
+ options.apply_defaults timeout: @config.rpcs.list_intercept_endpoint_groups.timeout,
328
+ metadata: metadata,
329
+ retry_policy: @config.rpcs.list_intercept_endpoint_groups.retry_policy
330
+
331
+ options.apply_defaults timeout: @config.timeout,
332
+ metadata: @config.metadata,
333
+ retry_policy: @config.retry_policy
334
+
335
+ @intercept_stub.call_rpc :list_intercept_endpoint_groups, request, options: options do |response, operation|
336
+ response = ::Gapic::PagedEnumerable.new @intercept_stub, :list_intercept_endpoint_groups, request, response, operation, options
337
+ yield response, operation if block_given?
338
+ throw :response, response
339
+ end
340
+ rescue ::GRPC::BadStatus => e
341
+ raise ::Google::Cloud::Error.from_error(e)
342
+ end
343
+
344
+ ##
345
+ # Gets a specific endpoint group.
346
+ # See https://google.aip.dev/131.
347
+ #
348
+ # @overload get_intercept_endpoint_group(request, options = nil)
349
+ # Pass arguments to `get_intercept_endpoint_group` via a request object, either of type
350
+ # {::Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupRequest} or an equivalent Hash.
351
+ #
352
+ # @param request [::Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupRequest, ::Hash]
353
+ # A request object representing the call parameters. Required. To specify no
354
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
355
+ # @param options [::Gapic::CallOptions, ::Hash]
356
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
357
+ #
358
+ # @overload get_intercept_endpoint_group(name: nil)
359
+ # Pass arguments to `get_intercept_endpoint_group` via keyword arguments. Note that at
360
+ # least one keyword argument is required. To specify no parameters, or to keep all
361
+ # the default parameter values, pass an empty Hash as a request object (see above).
362
+ #
363
+ # @param name [::String]
364
+ # Required. The name of the endpoint group to retrieve.
365
+ # Format:
366
+ # projects/\\{project}/locations/\\{location}/interceptEndpointGroups/\\{intercept_endpoint_group}
367
+ #
368
+ # @yield [response, operation] Access the result along with the RPC operation
369
+ # @yieldparam response [::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup]
370
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
371
+ #
372
+ # @return [::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup]
373
+ #
374
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
375
+ #
376
+ # @example Basic example
377
+ # require "google/cloud/network_security/v1"
378
+ #
379
+ # # Create a client object. The client can be reused for multiple calls.
380
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
381
+ #
382
+ # # Create a request. To set request fields, pass in keyword arguments.
383
+ # request = Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupRequest.new
384
+ #
385
+ # # Call the get_intercept_endpoint_group method.
386
+ # result = client.get_intercept_endpoint_group request
387
+ #
388
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup.
389
+ # p result
390
+ #
391
+ def get_intercept_endpoint_group request, options = nil
392
+ raise ::ArgumentError, "request must be provided" if request.nil?
393
+
394
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupRequest
395
+
396
+ # Converts hash and nil to an options object
397
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
398
+
399
+ # Customize the options with defaults
400
+ metadata = @config.rpcs.get_intercept_endpoint_group.metadata.to_h
401
+
402
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
403
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
404
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
405
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
406
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
407
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
408
+
409
+ header_params = {}
410
+ if request.name
411
+ header_params["name"] = request.name
412
+ end
413
+
414
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
415
+ metadata[:"x-goog-request-params"] ||= request_params_header
416
+
417
+ options.apply_defaults timeout: @config.rpcs.get_intercept_endpoint_group.timeout,
418
+ metadata: metadata,
419
+ retry_policy: @config.rpcs.get_intercept_endpoint_group.retry_policy
420
+
421
+ options.apply_defaults timeout: @config.timeout,
422
+ metadata: @config.metadata,
423
+ retry_policy: @config.retry_policy
424
+
425
+ @intercept_stub.call_rpc :get_intercept_endpoint_group, request, options: options do |response, operation|
426
+ yield response, operation if block_given?
427
+ end
428
+ rescue ::GRPC::BadStatus => e
429
+ raise ::Google::Cloud::Error.from_error(e)
430
+ end
431
+
432
+ ##
433
+ # Creates an endpoint group in a given project and location.
434
+ # See https://google.aip.dev/133.
435
+ #
436
+ # @overload create_intercept_endpoint_group(request, options = nil)
437
+ # Pass arguments to `create_intercept_endpoint_group` via a request object, either of type
438
+ # {::Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupRequest} or an equivalent Hash.
439
+ #
440
+ # @param request [::Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupRequest, ::Hash]
441
+ # A request object representing the call parameters. Required. To specify no
442
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
443
+ # @param options [::Gapic::CallOptions, ::Hash]
444
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
445
+ #
446
+ # @overload create_intercept_endpoint_group(parent: nil, intercept_endpoint_group_id: nil, intercept_endpoint_group: nil, request_id: nil)
447
+ # Pass arguments to `create_intercept_endpoint_group` via keyword arguments. Note that at
448
+ # least one keyword argument is required. To specify no parameters, or to keep all
449
+ # the default parameter values, pass an empty Hash as a request object (see above).
450
+ #
451
+ # @param parent [::String]
452
+ # Required. The parent resource where this endpoint group will be created.
453
+ # Format: projects/\\{project}/locations/\\{location}
454
+ # @param intercept_endpoint_group_id [::String]
455
+ # Required. The ID to use for the endpoint group, which will become the final
456
+ # component of the endpoint group's resource name.
457
+ # @param intercept_endpoint_group [::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup, ::Hash]
458
+ # Required. The endpoint group to create.
459
+ # @param request_id [::String]
460
+ # Optional. A unique identifier for this request. Must be a UUID4.
461
+ # This request is only idempotent if a `request_id` is provided.
462
+ # See https://google.aip.dev/155 for more details.
463
+ #
464
+ # @yield [response, operation] Access the result along with the RPC operation
465
+ # @yieldparam response [::Gapic::Operation]
466
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
467
+ #
468
+ # @return [::Gapic::Operation]
469
+ #
470
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
471
+ #
472
+ # @example Basic example
473
+ # require "google/cloud/network_security/v1"
474
+ #
475
+ # # Create a client object. The client can be reused for multiple calls.
476
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
477
+ #
478
+ # # Create a request. To set request fields, pass in keyword arguments.
479
+ # request = Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupRequest.new
480
+ #
481
+ # # Call the create_intercept_endpoint_group method.
482
+ # result = client.create_intercept_endpoint_group request
483
+ #
484
+ # # The returned object is of type Gapic::Operation. You can use it to
485
+ # # check the status of an operation, cancel it, or wait for results.
486
+ # # Here is how to wait for a response.
487
+ # result.wait_until_done! timeout: 60
488
+ # if result.response?
489
+ # p result.response
490
+ # else
491
+ # puts "No response received."
492
+ # end
493
+ #
494
+ def create_intercept_endpoint_group request, options = nil
495
+ raise ::ArgumentError, "request must be provided" if request.nil?
496
+
497
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupRequest
498
+
499
+ # Converts hash and nil to an options object
500
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
501
+
502
+ # Customize the options with defaults
503
+ metadata = @config.rpcs.create_intercept_endpoint_group.metadata.to_h
504
+
505
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
506
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
507
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
508
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
509
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
510
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
511
+
512
+ header_params = {}
513
+ if request.parent
514
+ header_params["parent"] = request.parent
515
+ end
516
+
517
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
518
+ metadata[:"x-goog-request-params"] ||= request_params_header
519
+
520
+ options.apply_defaults timeout: @config.rpcs.create_intercept_endpoint_group.timeout,
521
+ metadata: metadata,
522
+ retry_policy: @config.rpcs.create_intercept_endpoint_group.retry_policy
523
+
524
+ options.apply_defaults timeout: @config.timeout,
525
+ metadata: @config.metadata,
526
+ retry_policy: @config.retry_policy
527
+
528
+ @intercept_stub.call_rpc :create_intercept_endpoint_group, request, options: options do |response, operation|
529
+ response = ::Gapic::Operation.new response, @operations_client, options: options
530
+ yield response, operation if block_given?
531
+ throw :response, response
532
+ end
533
+ rescue ::GRPC::BadStatus => e
534
+ raise ::Google::Cloud::Error.from_error(e)
535
+ end
536
+
537
+ ##
538
+ # Updates an endpoint group.
539
+ # See https://google.aip.dev/134.
540
+ #
541
+ # @overload update_intercept_endpoint_group(request, options = nil)
542
+ # Pass arguments to `update_intercept_endpoint_group` via a request object, either of type
543
+ # {::Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupRequest} or an equivalent Hash.
544
+ #
545
+ # @param request [::Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupRequest, ::Hash]
546
+ # A request object representing the call parameters. Required. To specify no
547
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
548
+ # @param options [::Gapic::CallOptions, ::Hash]
549
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
550
+ #
551
+ # @overload update_intercept_endpoint_group(update_mask: nil, intercept_endpoint_group: nil, request_id: nil)
552
+ # Pass arguments to `update_intercept_endpoint_group` via keyword arguments. Note that at
553
+ # least one keyword argument is required. To specify no parameters, or to keep all
554
+ # the default parameter values, pass an empty Hash as a request object (see above).
555
+ #
556
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
557
+ # Optional. The list of fields to update.
558
+ # Fields are specified relative to the endpoint group
559
+ # (e.g. `description`; *not* `intercept_endpoint_group.description`).
560
+ # See https://google.aip.dev/161 for more details.
561
+ # @param intercept_endpoint_group [::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup, ::Hash]
562
+ # Required. The endpoint group to update.
563
+ # @param request_id [::String]
564
+ # Optional. A unique identifier for this request. Must be a UUID4.
565
+ # This request is only idempotent if a `request_id` is provided.
566
+ # See https://google.aip.dev/155 for more details.
567
+ #
568
+ # @yield [response, operation] Access the result along with the RPC operation
569
+ # @yieldparam response [::Gapic::Operation]
570
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
571
+ #
572
+ # @return [::Gapic::Operation]
573
+ #
574
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
575
+ #
576
+ # @example Basic example
577
+ # require "google/cloud/network_security/v1"
578
+ #
579
+ # # Create a client object. The client can be reused for multiple calls.
580
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
581
+ #
582
+ # # Create a request. To set request fields, pass in keyword arguments.
583
+ # request = Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupRequest.new
584
+ #
585
+ # # Call the update_intercept_endpoint_group method.
586
+ # result = client.update_intercept_endpoint_group request
587
+ #
588
+ # # The returned object is of type Gapic::Operation. You can use it to
589
+ # # check the status of an operation, cancel it, or wait for results.
590
+ # # Here is how to wait for a response.
591
+ # result.wait_until_done! timeout: 60
592
+ # if result.response?
593
+ # p result.response
594
+ # else
595
+ # puts "No response received."
596
+ # end
597
+ #
598
+ def update_intercept_endpoint_group request, options = nil
599
+ raise ::ArgumentError, "request must be provided" if request.nil?
600
+
601
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupRequest
602
+
603
+ # Converts hash and nil to an options object
604
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
605
+
606
+ # Customize the options with defaults
607
+ metadata = @config.rpcs.update_intercept_endpoint_group.metadata.to_h
608
+
609
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
610
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
611
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
612
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
613
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
614
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
615
+
616
+ header_params = {}
617
+ if request.intercept_endpoint_group&.name
618
+ header_params["intercept_endpoint_group.name"] = request.intercept_endpoint_group.name
619
+ end
620
+
621
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
622
+ metadata[:"x-goog-request-params"] ||= request_params_header
623
+
624
+ options.apply_defaults timeout: @config.rpcs.update_intercept_endpoint_group.timeout,
625
+ metadata: metadata,
626
+ retry_policy: @config.rpcs.update_intercept_endpoint_group.retry_policy
627
+
628
+ options.apply_defaults timeout: @config.timeout,
629
+ metadata: @config.metadata,
630
+ retry_policy: @config.retry_policy
631
+
632
+ @intercept_stub.call_rpc :update_intercept_endpoint_group, request, options: options do |response, operation|
633
+ response = ::Gapic::Operation.new response, @operations_client, options: options
634
+ yield response, operation if block_given?
635
+ throw :response, response
636
+ end
637
+ rescue ::GRPC::BadStatus => e
638
+ raise ::Google::Cloud::Error.from_error(e)
639
+ end
640
+
641
+ ##
642
+ # Deletes an endpoint group.
643
+ # See https://google.aip.dev/135.
644
+ #
645
+ # @overload delete_intercept_endpoint_group(request, options = nil)
646
+ # Pass arguments to `delete_intercept_endpoint_group` via a request object, either of type
647
+ # {::Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupRequest} or an equivalent Hash.
648
+ #
649
+ # @param request [::Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupRequest, ::Hash]
650
+ # A request object representing the call parameters. Required. To specify no
651
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
652
+ # @param options [::Gapic::CallOptions, ::Hash]
653
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
654
+ #
655
+ # @overload delete_intercept_endpoint_group(name: nil, request_id: nil)
656
+ # Pass arguments to `delete_intercept_endpoint_group` via keyword arguments. Note that at
657
+ # least one keyword argument is required. To specify no parameters, or to keep all
658
+ # the default parameter values, pass an empty Hash as a request object (see above).
659
+ #
660
+ # @param name [::String]
661
+ # Required. The endpoint group to delete.
662
+ # @param request_id [::String]
663
+ # Optional. A unique identifier for this request. Must be a UUID4.
664
+ # This request is only idempotent if a `request_id` is provided.
665
+ # See https://google.aip.dev/155 for more details.
666
+ #
667
+ # @yield [response, operation] Access the result along with the RPC operation
668
+ # @yieldparam response [::Gapic::Operation]
669
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
670
+ #
671
+ # @return [::Gapic::Operation]
672
+ #
673
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
674
+ #
675
+ # @example Basic example
676
+ # require "google/cloud/network_security/v1"
677
+ #
678
+ # # Create a client object. The client can be reused for multiple calls.
679
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
680
+ #
681
+ # # Create a request. To set request fields, pass in keyword arguments.
682
+ # request = Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupRequest.new
683
+ #
684
+ # # Call the delete_intercept_endpoint_group method.
685
+ # result = client.delete_intercept_endpoint_group request
686
+ #
687
+ # # The returned object is of type Gapic::Operation. You can use it to
688
+ # # check the status of an operation, cancel it, or wait for results.
689
+ # # Here is how to wait for a response.
690
+ # result.wait_until_done! timeout: 60
691
+ # if result.response?
692
+ # p result.response
693
+ # else
694
+ # puts "No response received."
695
+ # end
696
+ #
697
+ def delete_intercept_endpoint_group request, options = nil
698
+ raise ::ArgumentError, "request must be provided" if request.nil?
699
+
700
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupRequest
701
+
702
+ # Converts hash and nil to an options object
703
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
704
+
705
+ # Customize the options with defaults
706
+ metadata = @config.rpcs.delete_intercept_endpoint_group.metadata.to_h
707
+
708
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
709
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
710
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
711
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
712
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
713
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
714
+
715
+ header_params = {}
716
+ if request.name
717
+ header_params["name"] = request.name
718
+ end
719
+
720
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
721
+ metadata[:"x-goog-request-params"] ||= request_params_header
722
+
723
+ options.apply_defaults timeout: @config.rpcs.delete_intercept_endpoint_group.timeout,
724
+ metadata: metadata,
725
+ retry_policy: @config.rpcs.delete_intercept_endpoint_group.retry_policy
726
+
727
+ options.apply_defaults timeout: @config.timeout,
728
+ metadata: @config.metadata,
729
+ retry_policy: @config.retry_policy
730
+
731
+ @intercept_stub.call_rpc :delete_intercept_endpoint_group, request, options: options do |response, operation|
732
+ response = ::Gapic::Operation.new response, @operations_client, options: options
733
+ yield response, operation if block_given?
734
+ throw :response, response
735
+ end
736
+ rescue ::GRPC::BadStatus => e
737
+ raise ::Google::Cloud::Error.from_error(e)
738
+ end
739
+
740
+ ##
741
+ # Lists associations in a given project and location.
742
+ # See https://google.aip.dev/132.
743
+ #
744
+ # @overload list_intercept_endpoint_group_associations(request, options = nil)
745
+ # Pass arguments to `list_intercept_endpoint_group_associations` via a request object, either of type
746
+ # {::Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupAssociationsRequest} or an equivalent Hash.
747
+ #
748
+ # @param request [::Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupAssociationsRequest, ::Hash]
749
+ # A request object representing the call parameters. Required. To specify no
750
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
751
+ # @param options [::Gapic::CallOptions, ::Hash]
752
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
753
+ #
754
+ # @overload list_intercept_endpoint_group_associations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
755
+ # Pass arguments to `list_intercept_endpoint_group_associations` via keyword arguments. Note that at
756
+ # least one keyword argument is required. To specify no parameters, or to keep all
757
+ # the default parameter values, pass an empty Hash as a request object (see above).
758
+ #
759
+ # @param parent [::String]
760
+ # Required. The parent, which owns this collection of associations.
761
+ # Example: `projects/123456789/locations/global`.
762
+ # See https://google.aip.dev/132 for more details.
763
+ # @param page_size [::Integer]
764
+ # Optional. Requested page size. Server may return fewer items than
765
+ # requested. If unspecified, server will pick an appropriate default. See
766
+ # https://google.aip.dev/158 for more details.
767
+ # @param page_token [::String]
768
+ # Optional. A page token, received from a previous
769
+ # `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
770
+ # page. When paginating, all other parameters provided to
771
+ # `ListInterceptEndpointGroups` must match the call that provided the page
772
+ # token. See https://google.aip.dev/158 for more details.
773
+ # @param filter [::String]
774
+ # Optional. Filter expression.
775
+ # See https://google.aip.dev/160#filtering for more details.
776
+ # @param order_by [::String]
777
+ # Optional. Sort expression.
778
+ # See https://google.aip.dev/132#ordering for more details.
779
+ #
780
+ # @yield [response, operation] Access the result along with the RPC operation
781
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation>]
782
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
783
+ #
784
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation>]
785
+ #
786
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
787
+ #
788
+ # @example Basic example
789
+ # require "google/cloud/network_security/v1"
790
+ #
791
+ # # Create a client object. The client can be reused for multiple calls.
792
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
793
+ #
794
+ # # Create a request. To set request fields, pass in keyword arguments.
795
+ # request = Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupAssociationsRequest.new
796
+ #
797
+ # # Call the list_intercept_endpoint_group_associations method.
798
+ # result = client.list_intercept_endpoint_group_associations request
799
+ #
800
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
801
+ # # over elements, and API calls will be issued to fetch pages as needed.
802
+ # result.each do |item|
803
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation.
804
+ # p item
805
+ # end
806
+ #
807
+ def list_intercept_endpoint_group_associations request, options = nil
808
+ raise ::ArgumentError, "request must be provided" if request.nil?
809
+
810
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupAssociationsRequest
811
+
812
+ # Converts hash and nil to an options object
813
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
814
+
815
+ # Customize the options with defaults
816
+ metadata = @config.rpcs.list_intercept_endpoint_group_associations.metadata.to_h
817
+
818
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
819
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
820
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
821
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
822
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
823
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
824
+
825
+ header_params = {}
826
+ if request.parent
827
+ header_params["parent"] = request.parent
828
+ end
829
+
830
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
831
+ metadata[:"x-goog-request-params"] ||= request_params_header
832
+
833
+ options.apply_defaults timeout: @config.rpcs.list_intercept_endpoint_group_associations.timeout,
834
+ metadata: metadata,
835
+ retry_policy: @config.rpcs.list_intercept_endpoint_group_associations.retry_policy
836
+
837
+ options.apply_defaults timeout: @config.timeout,
838
+ metadata: @config.metadata,
839
+ retry_policy: @config.retry_policy
840
+
841
+ @intercept_stub.call_rpc :list_intercept_endpoint_group_associations, request, options: options do |response, operation|
842
+ response = ::Gapic::PagedEnumerable.new @intercept_stub, :list_intercept_endpoint_group_associations, request, response, operation, options
843
+ yield response, operation if block_given?
844
+ throw :response, response
845
+ end
846
+ rescue ::GRPC::BadStatus => e
847
+ raise ::Google::Cloud::Error.from_error(e)
848
+ end
849
+
850
+ ##
851
+ # Gets a specific association.
852
+ # See https://google.aip.dev/131.
853
+ #
854
+ # @overload get_intercept_endpoint_group_association(request, options = nil)
855
+ # Pass arguments to `get_intercept_endpoint_group_association` via a request object, either of type
856
+ # {::Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupAssociationRequest} or an equivalent Hash.
857
+ #
858
+ # @param request [::Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupAssociationRequest, ::Hash]
859
+ # A request object representing the call parameters. Required. To specify no
860
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
861
+ # @param options [::Gapic::CallOptions, ::Hash]
862
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
863
+ #
864
+ # @overload get_intercept_endpoint_group_association(name: nil)
865
+ # Pass arguments to `get_intercept_endpoint_group_association` via keyword arguments. Note that at
866
+ # least one keyword argument is required. To specify no parameters, or to keep all
867
+ # the default parameter values, pass an empty Hash as a request object (see above).
868
+ #
869
+ # @param name [::String]
870
+ # Required. The name of the association to retrieve.
871
+ # Format:
872
+ # projects/\\{project}/locations/\\{location}/interceptEndpointGroupAssociations/\\{intercept_endpoint_group_association}
873
+ #
874
+ # @yield [response, operation] Access the result along with the RPC operation
875
+ # @yieldparam response [::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation]
876
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
877
+ #
878
+ # @return [::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation]
879
+ #
880
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
881
+ #
882
+ # @example Basic example
883
+ # require "google/cloud/network_security/v1"
884
+ #
885
+ # # Create a client object. The client can be reused for multiple calls.
886
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
887
+ #
888
+ # # Create a request. To set request fields, pass in keyword arguments.
889
+ # request = Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupAssociationRequest.new
890
+ #
891
+ # # Call the get_intercept_endpoint_group_association method.
892
+ # result = client.get_intercept_endpoint_group_association request
893
+ #
894
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation.
895
+ # p result
896
+ #
897
+ def get_intercept_endpoint_group_association request, options = nil
898
+ raise ::ArgumentError, "request must be provided" if request.nil?
899
+
900
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupAssociationRequest
901
+
902
+ # Converts hash and nil to an options object
903
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
904
+
905
+ # Customize the options with defaults
906
+ metadata = @config.rpcs.get_intercept_endpoint_group_association.metadata.to_h
907
+
908
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
909
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
910
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
911
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
912
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
913
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
914
+
915
+ header_params = {}
916
+ if request.name
917
+ header_params["name"] = request.name
918
+ end
919
+
920
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
921
+ metadata[:"x-goog-request-params"] ||= request_params_header
922
+
923
+ options.apply_defaults timeout: @config.rpcs.get_intercept_endpoint_group_association.timeout,
924
+ metadata: metadata,
925
+ retry_policy: @config.rpcs.get_intercept_endpoint_group_association.retry_policy
926
+
927
+ options.apply_defaults timeout: @config.timeout,
928
+ metadata: @config.metadata,
929
+ retry_policy: @config.retry_policy
930
+
931
+ @intercept_stub.call_rpc :get_intercept_endpoint_group_association, request, options: options do |response, operation|
932
+ yield response, operation if block_given?
933
+ end
934
+ rescue ::GRPC::BadStatus => e
935
+ raise ::Google::Cloud::Error.from_error(e)
936
+ end
937
+
938
+ ##
939
+ # Creates an association in a given project and location.
940
+ # See https://google.aip.dev/133.
941
+ #
942
+ # @overload create_intercept_endpoint_group_association(request, options = nil)
943
+ # Pass arguments to `create_intercept_endpoint_group_association` via a request object, either of type
944
+ # {::Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupAssociationRequest} or an equivalent Hash.
945
+ #
946
+ # @param request [::Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupAssociationRequest, ::Hash]
947
+ # A request object representing the call parameters. Required. To specify no
948
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
949
+ # @param options [::Gapic::CallOptions, ::Hash]
950
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
951
+ #
952
+ # @overload create_intercept_endpoint_group_association(parent: nil, intercept_endpoint_group_association_id: nil, intercept_endpoint_group_association: nil, request_id: nil)
953
+ # Pass arguments to `create_intercept_endpoint_group_association` via keyword arguments. Note that at
954
+ # least one keyword argument is required. To specify no parameters, or to keep all
955
+ # the default parameter values, pass an empty Hash as a request object (see above).
956
+ #
957
+ # @param parent [::String]
958
+ # Required. The parent resource where this association will be created.
959
+ # Format: projects/\\{project}/locations/\\{location}
960
+ # @param intercept_endpoint_group_association_id [::String]
961
+ # Optional. The ID to use for the new association, which will become the
962
+ # final component of the endpoint group's resource name. If not provided, the
963
+ # server will generate a unique ID.
964
+ # @param intercept_endpoint_group_association [::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation, ::Hash]
965
+ # Required. The association to create.
966
+ # @param request_id [::String]
967
+ # Optional. A unique identifier for this request. Must be a UUID4.
968
+ # This request is only idempotent if a `request_id` is provided.
969
+ # See https://google.aip.dev/155 for more details.
970
+ #
971
+ # @yield [response, operation] Access the result along with the RPC operation
972
+ # @yieldparam response [::Gapic::Operation]
973
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
974
+ #
975
+ # @return [::Gapic::Operation]
976
+ #
977
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
978
+ #
979
+ # @example Basic example
980
+ # require "google/cloud/network_security/v1"
981
+ #
982
+ # # Create a client object. The client can be reused for multiple calls.
983
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
984
+ #
985
+ # # Create a request. To set request fields, pass in keyword arguments.
986
+ # request = Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupAssociationRequest.new
987
+ #
988
+ # # Call the create_intercept_endpoint_group_association method.
989
+ # result = client.create_intercept_endpoint_group_association request
990
+ #
991
+ # # The returned object is of type Gapic::Operation. You can use it to
992
+ # # check the status of an operation, cancel it, or wait for results.
993
+ # # Here is how to wait for a response.
994
+ # result.wait_until_done! timeout: 60
995
+ # if result.response?
996
+ # p result.response
997
+ # else
998
+ # puts "No response received."
999
+ # end
1000
+ #
1001
+ def create_intercept_endpoint_group_association request, options = nil
1002
+ raise ::ArgumentError, "request must be provided" if request.nil?
1003
+
1004
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupAssociationRequest
1005
+
1006
+ # Converts hash and nil to an options object
1007
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1008
+
1009
+ # Customize the options with defaults
1010
+ metadata = @config.rpcs.create_intercept_endpoint_group_association.metadata.to_h
1011
+
1012
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1013
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1014
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1015
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
1016
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1017
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1018
+
1019
+ header_params = {}
1020
+ if request.parent
1021
+ header_params["parent"] = request.parent
1022
+ end
1023
+
1024
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1025
+ metadata[:"x-goog-request-params"] ||= request_params_header
1026
+
1027
+ options.apply_defaults timeout: @config.rpcs.create_intercept_endpoint_group_association.timeout,
1028
+ metadata: metadata,
1029
+ retry_policy: @config.rpcs.create_intercept_endpoint_group_association.retry_policy
1030
+
1031
+ options.apply_defaults timeout: @config.timeout,
1032
+ metadata: @config.metadata,
1033
+ retry_policy: @config.retry_policy
1034
+
1035
+ @intercept_stub.call_rpc :create_intercept_endpoint_group_association, request, options: options do |response, operation|
1036
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1037
+ yield response, operation if block_given?
1038
+ throw :response, response
1039
+ end
1040
+ rescue ::GRPC::BadStatus => e
1041
+ raise ::Google::Cloud::Error.from_error(e)
1042
+ end
1043
+
1044
+ ##
1045
+ # Updates an association.
1046
+ # See https://google.aip.dev/134.
1047
+ #
1048
+ # @overload update_intercept_endpoint_group_association(request, options = nil)
1049
+ # Pass arguments to `update_intercept_endpoint_group_association` via a request object, either of type
1050
+ # {::Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupAssociationRequest} or an equivalent Hash.
1051
+ #
1052
+ # @param request [::Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupAssociationRequest, ::Hash]
1053
+ # A request object representing the call parameters. Required. To specify no
1054
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1055
+ # @param options [::Gapic::CallOptions, ::Hash]
1056
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1057
+ #
1058
+ # @overload update_intercept_endpoint_group_association(update_mask: nil, intercept_endpoint_group_association: nil, request_id: nil)
1059
+ # Pass arguments to `update_intercept_endpoint_group_association` via keyword arguments. Note that at
1060
+ # least one keyword argument is required. To specify no parameters, or to keep all
1061
+ # the default parameter values, pass an empty Hash as a request object (see above).
1062
+ #
1063
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1064
+ # Optional. The list of fields to update.
1065
+ # Fields are specified relative to the association
1066
+ # (e.g. `description`; *not*
1067
+ # `intercept_endpoint_group_association.description`). See
1068
+ # https://google.aip.dev/161 for more details.
1069
+ # @param intercept_endpoint_group_association [::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation, ::Hash]
1070
+ # Required. The association to update.
1071
+ # @param request_id [::String]
1072
+ # Optional. A unique identifier for this request. Must be a UUID4.
1073
+ # This request is only idempotent if a `request_id` is provided.
1074
+ # See https://google.aip.dev/155 for more details.
1075
+ #
1076
+ # @yield [response, operation] Access the result along with the RPC operation
1077
+ # @yieldparam response [::Gapic::Operation]
1078
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1079
+ #
1080
+ # @return [::Gapic::Operation]
1081
+ #
1082
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1083
+ #
1084
+ # @example Basic example
1085
+ # require "google/cloud/network_security/v1"
1086
+ #
1087
+ # # Create a client object. The client can be reused for multiple calls.
1088
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
1089
+ #
1090
+ # # Create a request. To set request fields, pass in keyword arguments.
1091
+ # request = Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupAssociationRequest.new
1092
+ #
1093
+ # # Call the update_intercept_endpoint_group_association method.
1094
+ # result = client.update_intercept_endpoint_group_association request
1095
+ #
1096
+ # # The returned object is of type Gapic::Operation. You can use it to
1097
+ # # check the status of an operation, cancel it, or wait for results.
1098
+ # # Here is how to wait for a response.
1099
+ # result.wait_until_done! timeout: 60
1100
+ # if result.response?
1101
+ # p result.response
1102
+ # else
1103
+ # puts "No response received."
1104
+ # end
1105
+ #
1106
+ def update_intercept_endpoint_group_association request, options = nil
1107
+ raise ::ArgumentError, "request must be provided" if request.nil?
1108
+
1109
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupAssociationRequest
1110
+
1111
+ # Converts hash and nil to an options object
1112
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1113
+
1114
+ # Customize the options with defaults
1115
+ metadata = @config.rpcs.update_intercept_endpoint_group_association.metadata.to_h
1116
+
1117
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1118
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1119
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1120
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
1121
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1122
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1123
+
1124
+ header_params = {}
1125
+ if request.intercept_endpoint_group_association&.name
1126
+ header_params["intercept_endpoint_group_association.name"] = request.intercept_endpoint_group_association.name
1127
+ end
1128
+
1129
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1130
+ metadata[:"x-goog-request-params"] ||= request_params_header
1131
+
1132
+ options.apply_defaults timeout: @config.rpcs.update_intercept_endpoint_group_association.timeout,
1133
+ metadata: metadata,
1134
+ retry_policy: @config.rpcs.update_intercept_endpoint_group_association.retry_policy
1135
+
1136
+ options.apply_defaults timeout: @config.timeout,
1137
+ metadata: @config.metadata,
1138
+ retry_policy: @config.retry_policy
1139
+
1140
+ @intercept_stub.call_rpc :update_intercept_endpoint_group_association, request, options: options do |response, operation|
1141
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1142
+ yield response, operation if block_given?
1143
+ throw :response, response
1144
+ end
1145
+ rescue ::GRPC::BadStatus => e
1146
+ raise ::Google::Cloud::Error.from_error(e)
1147
+ end
1148
+
1149
+ ##
1150
+ # Deletes an association.
1151
+ # See https://google.aip.dev/135.
1152
+ #
1153
+ # @overload delete_intercept_endpoint_group_association(request, options = nil)
1154
+ # Pass arguments to `delete_intercept_endpoint_group_association` via a request object, either of type
1155
+ # {::Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupAssociationRequest} or an equivalent Hash.
1156
+ #
1157
+ # @param request [::Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupAssociationRequest, ::Hash]
1158
+ # A request object representing the call parameters. Required. To specify no
1159
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1160
+ # @param options [::Gapic::CallOptions, ::Hash]
1161
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1162
+ #
1163
+ # @overload delete_intercept_endpoint_group_association(name: nil, request_id: nil)
1164
+ # Pass arguments to `delete_intercept_endpoint_group_association` via keyword arguments. Note that at
1165
+ # least one keyword argument is required. To specify no parameters, or to keep all
1166
+ # the default parameter values, pass an empty Hash as a request object (see above).
1167
+ #
1168
+ # @param name [::String]
1169
+ # Required. The association to delete.
1170
+ # @param request_id [::String]
1171
+ # Optional. A unique identifier for this request. Must be a UUID4.
1172
+ # This request is only idempotent if a `request_id` is provided.
1173
+ # See https://google.aip.dev/155 for more details.
1174
+ #
1175
+ # @yield [response, operation] Access the result along with the RPC operation
1176
+ # @yieldparam response [::Gapic::Operation]
1177
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1178
+ #
1179
+ # @return [::Gapic::Operation]
1180
+ #
1181
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1182
+ #
1183
+ # @example Basic example
1184
+ # require "google/cloud/network_security/v1"
1185
+ #
1186
+ # # Create a client object. The client can be reused for multiple calls.
1187
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
1188
+ #
1189
+ # # Create a request. To set request fields, pass in keyword arguments.
1190
+ # request = Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupAssociationRequest.new
1191
+ #
1192
+ # # Call the delete_intercept_endpoint_group_association method.
1193
+ # result = client.delete_intercept_endpoint_group_association request
1194
+ #
1195
+ # # The returned object is of type Gapic::Operation. You can use it to
1196
+ # # check the status of an operation, cancel it, or wait for results.
1197
+ # # Here is how to wait for a response.
1198
+ # result.wait_until_done! timeout: 60
1199
+ # if result.response?
1200
+ # p result.response
1201
+ # else
1202
+ # puts "No response received."
1203
+ # end
1204
+ #
1205
+ def delete_intercept_endpoint_group_association request, options = nil
1206
+ raise ::ArgumentError, "request must be provided" if request.nil?
1207
+
1208
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupAssociationRequest
1209
+
1210
+ # Converts hash and nil to an options object
1211
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1212
+
1213
+ # Customize the options with defaults
1214
+ metadata = @config.rpcs.delete_intercept_endpoint_group_association.metadata.to_h
1215
+
1216
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1217
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1218
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1219
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
1220
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1221
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1222
+
1223
+ header_params = {}
1224
+ if request.name
1225
+ header_params["name"] = request.name
1226
+ end
1227
+
1228
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1229
+ metadata[:"x-goog-request-params"] ||= request_params_header
1230
+
1231
+ options.apply_defaults timeout: @config.rpcs.delete_intercept_endpoint_group_association.timeout,
1232
+ metadata: metadata,
1233
+ retry_policy: @config.rpcs.delete_intercept_endpoint_group_association.retry_policy
1234
+
1235
+ options.apply_defaults timeout: @config.timeout,
1236
+ metadata: @config.metadata,
1237
+ retry_policy: @config.retry_policy
1238
+
1239
+ @intercept_stub.call_rpc :delete_intercept_endpoint_group_association, request, options: options do |response, operation|
1240
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1241
+ yield response, operation if block_given?
1242
+ throw :response, response
1243
+ end
1244
+ rescue ::GRPC::BadStatus => e
1245
+ raise ::Google::Cloud::Error.from_error(e)
1246
+ end
1247
+
1248
+ ##
1249
+ # Lists deployment groups in a given project and location.
1250
+ # See https://google.aip.dev/132.
1251
+ #
1252
+ # @overload list_intercept_deployment_groups(request, options = nil)
1253
+ # Pass arguments to `list_intercept_deployment_groups` via a request object, either of type
1254
+ # {::Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentGroupsRequest} or an equivalent Hash.
1255
+ #
1256
+ # @param request [::Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentGroupsRequest, ::Hash]
1257
+ # A request object representing the call parameters. Required. To specify no
1258
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1259
+ # @param options [::Gapic::CallOptions, ::Hash]
1260
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1261
+ #
1262
+ # @overload list_intercept_deployment_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1263
+ # Pass arguments to `list_intercept_deployment_groups` via keyword arguments. Note that at
1264
+ # least one keyword argument is required. To specify no parameters, or to keep all
1265
+ # the default parameter values, pass an empty Hash as a request object (see above).
1266
+ #
1267
+ # @param parent [::String]
1268
+ # Required. The parent, which owns this collection of deployment groups.
1269
+ # Example: `projects/123456789/locations/global`.
1270
+ # See https://google.aip.dev/132 for more details.
1271
+ # @param page_size [::Integer]
1272
+ # Optional. Requested page size. Server may return fewer items than
1273
+ # requested. If unspecified, server will pick an appropriate default. See
1274
+ # https://google.aip.dev/158 for more details.
1275
+ # @param page_token [::String]
1276
+ # Optional. A page token, received from a previous
1277
+ # `ListInterceptDeploymentGroups` call. Provide this to retrieve the
1278
+ # subsequent page. When paginating, all other parameters provided to
1279
+ # `ListInterceptDeploymentGroups` must match the call that provided the page
1280
+ # token. See https://google.aip.dev/158 for more details.
1281
+ # @param filter [::String]
1282
+ # Optional. Filter expression.
1283
+ # See https://google.aip.dev/160#filtering for more details.
1284
+ # @param order_by [::String]
1285
+ # Optional. Sort expression.
1286
+ # See https://google.aip.dev/132#ordering for more details.
1287
+ #
1288
+ # @yield [response, operation] Access the result along with the RPC operation
1289
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup>]
1290
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1291
+ #
1292
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup>]
1293
+ #
1294
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1295
+ #
1296
+ # @example Basic example
1297
+ # require "google/cloud/network_security/v1"
1298
+ #
1299
+ # # Create a client object. The client can be reused for multiple calls.
1300
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
1301
+ #
1302
+ # # Create a request. To set request fields, pass in keyword arguments.
1303
+ # request = Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentGroupsRequest.new
1304
+ #
1305
+ # # Call the list_intercept_deployment_groups method.
1306
+ # result = client.list_intercept_deployment_groups request
1307
+ #
1308
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1309
+ # # over elements, and API calls will be issued to fetch pages as needed.
1310
+ # result.each do |item|
1311
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup.
1312
+ # p item
1313
+ # end
1314
+ #
1315
+ def list_intercept_deployment_groups request, options = nil
1316
+ raise ::ArgumentError, "request must be provided" if request.nil?
1317
+
1318
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentGroupsRequest
1319
+
1320
+ # Converts hash and nil to an options object
1321
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1322
+
1323
+ # Customize the options with defaults
1324
+ metadata = @config.rpcs.list_intercept_deployment_groups.metadata.to_h
1325
+
1326
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1327
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1328
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1329
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
1330
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1331
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1332
+
1333
+ header_params = {}
1334
+ if request.parent
1335
+ header_params["parent"] = request.parent
1336
+ end
1337
+
1338
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1339
+ metadata[:"x-goog-request-params"] ||= request_params_header
1340
+
1341
+ options.apply_defaults timeout: @config.rpcs.list_intercept_deployment_groups.timeout,
1342
+ metadata: metadata,
1343
+ retry_policy: @config.rpcs.list_intercept_deployment_groups.retry_policy
1344
+
1345
+ options.apply_defaults timeout: @config.timeout,
1346
+ metadata: @config.metadata,
1347
+ retry_policy: @config.retry_policy
1348
+
1349
+ @intercept_stub.call_rpc :list_intercept_deployment_groups, request, options: options do |response, operation|
1350
+ response = ::Gapic::PagedEnumerable.new @intercept_stub, :list_intercept_deployment_groups, request, response, operation, options
1351
+ yield response, operation if block_given?
1352
+ throw :response, response
1353
+ end
1354
+ rescue ::GRPC::BadStatus => e
1355
+ raise ::Google::Cloud::Error.from_error(e)
1356
+ end
1357
+
1358
+ ##
1359
+ # Gets a specific deployment group.
1360
+ # See https://google.aip.dev/131.
1361
+ #
1362
+ # @overload get_intercept_deployment_group(request, options = nil)
1363
+ # Pass arguments to `get_intercept_deployment_group` via a request object, either of type
1364
+ # {::Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentGroupRequest} or an equivalent Hash.
1365
+ #
1366
+ # @param request [::Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentGroupRequest, ::Hash]
1367
+ # A request object representing the call parameters. Required. To specify no
1368
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1369
+ # @param options [::Gapic::CallOptions, ::Hash]
1370
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1371
+ #
1372
+ # @overload get_intercept_deployment_group(name: nil)
1373
+ # Pass arguments to `get_intercept_deployment_group` via keyword arguments. Note that at
1374
+ # least one keyword argument is required. To specify no parameters, or to keep all
1375
+ # the default parameter values, pass an empty Hash as a request object (see above).
1376
+ #
1377
+ # @param name [::String]
1378
+ # Required. The name of the deployment group to retrieve.
1379
+ # Format:
1380
+ # projects/\\{project}/locations/\\{location}/interceptDeploymentGroups/\\{intercept_deployment_group}
1381
+ #
1382
+ # @yield [response, operation] Access the result along with the RPC operation
1383
+ # @yieldparam response [::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup]
1384
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1385
+ #
1386
+ # @return [::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup]
1387
+ #
1388
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1389
+ #
1390
+ # @example Basic example
1391
+ # require "google/cloud/network_security/v1"
1392
+ #
1393
+ # # Create a client object. The client can be reused for multiple calls.
1394
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
1395
+ #
1396
+ # # Create a request. To set request fields, pass in keyword arguments.
1397
+ # request = Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentGroupRequest.new
1398
+ #
1399
+ # # Call the get_intercept_deployment_group method.
1400
+ # result = client.get_intercept_deployment_group request
1401
+ #
1402
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup.
1403
+ # p result
1404
+ #
1405
+ def get_intercept_deployment_group request, options = nil
1406
+ raise ::ArgumentError, "request must be provided" if request.nil?
1407
+
1408
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentGroupRequest
1409
+
1410
+ # Converts hash and nil to an options object
1411
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1412
+
1413
+ # Customize the options with defaults
1414
+ metadata = @config.rpcs.get_intercept_deployment_group.metadata.to_h
1415
+
1416
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1417
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1418
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1419
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
1420
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1421
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1422
+
1423
+ header_params = {}
1424
+ if request.name
1425
+ header_params["name"] = request.name
1426
+ end
1427
+
1428
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1429
+ metadata[:"x-goog-request-params"] ||= request_params_header
1430
+
1431
+ options.apply_defaults timeout: @config.rpcs.get_intercept_deployment_group.timeout,
1432
+ metadata: metadata,
1433
+ retry_policy: @config.rpcs.get_intercept_deployment_group.retry_policy
1434
+
1435
+ options.apply_defaults timeout: @config.timeout,
1436
+ metadata: @config.metadata,
1437
+ retry_policy: @config.retry_policy
1438
+
1439
+ @intercept_stub.call_rpc :get_intercept_deployment_group, request, options: options do |response, operation|
1440
+ yield response, operation if block_given?
1441
+ end
1442
+ rescue ::GRPC::BadStatus => e
1443
+ raise ::Google::Cloud::Error.from_error(e)
1444
+ end
1445
+
1446
+ ##
1447
+ # Creates a deployment group in a given project and location.
1448
+ # See https://google.aip.dev/133.
1449
+ #
1450
+ # @overload create_intercept_deployment_group(request, options = nil)
1451
+ # Pass arguments to `create_intercept_deployment_group` via a request object, either of type
1452
+ # {::Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentGroupRequest} or an equivalent Hash.
1453
+ #
1454
+ # @param request [::Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentGroupRequest, ::Hash]
1455
+ # A request object representing the call parameters. Required. To specify no
1456
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1457
+ # @param options [::Gapic::CallOptions, ::Hash]
1458
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1459
+ #
1460
+ # @overload create_intercept_deployment_group(parent: nil, intercept_deployment_group_id: nil, intercept_deployment_group: nil, request_id: nil)
1461
+ # Pass arguments to `create_intercept_deployment_group` via keyword arguments. Note that at
1462
+ # least one keyword argument is required. To specify no parameters, or to keep all
1463
+ # the default parameter values, pass an empty Hash as a request object (see above).
1464
+ #
1465
+ # @param parent [::String]
1466
+ # Required. The parent resource where this deployment group will be created.
1467
+ # Format: projects/\\{project}/locations/\\{location}
1468
+ # @param intercept_deployment_group_id [::String]
1469
+ # Required. The ID to use for the new deployment group, which will become the
1470
+ # final component of the deployment group's resource name.
1471
+ # @param intercept_deployment_group [::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup, ::Hash]
1472
+ # Required. The deployment group to create.
1473
+ # @param request_id [::String]
1474
+ # Optional. A unique identifier for this request. Must be a UUID4.
1475
+ # This request is only idempotent if a `request_id` is provided.
1476
+ # See https://google.aip.dev/155 for more details.
1477
+ #
1478
+ # @yield [response, operation] Access the result along with the RPC operation
1479
+ # @yieldparam response [::Gapic::Operation]
1480
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1481
+ #
1482
+ # @return [::Gapic::Operation]
1483
+ #
1484
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1485
+ #
1486
+ # @example Basic example
1487
+ # require "google/cloud/network_security/v1"
1488
+ #
1489
+ # # Create a client object. The client can be reused for multiple calls.
1490
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
1491
+ #
1492
+ # # Create a request. To set request fields, pass in keyword arguments.
1493
+ # request = Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentGroupRequest.new
1494
+ #
1495
+ # # Call the create_intercept_deployment_group method.
1496
+ # result = client.create_intercept_deployment_group request
1497
+ #
1498
+ # # The returned object is of type Gapic::Operation. You can use it to
1499
+ # # check the status of an operation, cancel it, or wait for results.
1500
+ # # Here is how to wait for a response.
1501
+ # result.wait_until_done! timeout: 60
1502
+ # if result.response?
1503
+ # p result.response
1504
+ # else
1505
+ # puts "No response received."
1506
+ # end
1507
+ #
1508
+ def create_intercept_deployment_group request, options = nil
1509
+ raise ::ArgumentError, "request must be provided" if request.nil?
1510
+
1511
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentGroupRequest
1512
+
1513
+ # Converts hash and nil to an options object
1514
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1515
+
1516
+ # Customize the options with defaults
1517
+ metadata = @config.rpcs.create_intercept_deployment_group.metadata.to_h
1518
+
1519
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1520
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1521
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1522
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
1523
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1524
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1525
+
1526
+ header_params = {}
1527
+ if request.parent
1528
+ header_params["parent"] = request.parent
1529
+ end
1530
+
1531
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1532
+ metadata[:"x-goog-request-params"] ||= request_params_header
1533
+
1534
+ options.apply_defaults timeout: @config.rpcs.create_intercept_deployment_group.timeout,
1535
+ metadata: metadata,
1536
+ retry_policy: @config.rpcs.create_intercept_deployment_group.retry_policy
1537
+
1538
+ options.apply_defaults timeout: @config.timeout,
1539
+ metadata: @config.metadata,
1540
+ retry_policy: @config.retry_policy
1541
+
1542
+ @intercept_stub.call_rpc :create_intercept_deployment_group, request, options: options do |response, operation|
1543
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1544
+ yield response, operation if block_given?
1545
+ throw :response, response
1546
+ end
1547
+ rescue ::GRPC::BadStatus => e
1548
+ raise ::Google::Cloud::Error.from_error(e)
1549
+ end
1550
+
1551
+ ##
1552
+ # Updates a deployment group.
1553
+ # See https://google.aip.dev/134.
1554
+ #
1555
+ # @overload update_intercept_deployment_group(request, options = nil)
1556
+ # Pass arguments to `update_intercept_deployment_group` via a request object, either of type
1557
+ # {::Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentGroupRequest} or an equivalent Hash.
1558
+ #
1559
+ # @param request [::Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentGroupRequest, ::Hash]
1560
+ # A request object representing the call parameters. Required. To specify no
1561
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1562
+ # @param options [::Gapic::CallOptions, ::Hash]
1563
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1564
+ #
1565
+ # @overload update_intercept_deployment_group(update_mask: nil, intercept_deployment_group: nil, request_id: nil)
1566
+ # Pass arguments to `update_intercept_deployment_group` via keyword arguments. Note that at
1567
+ # least one keyword argument is required. To specify no parameters, or to keep all
1568
+ # the default parameter values, pass an empty Hash as a request object (see above).
1569
+ #
1570
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1571
+ # Optional. The list of fields to update.
1572
+ # Fields are specified relative to the deployment group
1573
+ # (e.g. `description`; *not*
1574
+ # `intercept_deployment_group.description`). See
1575
+ # https://google.aip.dev/161 for more details.
1576
+ # @param intercept_deployment_group [::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup, ::Hash]
1577
+ # Required. The deployment group to update.
1578
+ # @param request_id [::String]
1579
+ # Optional. A unique identifier for this request. Must be a UUID4.
1580
+ # This request is only idempotent if a `request_id` is provided.
1581
+ # See https://google.aip.dev/155 for more details.
1582
+ #
1583
+ # @yield [response, operation] Access the result along with the RPC operation
1584
+ # @yieldparam response [::Gapic::Operation]
1585
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1586
+ #
1587
+ # @return [::Gapic::Operation]
1588
+ #
1589
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1590
+ #
1591
+ # @example Basic example
1592
+ # require "google/cloud/network_security/v1"
1593
+ #
1594
+ # # Create a client object. The client can be reused for multiple calls.
1595
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
1596
+ #
1597
+ # # Create a request. To set request fields, pass in keyword arguments.
1598
+ # request = Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentGroupRequest.new
1599
+ #
1600
+ # # Call the update_intercept_deployment_group method.
1601
+ # result = client.update_intercept_deployment_group request
1602
+ #
1603
+ # # The returned object is of type Gapic::Operation. You can use it to
1604
+ # # check the status of an operation, cancel it, or wait for results.
1605
+ # # Here is how to wait for a response.
1606
+ # result.wait_until_done! timeout: 60
1607
+ # if result.response?
1608
+ # p result.response
1609
+ # else
1610
+ # puts "No response received."
1611
+ # end
1612
+ #
1613
+ def update_intercept_deployment_group request, options = nil
1614
+ raise ::ArgumentError, "request must be provided" if request.nil?
1615
+
1616
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentGroupRequest
1617
+
1618
+ # Converts hash and nil to an options object
1619
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1620
+
1621
+ # Customize the options with defaults
1622
+ metadata = @config.rpcs.update_intercept_deployment_group.metadata.to_h
1623
+
1624
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1625
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1626
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1627
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
1628
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1629
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1630
+
1631
+ header_params = {}
1632
+ if request.intercept_deployment_group&.name
1633
+ header_params["intercept_deployment_group.name"] = request.intercept_deployment_group.name
1634
+ end
1635
+
1636
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1637
+ metadata[:"x-goog-request-params"] ||= request_params_header
1638
+
1639
+ options.apply_defaults timeout: @config.rpcs.update_intercept_deployment_group.timeout,
1640
+ metadata: metadata,
1641
+ retry_policy: @config.rpcs.update_intercept_deployment_group.retry_policy
1642
+
1643
+ options.apply_defaults timeout: @config.timeout,
1644
+ metadata: @config.metadata,
1645
+ retry_policy: @config.retry_policy
1646
+
1647
+ @intercept_stub.call_rpc :update_intercept_deployment_group, request, options: options do |response, operation|
1648
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1649
+ yield response, operation if block_given?
1650
+ throw :response, response
1651
+ end
1652
+ rescue ::GRPC::BadStatus => e
1653
+ raise ::Google::Cloud::Error.from_error(e)
1654
+ end
1655
+
1656
+ ##
1657
+ # Deletes a deployment group.
1658
+ # See https://google.aip.dev/135.
1659
+ #
1660
+ # @overload delete_intercept_deployment_group(request, options = nil)
1661
+ # Pass arguments to `delete_intercept_deployment_group` via a request object, either of type
1662
+ # {::Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentGroupRequest} or an equivalent Hash.
1663
+ #
1664
+ # @param request [::Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentGroupRequest, ::Hash]
1665
+ # A request object representing the call parameters. Required. To specify no
1666
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1667
+ # @param options [::Gapic::CallOptions, ::Hash]
1668
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1669
+ #
1670
+ # @overload delete_intercept_deployment_group(name: nil, request_id: nil)
1671
+ # Pass arguments to `delete_intercept_deployment_group` via keyword arguments. Note that at
1672
+ # least one keyword argument is required. To specify no parameters, or to keep all
1673
+ # the default parameter values, pass an empty Hash as a request object (see above).
1674
+ #
1675
+ # @param name [::String]
1676
+ # Required. The deployment group to delete.
1677
+ # @param request_id [::String]
1678
+ # Optional. A unique identifier for this request. Must be a UUID4.
1679
+ # This request is only idempotent if a `request_id` is provided.
1680
+ # See https://google.aip.dev/155 for more details.
1681
+ #
1682
+ # @yield [response, operation] Access the result along with the RPC operation
1683
+ # @yieldparam response [::Gapic::Operation]
1684
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1685
+ #
1686
+ # @return [::Gapic::Operation]
1687
+ #
1688
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1689
+ #
1690
+ # @example Basic example
1691
+ # require "google/cloud/network_security/v1"
1692
+ #
1693
+ # # Create a client object. The client can be reused for multiple calls.
1694
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
1695
+ #
1696
+ # # Create a request. To set request fields, pass in keyword arguments.
1697
+ # request = Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentGroupRequest.new
1698
+ #
1699
+ # # Call the delete_intercept_deployment_group method.
1700
+ # result = client.delete_intercept_deployment_group request
1701
+ #
1702
+ # # The returned object is of type Gapic::Operation. You can use it to
1703
+ # # check the status of an operation, cancel it, or wait for results.
1704
+ # # Here is how to wait for a response.
1705
+ # result.wait_until_done! timeout: 60
1706
+ # if result.response?
1707
+ # p result.response
1708
+ # else
1709
+ # puts "No response received."
1710
+ # end
1711
+ #
1712
+ def delete_intercept_deployment_group request, options = nil
1713
+ raise ::ArgumentError, "request must be provided" if request.nil?
1714
+
1715
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentGroupRequest
1716
+
1717
+ # Converts hash and nil to an options object
1718
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1719
+
1720
+ # Customize the options with defaults
1721
+ metadata = @config.rpcs.delete_intercept_deployment_group.metadata.to_h
1722
+
1723
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1724
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1725
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1726
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
1727
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1728
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1729
+
1730
+ header_params = {}
1731
+ if request.name
1732
+ header_params["name"] = request.name
1733
+ end
1734
+
1735
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1736
+ metadata[:"x-goog-request-params"] ||= request_params_header
1737
+
1738
+ options.apply_defaults timeout: @config.rpcs.delete_intercept_deployment_group.timeout,
1739
+ metadata: metadata,
1740
+ retry_policy: @config.rpcs.delete_intercept_deployment_group.retry_policy
1741
+
1742
+ options.apply_defaults timeout: @config.timeout,
1743
+ metadata: @config.metadata,
1744
+ retry_policy: @config.retry_policy
1745
+
1746
+ @intercept_stub.call_rpc :delete_intercept_deployment_group, request, options: options do |response, operation|
1747
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1748
+ yield response, operation if block_given?
1749
+ throw :response, response
1750
+ end
1751
+ rescue ::GRPC::BadStatus => e
1752
+ raise ::Google::Cloud::Error.from_error(e)
1753
+ end
1754
+
1755
+ ##
1756
+ # Lists deployments in a given project and location.
1757
+ # See https://google.aip.dev/132.
1758
+ #
1759
+ # @overload list_intercept_deployments(request, options = nil)
1760
+ # Pass arguments to `list_intercept_deployments` via a request object, either of type
1761
+ # {::Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentsRequest} or an equivalent Hash.
1762
+ #
1763
+ # @param request [::Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentsRequest, ::Hash]
1764
+ # A request object representing the call parameters. Required. To specify no
1765
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1766
+ # @param options [::Gapic::CallOptions, ::Hash]
1767
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1768
+ #
1769
+ # @overload list_intercept_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1770
+ # Pass arguments to `list_intercept_deployments` via keyword arguments. Note that at
1771
+ # least one keyword argument is required. To specify no parameters, or to keep all
1772
+ # the default parameter values, pass an empty Hash as a request object (see above).
1773
+ #
1774
+ # @param parent [::String]
1775
+ # Required. The parent, which owns this collection of deployments.
1776
+ # Example: `projects/123456789/locations/us-central1-a`.
1777
+ # See https://google.aip.dev/132 for more details.
1778
+ # @param page_size [::Integer]
1779
+ # Optional. Requested page size. Server may return fewer items than
1780
+ # requested. If unspecified, server will pick an appropriate default. See
1781
+ # https://google.aip.dev/158 for more details.
1782
+ # @param page_token [::String]
1783
+ # Optional. A page token, received from a previous `ListInterceptDeployments`
1784
+ # call. Provide this to retrieve the subsequent page. When paginating, all
1785
+ # other parameters provided to `ListInterceptDeployments` must match the call
1786
+ # that provided the page token. See https://google.aip.dev/158 for more
1787
+ # details.
1788
+ # @param filter [::String]
1789
+ # Optional. Filter expression.
1790
+ # See https://google.aip.dev/160#filtering for more details.
1791
+ # @param order_by [::String]
1792
+ # Optional. Sort expression.
1793
+ # See https://google.aip.dev/132#ordering for more details.
1794
+ #
1795
+ # @yield [response, operation] Access the result along with the RPC operation
1796
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeployment>]
1797
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1798
+ #
1799
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeployment>]
1800
+ #
1801
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1802
+ #
1803
+ # @example Basic example
1804
+ # require "google/cloud/network_security/v1"
1805
+ #
1806
+ # # Create a client object. The client can be reused for multiple calls.
1807
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
1808
+ #
1809
+ # # Create a request. To set request fields, pass in keyword arguments.
1810
+ # request = Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentsRequest.new
1811
+ #
1812
+ # # Call the list_intercept_deployments method.
1813
+ # result = client.list_intercept_deployments request
1814
+ #
1815
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1816
+ # # over elements, and API calls will be issued to fetch pages as needed.
1817
+ # result.each do |item|
1818
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1::InterceptDeployment.
1819
+ # p item
1820
+ # end
1821
+ #
1822
+ def list_intercept_deployments request, options = nil
1823
+ raise ::ArgumentError, "request must be provided" if request.nil?
1824
+
1825
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentsRequest
1826
+
1827
+ # Converts hash and nil to an options object
1828
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1829
+
1830
+ # Customize the options with defaults
1831
+ metadata = @config.rpcs.list_intercept_deployments.metadata.to_h
1832
+
1833
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1834
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1835
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1836
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
1837
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1838
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1839
+
1840
+ header_params = {}
1841
+ if request.parent
1842
+ header_params["parent"] = request.parent
1843
+ end
1844
+
1845
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1846
+ metadata[:"x-goog-request-params"] ||= request_params_header
1847
+
1848
+ options.apply_defaults timeout: @config.rpcs.list_intercept_deployments.timeout,
1849
+ metadata: metadata,
1850
+ retry_policy: @config.rpcs.list_intercept_deployments.retry_policy
1851
+
1852
+ options.apply_defaults timeout: @config.timeout,
1853
+ metadata: @config.metadata,
1854
+ retry_policy: @config.retry_policy
1855
+
1856
+ @intercept_stub.call_rpc :list_intercept_deployments, request, options: options do |response, operation|
1857
+ response = ::Gapic::PagedEnumerable.new @intercept_stub, :list_intercept_deployments, request, response, operation, options
1858
+ yield response, operation if block_given?
1859
+ throw :response, response
1860
+ end
1861
+ rescue ::GRPC::BadStatus => e
1862
+ raise ::Google::Cloud::Error.from_error(e)
1863
+ end
1864
+
1865
+ ##
1866
+ # Gets a specific deployment.
1867
+ # See https://google.aip.dev/131.
1868
+ #
1869
+ # @overload get_intercept_deployment(request, options = nil)
1870
+ # Pass arguments to `get_intercept_deployment` via a request object, either of type
1871
+ # {::Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentRequest} or an equivalent Hash.
1872
+ #
1873
+ # @param request [::Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentRequest, ::Hash]
1874
+ # A request object representing the call parameters. Required. To specify no
1875
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1876
+ # @param options [::Gapic::CallOptions, ::Hash]
1877
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1878
+ #
1879
+ # @overload get_intercept_deployment(name: nil)
1880
+ # Pass arguments to `get_intercept_deployment` via keyword arguments. Note that at
1881
+ # least one keyword argument is required. To specify no parameters, or to keep all
1882
+ # the default parameter values, pass an empty Hash as a request object (see above).
1883
+ #
1884
+ # @param name [::String]
1885
+ # Required. The name of the deployment to retrieve.
1886
+ # Format:
1887
+ # projects/\\{project}/locations/\\{location}/interceptDeployments/\\{intercept_deployment}
1888
+ #
1889
+ # @yield [response, operation] Access the result along with the RPC operation
1890
+ # @yieldparam response [::Google::Cloud::NetworkSecurity::V1::InterceptDeployment]
1891
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1892
+ #
1893
+ # @return [::Google::Cloud::NetworkSecurity::V1::InterceptDeployment]
1894
+ #
1895
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1896
+ #
1897
+ # @example Basic example
1898
+ # require "google/cloud/network_security/v1"
1899
+ #
1900
+ # # Create a client object. The client can be reused for multiple calls.
1901
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
1902
+ #
1903
+ # # Create a request. To set request fields, pass in keyword arguments.
1904
+ # request = Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentRequest.new
1905
+ #
1906
+ # # Call the get_intercept_deployment method.
1907
+ # result = client.get_intercept_deployment request
1908
+ #
1909
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1::InterceptDeployment.
1910
+ # p result
1911
+ #
1912
+ def get_intercept_deployment request, options = nil
1913
+ raise ::ArgumentError, "request must be provided" if request.nil?
1914
+
1915
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentRequest
1916
+
1917
+ # Converts hash and nil to an options object
1918
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1919
+
1920
+ # Customize the options with defaults
1921
+ metadata = @config.rpcs.get_intercept_deployment.metadata.to_h
1922
+
1923
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1924
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1925
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1926
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
1927
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1928
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1929
+
1930
+ header_params = {}
1931
+ if request.name
1932
+ header_params["name"] = request.name
1933
+ end
1934
+
1935
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1936
+ metadata[:"x-goog-request-params"] ||= request_params_header
1937
+
1938
+ options.apply_defaults timeout: @config.rpcs.get_intercept_deployment.timeout,
1939
+ metadata: metadata,
1940
+ retry_policy: @config.rpcs.get_intercept_deployment.retry_policy
1941
+
1942
+ options.apply_defaults timeout: @config.timeout,
1943
+ metadata: @config.metadata,
1944
+ retry_policy: @config.retry_policy
1945
+
1946
+ @intercept_stub.call_rpc :get_intercept_deployment, request, options: options do |response, operation|
1947
+ yield response, operation if block_given?
1948
+ end
1949
+ rescue ::GRPC::BadStatus => e
1950
+ raise ::Google::Cloud::Error.from_error(e)
1951
+ end
1952
+
1953
+ ##
1954
+ # Creates a deployment in a given project and location.
1955
+ # See https://google.aip.dev/133.
1956
+ #
1957
+ # @overload create_intercept_deployment(request, options = nil)
1958
+ # Pass arguments to `create_intercept_deployment` via a request object, either of type
1959
+ # {::Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentRequest} or an equivalent Hash.
1960
+ #
1961
+ # @param request [::Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentRequest, ::Hash]
1962
+ # A request object representing the call parameters. Required. To specify no
1963
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1964
+ # @param options [::Gapic::CallOptions, ::Hash]
1965
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1966
+ #
1967
+ # @overload create_intercept_deployment(parent: nil, intercept_deployment_id: nil, intercept_deployment: nil, request_id: nil)
1968
+ # Pass arguments to `create_intercept_deployment` via keyword arguments. Note that at
1969
+ # least one keyword argument is required. To specify no parameters, or to keep all
1970
+ # the default parameter values, pass an empty Hash as a request object (see above).
1971
+ #
1972
+ # @param parent [::String]
1973
+ # Required. The parent resource where this deployment will be created.
1974
+ # Format: projects/\\{project}/locations/\\{location}
1975
+ # @param intercept_deployment_id [::String]
1976
+ # Required. The ID to use for the new deployment, which will become the final
1977
+ # component of the deployment's resource name.
1978
+ # @param intercept_deployment [::Google::Cloud::NetworkSecurity::V1::InterceptDeployment, ::Hash]
1979
+ # Required. The deployment to create.
1980
+ # @param request_id [::String]
1981
+ # Optional. A unique identifier for this request. Must be a UUID4.
1982
+ # This request is only idempotent if a `request_id` is provided.
1983
+ # See https://google.aip.dev/155 for more details.
1984
+ #
1985
+ # @yield [response, operation] Access the result along with the RPC operation
1986
+ # @yieldparam response [::Gapic::Operation]
1987
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1988
+ #
1989
+ # @return [::Gapic::Operation]
1990
+ #
1991
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1992
+ #
1993
+ # @example Basic example
1994
+ # require "google/cloud/network_security/v1"
1995
+ #
1996
+ # # Create a client object. The client can be reused for multiple calls.
1997
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
1998
+ #
1999
+ # # Create a request. To set request fields, pass in keyword arguments.
2000
+ # request = Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentRequest.new
2001
+ #
2002
+ # # Call the create_intercept_deployment method.
2003
+ # result = client.create_intercept_deployment request
2004
+ #
2005
+ # # The returned object is of type Gapic::Operation. You can use it to
2006
+ # # check the status of an operation, cancel it, or wait for results.
2007
+ # # Here is how to wait for a response.
2008
+ # result.wait_until_done! timeout: 60
2009
+ # if result.response?
2010
+ # p result.response
2011
+ # else
2012
+ # puts "No response received."
2013
+ # end
2014
+ #
2015
+ def create_intercept_deployment request, options = nil
2016
+ raise ::ArgumentError, "request must be provided" if request.nil?
2017
+
2018
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentRequest
2019
+
2020
+ # Converts hash and nil to an options object
2021
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2022
+
2023
+ # Customize the options with defaults
2024
+ metadata = @config.rpcs.create_intercept_deployment.metadata.to_h
2025
+
2026
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2027
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2028
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2029
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
2030
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2031
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2032
+
2033
+ header_params = {}
2034
+ if request.parent
2035
+ header_params["parent"] = request.parent
2036
+ end
2037
+
2038
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2039
+ metadata[:"x-goog-request-params"] ||= request_params_header
2040
+
2041
+ options.apply_defaults timeout: @config.rpcs.create_intercept_deployment.timeout,
2042
+ metadata: metadata,
2043
+ retry_policy: @config.rpcs.create_intercept_deployment.retry_policy
2044
+
2045
+ options.apply_defaults timeout: @config.timeout,
2046
+ metadata: @config.metadata,
2047
+ retry_policy: @config.retry_policy
2048
+
2049
+ @intercept_stub.call_rpc :create_intercept_deployment, request, options: options do |response, operation|
2050
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2051
+ yield response, operation if block_given?
2052
+ throw :response, response
2053
+ end
2054
+ rescue ::GRPC::BadStatus => e
2055
+ raise ::Google::Cloud::Error.from_error(e)
2056
+ end
2057
+
2058
+ ##
2059
+ # Updates a deployment.
2060
+ # See https://google.aip.dev/134.
2061
+ #
2062
+ # @overload update_intercept_deployment(request, options = nil)
2063
+ # Pass arguments to `update_intercept_deployment` via a request object, either of type
2064
+ # {::Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentRequest} or an equivalent Hash.
2065
+ #
2066
+ # @param request [::Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentRequest, ::Hash]
2067
+ # A request object representing the call parameters. Required. To specify no
2068
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2069
+ # @param options [::Gapic::CallOptions, ::Hash]
2070
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2071
+ #
2072
+ # @overload update_intercept_deployment(update_mask: nil, intercept_deployment: nil, request_id: nil)
2073
+ # Pass arguments to `update_intercept_deployment` via keyword arguments. Note that at
2074
+ # least one keyword argument is required. To specify no parameters, or to keep all
2075
+ # the default parameter values, pass an empty Hash as a request object (see above).
2076
+ #
2077
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2078
+ # Optional. The list of fields to update.
2079
+ # Fields are specified relative to the deployment
2080
+ # (e.g. `description`; *not* `intercept_deployment.description`).
2081
+ # See https://google.aip.dev/161 for more details.
2082
+ # @param intercept_deployment [::Google::Cloud::NetworkSecurity::V1::InterceptDeployment, ::Hash]
2083
+ # Required. The deployment to update.
2084
+ # @param request_id [::String]
2085
+ # Optional. A unique identifier for this request. Must be a UUID4.
2086
+ # This request is only idempotent if a `request_id` is provided.
2087
+ # See https://google.aip.dev/155 for more details.
2088
+ #
2089
+ # @yield [response, operation] Access the result along with the RPC operation
2090
+ # @yieldparam response [::Gapic::Operation]
2091
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2092
+ #
2093
+ # @return [::Gapic::Operation]
2094
+ #
2095
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2096
+ #
2097
+ # @example Basic example
2098
+ # require "google/cloud/network_security/v1"
2099
+ #
2100
+ # # Create a client object. The client can be reused for multiple calls.
2101
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
2102
+ #
2103
+ # # Create a request. To set request fields, pass in keyword arguments.
2104
+ # request = Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentRequest.new
2105
+ #
2106
+ # # Call the update_intercept_deployment method.
2107
+ # result = client.update_intercept_deployment request
2108
+ #
2109
+ # # The returned object is of type Gapic::Operation. You can use it to
2110
+ # # check the status of an operation, cancel it, or wait for results.
2111
+ # # Here is how to wait for a response.
2112
+ # result.wait_until_done! timeout: 60
2113
+ # if result.response?
2114
+ # p result.response
2115
+ # else
2116
+ # puts "No response received."
2117
+ # end
2118
+ #
2119
+ def update_intercept_deployment request, options = nil
2120
+ raise ::ArgumentError, "request must be provided" if request.nil?
2121
+
2122
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentRequest
2123
+
2124
+ # Converts hash and nil to an options object
2125
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2126
+
2127
+ # Customize the options with defaults
2128
+ metadata = @config.rpcs.update_intercept_deployment.metadata.to_h
2129
+
2130
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2131
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2132
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2133
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
2134
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2135
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2136
+
2137
+ header_params = {}
2138
+ if request.intercept_deployment&.name
2139
+ header_params["intercept_deployment.name"] = request.intercept_deployment.name
2140
+ end
2141
+
2142
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2143
+ metadata[:"x-goog-request-params"] ||= request_params_header
2144
+
2145
+ options.apply_defaults timeout: @config.rpcs.update_intercept_deployment.timeout,
2146
+ metadata: metadata,
2147
+ retry_policy: @config.rpcs.update_intercept_deployment.retry_policy
2148
+
2149
+ options.apply_defaults timeout: @config.timeout,
2150
+ metadata: @config.metadata,
2151
+ retry_policy: @config.retry_policy
2152
+
2153
+ @intercept_stub.call_rpc :update_intercept_deployment, request, options: options do |response, operation|
2154
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2155
+ yield response, operation if block_given?
2156
+ throw :response, response
2157
+ end
2158
+ rescue ::GRPC::BadStatus => e
2159
+ raise ::Google::Cloud::Error.from_error(e)
2160
+ end
2161
+
2162
+ ##
2163
+ # Deletes a deployment.
2164
+ # See https://google.aip.dev/135.
2165
+ #
2166
+ # @overload delete_intercept_deployment(request, options = nil)
2167
+ # Pass arguments to `delete_intercept_deployment` via a request object, either of type
2168
+ # {::Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentRequest} or an equivalent Hash.
2169
+ #
2170
+ # @param request [::Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentRequest, ::Hash]
2171
+ # A request object representing the call parameters. Required. To specify no
2172
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2173
+ # @param options [::Gapic::CallOptions, ::Hash]
2174
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2175
+ #
2176
+ # @overload delete_intercept_deployment(name: nil, request_id: nil)
2177
+ # Pass arguments to `delete_intercept_deployment` via keyword arguments. Note that at
2178
+ # least one keyword argument is required. To specify no parameters, or to keep all
2179
+ # the default parameter values, pass an empty Hash as a request object (see above).
2180
+ #
2181
+ # @param name [::String]
2182
+ # Required. Name of the resource
2183
+ # @param request_id [::String]
2184
+ # Optional. A unique identifier for this request. Must be a UUID4.
2185
+ # This request is only idempotent if a `request_id` is provided.
2186
+ # See https://google.aip.dev/155 for more details.
2187
+ #
2188
+ # @yield [response, operation] Access the result along with the RPC operation
2189
+ # @yieldparam response [::Gapic::Operation]
2190
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2191
+ #
2192
+ # @return [::Gapic::Operation]
2193
+ #
2194
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2195
+ #
2196
+ # @example Basic example
2197
+ # require "google/cloud/network_security/v1"
2198
+ #
2199
+ # # Create a client object. The client can be reused for multiple calls.
2200
+ # client = Google::Cloud::NetworkSecurity::V1::Intercept::Client.new
2201
+ #
2202
+ # # Create a request. To set request fields, pass in keyword arguments.
2203
+ # request = Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentRequest.new
2204
+ #
2205
+ # # Call the delete_intercept_deployment method.
2206
+ # result = client.delete_intercept_deployment request
2207
+ #
2208
+ # # The returned object is of type Gapic::Operation. You can use it to
2209
+ # # check the status of an operation, cancel it, or wait for results.
2210
+ # # Here is how to wait for a response.
2211
+ # result.wait_until_done! timeout: 60
2212
+ # if result.response?
2213
+ # p result.response
2214
+ # else
2215
+ # puts "No response received."
2216
+ # end
2217
+ #
2218
+ def delete_intercept_deployment request, options = nil
2219
+ raise ::ArgumentError, "request must be provided" if request.nil?
2220
+
2221
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentRequest
2222
+
2223
+ # Converts hash and nil to an options object
2224
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2225
+
2226
+ # Customize the options with defaults
2227
+ metadata = @config.rpcs.delete_intercept_deployment.metadata.to_h
2228
+
2229
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2230
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2231
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2232
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
2233
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2234
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2235
+
2236
+ header_params = {}
2237
+ if request.name
2238
+ header_params["name"] = request.name
2239
+ end
2240
+
2241
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2242
+ metadata[:"x-goog-request-params"] ||= request_params_header
2243
+
2244
+ options.apply_defaults timeout: @config.rpcs.delete_intercept_deployment.timeout,
2245
+ metadata: metadata,
2246
+ retry_policy: @config.rpcs.delete_intercept_deployment.retry_policy
2247
+
2248
+ options.apply_defaults timeout: @config.timeout,
2249
+ metadata: @config.metadata,
2250
+ retry_policy: @config.retry_policy
2251
+
2252
+ @intercept_stub.call_rpc :delete_intercept_deployment, request, options: options do |response, operation|
2253
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2254
+ yield response, operation if block_given?
2255
+ throw :response, response
2256
+ end
2257
+ rescue ::GRPC::BadStatus => e
2258
+ raise ::Google::Cloud::Error.from_error(e)
2259
+ end
2260
+
2261
+ ##
2262
+ # Configuration class for the Intercept API.
2263
+ #
2264
+ # This class represents the configuration for Intercept,
2265
+ # providing control over timeouts, retry behavior, logging, transport
2266
+ # parameters, and other low-level controls. Certain parameters can also be
2267
+ # applied individually to specific RPCs. See
2268
+ # {::Google::Cloud::NetworkSecurity::V1::Intercept::Client::Configuration::Rpcs}
2269
+ # for a list of RPCs that can be configured independently.
2270
+ #
2271
+ # Configuration can be applied globally to all clients, or to a single client
2272
+ # on construction.
2273
+ #
2274
+ # @example
2275
+ #
2276
+ # # Modify the global config, setting the timeout for
2277
+ # # list_intercept_endpoint_groups to 20 seconds,
2278
+ # # and all remaining timeouts to 10 seconds.
2279
+ # ::Google::Cloud::NetworkSecurity::V1::Intercept::Client.configure do |config|
2280
+ # config.timeout = 10.0
2281
+ # config.rpcs.list_intercept_endpoint_groups.timeout = 20.0
2282
+ # end
2283
+ #
2284
+ # # Apply the above configuration only to a new client.
2285
+ # client = ::Google::Cloud::NetworkSecurity::V1::Intercept::Client.new do |config|
2286
+ # config.timeout = 10.0
2287
+ # config.rpcs.list_intercept_endpoint_groups.timeout = 20.0
2288
+ # end
2289
+ #
2290
+ # @!attribute [rw] endpoint
2291
+ # A custom service endpoint, as a hostname or hostname:port. The default is
2292
+ # nil, indicating to use the default endpoint in the current universe domain.
2293
+ # @return [::String,nil]
2294
+ # @!attribute [rw] credentials
2295
+ # Credentials to send with calls. You may provide any of the following types:
2296
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
2297
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2298
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2299
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2300
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2301
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2302
+ # * (`nil`) indicating no credentials
2303
+ #
2304
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
2305
+ # is deprecated. Providing an unvalidated credential configuration to
2306
+ # Google APIs can compromise the security of your systems and data.
2307
+ #
2308
+ # @example
2309
+ #
2310
+ # # The recommended way to provide credentials is to use the `make_creds` method
2311
+ # # on the appropriate credentials class for your environment.
2312
+ #
2313
+ # require "googleauth"
2314
+ #
2315
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2316
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2317
+ # )
2318
+ #
2319
+ # client = ::Google::Cloud::NetworkSecurity::V1::Intercept::Client.new do |config|
2320
+ # config.credentials = credentials
2321
+ # end
2322
+ #
2323
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
2324
+ # external source for authentication to Google Cloud, you must validate it before
2325
+ # providing it to a Google API client library. Providing an unvalidated credential
2326
+ # configuration to Google APIs can compromise the security of your systems and data.
2327
+ # For more information, refer to [Validate credential configurations from external
2328
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2329
+ # @return [::Object]
2330
+ # @!attribute [rw] scope
2331
+ # The OAuth scopes
2332
+ # @return [::Array<::String>]
2333
+ # @!attribute [rw] lib_name
2334
+ # The library name as recorded in instrumentation and logging
2335
+ # @return [::String]
2336
+ # @!attribute [rw] lib_version
2337
+ # The library version as recorded in instrumentation and logging
2338
+ # @return [::String]
2339
+ # @!attribute [rw] channel_args
2340
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
2341
+ # `GRPC::Core::Channel` object is provided as the credential.
2342
+ # @return [::Hash]
2343
+ # @!attribute [rw] interceptors
2344
+ # An array of interceptors that are run before calls are executed.
2345
+ # @return [::Array<::GRPC::ClientInterceptor>]
2346
+ # @!attribute [rw] timeout
2347
+ # The call timeout in seconds.
2348
+ # @return [::Numeric]
2349
+ # @!attribute [rw] metadata
2350
+ # Additional gRPC headers to be sent with the call.
2351
+ # @return [::Hash{::Symbol=>::String}]
2352
+ # @!attribute [rw] retry_policy
2353
+ # The retry policy. The value is a hash with the following keys:
2354
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2355
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2356
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2357
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
2358
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2359
+ # trigger a retry.
2360
+ # @return [::Hash]
2361
+ # @!attribute [rw] quota_project
2362
+ # A separate project against which to charge quota.
2363
+ # @return [::String]
2364
+ # @!attribute [rw] universe_domain
2365
+ # The universe domain within which to make requests. This determines the
2366
+ # default endpoint URL. The default value of nil uses the environment
2367
+ # universe (usually the default "googleapis.com" universe).
2368
+ # @return [::String,nil]
2369
+ # @!attribute [rw] logger
2370
+ # A custom logger to use for request/response debug logging, or the value
2371
+ # `:default` (the default) to construct a default logger, or `nil` to
2372
+ # explicitly disable logging.
2373
+ # @return [::Logger,:default,nil]
2374
+ #
2375
+ class Configuration
2376
+ extend ::Gapic::Config
2377
+
2378
+ # @private
2379
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
2380
+ DEFAULT_ENDPOINT = "networksecurity.googleapis.com"
2381
+
2382
+ config_attr :endpoint, nil, ::String, nil
2383
+ config_attr :credentials, nil do |value|
2384
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
2385
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
2386
+ allowed.any? { |klass| klass === value }
2387
+ end
2388
+ config_attr :scope, nil, ::String, ::Array, nil
2389
+ config_attr :lib_name, nil, ::String, nil
2390
+ config_attr :lib_version, nil, ::String, nil
2391
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
2392
+ config_attr :interceptors, nil, ::Array, nil
2393
+ config_attr :timeout, nil, ::Numeric, nil
2394
+ config_attr :metadata, nil, ::Hash, nil
2395
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2396
+ config_attr :quota_project, nil, ::String, nil
2397
+ config_attr :universe_domain, nil, ::String, nil
2398
+ config_attr :logger, :default, ::Logger, nil, :default
2399
+
2400
+ # @private
2401
+ def initialize parent_config = nil
2402
+ @parent_config = parent_config unless parent_config.nil?
2403
+
2404
+ yield self if block_given?
2405
+ end
2406
+
2407
+ ##
2408
+ # Configurations for individual RPCs
2409
+ # @return [Rpcs]
2410
+ #
2411
+ def rpcs
2412
+ @rpcs ||= begin
2413
+ parent_rpcs = nil
2414
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
2415
+ Rpcs.new parent_rpcs
2416
+ end
2417
+ end
2418
+
2419
+ ##
2420
+ # Configuration for the channel pool
2421
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2422
+ #
2423
+ def channel_pool
2424
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2425
+ end
2426
+
2427
+ ##
2428
+ # Configuration RPC class for the Intercept API.
2429
+ #
2430
+ # Includes fields providing the configuration for each RPC in this service.
2431
+ # Each configuration object is of type `Gapic::Config::Method` and includes
2432
+ # the following configuration fields:
2433
+ #
2434
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
2435
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
2436
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
2437
+ # include the following keys:
2438
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2439
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2440
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2441
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
2442
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2443
+ # trigger a retry.
2444
+ #
2445
+ class Rpcs
2446
+ ##
2447
+ # RPC-specific configuration for `list_intercept_endpoint_groups`
2448
+ # @return [::Gapic::Config::Method]
2449
+ #
2450
+ attr_reader :list_intercept_endpoint_groups
2451
+ ##
2452
+ # RPC-specific configuration for `get_intercept_endpoint_group`
2453
+ # @return [::Gapic::Config::Method]
2454
+ #
2455
+ attr_reader :get_intercept_endpoint_group
2456
+ ##
2457
+ # RPC-specific configuration for `create_intercept_endpoint_group`
2458
+ # @return [::Gapic::Config::Method]
2459
+ #
2460
+ attr_reader :create_intercept_endpoint_group
2461
+ ##
2462
+ # RPC-specific configuration for `update_intercept_endpoint_group`
2463
+ # @return [::Gapic::Config::Method]
2464
+ #
2465
+ attr_reader :update_intercept_endpoint_group
2466
+ ##
2467
+ # RPC-specific configuration for `delete_intercept_endpoint_group`
2468
+ # @return [::Gapic::Config::Method]
2469
+ #
2470
+ attr_reader :delete_intercept_endpoint_group
2471
+ ##
2472
+ # RPC-specific configuration for `list_intercept_endpoint_group_associations`
2473
+ # @return [::Gapic::Config::Method]
2474
+ #
2475
+ attr_reader :list_intercept_endpoint_group_associations
2476
+ ##
2477
+ # RPC-specific configuration for `get_intercept_endpoint_group_association`
2478
+ # @return [::Gapic::Config::Method]
2479
+ #
2480
+ attr_reader :get_intercept_endpoint_group_association
2481
+ ##
2482
+ # RPC-specific configuration for `create_intercept_endpoint_group_association`
2483
+ # @return [::Gapic::Config::Method]
2484
+ #
2485
+ attr_reader :create_intercept_endpoint_group_association
2486
+ ##
2487
+ # RPC-specific configuration for `update_intercept_endpoint_group_association`
2488
+ # @return [::Gapic::Config::Method]
2489
+ #
2490
+ attr_reader :update_intercept_endpoint_group_association
2491
+ ##
2492
+ # RPC-specific configuration for `delete_intercept_endpoint_group_association`
2493
+ # @return [::Gapic::Config::Method]
2494
+ #
2495
+ attr_reader :delete_intercept_endpoint_group_association
2496
+ ##
2497
+ # RPC-specific configuration for `list_intercept_deployment_groups`
2498
+ # @return [::Gapic::Config::Method]
2499
+ #
2500
+ attr_reader :list_intercept_deployment_groups
2501
+ ##
2502
+ # RPC-specific configuration for `get_intercept_deployment_group`
2503
+ # @return [::Gapic::Config::Method]
2504
+ #
2505
+ attr_reader :get_intercept_deployment_group
2506
+ ##
2507
+ # RPC-specific configuration for `create_intercept_deployment_group`
2508
+ # @return [::Gapic::Config::Method]
2509
+ #
2510
+ attr_reader :create_intercept_deployment_group
2511
+ ##
2512
+ # RPC-specific configuration for `update_intercept_deployment_group`
2513
+ # @return [::Gapic::Config::Method]
2514
+ #
2515
+ attr_reader :update_intercept_deployment_group
2516
+ ##
2517
+ # RPC-specific configuration for `delete_intercept_deployment_group`
2518
+ # @return [::Gapic::Config::Method]
2519
+ #
2520
+ attr_reader :delete_intercept_deployment_group
2521
+ ##
2522
+ # RPC-specific configuration for `list_intercept_deployments`
2523
+ # @return [::Gapic::Config::Method]
2524
+ #
2525
+ attr_reader :list_intercept_deployments
2526
+ ##
2527
+ # RPC-specific configuration for `get_intercept_deployment`
2528
+ # @return [::Gapic::Config::Method]
2529
+ #
2530
+ attr_reader :get_intercept_deployment
2531
+ ##
2532
+ # RPC-specific configuration for `create_intercept_deployment`
2533
+ # @return [::Gapic::Config::Method]
2534
+ #
2535
+ attr_reader :create_intercept_deployment
2536
+ ##
2537
+ # RPC-specific configuration for `update_intercept_deployment`
2538
+ # @return [::Gapic::Config::Method]
2539
+ #
2540
+ attr_reader :update_intercept_deployment
2541
+ ##
2542
+ # RPC-specific configuration for `delete_intercept_deployment`
2543
+ # @return [::Gapic::Config::Method]
2544
+ #
2545
+ attr_reader :delete_intercept_deployment
2546
+
2547
+ # @private
2548
+ def initialize parent_rpcs = nil
2549
+ list_intercept_endpoint_groups_config = parent_rpcs.list_intercept_endpoint_groups if parent_rpcs.respond_to? :list_intercept_endpoint_groups
2550
+ @list_intercept_endpoint_groups = ::Gapic::Config::Method.new list_intercept_endpoint_groups_config
2551
+ get_intercept_endpoint_group_config = parent_rpcs.get_intercept_endpoint_group if parent_rpcs.respond_to? :get_intercept_endpoint_group
2552
+ @get_intercept_endpoint_group = ::Gapic::Config::Method.new get_intercept_endpoint_group_config
2553
+ create_intercept_endpoint_group_config = parent_rpcs.create_intercept_endpoint_group if parent_rpcs.respond_to? :create_intercept_endpoint_group
2554
+ @create_intercept_endpoint_group = ::Gapic::Config::Method.new create_intercept_endpoint_group_config
2555
+ update_intercept_endpoint_group_config = parent_rpcs.update_intercept_endpoint_group if parent_rpcs.respond_to? :update_intercept_endpoint_group
2556
+ @update_intercept_endpoint_group = ::Gapic::Config::Method.new update_intercept_endpoint_group_config
2557
+ delete_intercept_endpoint_group_config = parent_rpcs.delete_intercept_endpoint_group if parent_rpcs.respond_to? :delete_intercept_endpoint_group
2558
+ @delete_intercept_endpoint_group = ::Gapic::Config::Method.new delete_intercept_endpoint_group_config
2559
+ list_intercept_endpoint_group_associations_config = parent_rpcs.list_intercept_endpoint_group_associations if parent_rpcs.respond_to? :list_intercept_endpoint_group_associations
2560
+ @list_intercept_endpoint_group_associations = ::Gapic::Config::Method.new list_intercept_endpoint_group_associations_config
2561
+ get_intercept_endpoint_group_association_config = parent_rpcs.get_intercept_endpoint_group_association if parent_rpcs.respond_to? :get_intercept_endpoint_group_association
2562
+ @get_intercept_endpoint_group_association = ::Gapic::Config::Method.new get_intercept_endpoint_group_association_config
2563
+ create_intercept_endpoint_group_association_config = parent_rpcs.create_intercept_endpoint_group_association if parent_rpcs.respond_to? :create_intercept_endpoint_group_association
2564
+ @create_intercept_endpoint_group_association = ::Gapic::Config::Method.new create_intercept_endpoint_group_association_config
2565
+ update_intercept_endpoint_group_association_config = parent_rpcs.update_intercept_endpoint_group_association if parent_rpcs.respond_to? :update_intercept_endpoint_group_association
2566
+ @update_intercept_endpoint_group_association = ::Gapic::Config::Method.new update_intercept_endpoint_group_association_config
2567
+ delete_intercept_endpoint_group_association_config = parent_rpcs.delete_intercept_endpoint_group_association if parent_rpcs.respond_to? :delete_intercept_endpoint_group_association
2568
+ @delete_intercept_endpoint_group_association = ::Gapic::Config::Method.new delete_intercept_endpoint_group_association_config
2569
+ list_intercept_deployment_groups_config = parent_rpcs.list_intercept_deployment_groups if parent_rpcs.respond_to? :list_intercept_deployment_groups
2570
+ @list_intercept_deployment_groups = ::Gapic::Config::Method.new list_intercept_deployment_groups_config
2571
+ get_intercept_deployment_group_config = parent_rpcs.get_intercept_deployment_group if parent_rpcs.respond_to? :get_intercept_deployment_group
2572
+ @get_intercept_deployment_group = ::Gapic::Config::Method.new get_intercept_deployment_group_config
2573
+ create_intercept_deployment_group_config = parent_rpcs.create_intercept_deployment_group if parent_rpcs.respond_to? :create_intercept_deployment_group
2574
+ @create_intercept_deployment_group = ::Gapic::Config::Method.new create_intercept_deployment_group_config
2575
+ update_intercept_deployment_group_config = parent_rpcs.update_intercept_deployment_group if parent_rpcs.respond_to? :update_intercept_deployment_group
2576
+ @update_intercept_deployment_group = ::Gapic::Config::Method.new update_intercept_deployment_group_config
2577
+ delete_intercept_deployment_group_config = parent_rpcs.delete_intercept_deployment_group if parent_rpcs.respond_to? :delete_intercept_deployment_group
2578
+ @delete_intercept_deployment_group = ::Gapic::Config::Method.new delete_intercept_deployment_group_config
2579
+ list_intercept_deployments_config = parent_rpcs.list_intercept_deployments if parent_rpcs.respond_to? :list_intercept_deployments
2580
+ @list_intercept_deployments = ::Gapic::Config::Method.new list_intercept_deployments_config
2581
+ get_intercept_deployment_config = parent_rpcs.get_intercept_deployment if parent_rpcs.respond_to? :get_intercept_deployment
2582
+ @get_intercept_deployment = ::Gapic::Config::Method.new get_intercept_deployment_config
2583
+ create_intercept_deployment_config = parent_rpcs.create_intercept_deployment if parent_rpcs.respond_to? :create_intercept_deployment
2584
+ @create_intercept_deployment = ::Gapic::Config::Method.new create_intercept_deployment_config
2585
+ update_intercept_deployment_config = parent_rpcs.update_intercept_deployment if parent_rpcs.respond_to? :update_intercept_deployment
2586
+ @update_intercept_deployment = ::Gapic::Config::Method.new update_intercept_deployment_config
2587
+ delete_intercept_deployment_config = parent_rpcs.delete_intercept_deployment if parent_rpcs.respond_to? :delete_intercept_deployment
2588
+ @delete_intercept_deployment = ::Gapic::Config::Method.new delete_intercept_deployment_config
2589
+
2590
+ yield self if block_given?
2591
+ end
2592
+ end
2593
+ end
2594
+ end
2595
+ end
2596
+ end
2597
+ end
2598
+ end
2599
+ end