/// <summary>Snippet for SetIamPolicy</summary> public void SetIamPolicy() { // Snippet: SetIamPolicy(string, string, GlobalSetPolicyRequest, CallSettings) // Create client LicensesClient licensesClient = LicensesClient.Create(); // Initialize request argument(s) string project = ""; string resource = ""; GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest(); // Make the request Policy response = licensesClient.SetIamPolicy(project, resource, globalSetPolicyRequestResource); // End snippet }
/// <summary>Snippet for SetIamPolicy</summary> public void SetIamPolicyRequestObject() { // Snippet: SetIamPolicy(SetIamPolicyLicenseRequest, CallSettings) // Create client LicensesClient licensesClient = LicensesClient.Create(); // Initialize request argument(s) SetIamPolicyLicenseRequest request = new SetIamPolicyLicenseRequest { Resource = "", Project = "", GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(), }; // Make the request Policy response = licensesClient.SetIamPolicy(request); // End snippet }