Class protos.google.cloud.securitycenter.v1beta1.SecurityCenter (8.11.0)

Represents a SecurityCenter

Inheritance

$protobuf.rpc.Service > protos.google.cloud.securitycenter.v1beta1.SecurityCenter

Package

@google-cloud/security-center

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new SecurityCenter service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecurityCenter;

Creates new SecurityCenter service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
SecurityCenter

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

createFinding(request, callback)

public createFinding(request: google.cloud.securitycenter.v1beta1.ICreateFindingRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.CreateFindingCallback): void;

Calls CreateFinding.

Parameters
Name Description
request ICreateFindingRequest

CreateFindingRequest message or plain object

callback CreateFindingCallback

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

Returns
Type Description
void

createFinding(request)

public createFinding(request: google.cloud.securitycenter.v1beta1.ICreateFindingRequest): Promise<google.cloud.securitycenter.v1beta1.Finding>;

Calls CreateFinding.

Parameter
Name Description
request ICreateFindingRequest

CreateFindingRequest message or plain object

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

Promise

createSource(request, callback)

public createSource(request: google.cloud.securitycenter.v1beta1.ICreateSourceRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.CreateSourceCallback): void;

Calls CreateSource.

Parameters
Name Description
request ICreateSourceRequest

CreateSourceRequest message or plain object

callback CreateSourceCallback

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

Returns
Type Description
void

createSource(request)

public createSource(request: google.cloud.securitycenter.v1beta1.ICreateSourceRequest): Promise<google.cloud.securitycenter.v1beta1.Source>;

Calls CreateSource.

Parameter
Name Description
request ICreateSourceRequest

CreateSourceRequest message or plain object

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

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
Name Description
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback GetIamPolicyCallback

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

Returns
Type Description
void

getIamPolicy(request)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

Parameter
Name Description
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

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

Promise

getOrganizationSettings(request, callback)

public getOrganizationSettings(request: google.cloud.securitycenter.v1beta1.IGetOrganizationSettingsRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.GetOrganizationSettingsCallback): void;

Calls GetOrganizationSettings.

Parameters
Name Description
request IGetOrganizationSettingsRequest

GetOrganizationSettingsRequest message or plain object

callback GetOrganizationSettingsCallback

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

Returns
Type Description
void

getOrganizationSettings(request)

public getOrganizationSettings(request: google.cloud.securitycenter.v1beta1.IGetOrganizationSettingsRequest): Promise<google.cloud.securitycenter.v1beta1.OrganizationSettings>;

Calls GetOrganizationSettings.

Parameter
Name Description
request IGetOrganizationSettingsRequest

GetOrganizationSettingsRequest message or plain object

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

Promise

getSource(request, callback)

public getSource(request: google.cloud.securitycenter.v1beta1.IGetSourceRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.GetSourceCallback): void;

Calls GetSource.

Parameters
Name Description
request IGetSourceRequest

GetSourceRequest message or plain object

callback GetSourceCallback

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

Returns
Type Description
void

getSource(request)

public getSource(request: google.cloud.securitycenter.v1beta1.IGetSourceRequest): Promise<google.cloud.securitycenter.v1beta1.Source>;

Calls GetSource.

Parameter
Name Description
request IGetSourceRequest

GetSourceRequest message or plain object

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

Promise

groupAssets(request, callback)

public groupAssets(request: google.cloud.securitycenter.v1beta1.IGroupAssetsRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.GroupAssetsCallback): void;

Calls GroupAssets.

Parameters
Name Description
request IGroupAssetsRequest

GroupAssetsRequest message or plain object

callback GroupAssetsCallback

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

Returns
Type Description
void

groupAssets(request)

public groupAssets(request: google.cloud.securitycenter.v1beta1.IGroupAssetsRequest): Promise<google.cloud.securitycenter.v1beta1.GroupAssetsResponse>;

Calls GroupAssets.

Parameter
Name Description
request IGroupAssetsRequest

GroupAssetsRequest message or plain object

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

Promise

groupFindings(request, callback)

public groupFindings(request: google.cloud.securitycenter.v1beta1.IGroupFindingsRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.GroupFindingsCallback): void;

Calls GroupFindings.

Parameters
Name Description
request IGroupFindingsRequest

GroupFindingsRequest message or plain object

callback GroupFindingsCallback

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

Returns
Type Description
void

groupFindings(request)

public groupFindings(request: google.cloud.securitycenter.v1beta1.IGroupFindingsRequest): Promise<google.cloud.securitycenter.v1beta1.GroupFindingsResponse>;

Calls GroupFindings.

Parameter
Name Description
request IGroupFindingsRequest

GroupFindingsRequest message or plain object

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

Promise

listAssets(request, callback)

public listAssets(request: google.cloud.securitycenter.v1beta1.IListAssetsRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.ListAssetsCallback): void;

Calls ListAssets.

Parameters
Name Description
request IListAssetsRequest

ListAssetsRequest message or plain object

callback ListAssetsCallback

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

Returns
Type Description
void

listAssets(request)

public listAssets(request: google.cloud.securitycenter.v1beta1.IListAssetsRequest): Promise<google.cloud.securitycenter.v1beta1.ListAssetsResponse>;

Calls ListAssets.

Parameter
Name Description
request IListAssetsRequest

ListAssetsRequest message or plain object

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

Promise

listFindings(request, callback)

public listFindings(request: google.cloud.securitycenter.v1beta1.IListFindingsRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.ListFindingsCallback): void;

Calls ListFindings.

Parameters
Name Description
request IListFindingsRequest

ListFindingsRequest message or plain object

callback ListFindingsCallback

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

Returns
Type Description
void

listFindings(request)

