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. |
analyzeIamPolicy(request, callback) → {undefined}
Calls AnalyzeIamPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IAnalyzeIamPolicyRequest |
AnalyzeIamPolicyRequest message or plain object |
callback |
google.cloud.asset.v1.AssetService.AnalyzeIamPolicyCallback |
Node-style callback called with the error, if any, and AnalyzeIamPolicyResponse |
Returns:
Type | Description |
---|---|
undefined |
analyzeIamPolicy(request) → {Promise.<google.cloud.asset.v1.AnalyzeIamPolicyResponse>}
Calls AnalyzeIamPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IAnalyzeIamPolicyRequest |
AnalyzeIamPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1.AnalyzeIamPolicyResponse> |
Promise |
analyzeIamPolicyLongrunning(request, callback) → {undefined}
Calls AnalyzeIamPolicyLongrunning.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningRequest |
AnalyzeIamPolicyLongrunningRequest message or plain object |
callback |
google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunningCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
analyzeIamPolicyLongrunning(request) → {Promise.<google.longrunning.Operation>}
Calls AnalyzeIamPolicyLongrunning.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningRequest |
AnalyzeIamPolicyLongrunningRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
batchGetAssetsHistory(request, callback) → {undefined}
Calls BatchGetAssetsHistory.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IBatchGetAssetsHistoryRequest |
BatchGetAssetsHistoryRequest message or plain object |
callback |
google.cloud.asset.v1.AssetService.BatchGetAssetsHistoryCallback |
Node-style callback called with the error, if any, and BatchGetAssetsHistoryResponse |
Returns:
Type | Description |
---|---|
undefined |
batchGetAssetsHistory(request) → {Promise.<google.cloud.asset.v1.BatchGetAssetsHistoryResponse>}
Calls BatchGetAssetsHistory.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IBatchGetAssetsHistoryRequest |
BatchGetAssetsHistoryRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1.BatchGetAssetsHistoryResponse> |
Promise |
createFeed(request, callback) → {undefined}
Calls CreateFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.ICreateFeedRequest |
CreateFeedRequest message or plain object |
callback |
google.cloud.asset.v1.AssetService.CreateFeedCallback |
Node-style callback called with the error, if any, and Feed |
Returns:
Type | Description |
---|---|
undefined |
createFeed(request) → {Promise.<google.cloud.asset.v1.Feed>}
Calls CreateFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.ICreateFeedRequest |
CreateFeedRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1.Feed> |
Promise |
deleteFeed(request, callback) → {undefined}
Calls DeleteFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IDeleteFeedRequest |
DeleteFeedRequest message or plain object |
callback |
google.cloud.asset.v1.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.v1.IDeleteFeedRequest |
DeleteFeedRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
exportAssets(request, callback) → {undefined}
Calls ExportAssets.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IExportAssetsRequest |
ExportAssetsRequest message or plain object |
callback |
google.cloud.asset.v1.AssetService.ExportAssetsCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
exportAssets(request) → {Promise.<google.longrunning.Operation>}
Calls ExportAssets.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IExportAssetsRequest |
ExportAssetsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
getFeed(request, callback) → {undefined}
Calls GetFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IGetFeedRequest |
GetFeedRequest message or plain object |
callback |
google.cloud.asset.v1.AssetService.GetFeedCallback |
Node-style callback called with the error, if any, and Feed |
Returns:
Type | Description |
---|---|
undefined |
getFeed(request) → {Promise.<google.cloud.asset.v1.Feed>}
Calls GetFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IGetFeedRequest |
GetFeedRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1.Feed> |
Promise |
listFeeds(request, callback) → {undefined}
Calls ListFeeds.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IListFeedsRequest |
ListFeedsRequest message or plain object |
callback |
google.cloud.asset.v1.AssetService.ListFeedsCallback |
Node-style callback called with the error, if any, and ListFeedsResponse |
Returns:
Type | Description |
---|---|
undefined |
listFeeds(request) → {Promise.<google.cloud.asset.v1.ListFeedsResponse>}
Calls ListFeeds.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IListFeedsRequest |
ListFeedsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1.ListFeedsResponse> |
Promise |
searchAllIamPolicies(request, callback) → {undefined}
Calls SearchAllIamPolicies.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.ISearchAllIamPoliciesRequest |
SearchAllIamPoliciesRequest message or plain object |
callback |
google.cloud.asset.v1.AssetService.SearchAllIamPoliciesCallback |
Node-style callback called with the error, if any, and SearchAllIamPoliciesResponse |
Returns:
Type | Description |
---|---|
undefined |
searchAllIamPolicies(request) → {Promise.<google.cloud.asset.v1.SearchAllIamPoliciesResponse>}
Calls SearchAllIamPolicies.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.ISearchAllIamPoliciesRequest |
SearchAllIamPoliciesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1.SearchAllIamPoliciesResponse> |
Promise |
searchAllResources(request, callback) → {undefined}
Calls SearchAllResources.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.ISearchAllResourcesRequest |
SearchAllResourcesRequest message or plain object |
callback |
google.cloud.asset.v1.AssetService.SearchAllResourcesCallback |
Node-style callback called with the error, if any, and SearchAllResourcesResponse |
Returns:
Type | Description |
---|---|
undefined |
searchAllResources(request) → {Promise.<google.cloud.asset.v1.SearchAllResourcesResponse>}
Calls SearchAllResources.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.ISearchAllResourcesRequest |
SearchAllResourcesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1.SearchAllResourcesResponse> |
Promise |
updateFeed(request, callback) → {undefined}
Calls UpdateFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IUpdateFeedRequest |
UpdateFeedRequest message or plain object |
callback |
google.cloud.asset.v1.AssetService.UpdateFeedCallback |
Node-style callback called with the error, if any, and Feed |
Returns:
Type | Description |
---|---|
undefined |
updateFeed(request) → {Promise.<google.cloud.asset.v1.Feed>}
Calls UpdateFeed.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1.IUpdateFeedRequest |
UpdateFeedRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1.Feed> |
Promise |
Type Definitions
AnalyzeIamPolicyCallback(error, responseopt)
Callback as used by google.cloud.asset.v1.AssetService#analyzeIamPolicy.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1.AnalyzeIamPolicyResponse |
<optional> |
AnalyzeIamPolicyResponse |
AnalyzeIamPolicyLongrunningCallback(error, responseopt)
Callback as used by google.cloud.asset.v1.AssetService#analyzeIamPolicyLongrunning.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
BatchGetAssetsHistoryCallback(error, responseopt)
Callback as used by google.cloud.asset.v1.AssetService#batchGetAssetsHistory.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1.BatchGetAssetsHistoryResponse |
<optional> |
BatchGetAssetsHistoryResponse |
CreateFeedCallback(error, responseopt)
Callback as used by google.cloud.asset.v1.AssetService#createFeed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1.Feed |
<optional> |
Feed |
DeleteFeedCallback(error, responseopt)
Callback as used by google.cloud.asset.v1.AssetService#deleteFeed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
ExportAssetsCallback(error, responseopt)
Callback as used by google.cloud.asset.v1.AssetService#exportAssets.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
GetFeedCallback(error, responseopt)
Callback as used by google.cloud.asset.v1.AssetService#getFeed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1.Feed |
<optional> |
Feed |
ListFeedsCallback(error, responseopt)
Callback as used by google.cloud.asset.v1.AssetService#listFeeds.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1.ListFeedsResponse |
<optional> |
ListFeedsResponse |
SearchAllIamPoliciesCallback(error, responseopt)
Callback as used by google.cloud.asset.v1.AssetService#searchAllIamPolicies.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1.SearchAllIamPoliciesResponse |
<optional> |
SearchAllIamPoliciesResponse |
SearchAllResourcesCallback(error, responseopt)
Callback as used by google.cloud.asset.v1.AssetService#searchAllResources.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1.SearchAllResourcesResponse |
<optional> |
SearchAllResourcesResponse |
UpdateFeedCallback(error, responseopt)
Callback as used by google.cloud.asset.v1.AssetService#updateFeed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1.Feed |
<optional> |
Feed |