コード例 #1
0
 /// <summary>Snippet for SetIamPolicy</summary>
 public void SetIamPolicy()
 {
     // Snippet: SetIamPolicy(string, string, string, RegionSetPolicyRequest, CallSettings)
     // Create client
     NodeTemplatesClient nodeTemplatesClient = NodeTemplatesClient.Create();
     // Initialize request argument(s)
     string project  = "";
     string region   = "";
     string resource = "";
     RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
     // Make the request
     Policy response = nodeTemplatesClient.SetIamPolicy(project, region, resource, regionSetPolicyRequestResource);
     // End snippet
 }
コード例 #2
0
 /// <summary>Snippet for SetIamPolicy</summary>
 public void SetIamPolicyRequestObject()
 {
     // Snippet: SetIamPolicy(SetIamPolicyNodeTemplateRequest, CallSettings)
     // Create client
     NodeTemplatesClient nodeTemplatesClient = NodeTemplatesClient.Create();
     // Initialize request argument(s)
     SetIamPolicyNodeTemplateRequest request = new SetIamPolicyNodeTemplateRequest
     {
         Region   = "",
         Resource = "",
         Project  = "",
         RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
     };
     // Make the request
     Policy response = nodeTemplatesClient.SetIamPolicy(request);
     // End snippet
 }