コード例 #1
0
 /// <summary>Snippet for TroubleshootIamPolicy</summary>
 public void TroubleshootIamPolicyRequestObject()
 {
     // Snippet: TroubleshootIamPolicy(TroubleshootIamPolicyRequest, CallSettings)
     // Create client
     IamCheckerClient iamCheckerClient = IamCheckerClient.Create();
     // Initialize request argument(s)
     TroubleshootIamPolicyRequest request = new TroubleshootIamPolicyRequest
     {
         AccessTuple = new AccessTuple(),
     };
     // Make the request
     TroubleshootIamPolicyResponse response = iamCheckerClient.TroubleshootIamPolicy(request);
     // End snippet
 }
コード例 #2
0
        /// <summary>Snippet for TroubleshootIamPolicyAsync</summary>
        public async Task TroubleshootIamPolicyRequestObjectAsync()
        {
            // Snippet: TroubleshootIamPolicyAsync(TroubleshootIamPolicyRequest, CallSettings)
            // Additional: TroubleshootIamPolicyAsync(TroubleshootIamPolicyRequest, CancellationToken)
            // Create client
            IamCheckerClient iamCheckerClient = await IamCheckerClient.CreateAsync();

            // Initialize request argument(s)
            TroubleshootIamPolicyRequest request = new TroubleshootIamPolicyRequest
            {
                AccessTuple = new AccessTuple(),
            };
            // Make the request
            TroubleshootIamPolicyResponse response = await iamCheckerClient.TroubleshootIamPolicyAsync(request);

            // End snippet
        }