google-cloud-security_center-v1 0.10.0 → 0.11.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.
@@ -235,6 +235,127 @@ module Google
235
235
 
236
236
  # Service calls
237
237
 
238
+ ##
239
+ # Kicks off an LRO to bulk mute findings for a parent based on a filter. The
240
+ # parent can be either an organization, folder or project. The findings
241
+ # matched by the filter will be muted after the LRO is done.
242
+ #
243
+ # @overload bulk_mute_findings(request, options = nil)
244
+ # Pass arguments to `bulk_mute_findings` via a request object, either of type
245
+ # {::Google::Cloud::SecurityCenter::V1::BulkMuteFindingsRequest} or an equivalent Hash.
246
+ #
247
+ # @param request [::Google::Cloud::SecurityCenter::V1::BulkMuteFindingsRequest, ::Hash]
248
+ # A request object representing the call parameters. Required. To specify no
249
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
250
+ # @param options [::Gapic::CallOptions, ::Hash]
251
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
252
+ #
253
+ # @overload bulk_mute_findings(parent: nil, filter: nil, mute_annotation: nil)
254
+ # Pass arguments to `bulk_mute_findings` via keyword arguments. Note that at
255
+ # least one keyword argument is required. To specify no parameters, or to keep all
256
+ # the default parameter values, pass an empty Hash as a request object (see above).
257
+ #
258
+ # @param parent [::String]
259
+ # Required. The parent, at which bulk action needs to be applied. Its format is
260
+ # "organizations/[organization_id]", "folders/[folder_id]",
261
+ # "projects/[project_id]".
262
+ # @param filter [::String]
263
+ # Expression that identifies findings that should be updated.
264
+ # The expression is a list of zero or more restrictions combined
265
+ # via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
266
+ # has higher precedence than `AND`.
267
+ #
268
+ # Restrictions have the form `<field> <operator> <value>` and may have a
269
+ # `-` character in front of them to indicate negation. The fields map to
270
+ # those defined in the corresponding resource.
271
+ #
272
+ # The supported operators are:
273
+ #
274
+ # * `=` for all value types.
275
+ # * `>`, `<`, `>=`, `<=` for integer values.
276
+ # * `:`, meaning substring matching, for strings.
277
+ #
278
+ # The supported value types are:
279
+ #
280
+ # * string literals in quotes.
281
+ # * integer literals without quotes.
282
+ # * boolean literals `true` and `false` without quotes.
283
+ # @param mute_annotation [::String]
284
+ # This can be a mute configuration name or any identifier for mute/unmute
285
+ # of findings based on the filter.
286
+ #
287
+ # @yield [response, operation] Access the result along with the RPC operation
288
+ # @yieldparam response [::Gapic::Operation]
289
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
290
+ #
291
+ # @return [::Gapic::Operation]
292
+ #
293
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
294
+ #
295
+ # @example Basic example
296
+ # require "google/cloud/security_center/v1"
297
+ #
298
+ # # Create a client object. The client can be reused for multiple calls.
299
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
300
+ #
301
+ # # Create a request. To set request fields, pass in keyword arguments.
302
+ # request = Google::Cloud::SecurityCenter::V1::BulkMuteFindingsRequest.new
303
+ #
304
+ # # Call the bulk_mute_findings method.
305
+ # result = client.bulk_mute_findings request
306
+ #
307
+ # # The returned object is of type Gapic::Operation. You can use this
308
+ # # object to check the status of an operation, cancel it, or wait
309
+ # # for results. Here is how to block until completion:
310
+ # result.wait_until_done! timeout: 60
311
+ # if result.response?
312
+ # p result.response
313
+ # else
314
+ # puts "Error!"
315
+ # end
316
+ #
317
+ def bulk_mute_findings request, options = nil
318
+ raise ::ArgumentError, "request must be provided" if request.nil?
319
+
320
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::BulkMuteFindingsRequest
321
+
322
+ # Converts hash and nil to an options object
323
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
324
+
325
+ # Customize the options with defaults
326
+ metadata = @config.rpcs.bulk_mute_findings.metadata.to_h
327
+
328
+ # Set x-goog-api-client and x-goog-user-project headers
329
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
330
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
331
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
332
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
333
+
334
+ header_params = {}
335
+ if request.parent
336
+ header_params["parent"] = request.parent
337
+ end
338
+
339
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
340
+ metadata[:"x-goog-request-params"] ||= request_params_header
341
+
342
+ options.apply_defaults timeout: @config.rpcs.bulk_mute_findings.timeout,
343
+ metadata: metadata,
344
+ retry_policy: @config.rpcs.bulk_mute_findings.retry_policy
345
+
346
+ options.apply_defaults timeout: @config.timeout,
347
+ metadata: @config.metadata,
348
+ retry_policy: @config.retry_policy
349
+
350
+ @security_center_stub.call_rpc :bulk_mute_findings, request, options: options do |response, operation|
351
+ response = ::Gapic::Operation.new response, @operations_client, options: options
352
+ yield response, operation if block_given?
353
+ return response
354
+ end
355
+ rescue ::GRPC::BadStatus => e
356
+ raise ::Google::Cloud::Error.from_error(e)
357
+ end
358
+
238
359
  ##
239
360
  # Creates a source.
240
361
  #
@@ -418,6 +539,100 @@ module Google
418
539
  raise ::Google::Cloud::Error.from_error(e)
419
540
  end
420
541
 
