Reference documentation and code samples for the Chronicle V1 API class Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.
Client for the FindingsRefinementService service.
FindingsRefinementService provides an interface for filtering out findings that are unlikely to be real threats to prevent them from triggering alerts or notifications.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the FindingsRefinementService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all FindingsRefinementService clients ::Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.configure do |config| config.timeout = 10.0 end
#compute_all_findings_refinement_activities
def compute_all_findings_refinement_activities(request, options = nil) -> ::Google::Cloud::Chronicle::V1::ComputeAllFindingsRefinementActivitiesResponse
def compute_all_findings_refinement_activities(instance: nil, interval: nil) -> ::Google::Cloud::Chronicle::V1::ComputeAllFindingsRefinementActivitiesResponseReturns findings refinement activity for all findings refinements.
def compute_all_findings_refinement_activities(request, options = nil) -> ::Google::Cloud::Chronicle::V1::ComputeAllFindingsRefinementActivitiesResponsecompute_all_findings_refinement_activities via a request object, either of type
ComputeAllFindingsRefinementActivitiesRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ComputeAllFindingsRefinementActivitiesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def compute_all_findings_refinement_activities(instance: nil, interval: nil) -> ::Google::Cloud::Chronicle::V1::ComputeAllFindingsRefinementActivitiesResponsecompute_all_findings_refinement_activities via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- instance (::String) — Required. The ID of the Instance to retrieve counts for. Format: projects/{project}/locations/{location}/instances/{instance}
- interval (::Google::Type::Interval, ::Hash) — The time interval the activity is measured over.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Chronicle::V1::ComputeAllFindingsRefinementActivitiesResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ComputeAllFindingsRefinementActivitiesRequest.new # Call the compute_all_findings_refinement_activities method. result = client.compute_all_findings_refinement_activities request # The returned object is of type Google::Cloud::Chronicle::V1::ComputeAllFindingsRefinementActivitiesResponse. p result
#compute_findings_refinement_activity
def compute_findings_refinement_activity(request, options = nil) -> ::Google::Cloud::Chronicle::V1::ComputeFindingsRefinementActivityResponse
def compute_findings_refinement_activity(name: nil, interval: nil) -> ::Google::Cloud::Chronicle::V1::ComputeFindingsRefinementActivityResponseReturns findings refinement activity for a specific findings refinement.
def compute_findings_refinement_activity(request, options = nil) -> ::Google::Cloud::Chronicle::V1::ComputeFindingsRefinementActivityResponsecompute_findings_refinement_activity via a request object, either of type
ComputeFindingsRefinementActivityRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ComputeFindingsRefinementActivityRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def compute_findings_refinement_activity(name: nil, interval: nil) -> ::Google::Cloud::Chronicle::V1::ComputeFindingsRefinementActivityResponsecompute_findings_refinement_activity via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Full resource name for the findings refinement to fetch the activity for. Format: projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
- interval (::Google::Type::Interval, ::Hash) — The time interval the activity is measured over.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Chronicle::V1::ComputeFindingsRefinementActivityResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ComputeFindingsRefinementActivityRequest.new # Call the compute_findings_refinement_activity method. result = client.compute_findings_refinement_activity request # The returned object is of type Google::Cloud::Chronicle::V1::ComputeFindingsRefinementActivityResponse. p result
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the FindingsRefinementService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_findings_refinement
def create_findings_refinement(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinement
def create_findings_refinement(parent: nil, findings_refinement: nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementCreates a new findings refinement.
def create_findings_refinement(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementcreate_findings_refinement via a request object, either of type
CreateFindingsRefinementRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::CreateFindingsRefinementRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_findings_refinement(parent: nil, findings_refinement: nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementcreate_findings_refinement via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent resource where this findings refinement will be created. Format: projects/{project}/locations/{location}/instances/{instance}
- findings_refinement (::Google::Cloud::Chronicle::V1::FindingsRefinement, ::Hash) — Required. The findings refinement to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Chronicle::V1::FindingsRefinement)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::CreateFindingsRefinementRequest.new # Call the create_findings_refinement method. result = client.create_findings_refinement request # The returned object is of type Google::Cloud::Chronicle::V1::FindingsRefinement. p result
#get_findings_refinement
def get_findings_refinement(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinement
def get_findings_refinement(name: nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementGets a single findings refinement.
def get_findings_refinement(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementget_findings_refinement via a request object, either of type
GetFindingsRefinementRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::GetFindingsRefinementRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_findings_refinement(name: nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementget_findings_refinement via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the findings refinement to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Chronicle::V1::FindingsRefinement)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::GetFindingsRefinementRequest.new # Call the get_findings_refinement method. result = client.get_findings_refinement request # The returned object is of type Google::Cloud::Chronicle::V1::FindingsRefinement. p result
#get_findings_refinement_deployment
def get_findings_refinement_deployment(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment
def get_findings_refinement_deployment(name: nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementDeploymentGets a findings refinement deployment.
def get_findings_refinement_deployment(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementDeploymentget_findings_refinement_deployment via a request object, either of type
GetFindingsRefinementDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::GetFindingsRefinementDeploymentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_findings_refinement_deployment(name: nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementDeploymentget_findings_refinement_deployment via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the findings refinement to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::GetFindingsRefinementDeploymentRequest.new # Call the get_findings_refinement_deployment method. result = client.get_findings_refinement_deployment request # The returned object is of type Google::Cloud::Chronicle::V1::FindingsRefinementDeployment. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new FindingsRefinementService client object.
- (config) — Configure the FindingsRefinementService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.new do |config| config.timeout = 10.0 end
#list_all_findings_refinement_deployments
def list_all_findings_refinement_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment>
def list_all_findings_refinement_deployments(instance: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment>Lists all findings refinement deployments.
def list_all_findings_refinement_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment>list_all_findings_refinement_deployments via a request object, either of type
ListAllFindingsRefinementDeploymentsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ListAllFindingsRefinementDeploymentsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_all_findings_refinement_deployments(instance: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment>list_all_findings_refinement_deployments via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- instance (::String) — Required. The name of the parent resource, which is the SecOps instance to list all findings refinement deployments over. Format: projects/{project}/locations/{location}/instances/{instance}
- page_size (::Integer) — The maximum number of findings refinement deployments to return. The service may return fewer than this value. If unspecified, at most 100 rule deployments will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — A page token, received from a previous
ListAllFindingsRefinementDeploymentscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListAllFindingsRefinementDeploymentsmust match the call that provided the page token. - filter (::String) — A filter that can be used to retrieve specific findings refinement deployments. Only the following filters are allowed: detection_exclusion_application.curated_rule_sets:"
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ListAllFindingsRefinementDeploymentsRequest.new # Call the list_all_findings_refinement_deployments method. result = client.list_all_findings_refinement_deployments request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment. p item end
#list_findings_refinements
def list_findings_refinements(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinement>
def list_findings_refinements(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinement>Lists a collection of findings refinements.
def list_findings_refinements(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinement>list_findings_refinements via a request object, either of type
ListFindingsRefinementsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ListFindingsRefinementsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_findings_refinements(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinement>list_findings_refinements via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent, which owns this collection of findings refinements. Format: projects/{project}/locations/{location}/instances/{instance}
- page_size (::Integer) — The maximum number of findings refinements to return. The service may return fewer than this value. If unspecified, at most 100 rules will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — A page token, received from a previous
ListFindingsRefinementscall. Provide this to retrieve the subsequent page.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinement>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FindingsRefinement>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ListFindingsRefinementsRequest.new # Call the list_findings_refinements method. result = client.list_findings_refinements request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Chronicle::V1::FindingsRefinement. p item end
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_findings_refinement
def update_findings_refinement(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinement
def update_findings_refinement(findings_refinement: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementUpdates a findings refinement.
def update_findings_refinement(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementupdate_findings_refinement via a request object, either of type
UpdateFindingsRefinementRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::UpdateFindingsRefinementRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_findings_refinement(findings_refinement: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementupdate_findings_refinement via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
findings_refinement (::Google::Cloud::Chronicle::V1::FindingsRefinement, ::Hash) — Required. The findings refinement to update.
The findings refinement's
namefield is used to identify the findings refinement to update. Format: projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement} -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The list of fields to update. If
*is provided, all fields will be updated.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Chronicle::V1::FindingsRefinement)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::UpdateFindingsRefinementRequest.new # Call the update_findings_refinement method. result = client.update_findings_refinement request # The returned object is of type Google::Cloud::Chronicle::V1::FindingsRefinement. p result
#update_findings_refinement_deployment
def update_findings_refinement_deployment(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment
def update_findings_refinement_deployment(findings_refinement_deployment: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementDeploymentUpdates a findings refinement deployment.
def update_findings_refinement_deployment(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementDeploymentupdate_findings_refinement_deployment via a request object, either of type
UpdateFindingsRefinementDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::UpdateFindingsRefinementDeploymentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_findings_refinement_deployment(findings_refinement_deployment: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::FindingsRefinementDeploymentupdate_findings_refinement_deployment via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
findings_refinement_deployment (::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment, ::Hash) — Required. The findings refinement deployment to update.
The findings refinement deployment's
namefield is used to identify the findings refinement deployment to update. Format: projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to update. If
*is provided, all fields will be updated.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Chronicle::V1::FindingsRefinementDeployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FindingsRefinementService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::UpdateFindingsRefinementDeploymentRequest.new # Call the update_findings_refinement_deployment method. result = client.update_findings_refinement_deployment request # The returned object is of type Google::Cloud::Chronicle::V1::FindingsRefinementDeployment. p result