diff --git a/sdk/appservice/arm-appservice/package.json b/sdk/appservice/arm-appservice/package.json index 3b79f69082dd..2ed38981c18c 100644 --- a/sdk/appservice/arm-appservice/package.json +++ b/sdk/appservice/arm-appservice/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appservice/arm-appservice", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/appservice/arm-appservice", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/appservice/arm-appservice/src/models/index.ts b/sdk/appservice/arm-appservice/src/models/index.ts index ff353311f7e7..661b0029dd76 100644 --- a/sdk/appservice/arm-appservice/src/models/index.ts +++ b/sdk/appservice/arm-appservice/src/models/index.ts @@ -6242,9 +6242,13 @@ export interface StaticSiteARMResource extends Resource { readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; /** * The provider that submitted the last deployment to the primary environment of the static site. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provider?: string; + provider?: string; + /** + * State indicating the status of the enterprise grade CDN serving traffic to the static web app. + * Possible values include: 'Enabled', 'Enabling', 'Disabled', 'Disabling' + */ + enterpriseGradeCdnStatus?: EnterpriseGradeCdnStatus; sku?: SkuDescription; identity?: ManagedServiceIdentity; } @@ -6420,9 +6424,13 @@ export interface StaticSitePatchResource extends ProxyOnlyResource { readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; /** * The provider that submitted the last deployment to the primary environment of the static site. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provider?: string; + provider?: string; + /** + * State indicating the status of the enterprise grade CDN serving traffic to the static web app. + * Possible values include: 'Enabled', 'Enabling', 'Disabled', 'Disabling' + */ + enterpriseGradeCdnStatus?: EnterpriseGradeCdnStatus; } /** @@ -6609,7 +6617,7 @@ export interface AllowedAudiencesValidation { /** * The configuration settings of the Azure Active Directory allowed principals. */ -export interface AllowedPrincipals extends ProxyOnlyResource { +export interface AllowedPrincipals { /** * The list of the allowed groups. */ @@ -6647,7 +6655,7 @@ export interface ApiKVReference extends ProxyOnlyResource { * The configuration settings of the app registration for providers that have app ids and app * secrets */ -export interface AppRegistration extends ProxyOnlyResource { +export interface AppRegistration { /** * The App ID of the app used for login. */ @@ -6685,7 +6693,7 @@ export interface LoginScopes { /** * The configuration settings of the Apple provider. */ -export interface Apple extends ProxyOnlyResource { +export interface Apple { /** * false if the Apple provider should not be enabled despite the set registration; * otherwise, true. @@ -6789,7 +6797,7 @@ export interface AuthPlatform { /** * The configuration settings of the Azure Active Directory app registration. */ -export interface AzureActiveDirectoryRegistration extends ProxyOnlyResource { +export interface AzureActiveDirectoryRegistration { /** * The OpenID Connect Issuer URI that represents the entity which issues access tokens for this * application. @@ -6835,7 +6843,7 @@ export interface AzureActiveDirectoryRegistration extends ProxyOnlyResource { /** * The configuration settings of the Azure Active Directory login flow. */ -export interface AzureActiveDirectoryLogin extends ProxyOnlyResource { +export interface AzureActiveDirectoryLogin { /** * Login parameters to send to the OpenID Connect authorization endpoint when * a user logs in. Each parameter must be in the form "key=value". @@ -6879,7 +6887,7 @@ export interface DefaultAuthorizationPolicy { /** * The configuration settings of the Azure Active Directory token validation flow. */ -export interface AzureActiveDirectoryValidation extends ProxyOnlyResource { +export interface AzureActiveDirectoryValidation { /** * The configuration settings of the checks that should be made while validating the JWT Claims. */ @@ -6959,7 +6967,7 @@ export interface AzureStaticWebAppsRegistration { /** * The configuration settings of the Azure Static Web Apps provider. */ -export interface AzureStaticWebApps extends ProxyOnlyResource { +export interface AzureStaticWebApps { /** * false if the Azure Static Web Apps provider should not be enabled despite the set * registration; otherwise, true. @@ -7147,7 +7155,7 @@ export interface BackupRequest extends ProxyOnlyResource { /** * The configuration settings of the storage of the tokens if blob storage is used. */ -export interface BlobStorageTokenStore extends ProxyOnlyResource { +export interface BlobStorageTokenStore { /** * The name of the app setting containing the SAS URL of the blob storage containing the tokens. */ @@ -7496,7 +7504,7 @@ export interface OpenIdConnectLogin { /** * The configuration settings of the custom Open ID Connect provider. */ -export interface CustomOpenIdConnectProvider extends ProxyOnlyResource { +export interface CustomOpenIdConnectProvider { /** * false if the custom Open ID provider provider should not be enabled; otherwise, * true. @@ -7739,7 +7747,7 @@ export interface FunctionSecrets { /** * The configuration settings of the GitHub provider. */ -export interface GitHub extends ProxyOnlyResource { +export interface GitHub { /** * false if the GitHub provider should not be enabled despite the set registration; * otherwise, true. @@ -7845,7 +7853,7 @@ export interface GlobalValidation { /** * The configuration settings of the Google provider. */ -export interface Google extends ProxyOnlyResource { +export interface Google { /** * false if the Google provider should not be enabled despite the set registration; * otherwise, true. @@ -7970,6 +7978,29 @@ export interface HttpSettings { forwardProxy?: ForwardProxy; } +/** + * The configuration settings of the legacy Microsoft Account provider. + */ +export interface LegacyMicrosoftAccount { + /** + * false if the legacy Microsoft Account provider should not be enabled despite the + * set registration; otherwise, true. + */ + enabled?: boolean; + /** + * The configuration settings of the app registration for the legacy Microsoft Account provider. + */ + registration?: ClientRegistration; + /** + * The configuration settings of the login flow. + */ + login?: LoginScopes; + /** + * The configuration settings of the legacy Microsoft Account provider token validation flow. + */ + validation?: AllowedAudiencesValidation; +} + /** * The configuration settings of the app registration for the Twitter provider. */ @@ -7990,7 +8021,7 @@ export interface TwitterRegistration { /** * The configuration settings of the Twitter provider. */ -export interface Twitter extends ProxyOnlyResource { +export interface Twitter { /** * false if the Twitter provider should not be enabled despite the set registration; * otherwise, true. @@ -8002,29 +8033,6 @@ export interface Twitter extends ProxyOnlyResource { registration?: TwitterRegistration; } -/** - * The configuration settings of the legacy Microsoft Account provider. - */ -export interface LegacyMicrosoftAccount extends ProxyOnlyResource { - /** - * false if the legacy Microsoft Account provider should not be enabled despite the - * set registration; otherwise, true. - */ - enabled?: boolean; - /** - * The configuration settings of the app registration for the legacy Microsoft Account provider. - */ - registration?: ClientRegistration; - /** - * The configuration settings of the login flow. - */ - login?: LoginScopes; - /** - * The configuration settings of the legacy Microsoft Account provider token validation flow. - */ - validation?: AllowedAudiencesValidation; -} - /** * The configuration settings of each of the identity providers used to configure App Service * Authentication/Authorization. @@ -8046,19 +8054,14 @@ export interface IdentityProviders { * The configuration settings of the Google provider. */ google?: Google; - /** - * The configuration settings of the Twitter provider. - */ - twitter?: Twitter; - /** - * The map of the name of the alias of each custom Open ID Connect provider to the - * configuration settings of the custom Open ID Connect provider. - */ - customOpenIdConnectProviders?: { [propertyName: string]: CustomOpenIdConnectProvider }; /** * The configuration settings of the legacy Microsoft Account provider. */ legacyMicrosoftAccount?: LegacyMicrosoftAccount; + /** + * The configuration settings of the Twitter provider. + */ + twitter?: Twitter; /** * The configuration settings of the Apple provider. */ @@ -8067,6 +8070,11 @@ export interface IdentityProviders { * The configuration settings of the Azure Static Web Apps provider. */ azureStaticWebApps?: AzureStaticWebApps; + /** + * The map of the name of the alias of each custom Open ID Connect provider to the + * configuration settings of the custom Open ID Connect provider. + */ + customOpenIdConnectProviders?: { [propertyName: string]: CustomOpenIdConnectProvider }; } /** @@ -12702,6 +12710,14 @@ export type ValidateResourceTypes = 'ServerFarm' | 'Site' | 'Microsoft.Web/hosti */ export type StagingEnvironmentPolicy = 'Enabled' | 'Disabled'; +/** + * Defines values for EnterpriseGradeCdnStatus. + * Possible values include: 'Enabled', 'Enabling', 'Disabled', 'Disabling' + * @readonly + * @enum {string} + */ +export type EnterpriseGradeCdnStatus = 'Enabled' | 'Enabling' | 'Disabled' | 'Disabling'; + /** * Defines values for BuildStatus. * Possible values include: 'WaitingForDeployment', 'Uploading', 'Deploying', 'Ready', 'Failed', diff --git a/sdk/appservice/arm-appservice/src/models/mappers.ts b/sdk/appservice/arm-appservice/src/models/mappers.ts index 43e4f061d4bb..adce1715ac08 100644 --- a/sdk/appservice/arm-appservice/src/models/mappers.ts +++ b/sdk/appservice/arm-appservice/src/models/mappers.ts @@ -10844,12 +10844,17 @@ export const StaticSiteARMResource: msRest.CompositeMapper = { } }, provider: { - readOnly: true, serializedName: "properties.provider", type: { name: "String" } }, + enterpriseGradeCdnStatus: { + serializedName: "properties.enterpriseGradeCdnStatus", + type: { + name: "String" + } + }, sku: { serializedName: "sku", type: { @@ -11145,11 +11150,16 @@ export const StaticSitePatchResource: msRest.CompositeMapper = { } }, provider: { - readOnly: true, serializedName: "properties.provider", type: { name: "String" } + }, + enterpriseGradeCdnStatus: { + serializedName: "properties.enterpriseGradeCdnStatus", + type: { + name: "String" + } } } } @@ -11457,9 +11467,8 @@ export const AllowedPrincipals: msRest.CompositeMapper = { name: "Composite", className: "AllowedPrincipals", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, groups: { - serializedName: "properties.groups", + serializedName: "groups", type: { name: "Sequence", element: { @@ -11470,7 +11479,7 @@ export const AllowedPrincipals: msRest.CompositeMapper = { } }, identities: { - serializedName: "properties.identities", + serializedName: "identities", type: { name: "Sequence", element: { @@ -11572,15 +11581,14 @@ export const AppRegistration: msRest.CompositeMapper = { name: "Composite", className: "AppRegistration", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, appId: { - serializedName: "properties.appId", + serializedName: "appId", type: { name: "String" } }, appSecretSettingName: { - serializedName: "properties.appSecretSettingName", + serializedName: "appSecretSettingName", type: { name: "String" } @@ -11638,22 +11646,21 @@ export const Apple: msRest.CompositeMapper = { name: "Composite", className: "Apple", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", + serializedName: "registration", type: { name: "Composite", className: "AppleRegistration" } }, login: { - serializedName: "properties.login", + serializedName: "login", type: { name: "Composite", className: "LoginScopes" @@ -11817,39 +11824,38 @@ export const AzureActiveDirectoryRegistration: msRest.CompositeMapper = { name: "Composite", className: "AzureActiveDirectoryRegistration", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, openIdIssuer: { - serializedName: "properties.openIdIssuer", + serializedName: "openIdIssuer", type: { name: "String" } }, clientId: { - serializedName: "properties.clientId", + serializedName: "clientId", type: { name: "String" } }, clientSecretSettingName: { - serializedName: "properties.clientSecretSettingName", + serializedName: "clientSecretSettingName", type: { name: "String" } }, clientSecretCertificateThumbprint: { - serializedName: "properties.clientSecretCertificateThumbprint", + serializedName: "clientSecretCertificateThumbprint", type: { name: "String" } }, clientSecretCertificateSubjectAlternativeName: { - serializedName: "properties.clientSecretCertificateSubjectAlternativeName", + serializedName: "clientSecretCertificateSubjectAlternativeName", type: { name: "String" } }, clientSecretCertificateIssuer: { - serializedName: "properties.clientSecretCertificateIssuer", + serializedName: "clientSecretCertificateIssuer", type: { name: "String" } @@ -11864,9 +11870,8 @@ export const AzureActiveDirectoryLogin: msRest.CompositeMapper = { name: "Composite", className: "AzureActiveDirectoryLogin", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, loginParameters: { - serializedName: "properties.loginParameters", + serializedName: "loginParameters", type: { name: "Sequence", element: { @@ -11877,7 +11882,7 @@ export const AzureActiveDirectoryLogin: msRest.CompositeMapper = { } }, disableWWWAuthenticate: { - serializedName: "properties.disableWWWAuthenticate", + serializedName: "disableWWWAuthenticate", type: { name: "Boolean" } @@ -11952,16 +11957,15 @@ export const AzureActiveDirectoryValidation: msRest.CompositeMapper = { name: "Composite", className: "AzureActiveDirectoryValidation", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, jwtClaimChecks: { - serializedName: "properties.jwtClaimChecks", + serializedName: "jwtClaimChecks", type: { name: "Composite", className: "JwtClaimChecks" } }, allowedAudiences: { - serializedName: "properties.allowedAudiences", + serializedName: "allowedAudiences", type: { name: "Sequence", element: { @@ -11972,7 +11976,7 @@ export const AzureActiveDirectoryValidation: msRest.CompositeMapper = { } }, defaultAuthorizationPolicy: { - serializedName: "properties.defaultAuthorizationPolicy", + serializedName: "defaultAuthorizationPolicy", type: { name: "Composite", className: "DefaultAuthorizationPolicy" @@ -12075,15 +12079,14 @@ export const AzureStaticWebApps: msRest.CompositeMapper = { name: "Composite", className: "AzureStaticWebApps", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", + serializedName: "registration", type: { name: "Composite", className: "AzureStaticWebAppsRegistration" @@ -12392,9 +12395,8 @@ export const BlobStorageTokenStore: msRest.CompositeMapper = { name: "Composite", className: "BlobStorageTokenStore", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, sasUrlSettingName: { - serializedName: "properties.sasUrlSettingName", + serializedName: "sasUrlSettingName", type: { name: "String" } @@ -13155,22 +13157,21 @@ export const CustomOpenIdConnectProvider: msRest.CompositeMapper = { name: "Composite", className: "CustomOpenIdConnectProvider", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", + serializedName: "registration", type: { name: "Composite", className: "OpenIdConnectRegistration" } }, login: { - serializedName: "properties.login", + serializedName: "login", type: { name: "Composite", className: "OpenIdConnectLogin" @@ -13535,22 +13536,21 @@ export const GitHub: msRest.CompositeMapper = { name: "Composite", className: "GitHub", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", + serializedName: "registration", type: { name: "Composite", className: "ClientRegistration" } }, login: { - serializedName: "properties.login", + serializedName: "login", type: { name: "Composite", className: "LoginScopes" @@ -13703,29 +13703,28 @@ export const Google: msRest.CompositeMapper = { name: "Composite", className: "Google", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", + serializedName: "registration", type: { name: "Composite", className: "ClientRegistration" } }, login: { - serializedName: "properties.login", + serializedName: "login", type: { name: "Composite", className: "LoginScopes" } }, validation: { - serializedName: "properties.validation", + serializedName: "validation", type: { name: "Composite", className: "AllowedAudiencesValidation" @@ -13926,84 +13925,82 @@ export const HttpSettings: msRest.CompositeMapper = { } }; -export const TwitterRegistration: msRest.CompositeMapper = { - serializedName: "TwitterRegistration", +export const LegacyMicrosoftAccount: msRest.CompositeMapper = { + serializedName: "LegacyMicrosoftAccount", type: { name: "Composite", - className: "TwitterRegistration", + className: "LegacyMicrosoftAccount", modelProperties: { - consumerKey: { - serializedName: "consumerKey", + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } }, - consumerSecretSettingName: { - serializedName: "consumerSecretSettingName", + registration: { + serializedName: "registration", type: { - name: "String" + name: "Composite", + className: "ClientRegistration" + } + }, + login: { + serializedName: "login", + type: { + name: "Composite", + className: "LoginScopes" + } + }, + validation: { + serializedName: "validation", + type: { + name: "Composite", + className: "AllowedAudiencesValidation" } } } } }; -export const Twitter: msRest.CompositeMapper = { - serializedName: "Twitter", +export const TwitterRegistration: msRest.CompositeMapper = { + serializedName: "TwitterRegistration", type: { name: "Composite", - className: "Twitter", + className: "TwitterRegistration", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", + consumerKey: { + serializedName: "consumerKey", type: { - name: "Boolean" + name: "String" } }, - registration: { - serializedName: "properties.registration", + consumerSecretSettingName: { + serializedName: "consumerSecretSettingName", type: { - name: "Composite", - className: "TwitterRegistration" + name: "String" } } } } }; -export const LegacyMicrosoftAccount: msRest.CompositeMapper = { - serializedName: "LegacyMicrosoftAccount", +export const Twitter: msRest.CompositeMapper = { + serializedName: "Twitter", type: { name: "Composite", - className: "LegacyMicrosoftAccount", + className: "Twitter", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", - type: { - name: "Composite", - className: "ClientRegistration" - } - }, - login: { - serializedName: "properties.login", - type: { - name: "Composite", - className: "LoginScopes" - } - }, - validation: { - serializedName: "properties.validation", + serializedName: "registration", type: { name: "Composite", - className: "AllowedAudiencesValidation" + className: "TwitterRegistration" } } } @@ -14044,30 +14041,18 @@ export const IdentityProviders: msRest.CompositeMapper = { className: "Google" } }, - twitter: { - serializedName: "twitter", + legacyMicrosoftAccount: { + serializedName: "legacyMicrosoftAccount", type: { name: "Composite", - className: "Twitter" - } - }, - customOpenIdConnectProviders: { - serializedName: "customOpenIdConnectProviders", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "CustomOpenIdConnectProvider" - } - } + className: "LegacyMicrosoftAccount" } }, - legacyMicrosoftAccount: { - serializedName: "legacyMicrosoftAccount", + twitter: { + serializedName: "twitter", type: { name: "Composite", - className: "LegacyMicrosoftAccount" + className: "Twitter" } }, apple: { @@ -14083,6 +14068,18 @@ export const IdentityProviders: msRest.CompositeMapper = { name: "Composite", className: "AzureStaticWebApps" } + }, + customOpenIdConnectProviders: { + serializedName: "customOpenIdConnectProviders", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "CustomOpenIdConnectProvider" + } + } + } } } } diff --git a/sdk/appservice/arm-appservice/src/webSiteManagementClientContext.ts b/sdk/appservice/arm-appservice/src/webSiteManagementClientContext.ts index 9f4767bb0eaf..83b82ee9709d 100644 --- a/sdk/appservice/arm-appservice/src/webSiteManagementClientContext.ts +++ b/sdk/appservice/arm-appservice/src/webSiteManagementClientContext.ts @@ -50,7 +50,7 @@ export class WebSiteManagementClientContext extends msRestAzure.AzureServiceClie super(credentials, options); - this.apiVersion = '2021-02-01'; + this.apiVersion = '2021-03-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";