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