AssetService

google.cloud.asset.v1p4beta1. AssetService

Represents an AssetService

Constructor

new AssetService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new AssetService 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) → {AssetService}

Creates new AssetService 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
AssetService

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

analyzeIamPolicy(request, callback) → {undefined}

Calls AnalyzeIamPolicy.

Parameters:
Name Type Description
request google.cloud.asset.v1p4beta1.IAnalyzeIamPolicyRequest

AnalyzeIamPolicyRequest message or plain object

callback google.cloud.asset.v1p4beta1.AssetService.AnalyzeIamPolicyCallback

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

Returns:
Type Description
undefined

analyzeIamPolicy(request) → {Promise.<google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse>}

Calls AnalyzeIamPolicy.

Parameters:
Name Type Description
request google.cloud.asset.v1p4beta1.IAnalyzeIamPolicyRequest

AnalyzeIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse>

Promise

exportIamPolicyAnalysis(request, callback) → {undefined}

Calls ExportIamPolicyAnalysis.

Parameters:
Name Type Description
request google.cloud.asset.v1p4beta1.IExportIamPolicyAnalysisRequest

ExportIamPolicyAnalysisRequest message or plain object

callback google.cloud.asset.v1p4beta1.AssetService.ExportIamPolicyAnalysisCallback

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

Returns:
Type Description
undefined

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

Calls ExportIamPolicyAnalysis.

Parameters:
Name Type Description
request google.cloud.asset.v1p4beta1.IExportIamPolicyAnalysisRequest

ExportIamPolicyAnalysisRequest message or plain object

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

Promise

Type Definitions

AnalyzeIamPolicyCallback(error, responseopt)

Callback as used by analyzeIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse <optional>

AnalyzeIamPolicyResponse

ExportIamPolicyAnalysisCallback(error, responseopt)

Callback as used by exportIamPolicyAnalysis.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation