Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-network] Hotfix on extended location hierarchy for virtual network local gateway #4375

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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