public listFindings(request: google.cloud.securitycenter.v1beta1.IListFindingsRequest): Promise<google.cloud.securitycenter.v1beta1.ListFindingsResponse>;

Calls ListFindings.

Parameter
Name Description
request IListFindingsRequest

ListFindingsRequest message or plain object

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

Promise

listSources(request, callback)

public listSources(request: google.cloud.securitycenter.v1beta1.IListSourcesRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.ListSourcesCallback): void;

Calls ListSources.

Parameters
Name Description
request IListSourcesRequest

ListSourcesRequest message or plain object

callback ListSourcesCallback

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

Returns
Type Description
void

listSources(request)

public listSources(request: google.cloud.securitycenter.v1beta1.IListSourcesRequest): Promise<google.cloud.securitycenter.v1beta1.ListSourcesResponse>;

Calls ListSources.

Parameter
Name Description
request IListSourcesRequest

ListSourcesRequest message or plain object

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

Promise

runAssetDiscovery(request, callback)

public runAssetDiscovery(request: google.cloud.securitycenter.v1beta1.IRunAssetDiscoveryRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.RunAssetDiscoveryCallback): void;

Calls RunAssetDiscovery.

Parameters
Name Description
request IRunAssetDiscoveryRequest

RunAssetDiscoveryRequest message or plain object

callback RunAssetDiscoveryCallback

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

Returns
Type Description
void

runAssetDiscovery(request)

public runAssetDiscovery(request: google.cloud.securitycenter.v1beta1.IRunAssetDiscoveryRequest): Promise<google.longrunning.Operation>;

Calls RunAssetDiscovery.

Parameter
Name Description
request IRunAssetDiscoveryRequest

RunAssetDiscoveryRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

setFindingState(request, callback)

public setFindingState(request: google.cloud.securitycenter.v1beta1.ISetFindingStateRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.SetFindingStateCallback): void;

Calls SetFindingState.

Parameters
Name Description
request ISetFindingStateRequest

SetFindingStateRequest message or plain object

callback SetFindingStateCallback

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

Returns
Type Description
void

setFindingState(request)

public setFindingState(request: google.cloud.securitycenter.v1beta1.ISetFindingStateRequest): Promise<google.cloud.securitycenter.v1beta1.Finding>;

Calls SetFindingState.

Parameter
Name Description
request ISetFindingStateRequest

SetFindingStateRequest message or plain object

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

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
Name Description
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback SetIamPolicyCallback

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

Returns
Type Description
void

setIamPolicy(request)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

Parameter
Name Description
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

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

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
Name Description
request ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback TestIamPermissionsCallback

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

Returns
Type Description
void

testIamPermissions(request)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

Parameter
Name Description
request ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

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

Promise

updateFinding(request, callback)

public updateFinding(request: google.cloud.securitycenter.v1beta1.IUpdateFindingRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateFindingCallback): void;

Calls UpdateFinding.

Parameters
Name Description
request IUpdateFindingRequest

UpdateFindingRequest message or plain object

callback UpdateFindingCallback

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

Returns
Type Description
void

updateFinding(request)

public updateFinding(request: google.cloud.securitycenter.v1beta1.IUpdateFindingRequest): Promise<google.cloud.securitycenter.v1beta1.Finding>;

Calls UpdateFinding.

Parameter
Name Description
request IUpdateFindingRequest

UpdateFindingRequest message or plain object

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

Promise

updateOrganizationSettings(request, callback)

public updateOrganizationSettings(request: google.cloud.securitycenter.v1beta1.IUpdateOrganizationSettingsRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateOrganizationSettingsCallback): void;

Calls UpdateOrganizationSettings.

Parameters
Name Description
request IUpdateOrganizationSettingsRequest

UpdateOrganizationSettingsRequest message or plain object

callback UpdateOrganizationSettingsCallback

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

Returns
Type Description
void

updateOrganizationSettings(request)

public updateOrganizationSettings(request: google.cloud.securitycenter.v1beta1.IUpdateOrganizationSettingsRequest): Promise<google.cloud.securitycenter.v1beta1.OrganizationSettings>;

Calls UpdateOrganizationSettings.

Parameter
Name Description
request IUpdateOrganizationSettingsRequest

UpdateOrganizationSettingsRequest message or plain object

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

Promise

updateSecurityMarks(request, callback)

public updateSecurityMarks(request: google.cloud.securitycenter.v1beta1.IUpdateSecurityMarksRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateSecurityMarksCallback): void;

Calls UpdateSecurityMarks.

Parameters
Name Description
request IUpdateSecurityMarksRequest

UpdateSecurityMarksRequest message or plain object

callback UpdateSecurityMarksCallback

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

Returns
Type Description
void

updateSecurityMarks(request)

public updateSecurityMarks(request: google.cloud.securitycenter.v1beta1.IUpdateSecurityMarksRequest): Promise<google.cloud.securitycenter.v1beta1.SecurityMarks>;

Calls UpdateSecurityMarks.

Parameter
Name Description
request IUpdateSecurityMarksRequest

UpdateSecurityMarksRequest message or plain object

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

Promise

updateSource(request, callback)

public updateSource(request: google.cloud.securitycenter.v1beta1.IUpdateSourceRequest, callback: google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateSourceCallback): void;

Calls UpdateSource.

Parameters
Name Description
request IUpdateSourceRequest

UpdateSourceRequest message or plain object

callback UpdateSourceCallback

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

Returns
Type Description
void

updateSource(request)

public updateSource(request: google.cloud.securitycenter.v1beta1.IUpdateSourceRequest): Promise<google.cloud.securitycenter.v1beta1.Source>;

Calls UpdateSource.

Parameter
Name Description
request IUpdateSourceRequest

UpdateSourceRequest message or plain object

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

Promise