Class protos.google.cloud.asset.v1p4beta1.AssetService (5.5.0)

Represents an AssetService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.asset.v1p4beta1.AssetService

Package

@google-cloud/asset

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new AssetService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

analyzeIamPolicy(request, callback)

public analyzeIamPolicy(request: google.cloud.asset.v1p4beta1.IAnalyzeIamPolicyRequest, callback: google.cloud.asset.v1p4beta1.AssetService.AnalyzeIamPolicyCallback): void;

Calls AnalyzeIamPolicy.

Parameters
NameDescription
request IAnalyzeIamPolicyRequest

AnalyzeIamPolicyRequest message or plain object

callback AnalyzeIamPolicyCallback

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

Returns
TypeDescription
void

analyzeIamPolicy(request)

public analyzeIamPolicy(request: google.cloud.asset.v1p4beta1.IAnalyzeIamPolicyRequest): Promise<google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse>;

Calls AnalyzeIamPolicy.

Parameter
NameDescription
request IAnalyzeIamPolicyRequest

AnalyzeIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new AssetService service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
AssetService

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

exportIamPolicyAnalysis(request, callback)

public exportIamPolicyAnalysis(request: google.cloud.asset.v1p4beta1.IExportIamPolicyAnalysisRequest, callback: google.cloud.asset.v1p4beta1.AssetService.ExportIamPolicyAnalysisCallback): void;

Calls ExportIamPolicyAnalysis.

Parameters
NameDescription
request IExportIamPolicyAnalysisRequest

ExportIamPolicyAnalysisRequest message or plain object

callback ExportIamPolicyAnalysisCallback

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

Returns
TypeDescription
void

exportIamPolicyAnalysis(request)

public exportIamPolicyAnalysis(request: google.cloud.asset.v1p4beta1.IExportIamPolicyAnalysisRequest): Promise<google.longrunning.Operation>;

Calls ExportIamPolicyAnalysis.

Parameter
NameDescription
request IExportIamPolicyAnalysisRequest

ExportIamPolicyAnalysisRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise