SecurityCenter

google.cloud.securitycenter.v1p1beta1. SecurityCenter

Represents a SecurityCenter

Constructor

new SecurityCenter(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new SecurityCenter service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {SecurityCenter}

Creates new SecurityCenter service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

createFinding(request, callback) → {undefined}

Calls CreateFinding.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.ICreateFindingRequest

CreateFindingRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateFindingCallback

Node-style callback called with the error, if any, and Finding

createFinding(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.Finding>}

Calls CreateFinding.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.ICreateFindingRequest

CreateFindingRequest message or plain object

createNotificationConfig(request, callback) → {undefined}

Calls CreateNotificationConfig.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.ICreateNotificationConfigRequest

CreateNotificationConfigRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateNotificationConfigCallback

Node-style callback called with the error, if any, and NotificationConfig

createNotificationConfig(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.NotificationConfig>}

Calls CreateNotificationConfig.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.ICreateNotificationConfigRequest

CreateNotificationConfigRequest message or plain object

createSource(request, callback) → {undefined}

Calls CreateSource.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.ICreateSourceRequest

CreateSourceRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateSourceCallback

Node-style callback called with the error, if any, and Source

createSource(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.Source>}

Calls CreateSource.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.ICreateSourceRequest

CreateSourceRequest message or plain object

deleteNotificationConfig(request, callback) → {undefined}

Calls DeleteNotificationConfig.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IDeleteNotificationConfigRequest

DeleteNotificationConfigRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.DeleteNotificationConfigCallback

Node-style callback called with the error, if any, and Empty

deleteNotificationConfig(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteNotificationConfig.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IDeleteNotificationConfigRequest

DeleteNotificationConfigRequest message or plain object

getIamPolicy(request, callback) → {undefined}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

getIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

getNotificationConfig(request, callback) → {undefined}

Calls GetNotificationConfig.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IGetNotificationConfigRequest

GetNotificationConfigRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetNotificationConfigCallback

Node-style callback called with the error, if any, and NotificationConfig

getNotificationConfig(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.NotificationConfig>}

Calls GetNotificationConfig.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IGetNotificationConfigRequest

GetNotificationConfigRequest message or plain object

getOrganizationSettings(request, callback) → {undefined}

Calls GetOrganizationSettings.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IGetOrganizationSettingsRequest

GetOrganizationSettingsRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetOrganizationSettingsCallback

Node-style callback called with the error, if any, and OrganizationSettings

getOrganizationSettings(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.OrganizationSettings>}

Calls GetOrganizationSettings.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IGetOrganizationSettingsRequest

GetOrganizationSettingsRequest message or plain object

getSource(request, callback) → {undefined}

Calls GetSource.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IGetSourceRequest

GetSourceRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetSourceCallback

Node-style callback called with the error, if any, and Source

getSource(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.Source>}

Calls GetSource.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IGetSourceRequest

GetSourceRequest message or plain object

groupAssets(request, callback) → {undefined}

Calls GroupAssets.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IGroupAssetsRequest

GroupAssetsRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.GroupAssetsCallback

Node-style callback called with the error, if any, and GroupAssetsResponse

groupAssets(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse>}

Calls GroupAssets.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IGroupAssetsRequest

GroupAssetsRequest message or plain object

groupFindings(request, callback) → {undefined}

Calls GroupFindings.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IGroupFindingsRequest

GroupFindingsRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.GroupFindingsCallback

Node-style callback called with the error, if any, and GroupFindingsResponse

groupFindings(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse>}

Calls GroupFindings.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IGroupFindingsRequest

GroupFindingsRequest message or plain object

listAssets(request, callback) → {undefined}

Calls ListAssets.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IListAssetsRequest

ListAssetsRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListAssetsCallback

Node-style callback called with the error, if any, and ListAssetsResponse

listAssets(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.ListAssetsResponse>}

Calls ListAssets.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IListAssetsRequest

ListAssetsRequest message or plain object

listFindings(request, callback) → {undefined}

Calls ListFindings.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IListFindingsRequest

ListFindingsRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListFindingsCallback

Node-style callback called with the error, if any, and ListFindingsResponse

listFindings(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.ListFindingsResponse>}

Calls ListFindings.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IListFindingsRequest

ListFindingsRequest message or plain object

listNotificationConfigs(request, callback) → {undefined}

Calls ListNotificationConfigs.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IListNotificationConfigsRequest

ListNotificationConfigsRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListNotificationConfigsCallback

Node-style callback called with the error, if any, and ListNotificationConfigsResponse

listNotificationConfigs(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse>}

Calls ListNotificationConfigs.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IListNotificationConfigsRequest

ListNotificationConfigsRequest message or plain object

listSources(request, callback) → {undefined}

Calls ListSources.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IListSourcesRequest

ListSourcesRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListSourcesCallback

Node-style callback called with the error, if any, and ListSourcesResponse

listSources(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.ListSourcesResponse>}

Calls ListSources.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IListSourcesRequest

ListSourcesRequest message or plain object

runAssetDiscovery(request, callback) → {undefined}

Calls RunAssetDiscovery.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IRunAssetDiscoveryRequest

RunAssetDiscoveryRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.RunAssetDiscoveryCallback

Node-style callback called with the error, if any, and Operation

runAssetDiscovery(request) → {Promise.<google.longrunning.Operation>}

Calls RunAssetDiscovery.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IRunAssetDiscoveryRequest

RunAssetDiscoveryRequest message or plain object

setFindingState(request, callback) → {undefined}

Calls SetFindingState.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.ISetFindingStateRequest

SetFindingStateRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.SetFindingStateCallback

Node-style callback called with the error, if any, and Finding

setFindingState(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.Finding>}

Calls SetFindingState.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.ISetFindingStateRequest

SetFindingStateRequest message or plain object

setIamPolicy(request, callback) → {undefined}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

setIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

testIamPermissions(request, callback) → {undefined}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestIamPermissionsResponse

testIamPermissions(request) → {Promise.<google.iam.v1.TestIamPermissionsResponse>}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

updateFinding(request, callback) → {undefined}

Calls UpdateFinding.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IUpdateFindingRequest

UpdateFindingRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateFindingCallback

Node-style callback called with the error, if any, and Finding

updateFinding(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.Finding>}

Calls UpdateFinding.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IUpdateFindingRequest

UpdateFindingRequest message or plain object

updateNotificationConfig(request, callback) → {undefined}

Calls UpdateNotificationConfig.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IUpdateNotificationConfigRequest

UpdateNotificationConfigRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateNotificationConfigCallback

Node-style callback called with the error, if any, and NotificationConfig

updateNotificationConfig(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.NotificationConfig>}

Calls UpdateNotificationConfig.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IUpdateNotificationConfigRequest

UpdateNotificationConfigRequest message or plain object

updateOrganizationSettings(request, callback) → {undefined}

Calls UpdateOrganizationSettings.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IUpdateOrganizationSettingsRequest

UpdateOrganizationSettingsRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateOrganizationSettingsCallback

Node-style callback called with the error, if any, and OrganizationSettings

updateOrganizationSettings(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.OrganizationSettings>}

Calls UpdateOrganizationSettings.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IUpdateOrganizationSettingsRequest

UpdateOrganizationSettingsRequest message or plain object

updateSecurityMarks(request, callback) → {undefined}

Calls UpdateSecurityMarks.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IUpdateSecurityMarksRequest

UpdateSecurityMarksRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateSecurityMarksCallback

Node-style callback called with the error, if any, and SecurityMarks

updateSecurityMarks(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.SecurityMarks>}

Calls UpdateSecurityMarks.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IUpdateSecurityMarksRequest

UpdateSecurityMarksRequest message or plain object

updateSource(request, callback) → {undefined}

Calls UpdateSource.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IUpdateSourceRequest

UpdateSourceRequest message or plain object

callback google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateSourceCallback

Node-style callback called with the error, if any, and Source

updateSource(request) → {Promise.<google.cloud.securitycenter.v1p1beta1.Source>}

Calls UpdateSource.

Parameters:
Name Type Description
request google.cloud.securitycenter.v1p1beta1.IUpdateSourceRequest

UpdateSourceRequest message or plain object

Type Definitions

CreateFindingCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#createFinding.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.Finding <optional>

Finding

CreateNotificationConfigCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#createNotificationConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.NotificationConfig <optional>

NotificationConfig

CreateSourceCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#createSource.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.Source <optional>

Source

DeleteNotificationConfigCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#deleteNotificationConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetIamPolicyCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#getIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

GetNotificationConfigCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#getNotificationConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.NotificationConfig <optional>

NotificationConfig

GetOrganizationSettingsCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#getOrganizationSettings.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.OrganizationSettings <optional>

OrganizationSettings

GetSourceCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#getSource.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.Source <optional>

Source

GroupAssetsCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#groupAssets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse <optional>

GroupAssetsResponse

GroupFindingsCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#groupFindings.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse <optional>

GroupFindingsResponse

ListAssetsCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#listAssets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.ListAssetsResponse <optional>

ListAssetsResponse

ListFindingsCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#listFindings.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.ListFindingsResponse <optional>

ListFindingsResponse

ListNotificationConfigsCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#listNotificationConfigs.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse <optional>

ListNotificationConfigsResponse

ListSourcesCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#listSources.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.ListSourcesResponse <optional>

ListSourcesResponse

RunAssetDiscoveryCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#runAssetDiscovery.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

SetFindingStateCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#setFindingState.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.Finding <optional>

Finding

SetIamPolicyCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#setIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

TestIamPermissionsCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#testIamPermissions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.TestIamPermissionsResponse <optional>

TestIamPermissionsResponse

UpdateFindingCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#updateFinding.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.Finding <optional>

Finding

UpdateNotificationConfigCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#updateNotificationConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.NotificationConfig <optional>

NotificationConfig

UpdateOrganizationSettingsCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#updateOrganizationSettings.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.OrganizationSettings <optional>

OrganizationSettings

UpdateSecurityMarksCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#updateSecurityMarks.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.SecurityMarks <optional>

SecurityMarks

UpdateSourceCallback(error, responseopt)

Callback as used by google.cloud.securitycenter.v1p1beta1.SecurityCenter#updateSource.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.securitycenter.v1p1beta1.Source <optional>

Source