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