Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
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
2 changes: 1 addition & 1 deletion lib/services/websiteManagement2/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 11 additions & 0 deletions lib/services/websiteManagement2/lib/models/corsSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class CorsSettings {
* @property {array} [allowedOrigins] Gets or sets the list of origins that
* should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
* @property {boolean} [supportCredentials] Gets or sets whether CORS
* requests with credentials are allowed. See
* https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
* for more details.
*/
constructor() {
}
Expand Down Expand Up @@ -51,6 +55,13 @@ class CorsSettings {
}
}
}
},
supportCredentials: {
required: false,
serializedName: 'supportCredentials',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
40 changes: 38 additions & 2 deletions lib/services/websiteManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,10 @@ export interface VnetInfo extends ProxyOnlyResource {
* addresses.
*/
dnsServers?: string;
/**
* Flag that is used to denote if this is VNET injection
*/
isSwift?: boolean;
}

/**
Expand Down Expand Up @@ -897,6 +901,12 @@ export interface CorsSettings {
* calls (for example: http://example.com:12345). Use "*" to allow all.
*/
allowedOrigins?: string[];
/**
* Gets or sets whether CORS requests with credentials are allowed. See
* https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
* for more details.
*/
supportCredentials?: boolean;
}

/**
Expand Down Expand Up @@ -1438,9 +1448,17 @@ export interface SiteConfig {
*/
xManagedServiceIdentityId?: number;
/**
* IP security restrictions.
* IP security restrictions for main.
*/
ipSecurityRestrictions?: IpSecurityRestriction[];
/**
* IP security restrictions for scm.
*/
scmIpSecurityRestrictions?: IpSecurityRestriction[];
/**
* IP security restrictions for scm to use main.
*/
scmIpSecurityRestrictionsUseMain?: boolean;
/**
* Http20Enabled: configures a web site to allow clients to connect over http2.0
*/
Expand Down Expand Up @@ -3544,6 +3562,10 @@ export interface StackMajorVersion {
* Minor versions associated with the major version.
*/
minorVersions?: StackMinorVersion[];
/**
* <code>true</code> if this supports Application Insights; otherwise, <code>false</code>.
*/
applicationInsights?: boolean;
}

