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,1316 @@
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/sse_realm_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 SSERealmService
29
+ ##
30
+ # Client for the SSERealmService service.
31
+ #
32
+ # Service describing handlers for resources
33
+ #
34
+ class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
38
+ # @private
39
+ DEFAULT_ENDPOINT_TEMPLATE = "networksecurity.$UNIVERSE_DOMAIN$"
40
+
41
+ include Paths
42
+
43
+ # @private
44
+ attr_reader :sse_realm_service_stub
45
+
46
+ ##
47
+ # Configure the SSERealmService Client class.
48
+ #
49
+ # See {::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client::Configuration}
50
+ # for a description of the configuration fields.
51
+ #
52
+ # @example
53
+ #
54
+ # # Modify the configuration for all SSERealmService clients
55
+ # ::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
58
+ #
59
+ # @yield [config] Configure the Client client.
60
+ # @yieldparam config [Client::Configuration]
61
+ #
62
+ # @return [Client::Configuration]
63
+ #
64
+ def self.configure
65
+ @configure ||= begin
66
+ namespace = ["Google", "Cloud", "NetworkSecurity", "V1"]
67
+ parent_config = while namespace.any?
68
+ parent_name = namespace.join "::"
69
+ parent_const = const_get parent_name
70
+ break parent_const.configure if parent_const.respond_to? :configure
71
+ namespace.pop
72
+ end
73
+ default_config = Client::Configuration.new parent_config
74
+
75
+ default_config
76
+ end
77
+ yield @configure if block_given?
78
+ @configure
79
+ end
80
+
81
+ ##
82
+ # Configure the SSERealmService Client instance.
83
+ #
84
+ # The configuration is set to the derived mode, meaning that values can be changed,
85
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
86
+ # should be made on {Client.configure}.
87
+ #
88
+ # See {::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client::Configuration}
89
+ # for a description of the configuration fields.
90
+ #
91
+ # @yield [config] Configure the Client client.
92
+ # @yieldparam config [Client::Configuration]
93
+ #
94
+ # @return [Client::Configuration]
95
+ #
96
+ def configure
97
+ yield @config if block_given?
98
+ @config
99
+ end
100
+
101
+ ##
102
+ # The effective universe domain
103
+ #
104
+ # @return [String]
105
+ #
106
+ def universe_domain
107
+ @sse_realm_service_stub.universe_domain
108
+ end
109
+
110
+ ##
111
+ # Create a new SSERealmService client object.
112
+ #
113
+ # @example
114
+ #
115
+ # # Create a client using the default configuration
116
+ # client = ::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new
117
+ #
118
+ # # Create a client using a custom configuration
119
+ # client = ::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new do |config|
120
+ # config.timeout = 10.0
121
+ # end
122
+ #
123
+ # @yield [config] Configure the SSERealmService client.
124
+ # @yieldparam config [Client::Configuration]
125
+ #
126
+ def initialize
127
+ # These require statements are intentionally placed here to initialize
128
+ # the gRPC module only when it's required.
129
+ # See https://github.com/googleapis/toolkit/issues/446
130
+ require "gapic/grpc"
131
+ require "google/cloud/networksecurity/v1/sse_realm_services_pb"
132
+
133
+ # Create the configuration object
134
+ @config = Configuration.new Client.configure
135
+
136
+ # Yield the configuration if needed
137
+ yield @config if block_given?
138
+
139
+ # Create credentials
140
+ credentials = @config.credentials
141
+ # Use self-signed JWT if the endpoint is unchanged from default,
142
+ # but only if the default endpoint does not have a region prefix.
143
+ enable_self_signed_jwt = @config.endpoint.nil? ||
144
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
145
+ !@config.endpoint.split(".").first.include?("-"))
146
+ credentials ||= Credentials.default scope: @config.scope,
147
+ enable_self_signed_jwt: enable_self_signed_jwt
148
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
149
+ credentials = Credentials.new credentials, scope: @config.scope
150
+ end
151
+ @quota_project_id = @config.quota_project
152
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
153
+
154
+ @operations_client = Operations.new do |config|
155
+ config.credentials = credentials
156
+ config.quota_project = @quota_project_id
157
+ config.endpoint = @config.endpoint
158
+ config.universe_domain = @config.universe_domain
159
+ end
160
+
161
+ @sse_realm_service_stub = ::Gapic::ServiceStub.new(
162
+ ::Google::Cloud::NetworkSecurity::V1::SSERealmService::Stub,
163
+ credentials: credentials,
164
+ endpoint: @config.endpoint,
165
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
166
+ universe_domain: @config.universe_domain,
167
+ channel_args: @config.channel_args,
168
+ interceptors: @config.interceptors,
169
+ channel_pool_config: @config.channel_pool,
170
+ logger: @config.logger
171
+ )
172
+
173
+ @sse_realm_service_stub.stub_logger&.info do |entry|
174
+ entry.set_system_name
175
+ entry.set_service
176
+ entry.message = "Created client for #{entry.service}"
177
+ entry.set_credentials_fields credentials
178
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
179
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
180
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
181
+ end
182
+
183
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
184
+ config.credentials = credentials
185
+ config.quota_project = @quota_project_id
186
+ config.endpoint = @sse_realm_service_stub.endpoint
187
+ config.universe_domain = @sse_realm_service_stub.universe_domain
188
+ config.logger = @sse_realm_service_stub.logger if config.respond_to? :logger=
189
+ end
190
+
191
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
192
+ config.credentials = credentials
193
+ config.quota_project = @quota_project_id
194
+ config.endpoint = @sse_realm_service_stub.endpoint
195
+ config.universe_domain = @sse_realm_service_stub.universe_domain
196
+ config.logger = @sse_realm_service_stub.logger if config.respond_to? :logger=
197
+ end
198
+ end
199
+
200
+ ##
201
+ # Get the associated client for long-running operations.
202
+ #
203
+ # @return [::Google::Cloud::NetworkSecurity::V1::SSERealmService::Operations]
204
+ #
205
+ attr_reader :operations_client
206
+
207
+ ##
208
+ # Get the associated client for mix-in of the Locations.
209
+ #
210
+ # @return [Google::Cloud::Location::Locations::Client]
211
+ #
212
+ attr_reader :location_client
213
+
214
+ ##
215
+ # Get the associated client for mix-in of the IAMPolicy.
216
+ #
217
+ # @return [Google::Iam::V1::IAMPolicy::Client]
218
+ #
219
+ attr_reader :iam_policy_client
220
+
221
+ ##
222
+ # The logger used for request/response debug logging.
223
+ #
224
+ # @return [Logger]
225
+ #
226
+ def logger
227
+ @sse_realm_service_stub.logger
228
+ end
229
+
230
+ # Service calls
231
+
232
+ ##
233
+ # Lists SACRealms in a given project.
234
+ #
235
+ # @overload list_sac_realms(request, options = nil)
236
+ # Pass arguments to `list_sac_realms` via a request object, either of type
237
+ # {::Google::Cloud::NetworkSecurity::V1::ListSACRealmsRequest} or an equivalent Hash.
238
+ #
239
+ # @param request [::Google::Cloud::NetworkSecurity::V1::ListSACRealmsRequest, ::Hash]
240
+ # A request object representing the call parameters. Required. To specify no
241
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
242
+ # @param options [::Gapic::CallOptions, ::Hash]
243
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
244
+ #
245
+ # @overload list_sac_realms(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
246
+ # Pass arguments to `list_sac_realms` via keyword arguments. Note that at
247
+ # least one keyword argument is required. To specify no parameters, or to keep all
248
+ # the default parameter values, pass an empty Hash as a request object (see above).
249
+ #
250
+ # @param parent [::String]
251
+ # Required. The parent, in the form `projects/{project}/locations/global`.
252
+ # @param page_size [::Integer]
253
+ # Optional. Requested page size. Server may return fewer items than
254
+ # requested. If unspecified, server will pick an appropriate default.
255
+ # @param page_token [::String]
256
+ # Optional. A token identifying a page of results the server should return.
257
+ # @param filter [::String]
258
+ # Optional. An expression that filters the list of results.
259
+ # @param order_by [::String]
260
+ # Optional. Sort the results by a certain order.
261
+ #
262
+ # @yield [response, operation] Access the result along with the RPC operation
263
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACRealm>]
264
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
265
+ #
266
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACRealm>]
267
+ #
268
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
269
+ #
270
+ # @example Basic example
271
+ # require "google/cloud/network_security/v1"
272
+ #
273
+ # # Create a client object. The client can be reused for multiple calls.
274
+ # client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new
275
+ #
276
+ # # Create a request. To set request fields, pass in keyword arguments.
277
+ # request = Google::Cloud::NetworkSecurity::V1::ListSACRealmsRequest.new
278
+ #
279
+ # # Call the list_sac_realms method.
280
+ # result = client.list_sac_realms request
281
+ #
282
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
283
+ # # over elements, and API calls will be issued to fetch pages as needed.
284
+ # result.each do |item|
285
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1::SACRealm.
286
+ # p item
287
+ # end
288
+ #
289
+ def list_sac_realms request, options = nil
290
+ raise ::ArgumentError, "request must be provided" if request.nil?
291
+
292
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::ListSACRealmsRequest
293
+
294
+ # Converts hash and nil to an options object
295
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
296
+
297
+ # Customize the options with defaults
298
+ metadata = @config.rpcs.list_sac_realms.metadata.to_h
299
+
300
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
301
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
302
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
303
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
304
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
305
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
+
307
+ header_params = {}
308
+ if request.parent
309
+ header_params["parent"] = request.parent
310
+ end
311
+
312
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
313
+ metadata[:"x-goog-request-params"] ||= request_params_header
314
+
315
+ options.apply_defaults timeout: @config.rpcs.list_sac_realms.timeout,
316
+ metadata: metadata,
317
+ retry_policy: @config.rpcs.list_sac_realms.retry_policy
318
+
319
+ options.apply_defaults timeout: @config.timeout,
320
+ metadata: @config.metadata,
321
+ retry_policy: @config.retry_policy
322
+
323
+ @sse_realm_service_stub.call_rpc :list_sac_realms, request, options: options do |response, operation|
324
+ response = ::Gapic::PagedEnumerable.new @sse_realm_service_stub, :list_sac_realms, request, response, operation, options
325
+ yield response, operation if block_given?
326
+ throw :response, response
327
+ end
328
+ rescue ::GRPC::BadStatus => e
329
+ raise ::Google::Cloud::Error.from_error(e)
330
+ end
331
+
332
+ ##
333
+ # Returns the specified realm.
334
+ #
335
+ # @overload get_sac_realm(request, options = nil)
336
+ # Pass arguments to `get_sac_realm` via a request object, either of type
337
+ # {::Google::Cloud::NetworkSecurity::V1::GetSACRealmRequest} or an equivalent Hash.
338
+ #
339
+ # @param request [::Google::Cloud::NetworkSecurity::V1::GetSACRealmRequest, ::Hash]
340
+ # A request object representing the call parameters. Required. To specify no
341
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
342
+ # @param options [::Gapic::CallOptions, ::Hash]
343
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
344
+ #
345
+ # @overload get_sac_realm(name: nil)
346
+ # Pass arguments to `get_sac_realm` via keyword arguments. Note that at
347
+ # least one keyword argument is required. To specify no parameters, or to keep all
348
+ # the default parameter values, pass an empty Hash as a request object (see above).
349
+ #
350
+ # @param name [::String]
351
+ # Required. Name of the resource, in the form
352
+ # `projects/{project}/locations/global/sacRealms/{sacRealm}`.
353
+ #
354
+ # @yield [response, operation] Access the result along with the RPC operation
355
+ # @yieldparam response [::Google::Cloud::NetworkSecurity::V1::SACRealm]
356
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
357
+ #
358
+ # @return [::Google::Cloud::NetworkSecurity::V1::SACRealm]
359
+ #
360
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
361
+ #
362
+ # @example Basic example
363
+ # require "google/cloud/network_security/v1"
364
+ #
365
+ # # Create a client object. The client can be reused for multiple calls.
366
+ # client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new
367
+ #
368
+ # # Create a request. To set request fields, pass in keyword arguments.
369
+ # request = Google::Cloud::NetworkSecurity::V1::GetSACRealmRequest.new
370
+ #
371
+ # # Call the get_sac_realm method.
372
+ # result = client.get_sac_realm request
373
+ #
374
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1::SACRealm.
375
+ # p result
376
+ #
377
+ def get_sac_realm request, options = nil
378
+ raise ::ArgumentError, "request must be provided" if request.nil?
379
+
380
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::GetSACRealmRequest
381
+
382
+ # Converts hash and nil to an options object
383
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
384
+
385
+ # Customize the options with defaults
386
+ metadata = @config.rpcs.get_sac_realm.metadata.to_h
387
+
388
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
389
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
390
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
391
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
392
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
393
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
394
+
395
+ header_params = {}
396
+ if request.name
397
+ header_params["name"] = request.name
398
+ end
399
+
400
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
401
+ metadata[:"x-goog-request-params"] ||= request_params_header
402
+
403
+ options.apply_defaults timeout: @config.rpcs.get_sac_realm.timeout,
404
+ metadata: metadata,
405
+ retry_policy: @config.rpcs.get_sac_realm.retry_policy
406
+
407
+ options.apply_defaults timeout: @config.timeout,
408
+ metadata: @config.metadata,
409
+ retry_policy: @config.retry_policy
410
+
411
+ @sse_realm_service_stub.call_rpc :get_sac_realm, request, options: options do |response, operation|
412
+ yield response, operation if block_given?
413
+ end
414
+ rescue ::GRPC::BadStatus => e
415
+ raise ::Google::Cloud::Error.from_error(e)
416
+ end
417
+
418
+ ##
419
+ # Creates a new SACRealm in a given project.
420
+ #
421
+ # @overload create_sac_realm(request, options = nil)
422
+ # Pass arguments to `create_sac_realm` via a request object, either of type
423
+ # {::Google::Cloud::NetworkSecurity::V1::CreateSACRealmRequest} or an equivalent Hash.
424
+ #
425
+ # @param request [::Google::Cloud::NetworkSecurity::V1::CreateSACRealmRequest, ::Hash]
426
+ # A request object representing the call parameters. Required. To specify no
427
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
428
+ # @param options [::Gapic::CallOptions, ::Hash]
429
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
430
+ #
431
+ # @overload create_sac_realm(parent: nil, sac_realm_id: nil, sac_realm: nil, request_id: nil)
432
+ # Pass arguments to `create_sac_realm` via keyword arguments. Note that at
433
+ # least one keyword argument is required. To specify no parameters, or to keep all
434
+ # the default parameter values, pass an empty Hash as a request object (see above).
435
+ #
436
+ # @param parent [::String]
437
+ # Required. The parent, in the form `projects/{project}/locations/global`.
438
+ # @param sac_realm_id [::String]
439
+ # Required. ID of the created realm.
440
+ # The ID must be 1-63 characters long, and comply with
441
+ # <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
442
+ # Specifically, it must be 1-63 characters long and match the regular
443
+ # expression `[a-z]([-a-z0-9]*[a-z0-9])?`
444
+ # which means the first character must be a lowercase letter, and all
445
+ # following characters must be a dash, lowercase letter, or digit, except
446
+ # the last character, which cannot be a dash.
447
+ # @param sac_realm [::Google::Cloud::NetworkSecurity::V1::SACRealm, ::Hash]
448
+ # Required. The resource being created.
449
+ # @param request_id [::String]
450
+ # Optional. An optional request ID to identify requests. Specify a unique
451
+ # request ID so that if you must retry your request, the server will know to
452
+ # ignore the request if it has already been completed. The server will
453
+ # guarantee that for at least 60 minutes since the first request.
454
+ #
455
+ # For example, consider a situation where you make an initial request and the
456
+ # request times out. If you make the request again with the same request
457
+ # ID, the server can check if original operation with the same request ID
458
+ # was received, and if so, will ignore the second request. This prevents
459
+ # clients from accidentally creating duplicate commitments.
460
+ #
461
+ # The request ID must be a valid UUID with the exception that zero UUID is
462
+ # not supported (00000000-0000-0000-0000-000000000000).
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::SSERealmService::Client.new
477
+ #
478
+ # # Create a request. To set request fields, pass in keyword arguments.
479
+ # request = Google::Cloud::NetworkSecurity::V1::CreateSACRealmRequest.new
480
+ #
481
+ # # Call the create_sac_realm method.
482
+ # result = client.create_sac_realm 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_sac_realm 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::CreateSACRealmRequest
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_sac_realm.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_sac_realm.timeout,
521
+ metadata: metadata,
522
+ retry_policy: @config.rpcs.create_sac_realm.retry_policy
523
+
524
+ options.apply_defaults timeout: @config.timeout,
525
+ metadata: @config.metadata,
526
+ retry_policy: @config.retry_policy
527
+
528
+ @sse_realm_service_stub.call_rpc :create_sac_realm, 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
+ # Deletes the specified realm.
539
+ #
540
+ # @overload delete_sac_realm(request, options = nil)
541
+ # Pass arguments to `delete_sac_realm` via a request object, either of type
542
+ # {::Google::Cloud::NetworkSecurity::V1::DeleteSACRealmRequest} or an equivalent Hash.
543
+ #
544
+ # @param request [::Google::Cloud::NetworkSecurity::V1::DeleteSACRealmRequest, ::Hash]
545
+ # A request object representing the call parameters. Required. To specify no
546
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
547
+ # @param options [::Gapic::CallOptions, ::Hash]
548
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
549
+ #
550
+ # @overload delete_sac_realm(name: nil, request_id: nil)
551
+ # Pass arguments to `delete_sac_realm` via keyword arguments. Note that at
552
+ # least one keyword argument is required. To specify no parameters, or to keep all
553
+ # the default parameter values, pass an empty Hash as a request object (see above).
554
+ #
555
+ # @param name [::String]
556
+ # Required. Name of the resource, in the form
557
+ # `projects/{project}/locations/global/sacRealms/{sacRealm}`.
558
+ # @param request_id [::String]
559
+ # Optional. An optional request ID to identify requests. Specify a unique
560
+ # request ID so that if you must retry your request, the server will know to
561
+ # ignore the request if it has already been completed. The server will
562
+ # guarantee that for at least 60 minutes after the first request.
563
+ #
564
+ # For example, consider a situation where you make an initial request and the
565
+ # request times out. If you make the request again with the same request
566
+ # ID, the server can check if original operation with the same request ID
567
+ # was received, and if so, will ignore the second request. This prevents
568
+ # clients from accidentally creating duplicate commitments.
569
+ #
570
+ # The request ID must be a valid UUID with the exception that zero UUID is
571
+ # not supported (00000000-0000-0000-0000-000000000000).
572
+ #
573
+ # @yield [response, operation] Access the result along with the RPC operation
574
+ # @yieldparam response [::Gapic::Operation]
575
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
576
+ #
577
+ # @return [::Gapic::Operation]
578
+ #
579
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
580
+ #
581
+ # @example Basic example
582
+ # require "google/cloud/network_security/v1"
583
+ #
584
+ # # Create a client object. The client can be reused for multiple calls.
585
+ # client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new
586
+ #
587
+ # # Create a request. To set request fields, pass in keyword arguments.
588
+ # request = Google::Cloud::NetworkSecurity::V1::DeleteSACRealmRequest.new
589
+ #
590
+ # # Call the delete_sac_realm method.
591
+ # result = client.delete_sac_realm request
592
+ #
593
+ # # The returned object is of type Gapic::Operation. You can use it to
594
+ # # check the status of an operation, cancel it, or wait for results.
595
+ # # Here is how to wait for a response.
596
+ # result.wait_until_done! timeout: 60
597
+ # if result.response?
598
+ # p result.response
599
+ # else
600
+ # puts "No response received."
601
+ # end
602
+ #
603
+ def delete_sac_realm request, options = nil
604
+ raise ::ArgumentError, "request must be provided" if request.nil?
605
+
606
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::DeleteSACRealmRequest
607
+
608
+ # Converts hash and nil to an options object
609
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
610
+
611
+ # Customize the options with defaults
612
+ metadata = @config.rpcs.delete_sac_realm.metadata.to_h
613
+
614
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
615
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
616
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
617
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
618
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
619
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
620
+
621
+ header_params = {}
622
+ if request.name
623
+ header_params["name"] = request.name
624
+ end
625
+
626
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
627
+ metadata[:"x-goog-request-params"] ||= request_params_header
628
+
629
+ options.apply_defaults timeout: @config.rpcs.delete_sac_realm.timeout,
630
+ metadata: metadata,
631
+ retry_policy: @config.rpcs.delete_sac_realm.retry_policy
632
+
633
+ options.apply_defaults timeout: @config.timeout,
634
+ metadata: @config.metadata,
635
+ retry_policy: @config.retry_policy
636
+
637
+ @sse_realm_service_stub.call_rpc :delete_sac_realm, request, options: options do |response, operation|
638
+ response = ::Gapic::Operation.new response, @operations_client, options: options
639
+ yield response, operation if block_given?
640
+ throw :response, response
641
+ end
642
+ rescue ::GRPC::BadStatus => e
643
+ raise ::Google::Cloud::Error.from_error(e)
644
+ end
645
+
646
+ ##
647
+ # Lists SACAttachments in a given project and location.
648
+ #
649
+ # @overload list_sac_attachments(request, options = nil)
650
+ # Pass arguments to `list_sac_attachments` via a request object, either of type
651
+ # {::Google::Cloud::NetworkSecurity::V1::ListSACAttachmentsRequest} or an equivalent Hash.
652
+ #
653
+ # @param request [::Google::Cloud::NetworkSecurity::V1::ListSACAttachmentsRequest, ::Hash]
654
+ # A request object representing the call parameters. Required. To specify no
655
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
656
+ # @param options [::Gapic::CallOptions, ::Hash]
657
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
658
+ #
659
+ # @overload list_sac_attachments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
660
+ # Pass arguments to `list_sac_attachments` via keyword arguments. Note that at
661
+ # least one keyword argument is required. To specify no parameters, or to keep all
662
+ # the default parameter values, pass an empty Hash as a request object (see above).
663
+ #
664
+ # @param parent [::String]
665
+ # Required. The parent, in the form
666
+ # `projects/{project}/locations/{location}`.
667
+ # @param page_size [::Integer]
668
+ # Optional. Requested page size. Server may return fewer items than
669
+ # requested. If unspecified, server will pick an appropriate default.
670
+ # @param page_token [::String]
671
+ # Optional. A token identifying a page of results the server should return.
672
+ # @param filter [::String]
673
+ # Optional. An expression that filters the list of results.
674
+ # @param order_by [::String]
675
+ # Optional. Sort the results by a certain order.
676
+ #
677
+ # @yield [response, operation] Access the result along with the RPC operation
678
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACAttachment>]
679
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
680
+ #
681
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACAttachment>]
682
+ #
683
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
684
+ #
685
+ # @example Basic example
686
+ # require "google/cloud/network_security/v1"
687
+ #
688
+ # # Create a client object. The client can be reused for multiple calls.
689
+ # client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new
690
+ #
691
+ # # Create a request. To set request fields, pass in keyword arguments.
692
+ # request = Google::Cloud::NetworkSecurity::V1::ListSACAttachmentsRequest.new
693
+ #
694
+ # # Call the list_sac_attachments method.
695
+ # result = client.list_sac_attachments request
696
+ #
697
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
698
+ # # over elements, and API calls will be issued to fetch pages as needed.
699
+ # result.each do |item|
700
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1::SACAttachment.
701
+ # p item
702
+ # end
703
+ #
704
+ def list_sac_attachments request, options = nil
705
+ raise ::ArgumentError, "request must be provided" if request.nil?
706
+
707
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::ListSACAttachmentsRequest
708
+
709
+ # Converts hash and nil to an options object
710
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
711
+
712
+ # Customize the options with defaults
713
+ metadata = @config.rpcs.list_sac_attachments.metadata.to_h
714
+
715
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
716
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
717
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
718
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
719
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
720
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
721
+
722
+ header_params = {}
723
+ if request.parent
724
+ header_params["parent"] = request.parent
725
+ end
726
+
727
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
728
+ metadata[:"x-goog-request-params"] ||= request_params_header
729
+
730
+ options.apply_defaults timeout: @config.rpcs.list_sac_attachments.timeout,
731
+ metadata: metadata,
732
+ retry_policy: @config.rpcs.list_sac_attachments.retry_policy
733
+
734
+ options.apply_defaults timeout: @config.timeout,
735
+ metadata: @config.metadata,
736
+ retry_policy: @config.retry_policy
737
+
738
+ @sse_realm_service_stub.call_rpc :list_sac_attachments, request, options: options do |response, operation|
739
+ response = ::Gapic::PagedEnumerable.new @sse_realm_service_stub, :list_sac_attachments, request, response, operation, options
740
+ yield response, operation if block_given?
741
+ throw :response, response
742
+ end
743
+ rescue ::GRPC::BadStatus => e
744
+ raise ::Google::Cloud::Error.from_error(e)
745
+ end
746
+
747
+ ##
748
+ # Returns the specified attachment.
749
+ #
750
+ # @overload get_sac_attachment(request, options = nil)
751
+ # Pass arguments to `get_sac_attachment` via a request object, either of type
752
+ # {::Google::Cloud::NetworkSecurity::V1::GetSACAttachmentRequest} or an equivalent Hash.
753
+ #
754
+ # @param request [::Google::Cloud::NetworkSecurity::V1::GetSACAttachmentRequest, ::Hash]
755
+ # A request object representing the call parameters. Required. To specify no
756
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
757
+ # @param options [::Gapic::CallOptions, ::Hash]
758
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
759
+ #
760
+ # @overload get_sac_attachment(name: nil)
761
+ # Pass arguments to `get_sac_attachment` via keyword arguments. Note that at
762
+ # least one keyword argument is required. To specify no parameters, or to keep all
763
+ # the default parameter values, pass an empty Hash as a request object (see above).
764
+ #
765
+ # @param name [::String]
766
+ # Required. Name of the resource, in the form
767
+ # `projects/{project}/locations/{location}/sacAttachments/{sac_attachment}`.
768
+ #
769
+ # @yield [response, operation] Access the result along with the RPC operation
770
+ # @yieldparam response [::Google::Cloud::NetworkSecurity::V1::SACAttachment]
771
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
772
+ #
773
+ # @return [::Google::Cloud::NetworkSecurity::V1::SACAttachment]
774
+ #
775
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
776
+ #
777
+ # @example Basic example
778
+ # require "google/cloud/network_security/v1"
779
+ #
780
+ # # Create a client object. The client can be reused for multiple calls.
781
+ # client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new
782
+ #
783
+ # # Create a request. To set request fields, pass in keyword arguments.
784
+ # request = Google::Cloud::NetworkSecurity::V1::GetSACAttachmentRequest.new
785
+ #
786
+ # # Call the get_sac_attachment method.
787
+ # result = client.get_sac_attachment request
788
+ #
789
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1::SACAttachment.
790
+ # p result
791
+ #
792
+ def get_sac_attachment request, options = nil
793
+ raise ::ArgumentError, "request must be provided" if request.nil?
794
+
795
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::GetSACAttachmentRequest
796
+
797
+ # Converts hash and nil to an options object
798
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
799
+
800
+ # Customize the options with defaults
801
+ metadata = @config.rpcs.get_sac_attachment.metadata.to_h
802
+
803
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
804
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
805
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
806
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
807
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
808
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
809
+
810
+ header_params = {}
811
+ if request.name
812
+ header_params["name"] = request.name
813
+ end
814
+
815
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
816
+ metadata[:"x-goog-request-params"] ||= request_params_header
817
+
818
+ options.apply_defaults timeout: @config.rpcs.get_sac_attachment.timeout,
819
+ metadata: metadata,
820
+ retry_policy: @config.rpcs.get_sac_attachment.retry_policy
821
+
822
+ options.apply_defaults timeout: @config.timeout,
823
+ metadata: @config.metadata,
824
+ retry_policy: @config.retry_policy
825
+
826
+ @sse_realm_service_stub.call_rpc :get_sac_attachment, request, options: options do |response, operation|
827
+ yield response, operation if block_given?
828
+ end
829
+ rescue ::GRPC::BadStatus => e
830
+ raise ::Google::Cloud::Error.from_error(e)
831
+ end
832
+
833
+ ##
834
+ # Creates a new SACAttachment in a given project and location.
835
+ #
836
+ # @overload create_sac_attachment(request, options = nil)
837
+ # Pass arguments to `create_sac_attachment` via a request object, either of type
838
+ # {::Google::Cloud::NetworkSecurity::V1::CreateSACAttachmentRequest} or an equivalent Hash.
839
+ #
840
+ # @param request [::Google::Cloud::NetworkSecurity::V1::CreateSACAttachmentRequest, ::Hash]
841
+ # A request object representing the call parameters. Required. To specify no
842
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
843
+ # @param options [::Gapic::CallOptions, ::Hash]
844
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
845
+ #
846
+ # @overload create_sac_attachment(parent: nil, sac_attachment_id: nil, sac_attachment: nil, request_id: nil)
847
+ # Pass arguments to `create_sac_attachment` via keyword arguments. Note that at
848
+ # least one keyword argument is required. To specify no parameters, or to keep all
849
+ # the default parameter values, pass an empty Hash as a request object (see above).
850
+ #
851
+ # @param parent [::String]
852
+ # Required. The parent, in the form
853
+ # `projects/{project}/locations/{location}`.
854
+ # @param sac_attachment_id [::String]
855
+ # Required. ID of the created attachment.
856
+ # The ID must be 1-63 characters long, and comply with
857
+ # <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
858
+ # Specifically, it must be 1-63 characters long and match the regular
859
+ # expression `[a-z]([-a-z0-9]*[a-z0-9])?`
860
+ # which means the first character must be a lowercase letter, and all
861
+ # following characters must be a dash, lowercase letter, or digit, except
862
+ # the last character, which cannot be a dash.
863
+ # @param sac_attachment [::Google::Cloud::NetworkSecurity::V1::SACAttachment, ::Hash]
864
+ # Required. The resource being created.
865
+ # @param request_id [::String]
866
+ # Optional. An optional request ID to identify requests. Specify a unique
867
+ # request ID so that if you must retry your request, the server will know to
868
+ # ignore the request if it has already been completed. The server will
869
+ # guarantee that for at least 60 minutes since the first request.
870
+ #
871
+ # For example, consider a situation where you make an initial request and the
872
+ # request times out. If you make the request again with the same request
873
+ # ID, the server can check if original operation with the same request ID
874
+ # was received, and if so, will ignore the second request. This prevents
875
+ # clients from accidentally creating duplicate commitments.
876
+ #
877
+ # The request ID must be a valid UUID with the exception that zero UUID is
878
+ # not supported (00000000-0000-0000-0000-000000000000).
879
+ #
880
+ # @yield [response, operation] Access the result along with the RPC operation
881
+ # @yieldparam response [::Gapic::Operation]
882
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
883
+ #
884
+ # @return [::Gapic::Operation]
885
+ #
886
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
887
+ #
888
+ # @example Basic example
889
+ # require "google/cloud/network_security/v1"
890
+ #
891
+ # # Create a client object. The client can be reused for multiple calls.
892
+ # client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new
893
+ #
894
+ # # Create a request. To set request fields, pass in keyword arguments.
895
+ # request = Google::Cloud::NetworkSecurity::V1::CreateSACAttachmentRequest.new
896
+ #
897
+ # # Call the create_sac_attachment method.
898
+ # result = client.create_sac_attachment request
899
+ #
900
+ # # The returned object is of type Gapic::Operation. You can use it to
901
+ # # check the status of an operation, cancel it, or wait for results.
902
+ # # Here is how to wait for a response.
903
+ # result.wait_until_done! timeout: 60
904
+ # if result.response?
905
+ # p result.response
906
+ # else
907
+ # puts "No response received."
908
+ # end
909
+ #
910
+ def create_sac_attachment request, options = nil
911
+ raise ::ArgumentError, "request must be provided" if request.nil?
912
+
913
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::CreateSACAttachmentRequest
914
+
915
+ # Converts hash and nil to an options object
916
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
917
+
918
+ # Customize the options with defaults
919
+ metadata = @config.rpcs.create_sac_attachment.metadata.to_h
920
+
921
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
922
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
923
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
924
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
925
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
926
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
927
+
928
+ header_params = {}
929
+ if request.parent
930
+ header_params["parent"] = request.parent
931
+ end
932
+
933
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
934
+ metadata[:"x-goog-request-params"] ||= request_params_header
935
+
936
+ options.apply_defaults timeout: @config.rpcs.create_sac_attachment.timeout,
937
+ metadata: metadata,
938
+ retry_policy: @config.rpcs.create_sac_attachment.retry_policy
939
+
940
+ options.apply_defaults timeout: @config.timeout,
941
+ metadata: @config.metadata,
942
+ retry_policy: @config.retry_policy
943
+
944
+ @sse_realm_service_stub.call_rpc :create_sac_attachment, request, options: options do |response, operation|
945
+ response = ::Gapic::Operation.new response, @operations_client, options: options
946
+ yield response, operation if block_given?
947
+ throw :response, response
948
+ end
949
+ rescue ::GRPC::BadStatus => e
950
+ raise ::Google::Cloud::Error.from_error(e)
951
+ end
952
+
953
+ ##
954
+ # Deletes the specified attachment.
955
+ #
956
+ # @overload delete_sac_attachment(request, options = nil)
957
+ # Pass arguments to `delete_sac_attachment` via a request object, either of type
958
+ # {::Google::Cloud::NetworkSecurity::V1::DeleteSACAttachmentRequest} or an equivalent Hash.
959
+ #
960
+ # @param request [::Google::Cloud::NetworkSecurity::V1::DeleteSACAttachmentRequest, ::Hash]
961
+ # A request object representing the call parameters. Required. To specify no
962
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
963
+ # @param options [::Gapic::CallOptions, ::Hash]
964
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
965
+ #
966
+ # @overload delete_sac_attachment(name: nil, request_id: nil)
967
+ # Pass arguments to `delete_sac_attachment` via keyword arguments. Note that at
968
+ # least one keyword argument is required. To specify no parameters, or to keep all
969
+ # the default parameter values, pass an empty Hash as a request object (see above).
970
+ #
971
+ # @param name [::String]
972
+ # Required. Name of the resource, in the form
973
+ # `projects/{project}/locations/{location}/sacAttachments/{sac_attachment}`.
974
+ # @param request_id [::String]
975
+ # Optional. An optional request ID to identify requests. Specify a unique
976
+ # request ID so that if you must retry your request, the server will know to
977
+ # ignore the request if it has already been completed. The server will
978
+ # guarantee that for at least 60 minutes after the first request.
979
+ #
980
+ # For example, consider a situation where you make an initial request and the
981
+ # request times out. If you make the request again with the same request
982
+ # ID, the server can check if original operation with the same request ID
983
+ # was received, and if so, will ignore the second request. This prevents
984
+ # clients from accidentally creating duplicate commitments.
985
+ #
986
+ # The request ID must be a valid UUID with the exception that zero UUID is
987
+ # not supported (00000000-0000-0000-0000-000000000000).
988
+ #
989
+ # @yield [response, operation] Access the result along with the RPC operation
990
+ # @yieldparam response [::Gapic::Operation]
991
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
992
+ #
993
+ # @return [::Gapic::Operation]
994
+ #
995
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
996
+ #
997
+ # @example Basic example
998
+ # require "google/cloud/network_security/v1"
999
+ #
1000
+ # # Create a client object. The client can be reused for multiple calls.
1001
+ # client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new
1002
+ #
1003
+ # # Create a request. To set request fields, pass in keyword arguments.
1004
+ # request = Google::Cloud::NetworkSecurity::V1::DeleteSACAttachmentRequest.new
1005
+ #
1006
+ # # Call the delete_sac_attachment method.
1007
+ # result = client.delete_sac_attachment request
1008
+ #
1009
+ # # The returned object is of type Gapic::Operation. You can use it to
1010
+ # # check the status of an operation, cancel it, or wait for results.
1011
+ # # Here is how to wait for a response.
1012
+ # result.wait_until_done! timeout: 60
1013
+ # if result.response?
1014
+ # p result.response
1015
+ # else
1016
+ # puts "No response received."
1017
+ # end
1018
+ #
1019
+ def delete_sac_attachment request, options = nil
1020
+ raise ::ArgumentError, "request must be provided" if request.nil?
1021
+
1022
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkSecurity::V1::DeleteSACAttachmentRequest
1023
+
1024
+ # Converts hash and nil to an options object
1025
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1026
+
1027
+ # Customize the options with defaults
1028
+ metadata = @config.rpcs.delete_sac_attachment.metadata.to_h
1029
+
1030
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1031
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1032
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1033
+ gapic_version: ::Google::Cloud::NetworkSecurity::V1::VERSION
1034
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1035
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1036
+
1037
+ header_params = {}
1038
+ if request.name
1039
+ header_params["name"] = request.name
1040
+ end
1041
+
1042
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1043
+ metadata[:"x-goog-request-params"] ||= request_params_header
1044
+
1045
+ options.apply_defaults timeout: @config.rpcs.delete_sac_attachment.timeout,
1046
+ metadata: metadata,
1047
+ retry_policy: @config.rpcs.delete_sac_attachment.retry_policy
1048
+
1049
+ options.apply_defaults timeout: @config.timeout,
1050
+ metadata: @config.metadata,
1051
+ retry_policy: @config.retry_policy
1052
+
1053
+ @sse_realm_service_stub.call_rpc :delete_sac_attachment, request, options: options do |response, operation|
1054
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1055
+ yield response, operation if block_given?
1056
+ throw :response, response
1057
+ end
1058
+ rescue ::GRPC::BadStatus => e
1059
+ raise ::Google::Cloud::Error.from_error(e)
1060
+ end
1061
+
1062
+ ##
1063
+ # Configuration class for the SSERealmService API.
1064
+ #
1065
+ # This class represents the configuration for SSERealmService,
1066
+ # providing control over timeouts, retry behavior, logging, transport
1067
+ # parameters, and other low-level controls. Certain parameters can also be
1068
+ # applied individually to specific RPCs. See
1069
+ # {::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client::Configuration::Rpcs}
1070
+ # for a list of RPCs that can be configured independently.
1071
+ #
1072
+ # Configuration can be applied globally to all clients, or to a single client
1073
+ # on construction.
1074
+ #
1075
+ # @example
1076
+ #
1077
+ # # Modify the global config, setting the timeout for
1078
+ # # list_sac_realms to 20 seconds,
1079
+ # # and all remaining timeouts to 10 seconds.
1080
+ # ::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.configure do |config|
1081
+ # config.timeout = 10.0
1082
+ # config.rpcs.list_sac_realms.timeout = 20.0
1083
+ # end
1084
+ #
1085
+ # # Apply the above configuration only to a new client.
1086
+ # client = ::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new do |config|
1087
+ # config.timeout = 10.0
1088
+ # config.rpcs.list_sac_realms.timeout = 20.0
1089
+ # end
1090
+ #
1091
+ # @!attribute [rw] endpoint
1092
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1093
+ # nil, indicating to use the default endpoint in the current universe domain.
1094
+ # @return [::String,nil]
1095
+ # @!attribute [rw] credentials
1096
+ # Credentials to send with calls. You may provide any of the following types:
1097
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1098
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1099
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1100
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1101
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1102
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1103
+ # * (`nil`) indicating no credentials
1104
+ #
1105
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1106
+ # is deprecated. Providing an unvalidated credential configuration to
1107
+ # Google APIs can compromise the security of your systems and data.
1108
+ #
1109
+ # @example
1110
+ #
1111
+ # # The recommended way to provide credentials is to use the `make_creds` method
1112
+ # # on the appropriate credentials class for your environment.
1113
+ #
1114
+ # require "googleauth"
1115
+ #
1116
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1117
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1118
+ # )
1119
+ #
1120
+ # client = ::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new do |config|
1121
+ # config.credentials = credentials
1122
+ # end
1123
+ #
1124
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1125
+ # external source for authentication to Google Cloud, you must validate it before
1126
+ # providing it to a Google API client library. Providing an unvalidated credential
1127
+ # configuration to Google APIs can compromise the security of your systems and data.
1128
+ # For more information, refer to [Validate credential configurations from external
1129
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1130
+ # @return [::Object]
1131
+ # @!attribute [rw] scope
1132
+ # The OAuth scopes
1133
+ # @return [::Array<::String>]
1134
+ # @!attribute [rw] lib_name
1135
+ # The library name as recorded in instrumentation and logging
1136
+ # @return [::String]
1137
+ # @!attribute [rw] lib_version
1138
+ # The library version as recorded in instrumentation and logging
1139
+ # @return [::String]
1140
+ # @!attribute [rw] channel_args
1141
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1142
+ # `GRPC::Core::Channel` object is provided as the credential.
1143
+ # @return [::Hash]
1144
+ # @!attribute [rw] interceptors
1145
+ # An array of interceptors that are run before calls are executed.
1146
+ # @return [::Array<::GRPC::ClientInterceptor>]
1147
+ # @!attribute [rw] timeout
1148
+ # The call timeout in seconds.
1149
+ # @return [::Numeric]
1150
+ # @!attribute [rw] metadata
1151
+ # Additional gRPC headers to be sent with the call.
1152
+ # @return [::Hash{::Symbol=>::String}]
1153
+ # @!attribute [rw] retry_policy
1154
+ # The retry policy. The value is a hash with the following keys:
1155
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1156
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1157
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1158
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1159
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1160
+ # trigger a retry.
1161
+ # @return [::Hash]
1162
+ # @!attribute [rw] quota_project
1163
+ # A separate project against which to charge quota.
1164
+ # @return [::String]
1165
+ # @!attribute [rw] universe_domain
1166
+ # The universe domain within which to make requests. This determines the
1167
+ # default endpoint URL. The default value of nil uses the environment
1168
+ # universe (usually the default "googleapis.com" universe).
1169
+ # @return [::String,nil]
1170
+ # @!attribute [rw] logger
1171
+ # A custom logger to use for request/response debug logging, or the value
1172
+ # `:default` (the default) to construct a default logger, or `nil` to
1173
+ # explicitly disable logging.
1174
+ # @return [::Logger,:default,nil]
1175
+ #
1176
+ class Configuration
1177
+ extend ::Gapic::Config
1178
+
1179
+ # @private
1180
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1181
+ DEFAULT_ENDPOINT = "networksecurity.googleapis.com"
1182
+
1183
+ config_attr :endpoint, nil, ::String, nil
1184
+ config_attr :credentials, nil do |value|
1185
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1186
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
1187
+ allowed.any? { |klass| klass === value }
1188
+ end
1189
+ config_attr :scope, nil, ::String, ::Array, nil
1190
+ config_attr :lib_name, nil, ::String, nil
1191
+ config_attr :lib_version, nil, ::String, nil
1192
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
1193
+ config_attr :interceptors, nil, ::Array, nil
1194
+ config_attr :timeout, nil, ::Numeric, nil
1195
+ config_attr :metadata, nil, ::Hash, nil
1196
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1197
+ config_attr :quota_project, nil, ::String, nil
1198
+ config_attr :universe_domain, nil, ::String, nil
1199
+ config_attr :logger, :default, ::Logger, nil, :default
1200
+
1201
+ # @private
1202
+ def initialize parent_config = nil
1203
+ @parent_config = parent_config unless parent_config.nil?
1204
+
1205
+ yield self if block_given?
1206
+ end
1207
+
1208
+ ##
1209
+ # Configurations for individual RPCs
1210
+ # @return [Rpcs]
1211
+ #
1212
+ def rpcs
1213
+ @rpcs ||= begin
1214
+ parent_rpcs = nil
1215
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1216
+ Rpcs.new parent_rpcs
1217
+ end
1218
+ end
1219
+
1220
+ ##
1221
+ # Configuration for the channel pool
1222
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1223
+ #
1224
+ def channel_pool
1225
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1226
+ end
1227
+
1228
+ ##
1229
+ # Configuration RPC class for the SSERealmService API.
1230
+ #
1231
+ # Includes fields providing the configuration for each RPC in this service.
1232
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1233
+ # the following configuration fields:
1234
+ #
1235
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1236
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1237
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1238
+ # include the following keys:
1239
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1240
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1241
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1242
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1243
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1244
+ # trigger a retry.
1245
+ #
1246
+ class Rpcs
1247
+ ##
1248
+ # RPC-specific configuration for `list_sac_realms`
1249
+ # @return [::Gapic::Config::Method]
1250
+ #
1251
+ attr_reader :list_sac_realms
1252
+ ##
1253
+ # RPC-specific configuration for `get_sac_realm`
1254
+ # @return [::Gapic::Config::Method]
1255
+ #
1256
+ attr_reader :get_sac_realm
1257
+ ##
1258
+ # RPC-specific configuration for `create_sac_realm`
1259
+ # @return [::Gapic::Config::Method]
1260
+ #
1261
+ attr_reader :create_sac_realm
1262
+ ##
1263
+ # RPC-specific configuration for `delete_sac_realm`
1264
+ # @return [::Gapic::Config::Method]
1265
+ #
1266
+ attr_reader :delete_sac_realm
1267
+ ##
1268
+ # RPC-specific configuration for `list_sac_attachments`
1269
+ # @return [::Gapic::Config::Method]
1270
+ #
1271
+ attr_reader :list_sac_attachments
1272
+ ##
1273
+ # RPC-specific configuration for `get_sac_attachment`
1274
+ # @return [::Gapic::Config::Method]
1275
+ #
1276
+ attr_reader :get_sac_attachment
1277
+ ##
1278
+ # RPC-specific configuration for `create_sac_attachment`
1279
+ # @return [::Gapic::Config::Method]
1280
+ #
1281
+ attr_reader :create_sac_attachment
1282
+ ##
1283
+ # RPC-specific configuration for `delete_sac_attachment`
1284
+ # @return [::Gapic::Config::Method]
1285
+ #
1286
+ attr_reader :delete_sac_attachment
1287
+
1288
+ # @private
1289
+ def initialize parent_rpcs = nil
1290
+ list_sac_realms_config = parent_rpcs.list_sac_realms if parent_rpcs.respond_to? :list_sac_realms
1291
+ @list_sac_realms = ::Gapic::Config::Method.new list_sac_realms_config
1292
+ get_sac_realm_config = parent_rpcs.get_sac_realm if parent_rpcs.respond_to? :get_sac_realm
1293
+ @get_sac_realm = ::Gapic::Config::Method.new get_sac_realm_config
1294
+ create_sac_realm_config = parent_rpcs.create_sac_realm if parent_rpcs.respond_to? :create_sac_realm
1295
+ @create_sac_realm = ::Gapic::Config::Method.new create_sac_realm_config
1296
+ delete_sac_realm_config = parent_rpcs.delete_sac_realm if parent_rpcs.respond_to? :delete_sac_realm
1297
+ @delete_sac_realm = ::Gapic::Config::Method.new delete_sac_realm_config
1298
+ list_sac_attachments_config = parent_rpcs.list_sac_attachments if parent_rpcs.respond_to? :list_sac_attachments
1299
+ @list_sac_attachments = ::Gapic::Config::Method.new list_sac_attachments_config
1300
+ get_sac_attachment_config = parent_rpcs.get_sac_attachment if parent_rpcs.respond_to? :get_sac_attachment
1301
+ @get_sac_attachment = ::Gapic::Config::Method.new get_sac_attachment_config
1302
+ create_sac_attachment_config = parent_rpcs.create_sac_attachment if parent_rpcs.respond_to? :create_sac_attachment
1303
+ @create_sac_attachment = ::Gapic::Config::Method.new create_sac_attachment_config
1304
+ delete_sac_attachment_config = parent_rpcs.delete_sac_attachment if parent_rpcs.respond_to? :delete_sac_attachment
1305
+ @delete_sac_attachment = ::Gapic::Config::Method.new delete_sac_attachment_config
1306
+
1307
+ yield self if block_given?
1308
+ end
1309
+ end
1310
+ end
1311
+ end
1312
+ end
1313
+ end
1314
+ end
1315
+ end
1316
+ end