/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import {
VirtualNetwork,
VirtualNetworksListOptionalParams,
VirtualNetworksGetOptionalParams,
VirtualNetworksGetResponse,
VirtualNetworksCreateOrUpdateOptionalParams,
VirtualNetworksCreateOrUpdateResponse,
VirtualNetworksDeleteOptionalParams,
VirtualNetworkFragment,
VirtualNetworksUpdateOptionalParams,
VirtualNetworksUpdateResponse
} from "../models";
///
/** Interface representing a VirtualNetworks. */
export interface VirtualNetworks {
/**
* List virtual networks in a given lab.
* @param resourceGroupName The name of the resource group.
* @param labName The name of the lab.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
labName: string,
options?: VirtualNetworksListOptionalParams
): PagedAsyncIterableIterator;
/**
* Get virtual network.
* @param resourceGroupName The name of the resource group.
* @param labName The name of the lab.
* @param name The name of the virtual network.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
labName: string,
name: string,
options?: VirtualNetworksGetOptionalParams
): Promise;
/**
* Create or replace an existing virtual network. This operation can take a while to complete.
* @param resourceGroupName The name of the resource group.
* @param labName The name of the lab.
* @param name The name of the virtual network.
* @param virtualNetwork A virtual network.
* @param options The options parameters.
*/
beginCreateOrUpdate(
resourceGroupName: string,
labName: string,
name: string,
virtualNetwork: VirtualNetwork,
options?: VirtualNetworksCreateOrUpdateOptionalParams
): Promise<
PollerLike<
PollOperationState,
VirtualNetworksCreateOrUpdateResponse
>
>;
/**
* Create or replace an existing virtual network. This operation can take a while to complete.
* @param resourceGroupName The name of the resource group.
* @param labName The name of the lab.
* @param name The name of the virtual network.
* @param virtualNetwork A virtual network.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(
resourceGroupName: string,
labName: string,
name: string,
virtualNetwork: VirtualNetwork,
options?: VirtualNetworksCreateOrUpdateOptionalParams
): Promise;
/**
* Delete virtual network. This operation can take a while to complete.
* @param resourceGroupName The name of the resource group.
* @param labName The name of the lab.
* @param name The name of the virtual network.
* @param options The options parameters.
*/
beginDelete(
resourceGroupName: string,
labName: string,
name: string,
options?: VirtualNetworksDeleteOptionalParams
): Promise, void>>;
/**
* Delete virtual network. This operation can take a while to complete.
* @param resourceGroupName The name of the resource group.
* @param labName The name of the lab.
* @param name The name of the virtual network.
* @param options The options parameters.
*/
beginDeleteAndWait(
resourceGroupName: string,
labName: string,
name: string,
options?: VirtualNetworksDeleteOptionalParams
): Promise;
/**
* Allows modifying tags of virtual networks. All other properties will be ignored.
* @param resourceGroupName The name of the resource group.
* @param labName The name of the lab.
* @param name The name of the virtual network.
* @param virtualNetwork A virtual network.
* @param options The options parameters.
*/
update(
resourceGroupName: string,
labName: string,
name: string,
virtualNetwork: VirtualNetworkFragment,
options?: VirtualNetworksUpdateOptionalParams
): Promise;
}