/// <summary>Snippet for Delete</summary> public void DeleteRequestObject() { // Snippet: Delete(DeleteSubnetworkRequest, CallSettings) // Create client SubnetworksClient subnetworksClient = SubnetworksClient.Create(); // Initialize request argument(s) DeleteSubnetworkRequest request = new DeleteSubnetworkRequest { RequestId = "", Subnetwork = "", Region = "", Project = "", }; // Make the request Operation response = subnetworksClient.Delete(request); // End snippet }
/// <summary>Snippet for DeleteAsync</summary> public async Task DeleteRequestObjectAsync() { // Snippet: DeleteAsync(DeleteSubnetworkRequest, CallSettings) // Additional: DeleteAsync(DeleteSubnetworkRequest, CancellationToken) // Create client SubnetworksClient subnetworksClient = await SubnetworksClient.CreateAsync(); // Initialize request argument(s) DeleteSubnetworkRequest request = new DeleteSubnetworkRequest { RequestId = "", Subnetwork = "", Region = "", Project = "", }; // Make the request Operation response = await subnetworksClient.DeleteAsync(request); // End snippet }