542
+ ##
543
+ # Creates a mute config.
544
+ #
545
+ # @overload create_mute_config(request, options = nil)
546
+ # Pass arguments to `create_mute_config` via a request object, either of type
547
+ # {::Google::Cloud::SecurityCenter::V1::CreateMuteConfigRequest} or an equivalent Hash.
548
+ #
549
+ # @param request [::Google::Cloud::SecurityCenter::V1::CreateMuteConfigRequest, ::Hash]
550
+ # A request object representing the call parameters. Required. To specify no
551
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
552
+ # @param options [::Gapic::CallOptions, ::Hash]
553
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
554
+ #
555
+ # @overload create_mute_config(parent: nil, mute_config: nil, mute_config_id: nil)
556
+ # Pass arguments to `create_mute_config` via keyword arguments. Note that at
557
+ # least one keyword argument is required. To specify no parameters, or to keep all
558
+ # the default parameter values, pass an empty Hash as a request object (see above).
559
+ #
560
+ # @param parent [::String]
561
+ # Required. Resource name of the new mute configs's parent. Its format is
562
+ # "organizations/[organization_id]", "folders/[folder_id]", or
563
+ # "projects/[project_id]".
564
+ # @param mute_config [::Google::Cloud::SecurityCenter::V1::MuteConfig, ::Hash]
565
+ # Required. The mute config being created.
566
+ # @param mute_config_id [::String]
567
+ # Required. Unique identifier provided by the client within the parent scope.
568
+ # It must consist of lower case letters, numbers, and hyphen, with the first
569
+ # character a letter, the last a letter or a number, and a 63 character
570
+ # maximum.
571
+ #
572
+ # @yield [response, operation] Access the result along with the RPC operation
573
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1::MuteConfig]
574
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
575
+ #
576
+ # @return [::Google::Cloud::SecurityCenter::V1::MuteConfig]
577
+ #
578
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
579
+ #
580
+ # @example Basic example
581
+ # require "google/cloud/security_center/v1"
582
+ #
583
+ # # Create a client object. The client can be reused for multiple calls.
584
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
585
+ #
586
+ # # Create a request. To set request fields, pass in keyword arguments.
587
+ # request = Google::Cloud::SecurityCenter::V1::CreateMuteConfigRequest.new
588
+ #
589
+ # # Call the create_mute_config method.
590
+ # result = client.create_mute_config request
591
+ #
592
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::MuteConfig.
593
+ # p result
594
+ #
595
+ def create_mute_config request, options = nil
596
+ raise ::ArgumentError, "request must be provided" if request.nil?
597
+
598
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::CreateMuteConfigRequest
599
+
600
+ # Converts hash and nil to an options object
601
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
602
+
603
+ # Customize the options with defaults
604
+ metadata = @config.rpcs.create_mute_config.metadata.to_h
605
+
606
+ # Set x-goog-api-client and x-goog-user-project headers
607
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
608
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
609
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
610
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
611
+
612
+ header_params = {}
613
+ if request.parent
614
+ header_params["parent"] = request.parent
615
+ end
616
+
617
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
618
+ metadata[:"x-goog-request-params"] ||= request_params_header
619
+
620
+ options.apply_defaults timeout: @config.rpcs.create_mute_config.timeout,
621
+ metadata: metadata,
622
+ retry_policy: @config.rpcs.create_mute_config.retry_policy
623
+
624
+ options.apply_defaults timeout: @config.timeout,
625
+ metadata: @config.metadata,
626
+ retry_policy: @config.retry_policy
627
+
628
+ @security_center_stub.call_rpc :create_mute_config, request, options: options do |response, operation|
629
+ yield response, operation if block_given?
630
+ return response
631
+ end
632
+ rescue ::GRPC::BadStatus => e
633
+ raise ::Google::Cloud::Error.from_error(e)
634
+ end
635
+
421
636
  ##
422
637
  # Creates a notification config.
423
638
  #
@@ -512,6 +727,94 @@ module Google
512
727
  raise ::Google::Cloud::Error.from_error(e)
513
728
  end
514
729
 
