Class MockSecurityCenterConnection (2.32.0)

A class to mock SecurityCenterConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type SecurityCenterClient. To do so, construct an object of type SecurityCenterClient with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

See Also

This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of *Client and *Connection.

Functions

virtual options()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Returns
Type Description
Options

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::CreateSecurityHealthAnalyticsCustomModuleRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::DeleteSecurityHealthAnalyticsCustomModuleRequest const &
Returns
Type Description
Status

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::GetOrganizationSettingsRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::OrganizationSettings >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::EffectiveSecurityHealthAnalyticsCustomModule >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::GetSecurityHealthAnalyticsCustomModuleRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::GroupAssetsRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v1::GroupResult >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::ListAssetsRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v1::ListAssetsResponse::ListAssetsResult >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v1::EffectiveSecurityHealthAnalyticsCustomModule >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::ListSecurityHealthAnalyticsCustomModulesRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::SimulateSecurityHealthAnalyticsCustomModuleRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::SimulateSecurityHealthAnalyticsCustomModuleResponse >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::UpdateOrganizationSettingsRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::OrganizationSettings >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::UpdateSecurityHealthAnalyticsCustomModuleRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

virtual CreateEventThreatDetectionCustomModule(google::cloud::securitycenter::v1::CreateEventThreatDetectionCustomModuleRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::CreateEventThreatDetectionCustomModuleRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::EventThreatDetectionCustomModule >

virtual DeleteEventThreatDetectionCustomModule(google::cloud::securitycenter::v1::DeleteEventThreatDetectionCustomModuleRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::DeleteEventThreatDetectionCustomModuleRequest const &
Returns
Type Description
Status

virtual GetEventThreatDetectionCustomModule(google::cloud::securitycenter::v1::GetEventThreatDetectionCustomModuleRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::GetEventThreatDetectionCustomModuleRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::EventThreatDetectionCustomModule >

virtual ListDescendantEventThreatDetectionCustomModules(google::cloud::securitycenter::v1::ListDescendantEventThreatDetectionCustomModulesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::ListDescendantEventThreatDetectionCustomModulesRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v1::EventThreatDetectionCustomModule >

virtual ListEventThreatDetectionCustomModules(google::cloud::securitycenter::v1::ListEventThreatDetectionCustomModulesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::ListEventThreatDetectionCustomModulesRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v1::EventThreatDetectionCustomModule >

virtual UpdateEventThreatDetectionCustomModule(google::cloud::securitycenter::v1::UpdateEventThreatDetectionCustomModuleRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::UpdateEventThreatDetectionCustomModuleRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::EventThreatDetectionCustomModule >

virtual ValidateEventThreatDetectionCustomModule(google::cloud::securitycenter::v1::ValidateEventThreatDetectionCustomModuleRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::ValidateEventThreatDetectionCustomModuleRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::ValidateEventThreatDetectionCustomModuleResponse >

virtual GetEffectiveEventThreatDetectionCustomModule(google::cloud::securitycenter::v1::GetEffectiveEventThreatDetectionCustomModuleRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::GetEffectiveEventThreatDetectionCustomModuleRequest const &
Returns
Type Description
StatusOr< google::cloud::securitycenter::v1::EffectiveEventThreatDetectionCustomModule >

virtual ListEffectiveEventThreatDetectionCustomModules(google::cloud::securitycenter::v1::ListEffectiveEventThreatDetectionCustomModulesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::securitycenter::v1::ListEffectiveEventThreatDetectionCustomModulesRequest
Returns
Type Description
StreamRange< google::cloud::securitycenter::v1::EffectiveEventThreatDetectionCustomModule >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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

virtual ListOperations(google::longrunning::ListOperationsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status