google-cloud-cloud_security_compliance-v1 0.1.1 → 0.2.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 (52) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +4 -4
  4. data/lib/google/cloud/cloud_security_compliance/v1/audit/client.rb +859 -0
  5. data/lib/google/cloud/cloud_security_compliance/v1/audit/credentials.rb +47 -0
  6. data/lib/google/cloud/cloud_security_compliance/v1/audit/operations.rb +841 -0
  7. data/lib/google/cloud/cloud_security_compliance/v1/audit/paths.rb +110 -0
  8. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/client.rb +796 -0
  9. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb +925 -0
  10. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/service_stub.rb +387 -0
  11. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest.rb +54 -0
  12. data/lib/google/cloud/cloud_security_compliance/v1/audit.rb +56 -0
  13. data/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb +1 -1
  14. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/client.rb +608 -0
  15. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/credentials.rb +47 -0
  16. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/paths.rb +72 -0
  17. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/client.rb +559 -0
  18. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/service_stub.rb +234 -0
  19. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest.rb +54 -0
  20. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service.rb +56 -0
  21. data/lib/google/cloud/cloud_security_compliance/v1/config/client.rb +113 -99
  22. data/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb +113 -99
  23. data/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb +60 -38
  24. data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb +60 -38
  25. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb +940 -0
  26. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/credentials.rb +47 -0
  27. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/paths.rb +142 -0
  28. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb +870 -0
  29. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/service_stub.rb +456 -0
  30. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest.rb +53 -0
  31. data/lib/google/cloud/cloud_security_compliance/v1/monitoring.rb +55 -0
  32. data/lib/google/cloud/cloud_security_compliance/v1/rest.rb +4 -1
  33. data/lib/google/cloud/cloud_security_compliance/v1/version.rb +1 -1
  34. data/lib/google/cloud/cloud_security_compliance/v1.rb +5 -2
  35. data/lib/google/cloud/cloudsecuritycompliance/v1/audit_pb.rb +70 -0
  36. data/lib/google/cloud/cloudsecuritycompliance/v1/audit_services_pb.rb +51 -0
  37. data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_pb.rb +54 -0
  38. data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_services_pb.rb +54 -0
  39. data/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb +4 -1
  40. data/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb +1 -1
  41. data/lib/google/cloud/cloudsecuritycompliance/v1/config_services_pb.rb +58 -55
  42. data/lib/google/cloud/cloudsecuritycompliance/v1/deployment_services_pb.rb +9 -6
  43. data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb +74 -0
  44. data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_services_pb.rb +53 -0
  45. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/audit.rb +413 -0
  46. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.rb +108 -0
  47. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb +210 -181
  48. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb +69 -57
  49. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb +180 -139
  50. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb +527 -0
  51. data/proto_docs/google/type/interval.rb +45 -0
  52. metadata +34 -1
