diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index 905167bce8ef..9e2481f1bf30 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -10320,6 +10320,10 @@ export interface GatewayRoute { * A common class for general resource information. */ export interface VirtualNetworkGateway extends Resource { + /** + * The extended location of type local virtual network gateway. + */ + extendedLocation?: ExtendedLocation; /** * IP configurations for virtual network gateway. */ @@ -10395,14 +10399,10 @@ export interface VirtualNetworkGateway extends Resource { */ readonly inboundDnsForwardingEndpoint?: string; /** - * MAS FIJI customer vnet resource id. VirtualNetworkGateway of type local gateway is associated - * with the customer vnet. + * Customer vnet resource id. VirtualNetworkGateway of type local gateway is associated with the + * customer vnet. */ vNetExtendedLocationResourceId?: string; - /** - * The extended location of type local virtual network gateway. - */ - virtualNetworkExtendedLocation?: ExtendedLocation; /** * A unique read-only string that changes whenever the resource is updated. * **NOTE: This property will not be serialized. It can only be populated by the server.** diff --git a/sdk/network/arm-network/src/models/mappers.ts b/sdk/network/arm-network/src/models/mappers.ts index 56f73f4a52e6..b20b614f5497 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -17626,6 +17626,13 @@ export const VirtualNetworkGateway: msRest.CompositeMapper = { className: "VirtualNetworkGateway", modelProperties: { ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } + }, ipConfigurations: { serializedName: "properties.ipConfigurations", type: { @@ -17742,13 +17749,6 @@ export const VirtualNetworkGateway: msRest.CompositeMapper = { name: "String" } }, - virtualNetworkExtendedLocation: { - serializedName: "properties.virtualNetworkExtendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, etag: { readOnly: true, serializedName: "etag", diff --git a/sdk/network/arm-network/src/networkManagementClientContext.ts b/sdk/network/arm-network/src/networkManagementClientContext.ts index 1271b5d39e4a..30d913d55203 100644 --- a/sdk/network/arm-network/src/networkManagementClientContext.ts +++ b/sdk/network/arm-network/src/networkManagementClientContext.ts @@ -26,42 +26,35 @@ export class NetworkManagementClientContext extends msRestAzure.AzureServiceClie * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials, - subscriptionId: string, - options?: Models.NetworkManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.NetworkManagementClientOptions) { if (credentials == undefined) { - throw new Error("'credentials' cannot be null."); + throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId == undefined) { - throw new Error("'subscriptionId' cannot be null."); + throw new Error('\'subscriptionId\' cannot be null.'); } if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.acceptLanguage = "en-US"; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if ( - options.longRunningOperationRetryTimeout !== null && - options.longRunningOperationRetryTimeout !== undefined - ) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } }