Constructor
new AssetService(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new AssetService service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {AssetService}
Creates new AssetService service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
AssetService |
RPC service. Useful where requests and/or responses are streamed. |
createFeed(request, callback) → {undefined}
Calls CreateFeed.
Parameters:
Name | Type | Description |
---|---|---|
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:
Type | Description |
---|---|
undefined |
createFeed(request) → {Promise.<google.cloud.asset.v1p2beta1.Feed>}
Calls CreateFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1p2beta1.ICreateFeedRequest |
CreateFeedRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1p2beta1.Feed> |
Promise |
deleteFeed(request, callback) → {undefined}
Calls DeleteFeed.
Parameters:
Name | Type | Description |
---|---|---|
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:
Type | Description |
---|---|
undefined |
deleteFeed(request) → {Promise.<google.protobuf.Empty>}
Calls DeleteFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1p2beta1.IDeleteFeedRequest |
DeleteFeedRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
getFeed(request, callback) → {undefined}
Calls GetFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1p2beta1.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:
Type | Description |
---|---|
undefined |
getFeed(request) → {Promise.<google.cloud.asset.v1p2beta1.Feed>}
Calls GetFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1p2beta1.IGetFeedRequest |
GetFeedRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1p2beta1.Feed> |
Promise |
listFeeds(request, callback) → {undefined}
Calls ListFeeds.
Parameters:
Name | Type | Description |
---|---|---|
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:
Type | Description |
---|---|
undefined |
listFeeds(request) → {Promise.<google.cloud.asset.v1p2beta1.ListFeedsResponse>}
Calls ListFeeds.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1p2beta1.IListFeedsRequest |
ListFeedsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1p2beta1.ListFeedsResponse> |
Promise |
updateFeed(request, callback) → {undefined}
Calls UpdateFeed.
Parameters:
Name | Type | Description |
---|---|---|
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:
Type | Description |
---|---|
undefined |
updateFeed(request) → {Promise.<google.cloud.asset.v1p2beta1.Feed>}
Calls UpdateFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1p2beta1.IUpdateFeedRequest |
UpdateFeedRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1p2beta1.Feed> |
Promise |
Type Definitions
CreateFeedCallback(error, responseopt)
Callback as used by createFeed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1p2beta1.Feed |
<optional> |
Feed |
DeleteFeedCallback(error, responseopt)
Callback as used by deleteFeed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
GetFeedCallback(error, responseopt)
Callback as used by getFeed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1p2beta1.Feed |
<optional> |
Feed |
ListFeedsCallback(error, responseopt)
Callback as used by listFeeds.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1p2beta1.ListFeedsResponse |
<optional> |
ListFeedsResponse |
UpdateFeedCallback(error, responseopt)
Callback as used by updateFeed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1p2beta1.Feed |
<optional> |
Feed |