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