/// <summary>Snippet for SetIamPolicy</summary> public void SetIamPolicy() { // Snippet: SetIamPolicy(string, string, string, RegionSetPolicyRequest, CallSettings) // Create client RegionDisksClient regionDisksClient = RegionDisksClient.Create(); // Initialize request argument(s) string project = ""; string region = ""; string resource = ""; RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest(); // Make the request Policy response = regionDisksClient.SetIamPolicy(project, region, resource, regionSetPolicyRequestResource); // End snippet }
/// <summary>Snippet for SetIamPolicy</summary> public void SetIamPolicyRequestObject() { // Snippet: SetIamPolicy(SetIamPolicyRegionDiskRequest, CallSettings) // Create client RegionDisksClient regionDisksClient = RegionDisksClient.Create(); // Initialize request argument(s) SetIamPolicyRegionDiskRequest request = new SetIamPolicyRegionDiskRequest { Region = "", Resource = "", Project = "", RegionSetPolicyRequestResource = new RegionSetPolicyRequest(), }; // Make the request Policy response = regionDisksClient.SetIamPolicy(request); // End snippet }