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. |
searchAllIamPolicies(request, callback) → {undefined}
Calls SearchAllIamPolicies.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1p1beta1.ISearchAllIamPoliciesRequest |
SearchAllIamPoliciesRequest message or plain object |
callback |
google.cloud.asset.v1p1beta1.AssetService.SearchAllIamPoliciesCallback |
Node-style callback called with the error, if any, and SearchAllIamPoliciesResponse |
Returns:
Type | Description |
---|---|
undefined |
searchAllIamPolicies(request) → {Promise.<google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse>}
Calls SearchAllIamPolicies.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1p1beta1.ISearchAllIamPoliciesRequest |
SearchAllIamPoliciesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse> |
Promise |
searchAllResources(request, callback) → {undefined}
Calls SearchAllResources.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1p1beta1.ISearchAllResourcesRequest |
SearchAllResourcesRequest message or plain object |
callback |
google.cloud.asset.v1p1beta1.AssetService.SearchAllResourcesCallback |
Node-style callback called with the error, if any, and SearchAllResourcesResponse |
Returns:
Type | Description |
---|---|
undefined |
searchAllResources(request) → {Promise.<google.cloud.asset.v1p1beta1.SearchAllResourcesResponse>}
Calls SearchAllResources.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.asset.v1p1beta1.ISearchAllResourcesRequest |
SearchAllResourcesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.asset.v1p1beta1.SearchAllResourcesResponse> |
Promise |
Type Definitions
SearchAllIamPoliciesCallback(error, responseopt)
Callback as used by searchAllIamPolicies.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse |
<optional> |
SearchAllIamPoliciesResponse |
SearchAllResourcesCallback(error, responseopt)
Callback as used by searchAllResources.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.asset.v1p1beta1.SearchAllResourcesResponse |
<optional> |
SearchAllResourcesResponse |