@@ -0,0 +1,870 @@
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/cloudsecuritycompliance/v1/monitoring_pb"
21
+ require "google/cloud/cloud_security_compliance/v1/monitoring/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module CloudSecurityCompliance
27
+ module V1
28
+ module Monitoring
29
+ module Rest
30
+ ##
31
+ # REST client for the Monitoring service.
32
+ #
33
+ # Service describing handlers for resources
34
+ #
35
+ class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
39
+ # @private
40
+ DEFAULT_ENDPOINT_TEMPLATE = "cloudsecuritycompliance.$UNIVERSE_DOMAIN$"
41
+
42
+ include Paths
43
+
44
+ # @private
45
+ attr_reader :monitoring_stub
46
+
47
+ ##
48
+ # Configure the Monitoring Client class.
49
+ #
50
+ # See {::Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client::Configuration}
51
+ # for a description of the configuration fields.
52
+ #
53
+ # @example
54
+ #
55
+ # # Modify the configuration for all Monitoring clients
56
+ # ::Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client.configure do |config|
57
+ # config.timeout = 10.0
58
+ # end
59
+ #
60
+ # @yield [config] Configure the Client client.
61
+ # @yieldparam config [Client::Configuration]
62
+ #
63
+ # @return [Client::Configuration]
64
+ #
65
+ def self.configure
66
+ @configure ||= begin
67
+ namespace = ["Google", "Cloud", "CloudSecurityCompliance", "V1"]
68
+ parent_config = while namespace.any?
69
+ parent_name = namespace.join "::"
70
+ parent_const = const_get parent_name
71
+ break parent_const.configure if parent_const.respond_to? :configure
72
+ namespace.pop
73
+ end
74
+ default_config = Client::Configuration.new parent_config
75
+
76
+ default_config.rpcs.list_framework_compliance_summaries.timeout = 60.0
77
+ default_config.rpcs.list_framework_compliance_summaries.retry_policy = {
78
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
79
+ }
80
+
81
+ default_config.rpcs.list_finding_summaries.timeout = 60.0
82
+ default_config.rpcs.list_finding_summaries.retry_policy = {
83
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
84
+ }
85
+
86
+ default_config.rpcs.fetch_framework_compliance_report.timeout = 60.0
87
+ default_config.rpcs.fetch_framework_compliance_report.retry_policy = {
88
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
89
+ }
90
+
91
+ default_config.rpcs.list_control_compliance_summaries.timeout = 60.0
92
+ default_config.rpcs.list_control_compliance_summaries.retry_policy = {
93
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
94
+ }
95
+
96
+ default_config.rpcs.aggregate_framework_compliance_report.timeout = 60.0
97
+ default_config.rpcs.aggregate_framework_compliance_report.retry_policy = {
98
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
99
+ }
100
+
101
+ default_config
102
+ end
103
+ yield @configure if block_given?
104
+ @configure
105
+ end
106
+
107
+ ##
108
+ # Configure the Monitoring Client instance.
109
+ #
110
+ # The configuration is set to the derived mode, meaning that values can be changed,
111
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
112
+ # should be made on {Client.configure}.
113
+ #
114
+ # See {::Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client::Configuration}
115
+ # for a description of the configuration fields.
116
+ #
117
+ # @yield [config] Configure the Client client.
118
+ # @yieldparam config [Client::Configuration]
119
+ #
120
+ # @return [Client::Configuration]
121
+ #
122
+ def configure
123
+ yield @config if block_given?
124
+ @config
125
+ end
126
+
127
+ ##
128
+ # The effective universe domain
129
+ #
130
+ # @return [String]
131
+ #
132
+ def universe_domain
133
+ @monitoring_stub.universe_domain
134
+ end
135
+
136
+ ##
137
+ # Create a new Monitoring REST client object.
138
+ #
139
+ # @example
140
+ #
141
+ # # Create a client using the default configuration
142
+ # client = ::Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client.new
143
+ #
144
+ # # Create a client using a custom configuration
145
+ # client = ::Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client.new do |config|
146
+ # config.timeout = 10.0
147
+ # end
148
+ #
149
+ # @yield [config] Configure the Monitoring client.
150
+ # @yieldparam config [Client::Configuration]
151
+ #
152
+ def initialize
153
+ # Create the configuration object
154
+ @config = Configuration.new Client.configure
155
+
156
+ # Yield the configuration if needed
157
+ yield @config if block_given?
158
+
159
+ # Create credentials
160
+ credentials = @config.credentials
161
+ # Use self-signed JWT if the endpoint is unchanged from default,
162
+ # but only if the default endpoint does not have a region prefix.
163
+ enable_self_signed_jwt = @config.endpoint.nil? ||
164
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
165
+ !@config.endpoint.split(".").first.include?("-"))
166
+ credentials ||= Credentials.default scope: @config.scope,
167
+ enable_self_signed_jwt: enable_self_signed_jwt
168
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
169
+ credentials = Credentials.new credentials, scope: @config.scope
170
+ end
171
+
172
+ @quota_project_id = @config.quota_project
173
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
174
+
175
+ @monitoring_stub = ::Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::ServiceStub.new(
176
+ endpoint: @config.endpoint,
177
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
178
+ universe_domain: @config.universe_domain,
179
+ credentials: credentials,
180
+ logger: @config.logger
181
+ )
182
+
183
+ @monitoring_stub.logger(stub: true)&.info do |entry|
184
+ entry.set_system_name
185
+ entry.set_service
186
+ entry.message = "Created client for #{entry.service}"
187
+ entry.set_credentials_fields credentials
188
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
189
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
190
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
191
+ end
192
+
193
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
194
+ config.credentials = credentials
195
+ config.quota_project = @quota_project_id
196
+ config.endpoint = @monitoring_stub.endpoint
197
+ config.universe_domain = @monitoring_stub.universe_domain
198
+ config.bindings_override = @config.bindings_override
199
+ config.logger = @monitoring_stub.logger if config.respond_to? :logger=
200
+ end
201
+ end
202
+
203
+ ##
204
+ # Get the associated client for mix-in of the Locations.
205
+ #
206
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
207
+ #
208
+ attr_reader :location_client
209
+
210
+ ##
211
+ # The logger used for request/response debug logging.
212
+ #
213
+ # @return [Logger]
214
+ #
215
+ def logger
216
+ @monitoring_stub.logger
217
+ end
218
+
219
+ # Service calls
220
+
221
+ ##
222
+ # Lists the framework compliance summary for a given scope.
223
+ #
224
+ # @overload list_framework_compliance_summaries(request, options = nil)
225
+ # Pass arguments to `list_framework_compliance_summaries` via a request object, either of type
226
+ # {::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest} or an equivalent Hash.
227
+ #
228
+ # @param request [::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest, ::Hash]
229
+ # A request object representing the call parameters. Required. To specify no
230
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
231
+ # @param options [::Gapic::CallOptions, ::Hash]
232
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
233
+ #
234
+ # @overload list_framework_compliance_summaries(parent: nil, page_size: nil, page_token: nil, filter: nil)
235
+ # Pass arguments to `list_framework_compliance_summaries` via keyword arguments. Note that at
236
+ # least one keyword argument is required. To specify no parameters, or to keep all
237
+ # the default parameter values, pass an empty Hash as a request object (see above).
238
+ #
239
+ # @param parent [::String]
240
+ # Required. The parent scope for the framework compliance summary.
241
+ # @param page_size [::Integer]
242
+ # Optional. The requested page size. The server might return fewer items than
243
+ # requested. If unspecified, the server picks an appropriate default.
244
+ # @param page_token [::String]
245
+ # Optional. A token that identifies the page of results that the server
246
+ # should return.
247
+ # @param filter [::String]
248
+ # Optional. The filtering results.
249
+ # @yield [result, operation] Access the result along with the TransportOperation object
250
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceSummary>]
251
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
252
+ #
253
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceSummary>]
254
+ #
255
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
256
+ #
257
+ # @example Basic example
258
+ # require "google/cloud/cloud_security_compliance/v1"
259
+ #
260
+ # # Create a client object. The client can be reused for multiple calls.
261
+ # client = Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client.new
262
+ #
263
+ # # Create a request. To set request fields, pass in keyword arguments.
264
+ # request = Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest.new
265
+ #
266
+ # # Call the list_framework_compliance_summaries method.
267
+ # result = client.list_framework_compliance_summaries request
268
+ #
269
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
270
+ # # over elements, and API calls will be issued to fetch pages as needed.
271
+ # result.each do |item|
272
+ # # Each element is of type ::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceSummary.
273
+ # p item
274
+ # end
275
+ #
276
+ def list_framework_compliance_summaries request, options = nil
277
+ raise ::ArgumentError, "request must be provided" if request.nil?
278
+
279
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest
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
+ call_metadata = @config.rpcs.list_framework_compliance_summaries.metadata.to_h
286
+
287
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
288
+ call_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::CloudSecurityCompliance::V1::VERSION,
291
+ transports_version_send: [:rest]
292
+
293
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
+
296
+ options.apply_defaults timeout: @config.rpcs.list_framework_compliance_summaries.timeout,
297
+ metadata: call_metadata,
298
+ retry_policy: @config.rpcs.list_framework_compliance_summaries.retry_policy
299
+
300
+ options.apply_defaults timeout: @config.timeout,
301
+ metadata: @config.metadata,
302
+ retry_policy: @config.retry_policy
303
+
304
+ @monitoring_stub.list_framework_compliance_summaries request, options do |result, operation|
305
+ result = ::Gapic::Rest::PagedEnumerable.new @monitoring_stub, :list_framework_compliance_summaries, "framework_compliance_summaries", request, result, options
306
+ yield result, operation if block_given?
307
+ throw :response, result
308
+ end
309
+ rescue ::Gapic::Rest::Error => e
310
+ raise ::Google::Cloud::Error.from_error(e)
311
+ end
312
+
313
+ ##
314
+ # Lists the finding summary by category for a given scope.
315
+ #
316
+ # @overload list_finding_summaries(request, options = nil)
317
+ # Pass arguments to `list_finding_summaries` via a request object, either of type
318
+ # {::Google::Cloud::CloudSecurityCompliance::V1::ListFindingSummariesRequest} or an equivalent Hash.
319
+ #
320
+ # @param request [::Google::Cloud::CloudSecurityCompliance::V1::ListFindingSummariesRequest, ::Hash]
321
+ # A request object representing the call parameters. Required. To specify no
322
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
323
+ # @param options [::Gapic::CallOptions, ::Hash]
324
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
325
+ #
326
+ # @overload list_finding_summaries(parent: nil, page_size: nil, page_token: nil, filter: nil, end_time: nil)
327
+ # Pass arguments to `list_finding_summaries` via keyword arguments. Note that at
328
+ # least one keyword argument is required. To specify no parameters, or to keep all
329
+ # the default parameter values, pass an empty Hash as a request object (see above).
330
+ #
331
+ # @param parent [::String]
332
+ # Required. The parent scope for the framework overview page.
333
+ # @param page_size [::Integer]
334
+ # Optional. The requested page size. The server might return fewer items than
335
+ # requested. If unspecified, the server picks an appropriate default.
336
+ # @param page_token [::String]
337
+ # Optional. A token that identifies the page of results that the server
338
+ # should return.
339
+ # @param filter [::String]
340
+ # Optional. The filtering results.
341
+ # @param end_time [::Google::Protobuf::Timestamp, ::Hash]
342
+ # Optional. The end time of the finding summary.
343
+ # @yield [result, operation] Access the result along with the TransportOperation object
344
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::FindingSummary>]
345
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
346
+ #
347
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::FindingSummary>]
348
+ #
349
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
350
+ #
351
+ # @example Basic example
352
+ # require "google/cloud/cloud_security_compliance/v1"
353
+ #
354
+ # # Create a client object. The client can be reused for multiple calls.
355
+ # client = Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client.new
356
+ #
357
+ # # Create a request. To set request fields, pass in keyword arguments.
358
+ # request = Google::Cloud::CloudSecurityCompliance::V1::ListFindingSummariesRequest.new
359
+ #
360
+ # # Call the list_finding_summaries method.
361
+ # result = client.list_finding_summaries request
362
+ #
363
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
364
+ # # over elements, and API calls will be issued to fetch pages as needed.
365
+ # result.each do |item|
366
+ # # Each element is of type ::Google::Cloud::CloudSecurityCompliance::V1::FindingSummary.
367
+ # p item
368
+ # end
369
+ #
370
+ def list_finding_summaries request, options = nil
371
+ raise ::ArgumentError, "request must be provided" if request.nil?
372
+
373
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudSecurityCompliance::V1::ListFindingSummariesRequest
374
+
375
+ # Converts hash and nil to an options object
376
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
377
+
378
+ # Customize the options with defaults
379
+ call_metadata = @config.rpcs.list_finding_summaries.metadata.to_h
380
+
381
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
382
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
383
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
384
+ gapic_version: ::Google::Cloud::CloudSecurityCompliance::V1::VERSION,
385
+ transports_version_send: [:rest]
386
+
387
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
388
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
389
+
390
+ options.apply_defaults timeout: @config.rpcs.list_finding_summaries.timeout,
391
+ metadata: call_metadata,
392
+ retry_policy: @config.rpcs.list_finding_summaries.retry_policy
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
396
+ retry_policy: @config.retry_policy
397
+
398
+ @monitoring_stub.list_finding_summaries request, options do |result, operation|
399
+ result = ::Gapic::Rest::PagedEnumerable.new @monitoring_stub, :list_finding_summaries, "finding_summaries", request, result, options
400
+ yield result, operation if block_given?
401
+ throw :response, result
402
+ end
403
+ rescue ::Gapic::Rest::Error => e
404
+ raise ::Google::Cloud::Error.from_error(e)
405
+ end
406
+
407
+ ##
408
+ # Fetches the framework compliance report for a given scope.
409
+ #
410
+ # @overload fetch_framework_compliance_report(request, options = nil)
411
+ # Pass arguments to `fetch_framework_compliance_report` via a request object, either of type
412
+ # {::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest} or an equivalent Hash.
413
+ #
414
+ # @param request [::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest, ::Hash]
415
+ # A request object representing the call parameters. Required. To specify no
416
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
417
+ # @param options [::Gapic::CallOptions, ::Hash]
418
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
419
+ #
420
+ # @overload fetch_framework_compliance_report(name: nil, end_time: nil)
421
+ # Pass arguments to `fetch_framework_compliance_report` via keyword arguments. Note that at
422
+ # least one keyword argument is required. To specify no parameters, or to keep all
423
+ # the default parameter values, pass an empty Hash as a request object (see above).
424
+ #
425
+ # @param name [::String]
426
+ # Required. The name of the framework compliance report to retrieve.
427
+ # @param end_time [::Google::Protobuf::Timestamp, ::Hash]
428
+ # Optional. The end time of the report.
429
+ # @yield [result, operation] Access the result along with the TransportOperation object
430
+ # @yieldparam result [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceReport]
431
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
432
+ #
433
+ # @return [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceReport]
434
+ #
435
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
436
+ #
437
+ # @example Basic example
438
+ # require "google/cloud/cloud_security_compliance/v1"
439
+ #
440
+ # # Create a client object. The client can be reused for multiple calls.
441
+ # client = Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client.new
442
+ #
443
+ # # Create a request. To set request fields, pass in keyword arguments.
444
+ # request = Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest.new
445
+ #
446
+ # # Call the fetch_framework_compliance_report method.
447
+ # result = client.fetch_framework_compliance_report request
448
+ #
449
+ # # The returned object is of type Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceReport.
450
+ # p result
451
+ #
452
+ def fetch_framework_compliance_report request, options = nil
453
+ raise ::ArgumentError, "request must be provided" if request.nil?
454
+
455
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest
456
+
457
+ # Converts hash and nil to an options object
458
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
459
+
460
+ # Customize the options with defaults
461
+ call_metadata = @config.rpcs.fetch_framework_compliance_report.metadata.to_h
462
+
463
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
464
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
465
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
466
+ gapic_version: ::Google::Cloud::CloudSecurityCompliance::V1::VERSION,
467
+ transports_version_send: [:rest]
468
+
469
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
470
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
471
+
472
+ options.apply_defaults timeout: @config.rpcs.fetch_framework_compliance_report.timeout,
473
+ metadata: call_metadata,
474
+ retry_policy: @config.rpcs.fetch_framework_compliance_report.retry_policy
475
+
476
+ options.apply_defaults timeout: @config.timeout,
477
+ metadata: @config.metadata,
478
+ retry_policy: @config.retry_policy
479
+
480
+ @monitoring_stub.fetch_framework_compliance_report request, options do |result, operation|
481
+ yield result, operation if block_given?
482
+ end
483
+ rescue ::Gapic::Rest::Error => e
484
+ raise ::Google::Cloud::Error.from_error(e)
485
+ end
486
+
487
+ ##
488
+ # Lists the control compliance summary for a given scope.
489
+ #
490
+ # @overload list_control_compliance_summaries(request, options = nil)
491
+ # Pass arguments to `list_control_compliance_summaries` via a request object, either of type
492
+ # {::Google::Cloud::CloudSecurityCompliance::V1::ListControlComplianceSummariesRequest} or an equivalent Hash.
493
+ #
494
+ # @param request [::Google::Cloud::CloudSecurityCompliance::V1::ListControlComplianceSummariesRequest, ::Hash]
495
+ # A request object representing the call parameters. Required. To specify no
496
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
497
+ # @param options [::Gapic::CallOptions, ::Hash]
498
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
499
+ #
500
+ # @overload list_control_compliance_summaries(parent: nil, end_time: nil, page_size: nil, page_token: nil, filter: nil)
501
+ # Pass arguments to `list_control_compliance_summaries` via keyword arguments. Note that at
502
+ # least one keyword argument is required. To specify no parameters, or to keep all
503
+ # the default parameter values, pass an empty Hash as a request object (see above).
504
+ #
505
+ # @param parent [::String]
506
+ # Required. The parent scope for the framework overview page.
507
+ # @param end_time [::Google::Protobuf::Timestamp, ::Hash]
508
+ # Optional. The end time of the control compliance summary.
509
+ # @param page_size [::Integer]
510
+ # Optional. The requested page size. The server might return fewer items than
511
+ # requested. If unspecified, the server picks an appropriate default.
512
+ # @param page_token [::String]
513
+ # Optional. A token that identifies the page of results that the server
514
+ # should return.
515
+ # @param filter [::String]
516
+ # Optional. The filtering results.
517
+ # @yield [result, operation] Access the result along with the TransportOperation object
518
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::ControlComplianceSummary>]
519
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
520
+ #
521
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::ControlComplianceSummary>]
522
+ #
523
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
524
+ #
525
+ # @example Basic example
526
+ # require "google/cloud/cloud_security_compliance/v1"
527
+ #
528
+ # # Create a client object. The client can be reused for multiple calls.
529
+ # client = Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client.new
530
+ #
531
+ # # Create a request. To set request fields, pass in keyword arguments.
532
+ # request = Google::Cloud::CloudSecurityCompliance::V1::ListControlComplianceSummariesRequest.new
533
+ #
534
+ # # Call the list_control_compliance_summaries method.
535
+ # result = client.list_control_compliance_summaries request
536
+ #
537
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
538
+ # # over elements, and API calls will be issued to fetch pages as needed.
539
+ # result.each do |item|
540
+ # # Each element is of type ::Google::Cloud::CloudSecurityCompliance::V1::ControlComplianceSummary.
541
+ # p item
542
+ # end
543
+ #
544
+ def list_control_compliance_summaries request, options = nil
545
+ raise ::ArgumentError, "request must be provided" if request.nil?
546
+
547
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudSecurityCompliance::V1::ListControlComplianceSummariesRequest
548
+
549
+ # Converts hash and nil to an options object
550
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
551
+
552
+ # Customize the options with defaults
553
+ call_metadata = @config.rpcs.list_control_compliance_summaries.metadata.to_h
554
+
555
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
556
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
557
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
558
+ gapic_version: ::Google::Cloud::CloudSecurityCompliance::V1::VERSION,
559
+ transports_version_send: [:rest]
560
+
561
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
562
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
563
+
564
+ options.apply_defaults timeout: @config.rpcs.list_control_compliance_summaries.timeout,
565
+ metadata: call_metadata,
566
+ retry_policy: @config.rpcs.list_control_compliance_summaries.retry_policy
567
+
568
+ options.apply_defaults timeout: @config.timeout,
569
+ metadata: @config.metadata,
570
+ retry_policy: @config.retry_policy
571
+
572
+ @monitoring_stub.list_control_compliance_summaries request, options do |result, operation|
573
+ result = ::Gapic::Rest::PagedEnumerable.new @monitoring_stub, :list_control_compliance_summaries, "control_compliance_summaries", request, result, options
574
+ yield result, operation if block_given?
575
+ throw :response, result
576
+ end
577
+ rescue ::Gapic::Rest::Error => e
578
+ raise ::Google::Cloud::Error.from_error(e)
579
+ end
580
+
581
+ ##
582
+ # Gets the aggregated compliance report over time for a given scope.
583
+ #
584
+ # @overload aggregate_framework_compliance_report(request, options = nil)
585
+ # Pass arguments to `aggregate_framework_compliance_report` via a request object, either of type
586
+ # {::Google::Cloud::CloudSecurityCompliance::V1::AggregateFrameworkComplianceReportRequest} or an equivalent Hash.
587
+ #
588
+ # @param request [::Google::Cloud::CloudSecurityCompliance::V1::AggregateFrameworkComplianceReportRequest, ::Hash]
589
+ # A request object representing the call parameters. Required. To specify no
590
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
591
+ # @param options [::Gapic::CallOptions, ::Hash]
592
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
593
+ #
594
+ # @overload aggregate_framework_compliance_report(name: nil, interval: nil, filter: nil)
595
+ # Pass arguments to `aggregate_framework_compliance_report` via keyword arguments. Note that at
596
+ # least one keyword argument is required. To specify no parameters, or to keep all
597
+ # the default parameter values, pass an empty Hash as a request object (see above).
598
+ #
599
+ # @param name [::String]
600
+ # Required. The name of the aggregated compliance report over time to
601
+ # retrieve.
602
+ #
603
+ # The supported format is:
604
+ # `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
605
+ # @param interval [::Google::Type::Interval, ::Hash]
606
+ # Optional. The start and end time range for the aggregated compliance
607
+ # report.
608
+ # @param filter [::String]
609
+ # Optional. The filtering results.
610
+ # @yield [result, operation] Access the result along with the TransportOperation object
611
+ # @yieldparam result [::Google::Cloud::CloudSecurityCompliance::V1::AggregateFrameworkComplianceReportResponse]
612
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
613
+ #
614
+ # @return [::Google::Cloud::CloudSecurityCompliance::V1::AggregateFrameworkComplianceReportResponse]
615
+ #
616
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
617
+ #
618
+ # @example Basic example
619
+ # require "google/cloud/cloud_security_compliance/v1"
620
+ #
621
+ # # Create a client object. The client can be reused for multiple calls.
622
+ # client = Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client.new
623
+ #
624
+ # # Create a request. To set request fields, pass in keyword arguments.
625
+ # request = Google::Cloud::CloudSecurityCompliance::V1::AggregateFrameworkComplianceReportRequest.new
626
+ #
627
+ # # Call the aggregate_framework_compliance_report method.
628
+ # result = client.aggregate_framework_compliance_report request
629
+ #
630
+ # # The returned object is of type Google::Cloud::CloudSecurityCompliance::V1::AggregateFrameworkComplianceReportResponse.
631
+ # p result
632
+ #
633
+ def aggregate_framework_compliance_report request, options = nil
634
+ raise ::ArgumentError, "request must be provided" if request.nil?
635
+
636
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudSecurityCompliance::V1::AggregateFrameworkComplianceReportRequest
637
+
638
+ # Converts hash and nil to an options object
639
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
640
+
641
+ # Customize the options with defaults
642
+ call_metadata = @config.rpcs.aggregate_framework_compliance_report.metadata.to_h
643
+
644
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
645
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
646
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
647
+ gapic_version: ::Google::Cloud::CloudSecurityCompliance::V1::VERSION,
648
+ transports_version_send: [:rest]
649
+
650
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
651
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
652
+
653
+ options.apply_defaults timeout: @config.rpcs.aggregate_framework_compliance_report.timeout,
654
+ metadata: call_metadata,
655
+ retry_policy: @config.rpcs.aggregate_framework_compliance_report.retry_policy
656
+
657
+ options.apply_defaults timeout: @config.timeout,
658
+ metadata: @config.metadata,
659
+ retry_policy: @config.retry_policy
660
+
661
+ @monitoring_stub.aggregate_framework_compliance_report request, options do |result, operation|
662
+ yield result, operation if block_given?
663
+ end
664
+ rescue ::Gapic::Rest::Error => e
665
+ raise ::Google::Cloud::Error.from_error(e)
666
+ end
667
+
668
+ ##
669
+ # Configuration class for the Monitoring REST API.
670
+ #
671
+ # This class represents the configuration for Monitoring REST,
672
+ # providing control over timeouts, retry behavior, logging, transport
673
+ # parameters, and other low-level controls. Certain parameters can also be
674
+ # applied individually to specific RPCs. See
675
+ # {::Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client::Configuration::Rpcs}
676
+ # for a list of RPCs that can be configured independently.
677
+ #
678
+ # Configuration can be applied globally to all clients, or to a single client
679
+ # on construction.
680
+ #
681
+ # @example
682
+ #
683
+ # # Modify the global config, setting the timeout for
684
+ # # list_framework_compliance_summaries to 20 seconds,
685
+ # # and all remaining timeouts to 10 seconds.
686
+ # ::Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client.configure do |config|
687
+ # config.timeout = 10.0
688
+ # config.rpcs.list_framework_compliance_summaries.timeout = 20.0
689
+ # end
690
+ #
691
+ # # Apply the above configuration only to a new client.
692
+ # client = ::Google::Cloud::CloudSecurityCompliance::V1::Monitoring::Rest::Client.new do |config|
693
+ # config.timeout = 10.0
694
+ # config.rpcs.list_framework_compliance_summaries.timeout = 20.0
695
+ # end
696
+ #
697
+ # @!attribute [rw] endpoint
698
+ # A custom service endpoint, as a hostname or hostname:port. The default is
699
+ # nil, indicating to use the default endpoint in the current universe domain.
700
+ # @return [::String,nil]
701
+ # @!attribute [rw] credentials
702
+ # Credentials to send with calls. You may provide any of the following types:
703
+ # * (`String`) The path to a service account key file in JSON format
704
+ # * (`Hash`) A service account key as a Hash
705
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
706
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
707
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
708
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
709
+ # * (`nil`) indicating no credentials
710
+ #
711
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
712
+ # external source for authentication to Google Cloud, you must validate it before
713
+ # providing it to a Google API client library. Providing an unvalidated credential
714
+ # configuration to Google APIs can compromise the security of your systems and data.
715
+ # For more information, refer to [Validate credential configurations from external
716
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
717
+ # @return [::Object]
718
+ # @!attribute [rw] scope
719
+ # The OAuth scopes
720
+ # @return [::Array<::String>]
721
+ # @!attribute [rw] lib_name
722
+ # The library name as recorded in instrumentation and logging
723
+ # @return [::String]
724
+ # @!attribute [rw] lib_version
725
+ # The library version as recorded in instrumentation and logging
726
+ # @return [::String]
727
+ # @!attribute [rw] timeout
728
+ # The call timeout in seconds.
729
+ # @return [::Numeric]
730
+ # @!attribute [rw] metadata
731
+ # Additional headers to be sent with the call.
732
+ # @return [::Hash{::Symbol=>::String}]
733
+ # @!attribute [rw] retry_policy
734
+ # The retry policy. The value is a hash with the following keys:
735
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
736
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
737
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
738
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
739
+ # trigger a retry.
740
+ # @return [::Hash]
741
+ # @!attribute [rw] quota_project
742
+ # A separate project against which to charge quota.
743
+ # @return [::String]
744
+ # @!attribute [rw] universe_domain
745
+ # The universe domain within which to make requests. This determines the
746
+ # default endpoint URL. The default value of nil uses the environment
747
+ # universe (usually the default "googleapis.com" universe).
748
+ # @return [::String,nil]
749
+ # @!attribute [rw] logger
750
+ # A custom logger to use for request/response debug logging, or the value
751
+ # `:default` (the default) to construct a default logger, or `nil` to
752
+ # explicitly disable logging.
753
+ # @return [::Logger,:default,nil]
754
+ #
755
+ class Configuration
756
+ extend ::Gapic::Config
757
+
758
+ # @private
759
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
760
+ DEFAULT_ENDPOINT = "cloudsecuritycompliance.googleapis.com"
761
+
762
+ config_attr :endpoint, nil, ::String, nil
763
+ config_attr :credentials, nil do |value|
764
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
765
+ allowed.any? { |klass| klass === value }
766
+ end
767
+ config_attr :scope, nil, ::String, ::Array, nil
768
+ config_attr :lib_name, nil, ::String, nil
769
+ config_attr :lib_version, nil, ::String, nil
770
+ config_attr :timeout, nil, ::Numeric, nil
771
+ config_attr :metadata, nil, ::Hash, nil
772
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
773
+ config_attr :quota_project, nil, ::String, nil
774
+ config_attr :universe_domain, nil, ::String, nil
775
+
776
+ # @private
777
+ # Overrides for http bindings for the RPCs of this service
778
+ # are only used when this service is used as mixin, and only
779
+ # by the host service.
780
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
781
+ config_attr :bindings_override, {}, ::Hash, nil
782
+ config_attr :logger, :default, ::Logger, nil, :default
783
+
784
+ # @private
785
+ def initialize parent_config = nil
786
+ @parent_config = parent_config unless parent_config.nil?
787
+
788
+ yield self if block_given?
789
+ end
790
+
791
+ ##
792
+ # Configurations for individual RPCs
793
+ # @return [Rpcs]
794
+ #
795
+ def rpcs
796
+ @rpcs ||= begin
797
+ parent_rpcs = nil
798
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
799
+ Rpcs.new parent_rpcs
800
+ end
801
+ end
802
+
803
+ ##
804
+ # Configuration RPC class for the Monitoring API.
805
+ #
806
+ # Includes fields providing the configuration for each RPC in this service.
807
+ # Each configuration object is of type `Gapic::Config::Method` and includes
808
+ # the following configuration fields:
809
+ #
810
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
811
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
812
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
813
+ # include the following keys:
814
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
815
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
816
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
817
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
818
+ # trigger a retry.
819
+ #
820
+ class Rpcs
821
+ ##
822
+ # RPC-specific configuration for `list_framework_compliance_summaries`
823
+ # @return [::Gapic::Config::Method]
824
+ #
825
+ attr_reader :list_framework_compliance_summaries
826
+ ##
827
+ # RPC-specific configuration for `list_finding_summaries`
828
+ # @return [::Gapic::Config::Method]
829
+ #
830
+ attr_reader :list_finding_summaries
831
+ ##
832
+ # RPC-specific configuration for `fetch_framework_compliance_report`
833
+ # @return [::Gapic::Config::Method]
834
+ #
835
+ attr_reader :fetch_framework_compliance_report
836
+ ##
837
+ # RPC-specific configuration for `list_control_compliance_summaries`
838
+ # @return [::Gapic::Config::Method]
839
+ #
840
+ attr_reader :list_control_compliance_summaries
841
+ ##
842
+ # RPC-specific configuration for `aggregate_framework_compliance_report`
843
+ # @return [::Gapic::Config::Method]
844
+ #
845
+ attr_reader :aggregate_framework_compliance_report
846
+
847
+ # @private
848
+ def initialize parent_rpcs = nil
849
+ list_framework_compliance_summaries_config = parent_rpcs.list_framework_compliance_summaries if parent_rpcs.respond_to? :list_framework_compliance_summaries
850
+ @list_framework_compliance_summaries = ::Gapic::Config::Method.new list_framework_compliance_summaries_config
851
+ list_finding_summaries_config = parent_rpcs.list_finding_summaries if parent_rpcs.respond_to? :list_finding_summaries
852
+ @list_finding_summaries = ::Gapic::Config::Method.new list_finding_summaries_config
853
+ fetch_framework_compliance_report_config = parent_rpcs.fetch_framework_compliance_report if parent_rpcs.respond_to? :fetch_framework_compliance_report
854
+ @fetch_framework_compliance_report = ::Gapic::Config::Method.new fetch_framework_compliance_report_config
855
+ list_control_compliance_summaries_config = parent_rpcs.list_control_compliance_summaries if parent_rpcs.respond_to? :list_control_compliance_summaries
856
+ @list_control_compliance_summaries = ::Gapic::Config::Method.new list_control_compliance_summaries_config
857
+ aggregate_framework_compliance_report_config = parent_rpcs.aggregate_framework_compliance_report if parent_rpcs.respond_to? :aggregate_framework_compliance_report
858
+ @aggregate_framework_compliance_report = ::Gapic::Config::Method.new aggregate_framework_compliance_report_config
859
+
860
+ yield self if block_given?
861
+ end
862
+ end
863
+ end
864
+ end
865
+ end
866
+ end
867
+ end
868
+ end
869
+ end
870
+ end