Represents an AssetService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.asset.v1p7beta1.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
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. |
exportAssets(request, callback)
public exportAssets(request: google.cloud.asset.v1p7beta1.IExportAssetsRequest, callback: google.cloud.asset.v1p7beta1.AssetService.ExportAssetsCallback): void;
Calls ExportAssets.
Parameters | |
---|---|
Name | Description |
request |
IExportAssetsRequest
ExportAssetsRequest message or plain object |
callback |
ExportAssetsCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
exportAssets(request)
public exportAssets(request: google.cloud.asset.v1p7beta1.IExportAssetsRequest): Promise<google.longrunning.Operation>;
Calls ExportAssets.
Parameter | |
---|---|
Name | Description |
request |
IExportAssetsRequest
ExportAssetsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |