/// <summary>Snippet for RemovePeering</summary> public void RemovePeeringRequestObject() { // Snippet: RemovePeering(RemovePeeringNetworkRequest, CallSettings) // Create client NetworksClient networksClient = NetworksClient.Create(); // Initialize request argument(s) RemovePeeringNetworkRequest request = new RemovePeeringNetworkRequest { RequestId = "", NetworksRemovePeeringRequestResource = new NetworksRemovePeeringRequest(), Project = "", Network = "", }; // Make the request Operation response = networksClient.RemovePeering(request); // End snippet }
/// <summary>Snippet for RemovePeeringAsync</summary> public async Task RemovePeeringRequestObjectAsync() { // Snippet: RemovePeeringAsync(RemovePeeringNetworkRequest, CallSettings) // Additional: RemovePeeringAsync(RemovePeeringNetworkRequest, CancellationToken) // Create client NetworksClient networksClient = await NetworksClient.CreateAsync(); // Initialize request argument(s) RemovePeeringNetworkRequest request = new RemovePeeringNetworkRequest { RequestId = "", NetworksRemovePeeringRequestResource = new NetworksRemovePeeringRequest(), Project = "", Network = "", }; // Make the request Operation response = await networksClient.RemovePeeringAsync(request); // End snippet }