730
+ ##
731
+ # Deletes an existing mute config.
732
+ #
733
+ # @overload delete_mute_config(request, options = nil)
734
+ # Pass arguments to `delete_mute_config` via a request object, either of type
735
+ # {::Google::Cloud::SecurityCenter::V1::DeleteMuteConfigRequest} or an equivalent Hash.
736
+ #
737
+ # @param request [::Google::Cloud::SecurityCenter::V1::DeleteMuteConfigRequest, ::Hash]
738
+ # A request object representing the call parameters. Required. To specify no
739
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
740
+ # @param options [::Gapic::CallOptions, ::Hash]
741
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
742
+ #
743
+ # @overload delete_mute_config(name: nil)
744
+ # Pass arguments to `delete_mute_config` via keyword arguments. Note that at
745
+ # least one keyword argument is required. To specify no parameters, or to keep all
746
+ # the default parameter values, pass an empty Hash as a request object (see above).
747
+ #
748
+ # @param name [::String]
749
+ # Required. Name of the mute config to delete. Its format is
750
+ # organizations/\\{organization}/muteConfigs/\\{config_id},
751
+ # folders/\\{folder}/muteConfigs/\\{config_id}, or
752
+ # projects/\\{project}/muteConfigs/\\{config_id}
753
+ #
754
+ # @yield [response, operation] Access the result along with the RPC operation
755
+ # @yieldparam response [::Google::Protobuf::Empty]
756
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
757
+ #
758
+ # @return [::Google::Protobuf::Empty]
759
+ #
760
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
761
+ #
762
+ # @example Basic example
763
+ # require "google/cloud/security_center/v1"
764
+ #
765
+ # # Create a client object. The client can be reused for multiple calls.
766
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
767
+ #
768
+ # # Create a request. To set request fields, pass in keyword arguments.
769
+ # request = Google::Cloud::SecurityCenter::V1::DeleteMuteConfigRequest.new
770
+ #
771
+ # # Call the delete_mute_config method.
772
+ # result = client.delete_mute_config request
773
+ #
774
+ # # The returned object is of type Google::Protobuf::Empty.
775
+ # p result
776
+ #
777
+ def delete_mute_config request, options = nil
778
+ raise ::ArgumentError, "request must be provided" if request.nil?
779
+
780
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::DeleteMuteConfigRequest
781
+
782
+ # Converts hash and nil to an options object
783
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
784
+
785
+ # Customize the options with defaults
786
+ metadata = @config.rpcs.delete_mute_config.metadata.to_h
787
+
788
+ # Set x-goog-api-client and x-goog-user-project headers
789
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
790
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
791
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
792
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
793
+
794
+ header_params = {}
795
+ if request.name
796
+ header_params["name"] = request.name
797
+ end
798
+
799
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
800
+ metadata[:"x-goog-request-params"] ||= request_params_header
801
+
802
+ options.apply_defaults timeout: @config.rpcs.delete_mute_config.timeout,
803
+ metadata: metadata,
804
+ retry_policy: @config.rpcs.delete_mute_config.retry_policy
805
+
806
+ options.apply_defaults timeout: @config.timeout,
807
+ metadata: @config.metadata,
808
+ retry_policy: @config.retry_policy
809
+
810
+ @security_center_stub.call_rpc :delete_mute_config, request, options: options do |response, operation|
811
+ yield response, operation if block_given?
812
+ return response
813
+ end
814
+ rescue ::GRPC::BadStatus => e
815
+ raise ::Google::Cloud::Error.from_error(e)
816
+ end
817
+
515
818
  ##
516
819
  # Deletes a notification config.
517
820
  #
@@ -687,6 +990,94 @@ module Google
687
990
  raise ::Google::Cloud::Error.from_error(e)
688
991
  end
689
992
 
993
+ ##
994
+ # Gets a mute config.
995
+ #
996
+ # @overload get_mute_config(request, options = nil)
997
+ # Pass arguments to `get_mute_config` via a request object, either of type
998
+ # {::Google::Cloud::SecurityCenter::V1::GetMuteConfigRequest} or an equivalent Hash.
999
+ #
1000
+ # @param request [::Google::Cloud::SecurityCenter::V1::GetMuteConfigRequest, ::Hash]
1001
+ # A request object representing the call parameters. Required. To specify no
1002
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1003
+ # @param options [::Gapic::CallOptions, ::Hash]
1004
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1005
+ #
1006
+ # @overload get_mute_config(name: nil)
1007
+ # Pass arguments to `get_mute_config` via keyword arguments. Note that at
1008
+ # least one keyword argument is required. To specify no parameters, or to keep all
1009
+ # the default parameter values, pass an empty Hash as a request object (see above).
1010
+ #
1011
+ # @param name [::String]
1012
+ # Required. Name of the mute config to retrieve. Its format is
1013
+ # organizations/\\{organization}/muteConfigs/\\{config_id},
1014
+ # folders/\\{folder}/muteConfigs/\\{config_id}, or
1015
+ # projects/\\{project}/muteConfigs/\\{config_id}
1016
+ #
1017
+ # @yield [response, operation] Access the result along with the RPC operation
1018
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1::MuteConfig]
1019
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1020
+ #
1021
+ # @return [::Google::Cloud::SecurityCenter::V1::MuteConfig]
1022
+ #
1023
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1024
+ #
1025
+ # @example Basic example
1026
+ # require "google/cloud/security_center/v1"
1027
+ #
1028
+ # # Create a client object. The client can be reused for multiple calls.
1029
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
1030
+ #
1031
+ # # Create a request. To set request fields, pass in keyword arguments.
1032
+ # request = Google::Cloud::SecurityCenter::V1::GetMuteConfigRequest.new
1033
+ #
1034
+ # # Call the get_mute_config method.
1035
+ # result = client.get_mute_config request
1036
+ #
1037
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::MuteConfig.
1038
+ # p result
1039
+ #
1040
+ def get_mute_config request, options = nil
1041
+ raise ::ArgumentError, "request must be provided" if request.nil?
1042
+
1043
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::GetMuteConfigRequest
1044
+
1045
+ # Converts hash and nil to an options object
1046
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1047
+
1048
+ # Customize the options with defaults
1049
+ metadata = @config.rpcs.get_mute_config.metadata.to_h
1050
+
1051
+ # Set x-goog-api-client and x-goog-user-project headers
1052
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1053
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1054
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
1055
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1056
+
1057
+ header_params = {}
1058
+ if request.name
1059
+ header_params["name"] = request.name
1060
+ end
1061
+
1062
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1063
+ metadata[:"x-goog-request-params"] ||= request_params_header
1064
+
1065
+ options.apply_defaults timeout: @config.rpcs.get_mute_config.timeout,
1066
+ metadata: metadata,
1067
+ retry_policy: @config.rpcs.get_mute_config.retry_policy
1068
+
1069
+ options.apply_defaults timeout: @config.timeout,
1070
+ metadata: @config.metadata,
1071
+ retry_policy: @config.retry_policy
1072
+
1073
+ @security_center_stub.call_rpc :get_mute_config, request, options: options do |response, operation|
1074
+ yield response, operation if block_given?
1075
+ return response
1076
+ end
1077
+ rescue ::GRPC::BadStatus => e
1078
+ raise ::Google::Cloud::Error.from_error(e)
1079
+ end
1080
+
690
1081
  ##
