Class SecurityCenterConnection (2.27.0)

This interface defines virtual methods for each of the user-facing overload sets in SecurityCenterClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type SecurityCenterClient.

To create a concrete instance, see MakeSecurityCenterConnection().

For mocking, see securitycenter_v2_mocks::MockSecurityCenterConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual BatchCreateResourceValueConfigs(google::cloud::securitycenter::v2::BatchCreateResourceValueConfigsRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::BatchCreateResourceValueConfigsRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::BatchCreateResourceValueConfigsResponse >

virtual BulkMuteFindings(google::cloud::securitycenter::v2::BulkMuteFindingsRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::BulkMuteFindingsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::securitycenter::v2::BulkMuteFindingsResponse > >

virtual BulkMuteFindings(NoAwaitTag, google::cloud::securitycenter::v2::BulkMuteFindingsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::securitycenter::v2::BulkMuteFindingsRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual BulkMuteFindings(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::securitycenter::v2::BulkMuteFindingsResponse > >

virtual CreateBigQueryExport(google::cloud::securitycenter::v2::CreateBigQueryExportRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::CreateBigQueryExportRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::BigQueryExport >

virtual CreateFinding(google::cloud::securitycenter::v2::CreateFindingRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::CreateFindingRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::Finding >

virtual CreateMuteConfig(google::cloud::securitycenter::v2::CreateMuteConfigRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::CreateMuteConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::MuteConfig >

virtual CreateNotificationConfig(google::cloud::securitycenter::v2::CreateNotificationConfigRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::CreateNotificationConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::NotificationConfig >

virtual CreateSource(google::cloud::securitycenter::v2::CreateSourceRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::CreateSourceRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::Source >

virtual DeleteBigQueryExport(google::cloud::securitycenter::v2::DeleteBigQueryExportRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::DeleteBigQueryExportRequest const &
Returns
Type Description
Status

virtual DeleteMuteConfig(google::cloud::securitycenter::v2::DeleteMuteConfigRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::DeleteMuteConfigRequest const &
Returns
Type Description
Status

virtual DeleteNotificationConfig(google::cloud::securitycenter::v2::DeleteNotificationConfigRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::DeleteNotificationConfigRequest const &
Returns
Type Description
Status

virtual DeleteResourceValueConfig(google::cloud::securitycenter::v2::DeleteResourceValueConfigRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::DeleteResourceValueConfigRequest const &
Returns
Type Description
Status

virtual GetBigQueryExport(google::cloud::securitycenter::v2::GetBigQueryExportRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::GetBigQueryExportRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::BigQueryExport >

virtual GetSimulation(google::cloud::securitycenter::v2::GetSimulationRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::GetSimulationRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::Simulation >

virtual GetValuedResource(google::cloud::securitycenter::v2::GetValuedResourceRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::GetValuedResourceRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::ValuedResource >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetMuteConfig(google::cloud::securitycenter::v2::GetMuteConfigRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::GetMuteConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::MuteConfig >

virtual GetNotificationConfig(google::cloud::securitycenter::v2::GetNotificationConfigRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::GetNotificationConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::NotificationConfig >

virtual GetResourceValueConfig(google::cloud::securitycenter::v2::GetResourceValueConfigRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::GetResourceValueConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::ResourceValueConfig >

virtual GetSource(google::cloud::securitycenter::v2::GetSourceRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::GetSourceRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::Source >

virtual GroupFindings(google::cloud::securitycenter::v2::GroupFindingsRequest)

Parameter
Name Description
request google::cloud::securitycenter::v2::GroupFindingsRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v2::GroupResult >

virtual ListAttackPaths(google::cloud::securitycenter::v2::ListAttackPathsRequest)

Parameter
Name Description
request google::cloud::securitycenter::v2::ListAttackPathsRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v2::AttackPath >

virtual ListBigQueryExports(google::cloud::securitycenter::v2::ListBigQueryExportsRequest)

Parameter
Name Description
request google::cloud::securitycenter::v2::ListBigQueryExportsRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v2::BigQueryExport >

virtual ListFindings(google::cloud::securitycenter::v2::ListFindingsRequest)

Parameter
Name Description
request google::cloud::securitycenter::v2::ListFindingsRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v2::ListFindingsResponse::ListFindingsResult >

virtual ListMuteConfigs(google::cloud::securitycenter::v2::ListMuteConfigsRequest)

Parameter
Name Description
request google::cloud::securitycenter::v2::ListMuteConfigsRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v2::MuteConfig >

virtual ListNotificationConfigs(google::cloud::securitycenter::v2::ListNotificationConfigsRequest)

Parameter
Name Description
request google::cloud::securitycenter::v2::ListNotificationConfigsRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v2::NotificationConfig >

virtual ListResourceValueConfigs(google::cloud::securitycenter::v2::ListResourceValueConfigsRequest)

Parameter
Name Description
request google::cloud::securitycenter::v2::ListResourceValueConfigsRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v2::ResourceValueConfig >

virtual ListSources(google::cloud::securitycenter::v2::ListSourcesRequest)

Parameter
Name Description
request google::cloud::securitycenter::v2::ListSourcesRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v2::Source >

virtual ListValuedResources(google::cloud::securitycenter::v2::ListValuedResourcesRequest)

Parameter
Name Description
request google::cloud::securitycenter::v2::ListValuedResourcesRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v2::ValuedResource >

virtual SetFindingState(google::cloud::securitycenter::v2::SetFindingStateRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::SetFindingStateRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::Finding >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual SetMute(google::cloud::securitycenter::v2::SetMuteRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::SetMuteRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::Finding >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual UpdateBigQueryExport(google::cloud::securitycenter::v2::UpdateBigQueryExportRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::UpdateBigQueryExportRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::BigQueryExport >

virtual UpdateExternalSystem(google::cloud::securitycenter::v2::UpdateExternalSystemRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::UpdateExternalSystemRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::ExternalSystem >

virtual UpdateFinding(google::cloud::securitycenter::v2::UpdateFindingRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::UpdateFindingRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::Finding >

virtual UpdateMuteConfig(google::cloud::securitycenter::v2::UpdateMuteConfigRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::UpdateMuteConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::MuteConfig >

virtual UpdateNotificationConfig(google::cloud::securitycenter::v2::UpdateNotificationConfigRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::UpdateNotificationConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::NotificationConfig >

virtual UpdateResourceValueConfig(google::cloud::securitycenter::v2::UpdateResourceValueConfigRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::UpdateResourceValueConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::ResourceValueConfig >

virtual UpdateSecurityMarks(google::cloud::securitycenter::v2::UpdateSecurityMarksRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::UpdateSecurityMarksRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::SecurityMarks >

virtual UpdateSource(google::cloud::securitycenter::v2::UpdateSourceRequest const &)

Parameter
Name Description
request google::cloud::securitycenter::v2::UpdateSourceRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v2::Source >