public class IamChecker.IamCheckerClient : ClientBase<IamChecker.IamCheckerClient>Reference documentation and code samples for the Policy Troubleshooter v1 API class IamChecker.IamCheckerClient.
Client for IamChecker
Inheritance
object > ClientBase > ClientBaseIamCheckerIamCheckerClient > IamChecker.IamCheckerClientNamespace
Google.Cloud.PolicyTroubleshooter.V1Assembly
Google.Cloud.PolicyTroubleshooter.V1.dll
Constructors
IamCheckerClient()
protected IamCheckerClient()Protected parameterless constructor to allow creation of test doubles.
IamCheckerClient(CallInvoker)
public IamCheckerClient(CallInvoker callInvoker)Creates a new client for IamChecker that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
IamCheckerClient(ChannelBase)
public IamCheckerClient(ChannelBase channel)Creates a new client for IamChecker
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
IamCheckerClient(ClientBaseConfiguration)
protected IamCheckerClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
NewInstance(ClientBaseConfiguration)
protected override IamChecker.IamCheckerClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
IamCheckerIamCheckerClient |
|
TroubleshootIamPolicy(TroubleshootIamPolicyRequest, CallOptions)
public virtual TroubleshootIamPolicyResponse TroubleshootIamPolicy(TroubleshootIamPolicyRequest request, CallOptions options)Checks whether a principal has a specific permission for a specific resource, and explains why the principal does or does not have that permission.
| Parameters | |
|---|---|
| Name | Description |
request |
TroubleshootIamPolicyRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
TroubleshootIamPolicyResponse |
The response received from the server. |
TroubleshootIamPolicy(TroubleshootIamPolicyRequest, Metadata, DateTime?, CancellationToken)
public virtual TroubleshootIamPolicyResponse TroubleshootIamPolicy(TroubleshootIamPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Checks whether a principal has a specific permission for a specific resource, and explains why the principal does or does not have that permission.
| Parameters | |
|---|---|
| Name | Description |
request |
TroubleshootIamPolicyRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
TroubleshootIamPolicyResponse |
The response received from the server. |
TroubleshootIamPolicyAsync(TroubleshootIamPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<TroubleshootIamPolicyResponse> TroubleshootIamPolicyAsync(TroubleshootIamPolicyRequest request, CallOptions options)Checks whether a principal has a specific permission for a specific resource, and explains why the principal does or does not have that permission.
| Parameters | |
|---|---|
| Name | Description |
request |
TroubleshootIamPolicyRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallTroubleshootIamPolicyResponse |
The call object. |
TroubleshootIamPolicyAsync(TroubleshootIamPolicyRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<TroubleshootIamPolicyResponse> TroubleshootIamPolicyAsync(TroubleshootIamPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Checks whether a principal has a specific permission for a specific resource, and explains why the principal does or does not have that permission.
| Parameters | |
|---|---|
| Name | Description |
request |
TroubleshootIamPolicyRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallTroubleshootIamPolicyResponse |
The call object. |