691
1082
  # Gets a notification config.
692
1083
  #
@@ -1750,25 +2141,130 @@ module Google
1750
2141
  # filter at the start of compare_duration, but did not match
1751
2142
  # the filter at read_time.
1752
2143
  #
1753
- # If compare_duration is not specified, then the only possible state_change
1754
- # is "UNUSED", which will be the state_change set for all findings present at
1755
- # read_time.
1756
- # @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
1757
- # A field mask to specify the Finding fields to be listed in the response.
1758
- # An empty field mask will list all fields.
1759
- # @param page_token [::String]
1760
- # The value returned by the last `ListFindingsResponse`; indicates
1761
- # that this is a continuation of a prior `ListFindings` call, and
1762
- # that the system should return the next page of data.
2144
+ # If compare_duration is not specified, then the only possible state_change
2145
+ # is "UNUSED", which will be the state_change set for all findings present at
2146
+ # read_time.
2147
+ # @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
2148
+ # A field mask to specify the Finding fields to be listed in the response.
2149
+ # An empty field mask will list all fields.
2150
+ # @param page_token [::String]
2151
+ # The value returned by the last `ListFindingsResponse`; indicates
2152
+ # that this is a continuation of a prior `ListFindings` call, and
2153
+ # that the system should return the next page of data.
2154
+ # @param page_size [::Integer]
2155
+ # The maximum number of results to return in a single response. Default is
2156
+ # 10, minimum is 1, maximum is 1000.
2157
+ #
2158
+ # @yield [response, operation] Access the result along with the RPC operation
2159
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult>]
2160
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2161
+ #
2162
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult>]
2163
+ #
2164
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2165
+ #
2166
+ # @example Basic example
2167
+ # require "google/cloud/security_center/v1"
2168
+ #
2169
+ # # Create a client object. The client can be reused for multiple calls.
2170
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
2171
+ #
2172
+ # # Create a request. To set request fields, pass in keyword arguments.
2173
+ # request = Google::Cloud::SecurityCenter::V1::ListFindingsRequest.new
2174
+ #
2175
+ # # Call the list_findings method.
2176
+ # result = client.list_findings request
2177
+ #
2178
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2179
+ # # iterate over all elements by calling #each, and the enumerable
2180
+ # # will lazily make API calls to fetch subsequent pages. Other
2181
+ # # methods are also available for managing paging directly.
2182
+ # result.each do |response|
2183
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult.
2184
+ # p response
2185
+ # end
2186
+ #
2187
+ def list_findings request, options = nil
2188
+ raise ::ArgumentError, "request must be provided" if request.nil?
2189
+
2190
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListFindingsRequest
2191
+
2192
+ # Converts hash and nil to an options object
2193
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2194
+
2195
+ # Customize the options with defaults
2196
+ metadata = @config.rpcs.list_findings.metadata.to_h
2197
+
2198
+ # Set x-goog-api-client and x-goog-user-project headers
2199
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2200
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2201
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
2202
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2203
+
2204
+ header_params = {}
2205
+ if request.parent
2206
+ header_params["parent"] = request.parent
2207
+ end
2208
+
2209
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2210
+ metadata[:"x-goog-request-params"] ||= request_params_header
2211
+
2212
+ options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
2213
+ metadata: metadata,
2214
+ retry_policy: @config.rpcs.list_findings.retry_policy
2215
+
2216
+ options.apply_defaults timeout: @config.timeout,
2217
+ metadata: @config.metadata,
2218
+ retry_policy: @config.retry_policy
2219
+
2220
+ @security_center_stub.call_rpc :list_findings, request, options: options do |response, operation|
2221
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_findings, request, response, operation, options
2222
+ yield response, operation if block_given?
2223
+ return response
2224
+ end
2225
+ rescue ::GRPC::BadStatus => e
2226
+ raise ::Google::Cloud::Error.from_error(e)
2227
+ end
2228
+
2229
+ ##
2230
+ # Lists mute configs.
2231
+ #
2232
+ # @overload list_mute_configs(request, options = nil)
2233
+ # Pass arguments to `list_mute_configs` via a request object, either of type
2234
+ # {::Google::Cloud::SecurityCenter::V1::ListMuteConfigsRequest} or an equivalent Hash.
2235
+ #
2236
+ # @param request [::Google::Cloud::SecurityCenter::V1::ListMuteConfigsRequest, ::Hash]
2237
+ # A request object representing the call parameters. Required. To specify no
2238
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2239
+ # @param options [::Gapic::CallOptions, ::Hash]
2240
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2241
+ #
2242
+ # @overload list_mute_configs(parent: nil, page_size: nil, page_token: nil)
2243
+ # Pass arguments to `list_mute_configs` via keyword arguments. Note that at
2244
+ # least one keyword argument is required. To specify no parameters, or to keep all
2245
+ # the default parameter values, pass an empty Hash as a request object (see above).
2246
+ #
2247
+ # @param parent [::String]
2248
+ # Required. The parent, which owns the collection of mute configs. Its format is
2249
+ # "organizations/[organization_id]", "folders/[folder_id]",
2250
+ # "projects/[project_id]".
1763
2251
  # @param page_size [::Integer]
