Exemple #1
0
 /// <summary>Snippet for SetIamPolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void SetIamPolicyResourceNames()
 {
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
     Policy        policy   = new Policy();
     // Make the request
     Policy response = connectionServiceClient.SetIamPolicy(resource, policy);
 }
 /// <summary>Snippet for SetIamPolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void SetIamPolicy()
 {
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     string resource = "a/wildcard/resource";
     Policy policy   = new Policy();
     // Make the request
     Policy response = connectionServiceClient.SetIamPolicy(resource, policy);
 }
 /// <summary>Snippet for SetIamPolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void SetIamPolicyRequestObject()
 {
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     SetIamPolicyRequest request = new SetIamPolicyRequest
     {
         ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
         Policy = new Policy(),
     };
     // Make the request
     Policy response = connectionServiceClient.SetIamPolicy(request);
 }