/// <summary>Snippet for Insert</summary> public void InsertRequestObject() { // Snippet: Insert(InsertNetworkEndpointGroupRequest, CallSettings) // Create client NetworkEndpointGroupsClient networkEndpointGroupsClient = NetworkEndpointGroupsClient.Create(); // Initialize request argument(s) InsertNetworkEndpointGroupRequest request = new InsertNetworkEndpointGroupRequest { Zone = "", RequestId = "", Project = "", NetworkEndpointGroupResource = new NetworkEndpointGroup(), }; // Make the request Operation response = networkEndpointGroupsClient.Insert(request); // End snippet }
/// <summary>Snippet for InsertAsync</summary> public async Task InsertRequestObjectAsync() { // Snippet: InsertAsync(InsertNetworkEndpointGroupRequest, CallSettings) // Additional: InsertAsync(InsertNetworkEndpointGroupRequest, CancellationToken) // Create client NetworkEndpointGroupsClient networkEndpointGroupsClient = await NetworkEndpointGroupsClient.CreateAsync(); // Initialize request argument(s) InsertNetworkEndpointGroupRequest request = new InsertNetworkEndpointGroupRequest { Zone = "", RequestId = "", Project = "", NetworkEndpointGroupResource = new NetworkEndpointGroup(), }; // Make the request Operation response = await networkEndpointGroupsClient.InsertAsync(request); // End snippet }