1764
- # The maximum number of results to return in a single response. Default is
1765
- # 10, minimum is 1, maximum is 1000.
2252
+ # The maximum number of configs to return. The service may return fewer than
2253
+ # this value.
2254
+ # If unspecified, at most 10 configs will be returned.
2255
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
2256
+ # @param page_token [::String]
2257
+ # A page token, received from a previous `ListMuteConfigs` call.
2258
+ # Provide this to retrieve the subsequent page.
2259
+ #
2260
+ # When paginating, all other parameters provided to `ListMuteConfigs` must
2261
+ # match the call that provided the page token.
1766
2262
  #
1767
2263
  # @yield [response, operation] Access the result along with the RPC operation
1768
- # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult>]
2264
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::MuteConfig>]
1769
2265
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
1770
2266
  #
1771
- # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult>]
2267
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::MuteConfig>]
1772
2268
  #
1773
2269
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1774
2270
  #
@@ -1779,30 +2275,30 @@ module Google
1779
2275
  # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
1780
2276
  #
1781
2277
  # # Create a request. To set request fields, pass in keyword arguments.
1782
- # request = Google::Cloud::SecurityCenter::V1::ListFindingsRequest.new
2278
+ # request = Google::Cloud::SecurityCenter::V1::ListMuteConfigsRequest.new
1783
2279
  #
1784
- # # Call the list_findings method.
1785
- # result = client.list_findings request
2280
+ # # Call the list_mute_configs method.
2281
+ # result = client.list_mute_configs request
1786
2282
  #
1787
2283
  # # The returned object is of type Gapic::PagedEnumerable. You can
1788
2284
  # # iterate over all elements by calling #each, and the enumerable
1789
2285
  # # will lazily make API calls to fetch subsequent pages. Other
1790
2286
  # # methods are also available for managing paging directly.
1791
2287
  # result.each do |response|
1792
- # # Each element is of type ::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult.
2288
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::MuteConfig.
1793
2289
  # p response
1794
2290
  # end
1795
2291
  #
1796
- def list_findings request, options = nil
2292
+ def list_mute_configs request, options = nil
1797
2293
  raise ::ArgumentError, "request must be provided" if request.nil?
1798
2294
 
1799
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListFindingsRequest
2295
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListMuteConfigsRequest
1800
2296
 
1801
2297
  # Converts hash and nil to an options object
1802
2298
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1803
2299
 
1804
2300
  # Customize the options with defaults
1805
- metadata = @config.rpcs.list_findings.metadata.to_h
2301
+ metadata = @config.rpcs.list_mute_configs.metadata.to_h
1806
2302
 
1807
2303
  # Set x-goog-api-client and x-goog-user-project headers
1808
2304
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1818,16 +2314,16 @@ module Google
1818
2314
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1819
2315
  metadata[:"x-goog-request-params"] ||= request_params_header
1820
2316
 
1821
- options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
2317
+ options.apply_defaults timeout: @config.rpcs.list_mute_configs.timeout,
1822
2318
  metadata: metadata,
1823
- retry_policy: @config.rpcs.list_findings.retry_policy
2319
+ retry_policy: @config.rpcs.list_mute_configs.retry_policy
1824
2320
 
1825
2321
  options.apply_defaults timeout: @config.timeout,
1826
2322
  metadata: @config.metadata,
1827
2323
  retry_policy: @config.retry_policy
1828
2324
 
1829
- @security_center_stub.call_rpc :list_findings, request, options: options do |response, operation|
1830
- response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_findings, request, response, operation, options
2325
+ @security_center_stub.call_rpc :list_mute_configs, request, options: options do |response, operation|
2326
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_mute_configs, request, response, operation, options
1831
2327
  yield response, operation if block_given?
1832
2328
  return response
1833
2329
  end
@@ -2227,6 +2723,98 @@ module Google
2227
2723
  raise ::Google::Cloud::Error.from_error(e)
2228
2724
  end
2229
2725
 
