Skip to content

[AutoPR @azure/arm-network] [Hub Generated] Review request for Microsoft.Network to add version stable/2020-08-01 #3425

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
13 changes: 13 additions & 0 deletions sdk/network/arm-network/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3862,6 +3862,11 @@ export interface BastionHost extends Resource {
* FQDN for the endpoint on which bastion host is accessible.
*/
dnsName?: string;
/**
* The sku of this Bastion Host. Possible values include: 'Basic', 'Standard'. Default value:
* 'Standard'.
*/
sku?: BastionHostSkuName;
/**
* The provisioning state of the bastion host resource. Possible values include: 'Succeeded',
* 'Updating', 'Deleting', 'Failed'
Expand Down Expand Up @@ -14907,6 +14912,14 @@ export type AzureFirewallSkuName = 'AZFW_VNet' | 'AZFW_Hub';
*/
export type AzureFirewallSkuTier = 'Standard' | 'Premium';

/**
* Defines values for BastionHostSkuName.
* Possible values include: 'Basic', 'Standard'
* @readonly
* @enum {string}
*/
export type BastionHostSkuName = 'Basic' | 'Standard';

/**
* Defines values for BastionConnectProtocol.
* Possible values include: 'SSH', 'RDP'
Expand Down
7 changes: 7 additions & 0 deletions sdk/network/arm-network/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6593,6 +6593,13 @@ export const BastionHost: msRest.CompositeMapper = {
name: "String"
}
},
sku: {
serializedName: "properties.sku",
defaultValue: 'Standard',
type: {
name: "String"
}
},
provisioningState: {
readOnly: true,
serializedName: "properties.provisioningState",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class NetworkManagementClientContext extends msRestAzure.AzureServiceClie
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
Expand All @@ -51,10 +51,10 @@ export class NetworkManagementClientContext extends msRestAzure.AzureServiceClie
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