Represents an AssetService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.asset.v1p2beta1.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. |
createFeed(request, callback)
public createFeed(request: google.cloud.asset.v1p2beta1.ICreateFeedRequest, callback: google.cloud.asset.v1p2beta1.AssetService.CreateFeedCallback): void;
Calls CreateFeed.
Parameters | |
---|---|
Name | Description |
request |
ICreateFeedRequest
CreateFeedRequest message or plain object |
callback |
CreateFeedCallback
Node-style callback called with the error, if any, and Feed |
Returns | |
---|---|
Type | Description |
void |
createFeed(request)
public createFeed(request: google.cloud.asset.v1p2beta1.ICreateFeedRequest): Promise<google.cloud.asset.v1p2beta1.Feed>;
Calls CreateFeed.
Parameter | |
---|---|
Name | Description |
request |
ICreateFeedRequest
CreateFeedRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.asset.v1p2beta1.Feed> | Promise |
deleteFeed(request, callback)
public deleteFeed(request: google.cloud.asset.v1p2beta1.IDeleteFeedRequest, callback: google.cloud.asset.v1p2beta1.AssetService.DeleteFeedCallback): void;
Calls DeleteFeed.
Parameters | |
---|---|
Name | Description |
request |
IDeleteFeedRequest
DeleteFeedRequest message or plain object |
callback |
DeleteFeedCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteFeed(request)
public deleteFeed(request: google.cloud.asset.v1p2beta1.IDeleteFeedRequest): Promise<google.protobuf.Empty>;
Calls DeleteFeed.
Parameter | |
---|---|
Name | Description |
request |
IDeleteFeedRequest
DeleteFeedRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getFeed(request, callback)
public getFeed(request: google.cloud.asset.v1p2beta1.IGetFeedRequest, callback: google.cloud.asset.v1p2beta1.AssetService.GetFeedCallback): void;
Calls GetFeed.
Parameters | |
---|---|
Name | Description |
request |
IGetFeedRequest
GetFeedRequest message or plain object |
callback |
GetFeedCallback
Node-style callback called with the error, if any, and Feed |
Returns | |
---|---|
Type | Description |
void |
getFeed(request)
public getFeed(request: google.cloud.asset.v1p2beta1.IGetFeedRequest): Promise<google.cloud.asset.v1p2beta1.Feed>;
Calls GetFeed.
Parameter | |
---|---|
Name | Description |
request |
IGetFeedRequest
GetFeedRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.asset.v1p2beta1.Feed> | Promise |
listFeeds(request, callback)
public listFeeds(request: google.cloud.asset.v1p2beta1.IListFeedsRequest, callback: google.cloud.asset.v1p2beta1.AssetService.ListFeedsCallback): void;
Calls ListFeeds.
Parameters | |
---|---|
Name | Description |
request |
IListFeedsRequest
ListFeedsRequest message or plain object |
callback |
ListFeedsCallback
Node-style callback called with the error, if any, and ListFeedsResponse |
Returns | |
---|---|
Type | Description |
void |
listFeeds(request)
public listFeeds(request: google.cloud.asset.v1p2beta1.IListFeedsRequest): Promise<google.cloud.asset.v1p2beta1.ListFeedsResponse>;
Calls ListFeeds.
Parameter | |
---|---|
Name | Description |
request |
IListFeedsRequest
ListFeedsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.asset.v1p2beta1.ListFeedsResponse> | Promise |
updateFeed(request, callback)
public updateFeed(request: google.cloud.asset.v1p2beta1.IUpdateFeedRequest, callback: google.cloud.asset.v1p2beta1.AssetService.UpdateFeedCallback): void;
Calls UpdateFeed.
Parameters | |
---|---|
Name | Description |
request |
IUpdateFeedRequest
UpdateFeedRequest message or plain object |
callback |
UpdateFeedCallback
Node-style callback called with the error, if any, and Feed |
Returns | |
---|---|
Type | Description |
void |
updateFeed(request)
public updateFeed(request: google.cloud.asset.v1p2beta1.IUpdateFeedRequest): Promise<google.cloud.asset.v1p2beta1.Feed>;
Calls UpdateFeed.
Parameter | |
---|---|
Name | Description |
request |
IUpdateFeedRequest
UpdateFeedRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.asset.v1p2beta1.Feed> | Promise |