public class PolicyTroubleshooter.PolicyTroubleshooterClient : ClientBase<PolicyTroubleshooter.PolicyTroubleshooterClient>
Reference documentation and code samples for the Policy Troubleshooter v3 API class PolicyTroubleshooter.PolicyTroubleshooterClient.
Client for PolicyTroubleshooter
Inheritance
object > ClientBase > ClientBasePolicyTroubleshooterPolicyTroubleshooterClient > PolicyTroubleshooter.PolicyTroubleshooterClientNamespace
Google.Cloud.PolicyTroubleshooter.Iam.V3Assembly
Google.Cloud.PolicyTroubleshooter.Iam.V3.dll
Constructors
PolicyTroubleshooterClient()
protected PolicyTroubleshooterClient()
Protected parameterless constructor to allow creation of test doubles.
PolicyTroubleshooterClient(CallInvoker)
public PolicyTroubleshooterClient(CallInvoker callInvoker)
Creates a new client for PolicyTroubleshooter that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker |
CallInvoker The callInvoker to use to make remote calls. |
PolicyTroubleshooterClient(ChannelBase)
public PolicyTroubleshooterClient(ChannelBase channel)
Creates a new client for PolicyTroubleshooter
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
PolicyTroubleshooterClient(ClientBaseConfiguration)
protected PolicyTroubleshooterClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The client configuration. |
Methods
NewInstance(ClientBaseConfiguration)
protected override PolicyTroubleshooter.PolicyTroubleshooterClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
PolicyTroubleshooterPolicyTroubleshooterClient |
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 doesn't have that permission.
Parameters | |
---|---|
Name | Description |
request |
TroubleshootIamPolicyRequest The request to send to the server. |
options |
CallOptions The 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 doesn't have that permission.
Parameters | |
---|---|
Name | Description |
request |
TroubleshootIamPolicyRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An 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 doesn't have that permission.
Parameters | |
---|---|
Name | Description |
request |
TroubleshootIamPolicyRequest The request to send to the server. |
options |
CallOptions The 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 doesn't have that permission.
Parameters | |
---|---|
Name | Description |
request |
TroubleshootIamPolicyRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallTroubleshootIamPolicyResponse |
The call object. |