/// <summary>Snippet for List</summary> public void List() { // Snippet: List(string, string, CallSettings) // Create client PacketMirroringsClient packetMirroringsClient = PacketMirroringsClient.Create(); // Initialize request argument(s) string project = ""; string region = ""; // Make the request PacketMirroringList response = packetMirroringsClient.List(project, region); // End snippet }
/// <summary>Snippet for ListAsync</summary> public async Task ListAsync() { // Snippet: ListAsync(string, string, CallSettings) // Additional: ListAsync(string, string, CancellationToken) // Create client PacketMirroringsClient packetMirroringsClient = await PacketMirroringsClient.CreateAsync(); // Initialize request argument(s) string project = ""; string region = ""; // Make the request PacketMirroringList response = await packetMirroringsClient.ListAsync(project, region); // End snippet }
/// <summary>Snippet for List</summary> public void ListRequestObject() { // Snippet: List(ListPacketMirroringsRequest, CallSettings) // Create client PacketMirroringsClient packetMirroringsClient = PacketMirroringsClient.Create(); // Initialize request argument(s) ListPacketMirroringsRequest request = new ListPacketMirroringsRequest { PageToken = "", MaxResults = 0U, Region = "", OrderBy = "", Project = "", Filter = "", ReturnPartialSuccess = false, }; // Make the request PacketMirroringList response = packetMirroringsClient.List(request); // End snippet }
/// <summary>Snippet for ListAsync</summary> public async Task ListRequestObjectAsync() { // Snippet: ListAsync(ListPacketMirroringsRequest, CallSettings) // Additional: ListAsync(ListPacketMirroringsRequest, CancellationToken) // Create client PacketMirroringsClient packetMirroringsClient = await PacketMirroringsClient.CreateAsync(); // Initialize request argument(s) ListPacketMirroringsRequest request = new ListPacketMirroringsRequest { PageToken = "", MaxResults = 0U, Region = "", OrderBy = "", Project = "", Filter = "", ReturnPartialSuccess = false, }; // Make the request PacketMirroringList response = await packetMirroringsClient.ListAsync(request); // End snippet }