Class protos.google.cloud.asset.v1p2beta1.AssetService (3.20.0)

Represents an AssetService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.asset.v1p2beta1.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

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.

createFeed(request, callback)

public createFeed(request: google.cloud.asset.v1p2beta1.ICreateFeedRequest, callback: google.cloud.asset.v1p2beta1.AssetService.CreateFeedCallback): void;

Calls CreateFeed.

Parameters
NameDescription
request google.cloud.asset.v1p2beta1.ICreateFeedRequest

CreateFeedRequest message or plain object

callback google.cloud.asset.v1p2beta1.AssetService.CreateFeedCallback

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

Returns
TypeDescription
void

createFeed(request)

public createFeed(request: google.cloud.asset.v1p2beta1.ICreateFeedRequest): Promise<google.cloud.asset.v1p2beta1.Feed>;

Calls CreateFeed.

Parameter
NameDescription
request google.cloud.asset.v1p2beta1.ICreateFeedRequest

CreateFeedRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.asset.v1p2beta1.IDeleteFeedRequest

DeleteFeedRequest message or plain object

callback google.cloud.asset.v1p2beta1.AssetService.DeleteFeedCallback

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

Returns
TypeDescription
void

deleteFeed(request)

public deleteFeed(request: google.cloud.asset.v1p2beta1.IDeleteFeedRequest): Promise<google.protobuf.Empty>;

Calls DeleteFeed.

Parameter
NameDescription
request google.cloud.asset.v1p2beta1.IDeleteFeedRequest

DeleteFeedRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IGetFeedRequest

GetFeedRequest message or plain object

callback google.cloud.asset.v1p2beta1.AssetService.GetFeedCallback

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

Returns
TypeDescription
void

getFeed(request)

public getFeed(request: google.cloud.asset.v1p2beta1.IGetFeedRequest): Promise<google.cloud.asset.v1p2beta1.Feed>;

Calls GetFeed.

Parameter
NameDescription
request IGetFeedRequest

GetFeedRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.asset.v1p2beta1.IListFeedsRequest

ListFeedsRequest message or plain object

callback google.cloud.asset.v1p2beta1.AssetService.ListFeedsCallback

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

Returns
TypeDescription
void

listFeeds(request)

public listFeeds(request: google.cloud.asset.v1p2beta1.IListFeedsRequest): Promise<google.cloud.asset.v1p2beta1.ListFeedsResponse>;

Calls ListFeeds.

Parameter
NameDescription
request google.cloud.asset.v1p2beta1.IListFeedsRequest

ListFeedsRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.asset.v1p2beta1.IUpdateFeedRequest

UpdateFeedRequest message or plain object

callback google.cloud.asset.v1p2beta1.AssetService.UpdateFeedCallback

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

Returns
TypeDescription
void

updateFeed(request)

public updateFeed(request: google.cloud.asset.v1p2beta1.IUpdateFeedRequest): Promise<google.cloud.asset.v1p2beta1.Feed>;

Calls UpdateFeed.

Parameter
NameDescription
request google.cloud.asset.v1p2beta1.IUpdateFeedRequest

UpdateFeedRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1p2beta1.Feed>

Promise