/**
Expand Down Expand Up @@ -5456,6 +5478,12 @@ export interface SiteAuthSettings extends ProxyOnlyResource {
* More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html
*/
clientSecret?: string;
/**
* An alternative to the client secret, that is the thumbprint of a certificate used for signing
* purposes. This property acts as
* a replacement for the Client Secret. It is also optional.
*/
clientSecretCertificateThumbprint?: string;
/**
* The OpenID Connect Issuer URI that represents the entity which issues access tokens for this
* application.
Expand Down Expand Up @@ -5782,9 +5810,17 @@ export interface SiteConfigResource extends ProxyOnlyResource {
*/
xManagedServiceIdentityId?: number;
/**
* IP security restrictions.
* IP security restrictions for main.
*/
ipSecurityRestrictions?: IpSecurityRestriction[];
/**
* IP security restrictions for scm.
*/
scmIpSecurityRestrictions?: IpSecurityRestriction[];
/**
* IP security restrictions for scm to use main.
*/
scmIpSecurityRestrictionsUseMain?: boolean;
/**
* Http20Enabled: configures a web site to allow clients to connect over http2.0
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/services/websiteManagement2/lib/models/networkFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class NetworkFeatures extends models['ProxyOnlyResource'] {
* @property {string} [virtualNetworkConnection.dnsServers] DNS servers to be
* used by this Virtual Network. This should be a comma-separated list of IP
* addresses.
* @property {boolean} [virtualNetworkConnection.isSwift] Flag that is used
* to denote if this is VNET injection
* @property {array} [hybridConnections] The Hybrid Connections summary view.
* @property {array} [hybridConnectionsV2] The Hybrid Connection V2 (Service
* Bus) view.
Expand Down
10 changes: 9 additions & 1 deletion lib/services/websiteManagement2/lib/models/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ class Site extends models['Resource'] {
* @property {array} [siteConfig.cors.allowedOrigins] Gets or sets the list
* of origins that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
* @property {boolean} [siteConfig.cors.supportCredentials] Gets or sets
* whether CORS requests with credentials are allowed. See
* https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
* for more details.
* @property {object} [siteConfig.push] Push endpoint settings.
* @property {boolean} [siteConfig.push.isPushEnabled] Gets or sets a flag
* indicating whether the Push endpoint is enabled.
Expand Down Expand Up @@ -194,7 +198,11 @@ class Site extends models['Resource'] {
* @property {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
* Service Identity Id
* @property {array} [siteConfig.ipSecurityRestrictions] IP security
* restrictions.
* restrictions for main.
* @property {array} [siteConfig.scmIpSecurityRestrictions] IP security
* restrictions for scm.
* @property {boolean} [siteConfig.scmIpSecurityRestrictionsUseMain] IP
* security restrictions for scm to use main.
* @property {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a
* web site to allow clients to connect over http2.0
* @property {string} [siteConfig.minTlsVersion] MinTlsVersion: configures
Expand Down
11 changes: 11 additions & 0 deletions lib/services/websiteManagement2/lib/models/siteAuthSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ class SiteAuthSettings extends models['ProxyOnlyResource'] {
* authenticate end users.
* More information on OpenID Connect:
* http://openid.net/specs/openid-connect-core-1_0.html
* @property {string} [clientSecretCertificateThumbprint] An alternative to
* the client secret, that is the thumbprint of a certificate used for
* signing purposes. This property acts as
* a replacement for the Client Secret. It is also optional.
* @property {string} [issuer] The OpenID Connect Issuer URI that represents
* the entity which issues access tokens for this application.
* When using Azure Active Directory, this value is the URI of the directory
Expand Down Expand Up @@ -261,6 +265,13 @@ class SiteAuthSettings extends models['ProxyOnlyResource'] {
name: 'String'
}
},
clientSecretCertificateThumbprint: {
required: false,
serializedName: 'properties.clientSecretCertificateThumbprint',
type: {
name: 'String'
}
},
issuer: {
required: false,
serializedName: 'properties.issuer',
Expand Down
33 changes: 32 additions & 1 deletion lib/services/websiteManagement2/lib/models/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ class SiteConfig {
* @property {array} [cors.allowedOrigins] Gets or sets the list of origins
* that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
* @property {boolean} [cors.supportCredentials] Gets or sets whether CORS
* requests with credentials are allowed. See
* https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
* for more details.
* @property {object} [push] Push endpoint settings.
* @property {boolean} [push.isPushEnabled] Gets or sets a flag indicating
* whether the Push endpoint is enabled.
Expand All @@ -146,7 +150,12 @@ class SiteConfig {
* @property {number} [managedServiceIdentityId] Managed Service Identity Id
* @property {number} [xManagedServiceIdentityId] Explicit Managed Service
* Identity Id
* @property {array} [ipSecurityRestrictions] IP security restrictions.
* @property {array} [ipSecurityRestrictions] IP security restrictions for
* main.
* @property {array} [scmIpSecurityRestrictions] IP security restrictions for
* scm.
* @property {boolean} [scmIpSecurityRestrictionsUseMain] IP security
* restrictions for scm to use main.
* @property {boolean} [http20Enabled] Http20Enabled: configures a web site
* to allow clients to connect over http2.0. Default value: true .
* @property {string} [minTlsVersion] MinTlsVersion: configures the minimum
Expand Down Expand Up @@ -570,6 +579,28 @@ class SiteConfig {
}
}
},
scmIpSecurityRestrictions: {
required: false,
serializedName: 'scmIpSecurityRestrictions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'IpSecurityRestrictionElementType',
type: {
name: 'Composite',
className: 'IpSecurityRestriction'
}
}
}
},
scmIpSecurityRestrictionsUseMain: {
required: false,
serializedName: 'scmIpSecurityRestrictionsUseMain',
type: {
name: 'Boolean'
}
},
http20Enabled: {
required: false,
serializedName: 'http20Enabled',
Expand Down
33 changes: 32 additions & 1 deletion lib/services/websiteManagement2/lib/models/siteConfigResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
* @property {array} [cors.allowedOrigins] Gets or sets the list of origins
* that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
* @property {boolean} [cors.supportCredentials] Gets or sets whether CORS
* requests with credentials are allowed. See
* https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
* for more details.
* @property {object} [push] Push endpoint settings.
* @property {boolean} [push.isPushEnabled] Gets or sets a flag indicating
* whether the Push endpoint is enabled.
Expand All @@ -149,7 +153,12 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
* @property {number} [managedServiceIdentityId] Managed Service Identity Id
* @property {number} [xManagedServiceIdentityId] Explicit Managed Service
* Identity Id
* @property {array} [ipSecurityRestrictions] IP security restrictions.
* @property {array} [ipSecurityRestrictions] IP security restrictions for
* main.
* @property {array} [scmIpSecurityRestrictions] IP security restrictions for
* scm.
* @property {boolean} [scmIpSecurityRestrictionsUseMain] IP security
* restrictions for scm to use main.
* @property {boolean} [http20Enabled] Http20Enabled: configures a web site
* to allow clients to connect over http2.0. Default value: true .
* @property {string} [minTlsVersion] MinTlsVersion: configures the minimum
Expand Down Expand Up @@ -605,6 +614,28 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
}
}
},
scmIpSecurityRestrictions: {
required: false,
serializedName: 'properties.scmIpSecurityRestrictions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'IpSecurityRestrictionElementType',
type: {
name: 'Composite',
className: 'IpSecurityRestriction'
}
}
}
},
scmIpSecurityRestrictionsUseMain: {
required: false,
serializedName: 'properties.scmIpSecurityRestrictionsUseMain',
type: {
name: 'Boolean'
}
},
http20Enabled: {
required: false,
serializedName: 'properties.http20Enabled',
Expand Down
10 changes: 9 additions & 1 deletion lib/services/websiteManagement2/lib/models/sitePatchResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* @property {array} [siteConfig.cors.allowedOrigins] Gets or sets the list
* of origins that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
* @property {boolean} [siteConfig.cors.supportCredentials] Gets or sets
* whether CORS requests with credentials are allowed. See
* https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
* for more details.
* @property {object} [siteConfig.push] Push endpoint settings.
* @property {boolean} [siteConfig.push.isPushEnabled] Gets or sets a flag
* indicating whether the Push endpoint is enabled.
Expand Down Expand Up @@ -194,7 +198,11 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* @property {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
* Service Identity Id
* @property {array} [siteConfig.ipSecurityRestrictions] IP security
* restrictions.
* restrictions for main.
* @property {array} [siteConfig.scmIpSecurityRestrictions] IP security
* restrictions for scm.
* @property {boolean} [siteConfig.scmIpSecurityRestrictionsUseMain] IP
* security restrictions for scm to use main.
* @property {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a
* web site to allow clients to connect over http2.0
* @property {string} [siteConfig.minTlsVersion] MinTlsVersion: configures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class StackMajorVersion {
* major version; otherwise, <code>false</code>.
* @property {array} [minorVersions] Minor versions associated with the major
* version.
* @property {boolean} [applicationInsights] <code>true</code> if this
* supports Application Insights; otherwise, <code>false</code>.
*/
constructor() {
}
Expand Down Expand Up @@ -78,6 +80,13 @@ class StackMajorVersion {
}
}
}
},
applicationInsights: {
required: false,
serializedName: 'applicationInsights',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions lib/services/websiteManagement2/lib/models/vnetInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class VnetInfo extends models['ProxyOnlyResource'] {
* required; otherwise, <code>false</code>.
* @property {string} [dnsServers] DNS servers to be used by this Virtual
* Network. This should be a comma-separated list of IP addresses.
* @property {boolean} [isSwift] Flag that is used to denote if this is VNET
* injection
*/
constructor() {
super();
Expand Down Expand Up @@ -133,6 +135,13 @@ class VnetInfo extends models['ProxyOnlyResource'] {
type: {
name: 'String'
}
},
isSwift: {
required: false,
serializedName: 'properties.isSwift',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
Loading