/// <summary>Snippet for AddResourcePolicies</summary> public void AddResourcePolicies() { // Snippet: AddResourcePolicies(string, string, string, RegionDisksAddResourcePoliciesRequest, CallSettings) // Create client RegionDisksClient regionDisksClient = RegionDisksClient.Create(); // Initialize request argument(s) string project = ""; string region = ""; string disk = ""; RegionDisksAddResourcePoliciesRequest regionDisksAddResourcePoliciesRequestResource = new RegionDisksAddResourcePoliciesRequest(); // Make the request Operation response = regionDisksClient.AddResourcePolicies(project, region, disk, regionDisksAddResourcePoliciesRequestResource); // End snippet }
/// <summary>Snippet for AddResourcePolicies</summary> public void AddResourcePoliciesRequestObject() { // Snippet: AddResourcePolicies(AddResourcePoliciesRegionDiskRequest, CallSettings) // Create client RegionDisksClient regionDisksClient = RegionDisksClient.Create(); // Initialize request argument(s) AddResourcePoliciesRegionDiskRequest request = new AddResourcePoliciesRegionDiskRequest { Disk = "", RequestId = "", Region = "", Project = "", RegionDisksAddResourcePoliciesRequestResource = new RegionDisksAddResourcePoliciesRequest(), }; // Make the request Operation response = regionDisksClient.AddResourcePolicies(request); // End snippet }