Represents a PolicyTroubleshooter
Inheritance
$protobuf.rpc.Service > protos.google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooterPackage
@google-cloud/policy-troubleshooter-iamConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new PolicyTroubleshooter 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): PolicyTroubleshooter;
Creates new PolicyTroubleshooter 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 |
PolicyTroubleshooter |
RPC service. Useful where requests and/or responses are streamed. |
troubleshootIamPolicy(request, callback)
public troubleshootIamPolicy(request: google.cloud.policytroubleshooter.iam.v3.ITroubleshootIamPolicyRequest, callback: google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooter.TroubleshootIamPolicyCallback): void;
Calls TroubleshootIamPolicy.
Parameters | |
---|---|
Name | Description |
request |
ITroubleshootIamPolicyRequest
TroubleshootIamPolicyRequest message or plain object |
callback |
TroubleshootIamPolicyCallback
Node-style callback called with the error, if any, and TroubleshootIamPolicyResponse |
Returns | |
---|---|
Type | Description |
void |
troubleshootIamPolicy(request)
public troubleshootIamPolicy(request: google.cloud.policytroubleshooter.iam.v3.ITroubleshootIamPolicyRequest): Promise<google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse>;
Calls TroubleshootIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
ITroubleshootIamPolicyRequest
TroubleshootIamPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse> |
Promise |