Skip to content

Commit

Permalink
CodeGen from PR 13827 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge ee692e4ddfbe7d305c671504e67c0e5e9917afbd into 64e122e05a8ff184be8a6d185edfab4e9c3c237e
  • Loading branch information
SDKAuto committed Apr 21, 2021
1 parent 92cd7da commit 7a50fd2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 27 deletions.
12 changes: 6 additions & 6 deletions sdk/network/arm-network/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.**
Expand Down
14 changes: 7 additions & 7 deletions sdk/network/arm-network/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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",
Expand Down
21 changes: 7 additions & 14 deletions sdk/network/arm-network/src/networkManagementClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 7a50fd2

Please sign in to comment.