Beispiel #1
0
 /// <summary>Snippet for GetIamPolicy</summary>
 public void GetIamPolicy()
 {
     // Snippet: GetIamPolicy(string, string, string, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     string project  = "";
     string zone     = "";
     string resource = "";
     // Make the request
     Policy response = nodeGroupsClient.GetIamPolicy(project, zone, resource);
     // End snippet
 }
Beispiel #2
0
 /// <summary>Snippet for GetIamPolicy</summary>
 public void GetIamPolicyRequestObject()
 {
     // Snippet: GetIamPolicy(GetIamPolicyNodeGroupRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     GetIamPolicyNodeGroupRequest request = new GetIamPolicyNodeGroupRequest
     {
         Zone     = "",
         Resource = "",
         Project  = "",
         OptionsRequestedPolicyVersion = 0,
     };
     // Make the request
     Policy response = nodeGroupsClient.GetIamPolicy(request);
     // End snippet
 }