2726
+ ##
2727
+ # Updates the mute state of a finding.
2728
+ #
2729
+ # @overload set_mute(request, options = nil)
2730
+ # Pass arguments to `set_mute` via a request object, either of type
2731
+ # {::Google::Cloud::SecurityCenter::V1::SetMuteRequest} or an equivalent Hash.
2732
+ #
2733
+ # @param request [::Google::Cloud::SecurityCenter::V1::SetMuteRequest, ::Hash]
2734
+ # A request object representing the call parameters. Required. To specify no
2735
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2736
+ # @param options [::Gapic::CallOptions, ::Hash]
2737
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2738
+ #
2739
+ # @overload set_mute(name: nil, mute: nil)
2740
+ # Pass arguments to `set_mute` via keyword arguments. Note that at
2741
+ # least one keyword argument is required. To specify no parameters, or to keep all
2742
+ # the default parameter values, pass an empty Hash as a request object (see above).
2743
+ #
2744
+ # @param name [::String]
2745
+ # Required. The relative resource name of the finding. See:
2746
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
2747
+ # Example:
2748
+ # "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}",
2749
+ # "folders/\\{folder_id}/sources/\\{source_id}/finding/\\{finding_id}",
2750
+ # "projects/\\{project_id}/sources/\\{source_id}/finding/\\{finding_id}".
2751
+ # @param mute [::Google::Cloud::SecurityCenter::V1::Finding::Mute]
2752
+ # Required. The desired state of the Mute.
2753
+ #
2754
+ # @yield [response, operation] Access the result along with the RPC operation
2755
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1::Finding]
2756
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2757
+ #
2758
+ # @return [::Google::Cloud::SecurityCenter::V1::Finding]
2759
+ #
2760
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2761
+ #
2762
+ # @example Basic example
2763
+ # require "google/cloud/security_center/v1"
2764
+ #
2765
+ # # Create a client object. The client can be reused for multiple calls.
2766
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
2767
+ #
2768
+ # # Create a request. To set request fields, pass in keyword arguments.
2769
+ # request = Google::Cloud::SecurityCenter::V1::SetMuteRequest.new
2770
+ #
2771
+ # # Call the set_mute method.
2772
+ # result = client.set_mute request
2773
+ #
2774
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::Finding.
2775
+ # p result
2776
+ #
2777
+ def set_mute request, options = nil
2778
+ raise ::ArgumentError, "request must be provided" if request.nil?
2779
+
2780
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::SetMuteRequest
2781
+
2782
+ # Converts hash and nil to an options object
2783
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2784
+
2785
+ # Customize the options with defaults
2786
+ metadata = @config.rpcs.set_mute.metadata.to_h
2787
+
2788
+ # Set x-goog-api-client and x-goog-user-project headers
2789
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2790
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2791
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
2792
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2793
+
2794
+ header_params = {}
2795
+ if request.name
2796
+ header_params["name"] = request.name
2797
+ end
2798
+
2799
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2800
+ metadata[:"x-goog-request-params"] ||= request_params_header
2801
+
2802
+ options.apply_defaults timeout: @config.rpcs.set_mute.timeout,
2803
+ metadata: metadata,
2804
+ retry_policy: @config.rpcs.set_mute.retry_policy
2805
+
2806
+ options.apply_defaults timeout: @config.timeout,
2807
+ metadata: @config.metadata,
2808
+ retry_policy: @config.retry_policy
2809
+
2810
+ @security_center_stub.call_rpc :set_mute, request, options: options do |response, operation|
2811
+ yield response, operation if block_given?
2812
+ return response
2813
+ end
2814
+ rescue ::GRPC::BadStatus => e
2815
+ raise ::Google::Cloud::Error.from_error(e)
2816
+ end
2817
+
2230
2818
  ##
2231
2819
  # Sets the access control policy on the specified Source.
2232
2820
  #
@@ -2409,6 +2997,95 @@ module Google
2409
2997
  raise ::Google::Cloud::Error.from_error(e)
2410
2998
  end
2411
2999
 
3000
+ ##
3001
+ # Updates external system. This is for a given finding.
3002
+ #
3003
+ # @overload update_external_system(request, options = nil)
3004
+ # Pass arguments to `update_external_system` via a request object, either of type
3005
+ # {::Google::Cloud::SecurityCenter::V1::UpdateExternalSystemRequest} or an equivalent Hash.
3006
+ #
3007
+ # @param request [::Google::Cloud::SecurityCenter::V1::UpdateExternalSystemRequest, ::Hash]
3008
+ # A request object representing the call parameters. Required. To specify no
3009
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3010
+ # @param options [::Gapic::CallOptions, ::Hash]
3011
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3012
+ #
3013
+ # @overload update_external_system(external_system: nil, update_mask: nil)
3014
+ # Pass arguments to `update_external_system` via keyword arguments. Note that at
3015
+ # least one keyword argument is required. To specify no parameters, or to keep all
3016
+ # the default parameter values, pass an empty Hash as a request object (see above).
3017
+ #
3018
+ # @param external_system [::Google::Cloud::SecurityCenter::V1::ExternalSystem, ::Hash]
3019
+ # Required. The external system resource to update.
3020
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3021
+ # The FieldMask to use when updating the external system resource.
3022
+ #
3023
+ # If empty all mutable fields will be updated.
3024
+ #
3025
+ # @yield [response, operation] Access the result along with the RPC operation
3026
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1::ExternalSystem]
3027
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3028
+ #
3029
+ # @return [::Google::Cloud::SecurityCenter::V1::ExternalSystem]
3030
+ #
3031
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3032
+ #
3033
+ # @example Basic example
3034
+ # require "google/cloud/security_center/v1"
3035
+ #
3036
+ # # Create a client object. The client can be reused for multiple calls.
3037
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
3038
+ #
3039
+ # # Create a request. To set request fields, pass in keyword arguments.
3040
+ # request = Google::Cloud::SecurityCenter::V1::UpdateExternalSystemRequest.new
3041
+ #
3042
+ # # Call the update_external_system method.
3043
+ # result = client.update_external_system request
3044
+ #
3045
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::ExternalSystem.
3046
+ # p result
3047
+ #
3048
+ def update_external_system request, options = nil
3049
+ raise ::ArgumentError, "request must be provided" if request.nil?
3050
+
3051
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateExternalSystemRequest
3052
+
3053
+ # Converts hash and nil to an options object
3054
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3055
+
3056
+ # Customize the options with defaults
3057
+ metadata = @config.rpcs.update_external_system.metadata.to_h
3058
+
3059
+ # Set x-goog-api-client and x-goog-user-project headers
3060
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3061
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3062
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
3063
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3064
+
3065
+ header_params = {}
3066
+ if request.external_system&.name
3067
+ header_params["external_system.name"] = request.external_system.name
3068
+ end
3069
+
3070
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3071
+ metadata[:"x-goog-request-params"] ||= request_params_header
3072
+
3073
+ options.apply_defaults timeout: @config.rpcs.update_external_system.timeout,
3074
+ metadata: metadata,
3075
+ retry_policy: @config.rpcs.update_external_system.retry_policy
3076
+
3077
+ options.apply_defaults timeout: @config.timeout,
3078
+ metadata: @config.metadata,
3079
+ retry_policy: @config.retry_policy
3080
+
3081
+ @security_center_stub.call_rpc :update_external_system, request, options: options do |response, operation|
3082
+ yield response, operation if block_given?
3083
+ return response
3084
+ end
3085
+ rescue ::GRPC::BadStatus => e
3086
+ raise ::Google::Cloud::Error.from_error(e)
3087
+ end
3088
+
2412
3089
  ##
