Represents an AssetService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.asset.v1p4beta1.AssetServicePackage
@google-cloud/assetConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AssetService service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
request |
IAnalyzeIamPolicyRequest
AnalyzeIamPolicyRequest message or plain object |
callback |
AnalyzeIamPolicyCallback
Node-style callback called with the error, if any, and AnalyzeIamPolicyResponse |
Returns | |
---|---|
Type | Description |
void |
analyzeIamPolicy(request)
public analyzeIamPolicy(request: google.cloud.asset.v1p4beta1.IAnalyzeIamPolicyRequest): Promise<google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse>;
Calls AnalyzeIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
IAnalyzeIamPolicyRequest
AnalyzeIamPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IExportIamPolicyAnalysisRequest
ExportIamPolicyAnalysisRequest message or plain object |
callback |
ExportIamPolicyAnalysisCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
exportIamPolicyAnalysis(request)
public exportIamPolicyAnalysis(request: google.cloud.asset.v1p4beta1.IExportIamPolicyAnalysisRequest): Promise<google.longrunning.Operation>;
Calls ExportIamPolicyAnalysis.
Parameter | |
---|---|
Name | Description |
request |
IExportIamPolicyAnalysisRequest
ExportIamPolicyAnalysisRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |