Пример #1
0
 /// <summary>Snippet for GetIamPolicy</summary>
 public void GetIamPolicy()
 {
     // Snippet: GetIamPolicy(string, string, CallSettings)
     // Create client
     LicensesClient licensesClient = LicensesClient.Create();
     // Initialize request argument(s)
     string project  = "";
     string resource = "";
     // Make the request
     Policy response = licensesClient.GetIamPolicy(project, resource);
     // End snippet
 }
Пример #2
0
 /// <summary>Snippet for GetIamPolicy</summary>
 public void GetIamPolicyRequestObject()
 {
     // Snippet: GetIamPolicy(GetIamPolicyLicenseRequest, CallSettings)
     // Create client
     LicensesClient licensesClient = LicensesClient.Create();
     // Initialize request argument(s)
     GetIamPolicyLicenseRequest request = new GetIamPolicyLicenseRequest
     {
         Resource = "",
         Project  = "",
         OptionsRequestedPolicyVersion = 0,
     };
     // Make the request
     Policy response = licensesClient.GetIamPolicy(request);
     // End snippet
 }