Exemple #1
0
 /// <summary>Snippet for TestIamPermissions</summary>
 public void TestIamPermissionsRequestObject()
 {
     // Snippet: TestIamPermissions(TestIamPermissionsRequest, CallSettings)
     // Create client
     IAMPolicyClient iAMPolicyClient = IAMPolicyClient.Create();
     // Initialize request argument(s)
     TestIamPermissionsRequest request = new TestIamPermissionsRequest
     {
         ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
         Permissions            = { "", },
     };
     // Make the request
     TestIamPermissionsResponse response = iAMPolicyClient.TestIamPermissions(request);
     // End snippet
 }
Exemple #2
0
 /// <summary>Snippet for GetIamPolicy</summary>
 public void GetIamPolicyRequestObject()
 {
     // Snippet: GetIamPolicy(GetIamPolicyRequest, CallSettings)
     // Create client
     IAMPolicyClient iAMPolicyClient = IAMPolicyClient.Create();
     // Initialize request argument(s)
     GetIamPolicyRequest request = new GetIamPolicyRequest
     {
         ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
         Options = new GetPolicyOptions(),
     };
     // Make the request
     Policy response = iAMPolicyClient.GetIamPolicy(request);
     // End snippet
 }