SecurityCenter

google.cloud.securitycenter.v1beta1. 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

createFinding(request, callback) → {undefined}

Calls CreateFinding.

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

CreateFindingRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.CreateFindingCallback

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

Returns:
Type Description
undefined

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

Calls CreateFinding.

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

CreateFindingRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.Finding>

Promise

createSource(request, callback) → {undefined}

Calls CreateSource.

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

CreateSourceRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.CreateSourceCallback

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

Returns:
Type Description
undefined

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

Calls CreateSource.

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

CreateSourceRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.Source>

Promise

getIamPolicy(request, callback) → {undefined}

Calls GetIamPolicy.

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

GetIamPolicyRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.GetIamPolicyCallback

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

Returns:
Type Description
undefined

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

Calls GetIamPolicy.

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

GetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

getOrganizationSettings(request, callback) → {undefined}

Calls GetOrganizationSettings.

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

GetOrganizationSettingsRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.GetOrganizationSettingsCallback

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

Returns:
Type Description
undefined

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

Calls GetOrganizationSettings.

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

GetOrganizationSettingsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.OrganizationSettings>

Promise

getSource(request, callback) → {undefined}

Calls GetSource.

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

GetSourceRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.GetSourceCallback

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

Returns:
Type Description
undefined

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

Calls GetSource.

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

GetSourceRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.Source>

Promise

groupAssets(request, callback) → {undefined}

Calls GroupAssets.

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

GroupAssetsRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.GroupAssetsCallback

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

Returns:
Type Description
undefined

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

Calls GroupAssets.

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

GroupAssetsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.GroupAssetsResponse>

Promise

groupFindings(request, callback) → {undefined}

Calls GroupFindings.

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

GroupFindingsRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.GroupFindingsCallback

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

Returns:
Type Description
undefined

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

Calls GroupFindings.

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

GroupFindingsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.GroupFindingsResponse>

Promise

listAssets(request, callback) → {undefined}

Calls ListAssets.

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

ListAssetsRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.ListAssetsCallback

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

Returns:
Type Description
undefined

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

Calls ListAssets.

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

ListAssetsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.ListAssetsResponse>

Promise

listFindings(request, callback) → {undefined}

Calls ListFindings.

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

ListFindingsRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.ListFindingsCallback

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

Returns:
Type Description
undefined

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

Calls ListFindings.

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

ListFindingsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.ListFindingsResponse>

Promise

listSources(request, callback) → {undefined}

Calls ListSources.

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

ListSourcesRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.ListSourcesCallback

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

Returns:
Type Description
undefined

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

Calls ListSources.

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

ListSourcesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.ListSourcesResponse>

Promise

runAssetDiscovery(request, callback) → {undefined}

Calls RunAssetDiscovery.

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

RunAssetDiscoveryRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.RunAssetDiscoveryCallback

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

Returns:
Type Description
undefined

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

Calls RunAssetDiscovery.

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

RunAssetDiscoveryRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

setFindingState(request, callback) → {undefined}

Calls SetFindingState.

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

SetFindingStateRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.SetFindingStateCallback

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

Returns:
Type Description
undefined

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

Calls SetFindingState.

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

SetFindingStateRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.Finding>

Promise

setIamPolicy(request, callback) → {undefined}

Calls SetIamPolicy.

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

SetIamPolicyRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.SetIamPolicyCallback

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

Returns:
Type Description
undefined

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

Calls SetIamPolicy.

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

SetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback) → {undefined}

Calls TestIamPermissions.

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

TestIamPermissionsRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.TestIamPermissionsCallback

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

Returns:
Type Description
undefined

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

Calls TestIamPermissions.

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

TestIamPermissionsRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.TestIamPermissionsResponse>

Promise

updateFinding(request, callback) → {undefined}

Calls UpdateFinding.

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

UpdateFindingRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateFindingCallback

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

Returns:
Type Description
undefined

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

Calls UpdateFinding.

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

UpdateFindingRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.Finding>

Promise

updateOrganizationSettings(request, callback) → {undefined}

Calls UpdateOrganizationSettings.

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

UpdateOrganizationSettingsRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateOrganizationSettingsCallback

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

Returns:
Type Description
undefined

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

Calls UpdateOrganizationSettings.

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

UpdateOrganizationSettingsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.OrganizationSettings>

Promise

updateSecurityMarks(request, callback) → {undefined}

Calls UpdateSecurityMarks.

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

UpdateSecurityMarksRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateSecurityMarksCallback

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

Returns:
Type Description
undefined

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

Calls UpdateSecurityMarks.

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

UpdateSecurityMarksRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.SecurityMarks>

Promise

updateSource(request, callback) → {undefined}

Calls UpdateSource.

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

UpdateSourceRequest message or plain object

callback google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateSourceCallback

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

Returns:
Type Description
undefined

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

Calls UpdateSource.

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

UpdateSourceRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.securitycenter.v1beta1.Source>

Promise

(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

Returns:
Type Description
SecurityCenter

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

CreateFindingCallback(error, responseopt)

Callback as used by createFinding.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Finding

CreateSourceCallback(error, responseopt)

Callback as used by createSource.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Source

GetIamPolicyCallback(error, responseopt)

Callback as used by getIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

GetOrganizationSettingsCallback(error, responseopt)

Callback as used by getOrganizationSettings.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

OrganizationSettings

GetSourceCallback(error, responseopt)

Callback as used by getSource.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Source

GroupAssetsCallback(error, responseopt)

Callback as used by groupAssets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

GroupAssetsResponse

GroupFindingsCallback(error, responseopt)

Callback as used by groupFindings.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

GroupFindingsResponse

ListAssetsCallback(error, responseopt)

Callback as used by listAssets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListAssetsResponse

ListFindingsCallback(error, responseopt)

Callback as used by listFindings.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListFindingsResponse

ListSourcesCallback(error, responseopt)

Callback as used by listSources.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListSourcesResponse

RunAssetDiscoveryCallback(error, responseopt)

Callback as used by 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 setFindingState.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Finding

SetIamPolicyCallback(error, responseopt)

Callback as used by 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 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 updateFinding.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Finding

UpdateOrganizationSettingsCallback(error, responseopt)

Callback as used by updateOrganizationSettings.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

OrganizationSettings

UpdateSecurityMarksCallback(error, responseopt)

Callback as used by updateSecurityMarks.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SecurityMarks

UpdateSourceCallback(error, responseopt)

Callback as used by updateSource.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Source