Class SecurityCenterConnection (2.21.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_v1_mocks::MockSecurityCenterConnection.

Functions

virtual options()

Returns
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::BulkMuteFindingsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::securitycenter::v1::BulkMuteFindingsResponse > >

virtual CreateSecurityHealthAnalyticsCustomModule(google::cloud::securitycenter::v1::CreateSecurityHealthAnalyticsCustomModuleRequest const &)

Parameter
NameDescription
request google::cloud::securitycenter::v1::CreateSecurityHealthAnalyticsCustomModuleRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::CreateSourceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::Source >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::CreateFindingRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::Finding >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::CreateMuteConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::MuteConfig >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::CreateNotificationConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::NotificationConfig >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::DeleteMuteConfigRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::DeleteNotificationConfigRequest const &
Returns
TypeDescription
Status

virtual DeleteSecurityHealthAnalyticsCustomModule(google::cloud::securitycenter::v1::DeleteSecurityHealthAnalyticsCustomModuleRequest const &)

Parameter
NameDescription
request google::cloud::securitycenter::v1::DeleteSecurityHealthAnalyticsCustomModuleRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::GetBigQueryExportRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::BigQueryExport >

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

Parameter
NameDescription
request google::iam::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::GetMuteConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::MuteConfig >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::GetNotificationConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::NotificationConfig >

virtual GetOrganizationSettings(google::cloud::securitycenter::v1::GetOrganizationSettingsRequest const &)

Parameter
NameDescription
request google::cloud::securitycenter::v1::GetOrganizationSettingsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::OrganizationSettings >

virtual GetEffectiveSecurityHealthAnalyticsCustomModule(google::cloud::securitycenter::v1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest const &)

Parameter
NameDescription
request google::cloud::securitycenter::v1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::EffectiveSecurityHealthAnalyticsCustomModule >

virtual GetSecurityHealthAnalyticsCustomModule(google::cloud::securitycenter::v1::GetSecurityHealthAnalyticsCustomModuleRequest const &)

Parameter
NameDescription
request google::cloud::securitycenter::v1::GetSecurityHealthAnalyticsCustomModuleRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::GetSourceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::Source >

virtual GroupAssets(google::cloud::securitycenter::v1::GroupAssetsRequest)

Parameter
NameDescription
request google::cloud::securitycenter::v1::GroupAssetsRequest
Returns
TypeDescription
StreamRange< google::cloud::securitycenter::v1::GroupResult >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::GroupFindingsRequest
Returns
TypeDescription
StreamRange< google::cloud::securitycenter::v1::GroupResult >

virtual ListAssets(google::cloud::securitycenter::v1::ListAssetsRequest)

Parameter
NameDescription
request google::cloud::securitycenter::v1::ListAssetsRequest
Returns
TypeDescription
StreamRange< google::cloud::securitycenter::v1::ListAssetsResponse::ListAssetsResult >

virtual ListDescendantSecurityHealthAnalyticsCustomModules(google::cloud::securitycenter::v1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest)

Parameter
NameDescription
request google::cloud::securitycenter::v1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest
Returns
TypeDescription
StreamRange< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::ListFindingsRequest
Returns
TypeDescription
StreamRange< google::cloud::securitycenter::v1::ListFindingsResponse::ListFindingsResult >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::ListMuteConfigsRequest
Returns
TypeDescription
StreamRange< google::cloud::securitycenter::v1::MuteConfig >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::ListNotificationConfigsRequest
Returns
TypeDescription
StreamRange< google::cloud::securitycenter::v1::NotificationConfig >

virtual ListEffectiveSecurityHealthAnalyticsCustomModules(google::cloud::securitycenter::v1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest)

Parameter
NameDescription
request google::cloud::securitycenter::v1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest
Returns
TypeDescription
StreamRange< google::cloud::securitycenter::v1::EffectiveSecurityHealthAnalyticsCustomModule >

virtual ListSecurityHealthAnalyticsCustomModules(google::cloud::securitycenter::v1::ListSecurityHealthAnalyticsCustomModulesRequest)

Parameter
NameDescription
request google::cloud::securitycenter::v1::ListSecurityHealthAnalyticsCustomModulesRequest
Returns
TypeDescription
StreamRange< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::ListSourcesRequest
Returns
TypeDescription
StreamRange< google::cloud::securitycenter::v1::Source >

virtual RunAssetDiscovery(google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const &)

Parameter
NameDescription
request google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::securitycenter::v1::RunAssetDiscoveryResponse > >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::SetFindingStateRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::Finding >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::SetMuteRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::Finding >

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

Parameter
NameDescription
request google::iam::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

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

Parameter
NameDescription
request google::iam::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual SimulateSecurityHealthAnalyticsCustomModule(google::cloud::securitycenter::v1::SimulateSecurityHealthAnalyticsCustomModuleRequest const &)

Parameter
NameDescription
request google::cloud::securitycenter::v1::SimulateSecurityHealthAnalyticsCustomModuleRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::SimulateSecurityHealthAnalyticsCustomModuleResponse >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::UpdateExternalSystemRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::ExternalSystem >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::UpdateFindingRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::Finding >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::UpdateMuteConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::MuteConfig >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::UpdateNotificationConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::NotificationConfig >

virtual UpdateOrganizationSettings(google::cloud::securitycenter::v1::UpdateOrganizationSettingsRequest const &)

Parameter
NameDescription
request google::cloud::securitycenter::v1::UpdateOrganizationSettingsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::OrganizationSettings >

virtual UpdateSecurityHealthAnalyticsCustomModule(google::cloud::securitycenter::v1::UpdateSecurityHealthAnalyticsCustomModuleRequest const &)

Parameter
NameDescription
request google::cloud::securitycenter::v1::UpdateSecurityHealthAnalyticsCustomModuleRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::UpdateSourceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::Source >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::UpdateSecurityMarksRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::SecurityMarks >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::CreateBigQueryExportRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::BigQueryExport >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::DeleteBigQueryExportRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::UpdateBigQueryExportRequest const &
Returns
TypeDescription
StatusOr< google::cloud::securitycenter::v1::BigQueryExport >

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

Parameter
NameDescription
request google::cloud::securitycenter::v1::ListBigQueryExportsRequest
Returns
TypeDescription
StreamRange< google::cloud::securitycenter::v1::BigQueryExport >