2413
3090
  # Creates or updates a finding. The corresponding source must exist for a
2414
3091
  # finding creation to succeed.
@@ -2508,6 +3185,94 @@ module Google
2508
3185
  raise ::Google::Cloud::Error.from_error(e)
2509
3186
  end
2510
3187
 
3188
+ ##
3189
+ # Updates a mute config.
3190
+ #
3191
+ # @overload update_mute_config(request, options = nil)
3192
+ # Pass arguments to `update_mute_config` via a request object, either of type
3193
+ # {::Google::Cloud::SecurityCenter::V1::UpdateMuteConfigRequest} or an equivalent Hash.
3194
+ #
3195
+ # @param request [::Google::Cloud::SecurityCenter::V1::UpdateMuteConfigRequest, ::Hash]
3196
+ # A request object representing the call parameters. Required. To specify no
3197
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3198
+ # @param options [::Gapic::CallOptions, ::Hash]
3199
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3200
+ #
3201
+ # @overload update_mute_config(mute_config: nil, update_mask: nil)
3202
+ # Pass arguments to `update_mute_config` via keyword arguments. Note that at
3203
+ # least one keyword argument is required. To specify no parameters, or to keep all
3204
+ # the default parameter values, pass an empty Hash as a request object (see above).
3205
+ #
3206
+ # @param mute_config [::Google::Cloud::SecurityCenter::V1::MuteConfig, ::Hash]
3207
+ # Required. The mute config being updated.
3208
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3209
+ # The list of fields to be updated.
3210
+ # If empty all mutable fields will be updated.
3211
+ #
3212
+ # @yield [response, operation] Access the result along with the RPC operation
3213
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1::MuteConfig]
3214
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3215
+ #
3216
+ # @return [::Google::Cloud::SecurityCenter::V1::MuteConfig]
3217
+ #
3218
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3219
+ #
3220
+ # @example Basic example
3221
+ # require "google/cloud/security_center/v1"
3222
+ #
3223
+ # # Create a client object. The client can be reused for multiple calls.
3224
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
3225
+ #
3226
+ # # Create a request. To set request fields, pass in keyword arguments.
3227
+ # request = Google::Cloud::SecurityCenter::V1::UpdateMuteConfigRequest.new
3228
+ #
3229
+ # # Call the update_mute_config method.
3230
+ # result = client.update_mute_config request
3231
+ #
3232
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::MuteConfig.
3233
+ # p result
3234
+ #
3235
+ def update_mute_config request, options = nil
3236
+ raise ::ArgumentError, "request must be provided" if request.nil?
3237
+
3238
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateMuteConfigRequest
3239
+
3240
+ # Converts hash and nil to an options object
3241
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3242
+
3243
+ # Customize the options with defaults
3244
+ metadata = @config.rpcs.update_mute_config.metadata.to_h
3245
+
3246
+ # Set x-goog-api-client and x-goog-user-project headers
3247
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3248
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3249
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
3250
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3251
+
3252
+ header_params = {}
3253
+ if request.mute_config&.name
3254
+ header_params["mute_config.name"] = request.mute_config.name
3255
+ end
3256
+
3257
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3258
+ metadata[:"x-goog-request-params"] ||= request_params_header
3259
+
3260
+ options.apply_defaults timeout: @config.rpcs.update_mute_config.timeout,
3261
+ metadata: metadata,
3262
+ retry_policy: @config.rpcs.update_mute_config.retry_policy
3263
+
3264
+ options.apply_defaults timeout: @config.timeout,
3265
+ metadata: @config.metadata,
3266
+ retry_policy: @config.retry_policy
3267
+
3268
+ @security_center_stub.call_rpc :update_mute_config, request, options: options do |response, operation|
3269
+ yield response, operation if block_given?
3270
+ return response
3271
+ end
3272
+ rescue ::GRPC::BadStatus => e
3273
+ raise ::Google::Cloud::Error.from_error(e)
3274
+ end
3275
+
2511
3276
  ##
2512
3277
  # Updates a notification config. The following update
2513
3278
  # fields are allowed: description, pubsub_topic, streaming_config.filter
@@ -2887,17 +3652,17 @@ module Google
2887
3652
  # @example
2888
3653
  #
2889
3654
  # # Modify the global config, setting the timeout for
2890
- # # create_source to 20 seconds,
3655
+ # # bulk_mute_findings to 20 seconds,
2891
3656
  # # and all remaining timeouts to 10 seconds.
2892
3657
  # ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.configure do |config|
2893
3658
  # config.timeout = 10.0
2894
- # config.rpcs.create_source.timeout = 20.0
3659
+ # config.rpcs.bulk_mute_findings.timeout = 20.0
2895
3660
  # end
2896
3661
  #
2897
3662
  # # Apply the above configuration only to a new client.
2898
3663
  # client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new do |config|
2899
3664
  # config.timeout = 10.0
2900
- # config.rpcs.create_source.timeout = 20.0
3665
+ # config.rpcs.bulk_mute_findings.timeout = 20.0
2901
3666
  # end
2902
3667
  #
2903
3668
  # @!attribute [rw] endpoint
@@ -3006,6 +3771,11 @@ module Google
3006
3771
  # trigger a retry.
3007
3772
  #
