예제 #1
0
 /// <summary>Snippet for TestIamPermissions</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void TestIamPermissions()
 {
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     string resource = "a/wildcard/resource";
     IEnumerable <string> permissions = new string[] { "", };
     // Make the request
     TestIamPermissionsResponse response = connectionServiceClient.TestIamPermissions(resource, permissions);
 }
예제 #2
0
 /// <summary>Snippet for TestIamPermissions</summary>
 public void TestIamPermissionsResourceNames()
 {
     // Snippet: TestIamPermissions(IResourceName, IEnumerable<string>, CallSettings)
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     IResourceName        resource    = new UnparsedResourceName("a/wildcard/resource");
     IEnumerable <string> permissions = new string[] { "", };
     // Make the request
     TestIamPermissionsResponse response = connectionServiceClient.TestIamPermissions(resource, permissions);
     // End snippet
 }
예제 #3
0
 /// <summary>Snippet for TestIamPermissions</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void TestIamPermissionsRequestObject()
 {
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     TestIamPermissionsRequest request = new TestIamPermissionsRequest
     {
         ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
         Permissions            = { "", },
     };
     // Make the request
     TestIamPermissionsResponse response = connectionServiceClient.TestIamPermissions(request);
 }