3008
3773
  class Rpcs
3774
+ ##
3775
+ # RPC-specific configuration for `bulk_mute_findings`
3776
+ # @return [::Gapic::Config::Method]
3777
+ #
3778
+ attr_reader :bulk_mute_findings
3009
3779
  ##
3010
3780
  # RPC-specific configuration for `create_source`
3011
3781
  # @return [::Gapic::Config::Method]
@@ -3017,11 +3787,21 @@ module Google
3017
3787
  #
3018
3788
  attr_reader :create_finding
3019
3789
  ##
3790
+ # RPC-specific configuration for `create_mute_config`
3791
+ # @return [::Gapic::Config::Method]
3792
+ #
3793
+ attr_reader :create_mute_config
3794
+ ##
3020
3795
  # RPC-specific configuration for `create_notification_config`
3021
3796
  # @return [::Gapic::Config::Method]
3022
3797
  #
3023
3798
  attr_reader :create_notification_config
3024
3799
  ##
3800
+ # RPC-specific configuration for `delete_mute_config`
3801
+ # @return [::Gapic::Config::Method]
3802
+ #
3803
+ attr_reader :delete_mute_config
3804
+ ##
3025
3805
  # RPC-specific configuration for `delete_notification_config`
3026
3806
  # @return [::Gapic::Config::Method]
3027
3807
  #
@@ -3032,6 +3812,11 @@ module Google
3032
3812
  #
3033
3813
  attr_reader :get_iam_policy
3034
3814
  ##
3815
+ # RPC-specific configuration for `get_mute_config`
3816
+ # @return [::Gapic::Config::Method]
3817
+ #
3818
+ attr_reader :get_mute_config
3819
+ ##
3035
3820
  # RPC-specific configuration for `get_notification_config`
3036
3821
  # @return [::Gapic::Config::Method]
3037
3822
  #
@@ -3067,6 +3852,11 @@ module Google
3067
3852
  #
3068
3853
  attr_reader :list_findings
3069
3854
  ##
3855
+ # RPC-specific configuration for `list_mute_configs`
3856
+ # @return [::Gapic::Config::Method]
3857
+ #
3858
+ attr_reader :list_mute_configs
3859
+ ##
3070
3860
  # RPC-specific configuration for `list_notification_configs`
3071
3861
  # @return [::Gapic::Config::Method]
3072
3862
  #
@@ -3087,6 +3877,11 @@ module Google
3087
3877
  #
3088
3878
  attr_reader :set_finding_state
3089
3879
  ##
3880
+ # RPC-specific configuration for `set_mute`
3881
+ # @return [::Gapic::Config::Method]
3882
+ #
3883
+ attr_reader :set_mute
3884
+ ##
3090
3885
  # RPC-specific configuration for `set_iam_policy`
3091
3886
  # @return [::Gapic::Config::Method]
3092
3887
  #
@@ -3097,11 +3892,21 @@ module Google
3097
3892
  #
3098
3893
  attr_reader :test_iam_permissions
3099
3894
  ##
3895
+ # RPC-specific configuration for `update_external_system`
3896
+ # @return [::Gapic::Config::Method]
3897
+ #
3898
+ attr_reader :update_external_system
3899
+ ##
3100
3900
  # RPC-specific configuration for `update_finding`
3101
3901
  # @return [::Gapic::Config::Method]
3102
3902
  #
3103
3903
  attr_reader :update_finding
3104
3904
  ##
3905
+ # RPC-specific configuration for `update_mute_config`
3906
+ # @return [::Gapic::Config::Method]
3907
+ #
3908
+ attr_reader :update_mute_config
3909
+ ##
3105
3910
  # RPC-specific configuration for `update_notification_config`
3106
3911
  # @return [::Gapic::Config::Method]
3107
3912
  #
@@ -3124,16 +3929,24 @@ module Google
3124
3929
 
3125
3930
  # @private
3126
3931
  def initialize parent_rpcs = nil
3932
+ bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
3933
+ @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
3127
3934
  create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
3128
3935
  @create_source = ::Gapic::Config::Method.new create_source_config
3129
3936
  create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
3130
3937
  @create_finding = ::Gapic::Config::Method.new create_finding_config
3938
+ create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
3939
+ @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
3131
3940
  create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
3132
3941
  @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
3942
+ delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
3943
+ @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
3133
3944
  delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
3134
3945
  @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
3135
3946
  get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
3136
3947
  @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
3948
+ get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
3949
+ @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
3137
3950
  get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
3138
3951
  @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
3139
3952
  get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
@@ -3148,6 +3961,8 @@ module Google
3148
3961
  @list_assets = ::Gapic::Config::Method.new list_assets_config
3149
3962
  list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
3150
3963
  @list_findings = ::Gapic::Config::Method.new list_findings_config
3964
+ list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
3965
+ @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
3151
3966
  list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
3152
3967
  @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
3153
3968
  list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
@@ -3156,12 +3971,18 @@ module Google
3156
3971
  @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
3157
3972
  set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
3158
3973
  @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
3974
+ set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
3975
+ @set_mute = ::Gapic::Config::Method.new set_mute_config
3159
3976
  set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
3160
3977
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
3161
3978
  test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
3162
3979
  @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
3980
+ update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
3981
+ @update_external_system = ::Gapic::Config::Method.new update_external_system_config
3163
3982
  update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
3164
3983
  @update_finding = ::Gapic::Config::Method.new update_finding_config
3984
+ update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
3985
+ @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
3165
3986
  update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
3166
3987
  @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
3167
3988
  update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings