diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index d37dbec8470c..620854a927b9 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -9484,28 +9484,27 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-79GutIGaerSomLUxypQIAx3HwKKg9YDBPXfVS5RwTp+vBQ+By8GTAYmZuMNuh4iLy+YQeILIcBF8Tw5JzT5kNw==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-PrqHsdsLXtXE/FARQlcw4VjE88o3NUHqYHxql3r9zfUAxDe3saoDMmW+Z8OS9rniyBJsmSf8mZpSD8rb6XEQBQ==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 - '@microsoft/api-extractor': 7.18.11 - '@rollup/plugin-commonjs': 21.0.3_rollup@2.70.1 - '@rollup/plugin-json': 4.1.0_rollup@2.70.1 - '@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.1 - '@rollup/plugin-node-resolve': 13.2.0_rollup@2.70.1 + '@microsoft/api-extractor': 7.22.1 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.70.1 - rollup-plugin-sourcemaps: 0.6.3_rollup@2.70.1 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.4 transitivePeerDependencies: - - '@types/node' - debug - encoding - supports-color @@ -15021,7 +15020,7 @@ packages: dev: false file:projects/dtdl-parser.tgz: - resolution: {integrity: sha512-/Dpf2haY7btQZGQuvHBOvp+FV73jJdRtvEb9Iq2FlChhxnlxi3rnU+c5d3RiTER/V7CN2eTqZTmGqU81I5hofA==, tarball: file:projects/dtdl-parser.tgz} + resolution: {integrity: sha512-4fU57xg4ogr10JRjNfFZSQHD/efBKZZGYEsX6yLNQLr7d+v8DeUkBR6wL01Eu2X4BVVSWkhB+Hg+cgnbhlxQfg==, tarball: file:projects/dtdl-parser.tgz} name: '@rush-temp/dtdl-parser' version: 0.0.0 dependencies: @@ -15468,7 +15467,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-eYZc1OhjpW+iMs7ckvpoPSXLSq0Z4otKFuEFl8wcsvlTyeqq/bjRElOHVmNwl4dtRw1fNy4DGQUdoH5aXsT17w==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-qEzFrCUOGxmgQ19d6cFJDtwdEhlb6Dn9yYLO5yrMg8KYyH6hLQa5JaxVbgvfK6ZFneTaYVaLnEMiZzmzXMgZVg==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -15989,7 +15988,7 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-Fe2F+/VXo+2tFHmXPDJLFMmhQOYnX5wSqu+TG6Msek9ViI1x/cL8DhW3LcMwUvw5ohysFX8QsTfd9OPKO1msaQ==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-rWiPsZxSnuYGdFux77mxyZBjJ1I9LgMWvb+x04sDyizzAp4495+V81pN9O+9btqu1hr72zKv/hNseMEpUEf31A==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: diff --git a/sdk/appservice/arm-appservice/CHANGELOG.md b/sdk/appservice/arm-appservice/CHANGELOG.md index 5e5aac94471a..8238c1b4d4fa 100644 --- a/sdk/appservice/arm-appservice/CHANGELOG.md +++ b/sdk/appservice/arm-appservice/CHANGELOG.md @@ -1,15 +1,96 @@ # Release History + +## 13.0.0 (2022-04-25) + +**Features** -## 12.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation StaticSites.beginLinkBackend + - Added operation StaticSites.beginLinkBackendAndWait + - Added operation StaticSites.beginLinkBackendToBuild + - Added operation StaticSites.beginLinkBackendToBuildAndWait + - Added operation StaticSites.beginValidateBackend + - Added operation StaticSites.beginValidateBackendAndWait + - Added operation StaticSites.beginValidateBackendForBuild + - Added operation StaticSites.beginValidateBackendForBuildAndWait + - Added operation StaticSites.getLinkedBackend + - Added operation StaticSites.getLinkedBackendForBuild + - Added operation StaticSites.listLinkedBackends + - Added operation StaticSites.listLinkedBackendsForBuild + - Added operation StaticSites.unlinkBackend + - Added operation StaticSites.unlinkBackendFromBuild + - Added operation WebApps.createOneDeployOperation + - Added operation WebApps.getAuthSettingsV2WithoutSecretsSlot + - Added operation WebApps.getOneDeployStatus + - Added Interface CertificateEmail + - Added Interface CertificateOrderAction + - Added Interface StaticSiteLinkedBackend + - Added Interface StaticSiteLinkedBackendsCollection + - Added Interface StaticSitesGetLinkedBackendForBuildOptionalParams + - Added Interface StaticSitesGetLinkedBackendOptionalParams + - Added Interface StaticSitesGetLinkedBackendsForBuildNextOptionalParams + - Added Interface StaticSitesGetLinkedBackendsForBuildOptionalParams + - Added Interface StaticSitesGetLinkedBackendsNextOptionalParams + - Added Interface StaticSitesGetLinkedBackendsOptionalParams + - Added Interface StaticSitesLinkBackendOptionalParams + - Added Interface StaticSitesLinkBackendToBuildOptionalParams + - Added Interface StaticSitesUnlinkBackendFromBuildOptionalParams + - Added Interface StaticSitesUnlinkBackendOptionalParams + - Added Interface StaticSitesValidateBackendForBuildOptionalParams + - Added Interface StaticSitesValidateBackendOptionalParams + - Added Interface WebAppsCreateOneDeployOperationOptionalParams + - Added Interface WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams + - Added Interface WebAppsGetOneDeployStatusOptionalParams + - Added Type Alias Enum12 + - Added Type Alias Enum13 + - Added Type Alias Enum14 + - Added Type Alias ResourceNotRenewableReason + - Added Type Alias StaticSiteLinkedBackendARMResource + - Added Type Alias StaticSitesGetLinkedBackendForBuildResponse + - Added Type Alias StaticSitesGetLinkedBackendResponse + - Added Type Alias StaticSitesGetLinkedBackendsForBuildNextResponse + - Added Type Alias StaticSitesGetLinkedBackendsForBuildResponse + - Added Type Alias StaticSitesGetLinkedBackendsNextResponse + - Added Type Alias StaticSitesGetLinkedBackendsResponse + - Added Type Alias StaticSitesLinkBackendResponse + - Added Type Alias StaticSitesLinkBackendToBuildResponse + - Added Type Alias WebAppsCreateOneDeployOperationResponse + - Added Type Alias WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse + - Added Type Alias WebAppsGetOneDeployStatusResponse + - Interface AppServiceEnvironment has a new optional parameter networkingConfiguration + - Type Alias AppServiceEnvironmentPatchResource has a new parameter networkingConfiguration + - Type Alias AppServiceEnvironmentResource has a new parameter networkingConfiguration + - Type Alias AseV3NetworkingConfiguration has a new parameter ftpEnabled + - Type Alias AseV3NetworkingConfiguration has a new parameter remoteDebugEnabled + - Type Alias AseV3NetworkingConfiguration has a new parameter numberOfOutboundIpAddresses + - Type Alias AseV3NetworkingConfiguration has a new parameter inboundIpAddressOverride + - Type Alias AseV3NetworkingConfiguration has a new parameter targetNumberOfOutboundIpAddresses + - Type Alias Site has a new parameter vnetRouteAllEnabled + - Type Alias Site has a new parameter vnetImagePullEnabled + - Type Alias Site has a new parameter vnetContentShareEnabled + - Type Alias StaticSiteARMResource has a new parameter linkedBackends + - Type Alias StaticSiteBuildARMResource has a new parameter linkedBackends + - Type Alias StaticSitePatchResource has a new parameter linkedBackends + - Added Enum KnownEnum12 + - Added Enum KnownEnum13 + - Added Enum KnownEnum14 + - Added Enum KnownResourceNotRenewableReason + - Enum KnownCustomDomainStatus has a new value Unhealthy + - Enum KnownEnum17 has a new value LinuxFunctions + - Enum KnownEnum17 has a new value WindowsFunctions -### Other Changes +**Breaking Changes** + - Removed Enum KnownAppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem + - Removed Enum KnownAppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem + - Removed Enum KnownDomainPatchResourcePropertiesDomainNotRenewableReasonsItem + - Removed Enum KnownDomainPropertiesDomainNotRenewableReasonsItem + - Removed Enum KnownEnum18 + - Removed Enum KnownEnum19 + - Removed Enum KnownEnum20 + - Enum KnownEnum15 no longer has value LinuxFunctions + - Enum KnownEnum15 no longer has value WindowsFunctions + + ## 12.0.0 (2022-04-07) **Features** diff --git a/sdk/appservice/arm-appservice/README.md b/sdk/appservice/arm-appservice/README.md index 42f4107eb1a4..4d6ce450b076 100644 --- a/sdk/appservice/arm-appservice/README.md +++ b/sdk/appservice/arm-appservice/README.md @@ -16,8 +16,6 @@ WebSite Management Client - [LTS versions of Node.js](https://nodejs.org/about/releases/) - Latest versions of Safari, Chrome, Edge and Firefox. -See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. - ### Prerequisites - An [Azure subscription][azure_sub]. @@ -51,17 +49,8 @@ For more information about how to create an Azure AD Application check out [this ```javascript const { WebSiteManagementClient } = require("@azure/arm-appservice"); const { DefaultAzureCredential } = require("@azure/identity"); -// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. - const subscriptionId = "00000000-0000-0000-0000-000000000000"; const client = new WebSiteManagementClient(new DefaultAzureCredential(), subscriptionId); - -// For client-side applications running in the browser, use this code instead: -// const credential = new InteractiveBrowserCredential({ -// tenantId: "", -// clientId: "" -// }); -// const client = new WebSiteManagementClient(credential, subscriptionId); ``` diff --git a/sdk/appservice/arm-appservice/_meta.json b/sdk/appservice/arm-appservice/_meta.json index 59b632fd1f20..7b6182b3abfc 100644 --- a/sdk/appservice/arm-appservice/_meta.json +++ b/sdk/appservice/arm-appservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "54ee1a9eb50c13e0790627749f986c886ad4f4db", - "readme": "specification\\web\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\attestation\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.18.20220329.1 --generate-sample=true", + "commit": "d487b30c5f395e7ead95384d1e4be4dfcc497d61", + "readme": "specification/web/resource-manager/readme.md", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/web/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.2.1", - "use": "@autorest/typescript@6.0.0-alpha.18.20220329.1" -} + "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" +} \ No newline at end of file diff --git a/sdk/appservice/arm-appservice/package.json b/sdk/appservice/arm-appservice/package.json index 538f5e4782bc..24d2d762a51f 100644 --- a/sdk/appservice/arm-appservice/package.json +++ b/sdk/appservice/arm-appservice/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for WebSiteManagementClient.", - "version": "12.0.1", + "version": "13.0.0", "engines": { "node": ">=12.0.0" }, @@ -28,14 +28,14 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-appservice.d.ts", "devDependencies": { - "@microsoft/api-extractor": "7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-multi-entry": "^4.1.0", - "@rollup/plugin-node-resolve": "^13.1.3", + "@microsoft/api-extractor": "^7.18.11", + "@rollup/plugin-commonjs": "11.0.2", + "@rollup/plugin-json": "^4.0.0", + "@rollup/plugin-multi-entry": "^3.0.0", + "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.66.1", - "rollup-plugin-sourcemaps": "^0.6.3", + "rollup": "^1.16.3", + "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", @@ -98,21 +98,5 @@ "docs": "echo skipped" }, "sideEffects": false, - "//metadata": { - "constantPaths": [ - { - "path": "src/webSiteManagementClient.ts", - "prefix": "packageDetails" - } - ] - }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appservice?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/appservice/arm-appservice/review/arm-appservice.api.md b/sdk/appservice/arm-appservice/review/arm-appservice.api.md index 10ff9d5adce1..2fba743d5938 100644 --- a/sdk/appservice/arm-appservice/review/arm-appservice.api.md +++ b/sdk/appservice/arm-appservice/review/arm-appservice.api.md @@ -195,7 +195,7 @@ export type AppServiceCertificateOrder = Resource & { readonly lastCertificateIssuanceTime?: Date; readonly expirationTime?: Date; readonly isPrivateKeyExternal?: boolean; - readonly appServiceCertificateNotRenewableReasons?: AppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem[]; + readonly appServiceCertificateNotRenewableReasons?: ResourceNotRenewableReason[]; readonly nextAutoRenewalTimeStamp?: Date; readonly contact?: CertificateOrderContact; }; @@ -227,17 +227,11 @@ export type AppServiceCertificateOrderPatchResource = ProxyOnlyResource & { readonly lastCertificateIssuanceTime?: Date; readonly expirationTime?: Date; readonly isPrivateKeyExternal?: boolean; - readonly appServiceCertificateNotRenewableReasons?: AppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem[]; + readonly appServiceCertificateNotRenewableReasons?: ResourceNotRenewableReason[]; readonly nextAutoRenewalTimeStamp?: Date; readonly contact?: CertificateOrderContact; }; -// @public -export type AppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem = string; - -// @public -export type AppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem = string; - // @public export interface AppServiceCertificateOrders { beginCreateOrUpdate(resourceGroupName: string, certificateOrderName: string, certificateDistinguishedName: AppServiceCertificateOrder, options?: AppServiceCertificateOrdersCreateOrUpdateOptionalParams): Promise, AppServiceCertificateOrdersCreateOrUpdateResponse>>; @@ -431,6 +425,7 @@ export interface AppServiceEnvironment { readonly maximumNumberOfMachines?: number; readonly multiRoleCount?: number; multiSize?: string; + networkingConfiguration?: AseV3NetworkingConfiguration; readonly provisioningState?: ProvisioningState; readonly status?: HostingEnvironmentStatus; readonly suspended?: boolean; @@ -463,6 +458,7 @@ export type AppServiceEnvironmentPatchResource = ProxyOnlyResource & { readonly hasLinuxWorkers?: boolean; dedicatedHostCount?: number; zoneRedundant?: boolean; + networkingConfiguration?: AseV3NetworkingConfiguration; }; // @public @@ -483,6 +479,7 @@ export type AppServiceEnvironmentResource = Resource & { readonly hasLinuxWorkers?: boolean; dedicatedHostCount?: number; zoneRedundant?: boolean; + networkingConfiguration?: AseV3NetworkingConfiguration; }; // @public @@ -1388,6 +1385,11 @@ export type AseV3NetworkingConfiguration = ProxyOnlyResource & { readonly externalInboundIpAddresses?: string[]; readonly internalInboundIpAddresses?: string[]; allowNewPrivateEndpointConnections?: boolean; + ftpEnabled?: boolean; + remoteDebugEnabled?: boolean; + numberOfOutboundIpAddresses?: number; + inboundIpAddressOverride?: string; + readonly targetNumberOfOutboundIpAddresses?: number; }; // @public @@ -1647,16 +1649,16 @@ export interface CertificateDetails { } // @public -export type CertificateEmail = ProxyOnlyResource & { +export interface CertificateEmail { emailId?: string; timeStamp?: Date; -}; +} // @public -export type CertificateOrderAction = ProxyOnlyResource & { +export interface CertificateOrderAction { readonly actionType?: CertificateOrderActionType; readonly createdAt?: Date; -}; +} // @public export type CertificateOrderActionType = "CertificateIssued" | "CertificateOrderCanceled" | "CertificateOrderCreated" | "CertificateRevoked" | "DomainValidationComplete" | "FraudDetected" | "OrgNameChange" | "OrgValidationComplete" | "SanDrop" | "FraudCleared" | "CertificateExpired" | "CertificateExpirationWarning" | "FraudDocumentationRequired" | "Unknown"; @@ -2931,7 +2933,7 @@ export type Domain = Resource & { readonly readyForDnsRecordManagement?: boolean; readonly managedHostNames?: HostName[]; consent?: DomainPurchaseConsent; - readonly domainNotRenewableReasons?: DomainPropertiesDomainNotRenewableReasonsItem[]; + readonly domainNotRenewableReasons?: ResourceNotRenewableReason[]; dnsType?: DnsType; dnsZoneId?: string; targetDnsType?: DnsType; @@ -2986,19 +2988,13 @@ export type DomainPatchResource = ProxyOnlyResource & { readonly readyForDnsRecordManagement?: boolean; readonly managedHostNames?: HostName[]; consent?: DomainPurchaseConsent; - readonly domainNotRenewableReasons?: DomainPatchResourcePropertiesDomainNotRenewableReasonsItem[]; + readonly domainNotRenewableReasons?: ResourceNotRenewableReason[]; dnsType?: DnsType; dnsZoneId?: string; targetDnsType?: DnsType; authCode?: string; }; -// @public -export type DomainPatchResourcePropertiesDomainNotRenewableReasonsItem = string; - -// @public -export type DomainPropertiesDomainNotRenewableReasonsItem = string; - // @public export interface DomainPurchaseConsent { agreedAt?: Date; @@ -3215,22 +3211,22 @@ export interface EndpointDetail { export type EnterpriseGradeCdnStatus = string; // @public -export type Enum15 = string; +export type Enum12 = string; // @public -export type Enum16 = string; +export type Enum13 = string; // @public -export type Enum17 = string; +export type Enum14 = string; // @public -export type Enum18 = string; +export type Enum15 = string; // @public -export type Enum19 = string; +export type Enum16 = string; // @public -export type Enum20 = string; +export type Enum17 = string; // @public export interface EnvironmentVar { @@ -3772,26 +3768,6 @@ export enum KnownActiveRevisionsMode { Single = "single" } -// @public -export enum KnownAppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem { - // (undocumented) - ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", - // (undocumented) - RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", - // (undocumented) - SubscriptionNotActive = "SubscriptionNotActive" -} - -// @public -export enum KnownAppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem { - // (undocumented) - ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", - // (undocumented) - RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", - // (undocumented) - SubscriptionNotActive = "SubscriptionNotActive" -} - // @public export enum KnownBuildStatus { // (undocumented) @@ -3855,6 +3831,8 @@ export enum KnownCustomDomainStatus { // (undocumented) RetrievingValidationToken = "RetrievingValidationToken", // (undocumented) + Unhealthy = "Unhealthy", + // (undocumented) Validating = "Validating" } @@ -3870,26 +3848,6 @@ export enum KnownDatabaseType { SqlAzure = "SqlAzure" } -// @public -export enum KnownDomainPatchResourcePropertiesDomainNotRenewableReasonsItem { - // (undocumented) - ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", - // (undocumented) - RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", - // (undocumented) - SubscriptionNotActive = "SubscriptionNotActive" -} - -// @public -export enum KnownDomainPropertiesDomainNotRenewableReasonsItem { - // (undocumented) - ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", - // (undocumented) - RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", - // (undocumented) - SubscriptionNotActive = "SubscriptionNotActive" -} - // @public export enum KnownEnterpriseGradeCdnStatus { // (undocumented) @@ -3903,7 +3861,7 @@ export enum KnownEnterpriseGradeCdnStatus { } // @public -export enum KnownEnum15 { +export enum KnownEnum12 { // (undocumented) All = "All", // (undocumented) @@ -3917,7 +3875,7 @@ export enum KnownEnum15 { } // @public -export enum KnownEnum16 { +export enum KnownEnum13 { // (undocumented) All = "All", // (undocumented) @@ -3927,7 +3885,7 @@ export enum KnownEnum16 { } // @public -export enum KnownEnum17 { +export enum KnownEnum14 { // (undocumented) All = "All", // (undocumented) @@ -3937,7 +3895,7 @@ export enum KnownEnum17 { } // @public -export enum KnownEnum18 { +export enum KnownEnum15 { // (undocumented) All = "All", // (undocumented) @@ -3947,7 +3905,7 @@ export enum KnownEnum18 { } // @public -export enum KnownEnum19 { +export enum KnownEnum16 { // (undocumented) All = "All", // (undocumented) @@ -3957,7 +3915,7 @@ export enum KnownEnum19 { } // @public -export enum KnownEnum20 { +export enum KnownEnum17 { // (undocumented) All = "All", // (undocumented) @@ -4030,6 +3988,16 @@ export enum KnownPublishingProfileFormat { WebDeploy = "WebDeploy" } +// @public +export enum KnownResourceNotRenewableReason { + // (undocumented) + ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", + // (undocumented) + RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", + // (undocumented) + SubscriptionNotActive = "SubscriptionNotActive" +} + // @public export enum KnownResourceScopeType { // (undocumented) @@ -4903,7 +4871,7 @@ export interface Provider { // @public export interface ProviderGetAvailableStacksNextOptionalParams extends coreClient.OperationOptions { // (undocumented) - osTypeSelected?: Enum15; + osTypeSelected?: Enum12; } // @public @@ -4912,7 +4880,7 @@ export type ProviderGetAvailableStacksNextResponse = ApplicationStackCollection; // @public export interface ProviderGetAvailableStacksOnPremNextOptionalParams extends coreClient.OperationOptions { // (undocumented) - osTypeSelected?: Enum20; + osTypeSelected?: Enum17; } // @public @@ -4921,7 +4889,7 @@ export type ProviderGetAvailableStacksOnPremNextResponse = ApplicationStackColle // @public export interface ProviderGetAvailableStacksOnPremOptionalParams extends coreClient.OperationOptions { // (undocumented) - osTypeSelected?: Enum20; + osTypeSelected?: Enum17; } // @public @@ -4930,7 +4898,7 @@ export type ProviderGetAvailableStacksOnPremResponse = ApplicationStackCollectio // @public export interface ProviderGetAvailableStacksOptionalParams extends coreClient.OperationOptions { // (undocumented) - osTypeSelected?: Enum15; + osTypeSelected?: Enum12; } // @public @@ -4938,7 +4906,7 @@ export type ProviderGetAvailableStacksResponse = ApplicationStackCollection; // @public export interface ProviderGetFunctionAppStacksForLocationNextOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum17; + stackOsType?: Enum14; } // @public @@ -4946,7 +4914,7 @@ export type ProviderGetFunctionAppStacksForLocationNextResponse = FunctionAppSta // @public export interface ProviderGetFunctionAppStacksForLocationOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum17; + stackOsType?: Enum14; } // @public @@ -4954,7 +4922,7 @@ export type ProviderGetFunctionAppStacksForLocationResponse = FunctionAppStackCo // @public export interface ProviderGetFunctionAppStacksNextOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum16; + stackOsType?: Enum13; } // @public @@ -4962,7 +4930,7 @@ export type ProviderGetFunctionAppStacksNextResponse = FunctionAppStackCollectio // @public export interface ProviderGetFunctionAppStacksOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum16; + stackOsType?: Enum13; } // @public @@ -4970,7 +4938,7 @@ export type ProviderGetFunctionAppStacksResponse = FunctionAppStackCollection; // @public export interface ProviderGetWebAppStacksForLocationNextOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum18; + stackOsType?: Enum15; } // @public @@ -4978,7 +4946,7 @@ export type ProviderGetWebAppStacksForLocationNextResponse = WebAppStackCollecti // @public export interface ProviderGetWebAppStacksForLocationOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum18; + stackOsType?: Enum15; } // @public @@ -4986,7 +4954,7 @@ export type ProviderGetWebAppStacksForLocationResponse = WebAppStackCollection; // @public export interface ProviderGetWebAppStacksNextOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum19; + stackOsType?: Enum16; } // @public @@ -4994,7 +4962,7 @@ export type ProviderGetWebAppStacksNextResponse = WebAppStackCollection; // @public export interface ProviderGetWebAppStacksOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum19; + stackOsType?: Enum16; } // @public @@ -5516,6 +5484,9 @@ export interface ResourceNameAvailabilityRequest { type: CheckNameResourceTypes; } +// @public +export type ResourceNotRenewableReason = string; + // @public export type ResourceScopeType = string; @@ -5652,6 +5623,9 @@ export type Site = Resource & { isXenon?: boolean; hyperV?: boolean; readonly lastModifiedTimeUtc?: Date; + vnetRouteAllEnabled?: boolean; + vnetImagePullEnabled?: boolean; + vnetContentShareEnabled?: boolean; siteConfig?: SiteConfig; readonly trafficManagerHostNames?: string[]; scmSiteAlsoStopped?: boolean; @@ -6270,6 +6244,7 @@ export type StaticSiteARMResource = Resource & { readonly contentDistributionEndpoint?: string; readonly keyVaultReferenceIdentity?: string; readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; + readonly linkedBackends?: StaticSiteLinkedBackend[]; provider?: string; enterpriseGradeCdnStatus?: EnterpriseGradeCdnStatus; }; @@ -6284,6 +6259,7 @@ export type StaticSiteBuildARMResource = ProxyOnlyResource & { readonly lastUpdatedOn?: Date; readonly status?: BuildStatus; readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; + readonly linkedBackends?: StaticSiteLinkedBackend[]; }; // @public @@ -6342,6 +6318,28 @@ export interface StaticSiteFunctionOverviewCollection { value: StaticSiteFunctionOverviewARMResource[]; } +// @public +export interface StaticSiteLinkedBackend { + backendResourceId?: string; + readonly createdOn?: Date; + readonly provisioningState?: string; + region?: string; +} + +// @public +export type StaticSiteLinkedBackendARMResource = ProxyOnlyResource & { + backendResourceId?: string; + region?: string; + readonly createdOn?: Date; + readonly provisioningState?: string; +}; + +// @public +export interface StaticSiteLinkedBackendsCollection { + readonly nextLink?: string; + value: StaticSiteLinkedBackendARMResource[]; +} + // @public export type StaticSitePatchResource = ProxyOnlyResource & { readonly defaultHostname?: string; @@ -6357,6 +6355,7 @@ export type StaticSitePatchResource = ProxyOnlyResource & { readonly contentDistributionEndpoint?: string; readonly keyVaultReferenceIdentity?: string; readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; + readonly linkedBackends?: StaticSiteLinkedBackend[]; provider?: string; enterpriseGradeCdnStatus?: EnterpriseGradeCdnStatus; }; @@ -6389,10 +6388,18 @@ export interface StaticSites { beginDeleteStaticSiteCustomDomainAndWait(resourceGroupName: string, name: string, domainName: string, options?: StaticSitesDeleteStaticSiteCustomDomainOptionalParams): Promise; beginDetachStaticSite(resourceGroupName: string, name: string, options?: StaticSitesDetachStaticSiteOptionalParams): Promise, void>>; beginDetachStaticSiteAndWait(resourceGroupName: string, name: string, options?: StaticSitesDetachStaticSiteOptionalParams): Promise; + beginLinkBackend(resourceGroupName: string, name: string, linkedBackendName: string, staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, options?: StaticSitesLinkBackendOptionalParams): Promise, StaticSitesLinkBackendResponse>>; + beginLinkBackendAndWait(resourceGroupName: string, name: string, linkedBackendName: string, staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, options?: StaticSitesLinkBackendOptionalParams): Promise; + beginLinkBackendToBuild(resourceGroupName: string, name: string, environmentName: string, linkedBackendName: string, staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, options?: StaticSitesLinkBackendToBuildOptionalParams): Promise, StaticSitesLinkBackendToBuildResponse>>; + beginLinkBackendToBuildAndWait(resourceGroupName: string, name: string, environmentName: string, linkedBackendName: string, staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, options?: StaticSitesLinkBackendToBuildOptionalParams): Promise; beginRegisterUserProvidedFunctionAppWithStaticSite(resourceGroupName: string, name: string, functionAppName: string, staticSiteUserProvidedFunctionEnvelope: StaticSiteUserProvidedFunctionAppARMResource, options?: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteOptionalParams): Promise, StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteResponse>>; beginRegisterUserProvidedFunctionAppWithStaticSiteAndWait(resourceGroupName: string, name: string, functionAppName: string, staticSiteUserProvidedFunctionEnvelope: StaticSiteUserProvidedFunctionAppARMResource, options?: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteOptionalParams): Promise; beginRegisterUserProvidedFunctionAppWithStaticSiteBuild(resourceGroupName: string, name: string, environmentName: string, functionAppName: string, staticSiteUserProvidedFunctionEnvelope: StaticSiteUserProvidedFunctionAppARMResource, options?: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildOptionalParams): Promise, StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse>>; beginRegisterUserProvidedFunctionAppWithStaticSiteBuildAndWait(resourceGroupName: string, name: string, environmentName: string, functionAppName: string, staticSiteUserProvidedFunctionEnvelope: StaticSiteUserProvidedFunctionAppARMResource, options?: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildOptionalParams): Promise; + beginValidateBackend(resourceGroupName: string, name: string, linkedBackendName: string, staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, options?: StaticSitesValidateBackendOptionalParams): Promise, void>>; + beginValidateBackendAndWait(resourceGroupName: string, name: string, linkedBackendName: string, staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, options?: StaticSitesValidateBackendOptionalParams): Promise; + beginValidateBackendForBuild(resourceGroupName: string, name: string, environmentName: string, linkedBackendName: string, staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, options?: StaticSitesValidateBackendForBuildOptionalParams): Promise, void>>; + beginValidateBackendForBuildAndWait(resourceGroupName: string, name: string, environmentName: string, linkedBackendName: string, staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, options?: StaticSitesValidateBackendForBuildOptionalParams): Promise; beginValidateCustomDomainCanBeAddedToStaticSite(resourceGroupName: string, name: string, domainName: string, staticSiteCustomDomainRequestPropertiesEnvelope: StaticSiteCustomDomainRequestPropertiesARMResource, options?: StaticSitesValidateCustomDomainCanBeAddedToStaticSiteOptionalParams): Promise, void>>; beginValidateCustomDomainCanBeAddedToStaticSiteAndWait(resourceGroupName: string, name: string, domainName: string, staticSiteCustomDomainRequestPropertiesEnvelope: StaticSiteCustomDomainRequestPropertiesARMResource, options?: StaticSitesValidateCustomDomainCanBeAddedToStaticSiteOptionalParams): Promise; createOrUpdateStaticSiteAppSettings(resourceGroupName: string, name: string, appSettings: StringDictionary, options?: StaticSitesCreateOrUpdateStaticSiteAppSettingsOptionalParams): Promise; @@ -6403,6 +6410,8 @@ export interface StaticSites { deleteStaticSiteUser(resourceGroupName: string, name: string, authprovider: string, userid: string, options?: StaticSitesDeleteStaticSiteUserOptionalParams): Promise; detachUserProvidedFunctionAppFromStaticSite(resourceGroupName: string, name: string, functionAppName: string, options?: StaticSitesDetachUserProvidedFunctionAppFromStaticSiteOptionalParams): Promise; detachUserProvidedFunctionAppFromStaticSiteBuild(resourceGroupName: string, name: string, environmentName: string, functionAppName: string, options?: StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildOptionalParams): Promise; + getLinkedBackend(resourceGroupName: string, name: string, linkedBackendName: string, options?: StaticSitesGetLinkedBackendOptionalParams): Promise; + getLinkedBackendForBuild(resourceGroupName: string, name: string, environmentName: string, linkedBackendName: string, options?: StaticSitesGetLinkedBackendForBuildOptionalParams): Promise; getPrivateEndpointConnection(resourceGroupName: string, name: string, privateEndpointConnectionName: string, options?: StaticSitesGetPrivateEndpointConnectionOptionalParams): Promise; getPrivateLinkResources(resourceGroupName: string, name: string, options?: StaticSitesGetPrivateLinkResourcesOptionalParams): Promise; getStaticSite(resourceGroupName: string, name: string, options?: StaticSitesGetStaticSiteOptionalParams): Promise; @@ -6411,6 +6420,8 @@ export interface StaticSites { getUserProvidedFunctionAppForStaticSite(resourceGroupName: string, name: string, functionAppName: string, options?: StaticSitesGetUserProvidedFunctionAppForStaticSiteOptionalParams): Promise; getUserProvidedFunctionAppForStaticSiteBuild(resourceGroupName: string, name: string, environmentName: string, functionAppName: string, options?: StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildOptionalParams): Promise; list(options?: StaticSitesListOptionalParams): PagedAsyncIterableIterator; + listLinkedBackends(resourceGroupName: string, name: string, options?: StaticSitesGetLinkedBackendsOptionalParams): PagedAsyncIterableIterator; + listLinkedBackendsForBuild(resourceGroupName: string, name: string, environmentName: string, options?: StaticSitesGetLinkedBackendsForBuildOptionalParams): PagedAsyncIterableIterator; listPrivateEndpointConnectionList(resourceGroupName: string, name: string, options?: StaticSitesGetPrivateEndpointConnectionListOptionalParams): PagedAsyncIterableIterator; listStaticSiteAppSettings(resourceGroupName: string, name: string, options?: StaticSitesListStaticSiteAppSettingsOptionalParams): Promise; listStaticSiteBuildAppSettings(resourceGroupName: string, name: string, environmentName: string, options?: StaticSitesListStaticSiteBuildAppSettingsOptionalParams): Promise; @@ -6428,6 +6439,8 @@ export interface StaticSites { listUserProvidedFunctionAppsForStaticSiteBuild(resourceGroupName: string, name: string, environmentName: string, options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildOptionalParams): PagedAsyncIterableIterator; previewWorkflow(location: string, staticSitesWorkflowPreviewRequest: StaticSitesWorkflowPreviewRequest, options?: StaticSitesPreviewWorkflowOptionalParams): Promise; resetStaticSiteApiKey(resourceGroupName: string, name: string, resetPropertiesEnvelope: StaticSiteResetPropertiesARMResource, options?: StaticSitesResetStaticSiteApiKeyOptionalParams): Promise; + unlinkBackend(resourceGroupName: string, name: string, linkedBackendName: string, options?: StaticSitesUnlinkBackendOptionalParams): Promise; + unlinkBackendFromBuild(resourceGroupName: string, name: string, environmentName: string, linkedBackendName: string, options?: StaticSitesUnlinkBackendFromBuildOptionalParams): Promise; updateStaticSite(resourceGroupName: string, name: string, staticSiteEnvelope: StaticSitePatchResource, options?: StaticSitesUpdateStaticSiteOptionalParams): Promise; updateStaticSiteUser(resourceGroupName: string, name: string, authprovider: string, userid: string, staticSiteUserEnvelope: StaticSiteUserARMResource, options?: StaticSitesUpdateStaticSiteUserOptionalParams): Promise; } @@ -6551,6 +6564,48 @@ export interface StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildOpti export interface StaticSitesDetachUserProvidedFunctionAppFromStaticSiteOptionalParams extends coreClient.OperationOptions { } +// @public +export interface StaticSitesGetLinkedBackendForBuildOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StaticSitesGetLinkedBackendForBuildResponse = StaticSiteLinkedBackendARMResource; + +// @public +export interface StaticSitesGetLinkedBackendOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StaticSitesGetLinkedBackendResponse = StaticSiteLinkedBackendARMResource; + +// @public +export interface StaticSitesGetLinkedBackendsForBuildNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StaticSitesGetLinkedBackendsForBuildNextResponse = StaticSiteLinkedBackendsCollection; + +// @public +export interface StaticSitesGetLinkedBackendsForBuildOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StaticSitesGetLinkedBackendsForBuildResponse = StaticSiteLinkedBackendsCollection; + +// @public +export interface StaticSitesGetLinkedBackendsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StaticSitesGetLinkedBackendsNextResponse = StaticSiteLinkedBackendsCollection; + +// @public +export interface StaticSitesGetLinkedBackendsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StaticSitesGetLinkedBackendsResponse = StaticSiteLinkedBackendsCollection; + // @public export interface StaticSitesGetPrivateEndpointConnectionListNextOptionalParams extends coreClient.OperationOptions { } @@ -6670,6 +6725,24 @@ export interface StaticSitesGetUserProvidedFunctionAppsForStaticSiteOptionalPara // @public export type StaticSitesGetUserProvidedFunctionAppsForStaticSiteResponse = StaticSiteUserProvidedFunctionAppsCollection; +// @public +export interface StaticSitesLinkBackendOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type StaticSitesLinkBackendResponse = StaticSiteLinkedBackendARMResource; + +// @public +export interface StaticSitesLinkBackendToBuildOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type StaticSitesLinkBackendToBuildResponse = StaticSiteLinkedBackendARMResource; + // @public export interface StaticSitesListNextOptionalParams extends coreClient.OperationOptions { } @@ -6813,6 +6886,16 @@ export type StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteResponse = S export interface StaticSitesResetStaticSiteApiKeyOptionalParams extends coreClient.OperationOptions { } +// @public +export interface StaticSitesUnlinkBackendFromBuildOptionalParams extends coreClient.OperationOptions { + isCleaningAuthConfig?: boolean; +} + +// @public +export interface StaticSitesUnlinkBackendOptionalParams extends coreClient.OperationOptions { + isCleaningAuthConfig?: boolean; +} + // @public export interface StaticSitesUpdateStaticSiteOptionalParams extends coreClient.OperationOptions { } @@ -6827,6 +6910,18 @@ export interface StaticSitesUpdateStaticSiteUserOptionalParams extends coreClien // @public export type StaticSitesUpdateStaticSiteUserResponse = StaticSiteUserARMResource; +// @public +export interface StaticSitesValidateBackendForBuildOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface StaticSitesValidateBackendOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface StaticSitesValidateCustomDomainCanBeAddedToStaticSiteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -7472,6 +7567,7 @@ export interface WebApps { beginSwapSlotWithProductionAndWait(resourceGroupName: string, name: string, slotSwapEntity: CsmSlotEntity, options?: WebAppsSwapSlotWithProductionOptionalParams): Promise; createDeployment(resourceGroupName: string, name: string, id: string, deployment: Deployment, options?: WebAppsCreateDeploymentOptionalParams): Promise; createDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, deployment: Deployment, options?: WebAppsCreateDeploymentSlotOptionalParams): Promise; + createOneDeployOperation(resourceGroupName: string, name: string, options?: WebAppsCreateOneDeployOperationOptionalParams): Promise; createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: SiteConfigResource, options?: WebAppsCreateOrUpdateConfigurationOptionalParams): Promise; createOrUpdateConfigurationSlot(resourceGroupName: string, name: string, slot: string, siteConfig: SiteConfigResource, options?: WebAppsCreateOrUpdateConfigurationSlotOptionalParams): Promise; createOrUpdateDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Identifier, options?: WebAppsCreateOrUpdateDomainOwnershipIdentifierOptionalParams): Promise; @@ -7548,6 +7644,7 @@ export interface WebApps { getAuthSettingsV2(resourceGroupName: string, name: string, options?: WebAppsGetAuthSettingsV2OptionalParams): Promise; getAuthSettingsV2Slot(resourceGroupName: string, name: string, slot: string, options?: WebAppsGetAuthSettingsV2SlotOptionalParams): Promise; getAuthSettingsV2WithoutSecrets(resourceGroupName: string, name: string, options?: WebAppsGetAuthSettingsV2WithoutSecretsOptionalParams): Promise; + getAuthSettingsV2WithoutSecretsSlot(resourceGroupName: string, name: string, slot: string, options?: WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams): Promise; getBackupConfiguration(resourceGroupName: string, name: string, options?: WebAppsGetBackupConfigurationOptionalParams): Promise; getBackupConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: WebAppsGetBackupConfigurationSlotOptionalParams): Promise; getBackupStatus(resourceGroupName: string, name: string, backupId: string, options?: WebAppsGetBackupStatusOptionalParams): Promise; @@ -7602,6 +7699,7 @@ export interface WebApps { getNetworkTracesSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: WebAppsGetNetworkTracesSlotOptionalParams): Promise; getNetworkTracesSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: WebAppsGetNetworkTracesSlotV2OptionalParams): Promise; getNetworkTracesV2(resourceGroupName: string, name: string, operationId: string, options?: WebAppsGetNetworkTracesV2OptionalParams): Promise; + getOneDeployStatus(resourceGroupName: string, name: string, options?: WebAppsGetOneDeployStatusOptionalParams): Promise; getPremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, options?: WebAppsGetPremierAddOnOptionalParams): Promise; getPremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, slot: string, options?: WebAppsGetPremierAddOnSlotOptionalParams): Promise; getPrivateAccess(resourceGroupName: string, name: string, options?: WebAppsGetPrivateAccessOptionalParams): Promise; @@ -7960,6 +8058,13 @@ export interface WebAppsCreateMSDeployOperationSlotOptionalParams extends coreCl // @public export type WebAppsCreateMSDeployOperationSlotResponse = MSDeployStatus; +// @public +export interface WebAppsCreateOneDeployOperationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebAppsCreateOneDeployOperationResponse = Record; + // @public export interface WebAppsCreateOrUpdateConfigurationOptionalParams extends coreClient.OperationOptions { } @@ -8443,6 +8548,13 @@ export interface WebAppsGetAuthSettingsV2WithoutSecretsOptionalParams extends co // @public export type WebAppsGetAuthSettingsV2WithoutSecretsResponse = SiteAuthSettingsV2; +// @public +export interface WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse = SiteAuthSettingsV2; + // @public export interface WebAppsGetBackupConfigurationOptionalParams extends coreClient.OperationOptions { } @@ -8837,6 +8949,13 @@ export interface WebAppsGetNetworkTracesV2OptionalParams extends coreClient.Oper // @public export type WebAppsGetNetworkTracesV2Response = NetworkTrace[]; +// @public +export interface WebAppsGetOneDeployStatusOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebAppsGetOneDeployStatusResponse = Record; + // @public export interface WebAppsGetOptionalParams extends coreClient.OperationOptions { } diff --git a/sdk/appservice/arm-appservice/rollup.config.js b/sdk/appservice/arm-appservice/rollup.config.js index 3f89d7309da5..9be1955eb7f1 100644 --- a/sdk/appservice/arm-appservice/rollup.config.js +++ b/sdk/appservice/arm-appservice/rollup.config.js @@ -14,14 +14,62 @@ import json from "@rollup/plugin-json"; import nodeBuiltins from "builtin-modules"; +/** + * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. + * + * NOTE: this manual configuration is only needed because OpenTelemetry uses an + * __exportStar downleveled helper function to declare its exports which confuses + * rollup's automatic discovery mechanism. + * + * @returns an object reference that can be `...`'d into your cjs() configuration. + */ +export function openTelemetryCommonJs() { + const namedExports = {}; + + for (const key of [ + "@opentelemetry/api", + "@azure/core-tracing/node_modules/@opentelemetry/api" + ]) { + namedExports[key] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "SpanStatusCode", + "getSpanContext", + "setSpanContext" + ]; + } + + const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; + + for (const version of releasedOpenTelemetryVersions) { + namedExports[ + // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. + `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` + ] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "StatusCode", + "CanonicalCode", + "getSpanContext", + "setSpanContext" + ]; + } + + return namedExports; +} + // #region Warning Handler /** - * A function that can determine whether a rollup warning should be ignored. If + * A function that can determine whether a rollupwarning should be ignored. If * the function returns `true`, then the warning will not be displayed. */ -function ignoreNiseSinonEval(warning) { +function ignoreNiseSinonEvalWarnings(warning) { return ( warning.code === "EVAL" && warning.id && @@ -30,14 +78,17 @@ function ignoreNiseSinonEval(warning) { ); } -function ignoreChaiCircularDependency(warning) { +function ignoreChaiCircularDependencyWarnings(warning) { return ( warning.code === "CIRCULAR_DEPENDENCY" && warning.importer && warning.importer.includes("node_modules/chai") === true ); } -const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; +const warningInhibitors = [ + ignoreChaiCircularDependencyWarnings, + ignoreNiseSinonEvalWarnings +]; /** * Construct a warning handler for the shared rollup configuration @@ -71,7 +122,22 @@ function makeBrowserTestConfig() { nodeResolve({ mainFields: ["module", "browser"] }), - cjs(), + cjs({ + namedExports: { + // Chai's strange internal architecture makes it impossible to statically + // analyze its exports. + chai: [ + "version", + "use", + "util", + "config", + "expect", + "should", + "assert" + ], + ...openTelemetryCommonJs() + } + }), json(), sourcemaps() //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) @@ -107,7 +173,7 @@ export function makeConfig(pkg, options) { ], output: { file: "dist/index.js", format: "cjs", sourcemap: true }, preserveSymlinks: false, - plugins: [sourcemaps(), nodeResolve()] + plugins: [sourcemaps(), nodeResolve(), cjs()] }; const config = [baseConfig]; diff --git a/sdk/appservice/arm-appservice/src/models/index.ts b/sdk/appservice/arm-appservice/src/models/index.ts index b32f79a854c2..a70bdb3a472e 100644 --- a/sdk/appservice/arm-appservice/src/models/index.ts +++ b/sdk/appservice/arm-appservice/src/models/index.ts @@ -218,6 +218,28 @@ export interface SiteSeal { html: string; } +/** Certificate order action. */ +export interface CertificateOrderAction { + /** + * Action type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionType?: CertificateOrderActionType; + /** + * Time at which the certificate action was performed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAt?: Date; +} + +/** SSL certificate email. */ +export interface CertificateEmail { + /** Email id. */ + emailId?: string; + /** Time stamp. */ + timeStamp?: Date; +} + /** Collection of detector responses */ export interface DetectorResponseCollection { /** Collection of resources. */ @@ -715,6 +737,8 @@ export interface AppServiceEnvironment { dedicatedHostCount?: number; /** Whether or not this App Service Environment is zone-redundant. */ zoneRedundant?: boolean; + /** Full view of networking configuration for an ASE. */ + networkingConfiguration?: AseV3NetworkingConfiguration; } /** Specification for using a Virtual Network. */ @@ -3055,6 +3079,24 @@ export interface StaticSiteTemplateOptions { isPrivate?: boolean; } +/** Static Site Linked Backend ARM resource. */ +export interface StaticSiteLinkedBackend { + /** The resource id of the backend linked to the static site */ + backendResourceId?: string; + /** The region of the backend linked to the static site */ + region?: string; + /** + * The date and time on which the backend was linked to the static site. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdOn?: Date; + /** + * The provisioning state of the linking process. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; +} + /** Collection of static site custom users. */ export interface StaticSiteUserCollection { /** Collection of resources. */ @@ -3110,6 +3152,17 @@ export interface StaticSiteCustomDomainOverviewCollection { readonly nextLink?: string; } +/** Collection of static site linked backends. */ +export interface StaticSiteLinkedBackendsCollection { + /** Collection of resources. */ + value: StaticSiteLinkedBackendARMResource[]; + /** + * Link to next page of resources. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + /** Deployment slot parameters. */ export interface CsmSlotEntity { /** Destination deployment slot during swap operation. */ @@ -4262,7 +4315,7 @@ export type AppServiceCertificateOrder = Resource & { * Reasons why App Service Certificate is not renewable at the current moment. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly appServiceCertificateNotRenewableReasons?: AppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem[]; + readonly appServiceCertificateNotRenewableReasons?: ResourceNotRenewableReason[]; /** * Time stamp when the certificate would be auto renewed next * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4349,7 +4402,7 @@ export type Domain = Resource & { * Reasons why domain is not renewable. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly domainNotRenewableReasons?: DomainPropertiesDomainNotRenewableReasonsItem[]; + readonly domainNotRenewableReasons?: ResourceNotRenewableReason[]; /** Current DNS type */ dnsType?: DnsType; /** Azure DNS Zone to use */ @@ -4412,6 +4465,8 @@ export type AppServiceEnvironmentResource = Resource & { dedicatedHostCount?: number; /** Whether or not this App Service Environment is zone-redundant. */ zoneRedundant?: boolean; + /** Full view of networking configuration for an ASE. */ + networkingConfiguration?: AseV3NetworkingConfiguration; }; /** A web app, a mobile app backend, or an API app. */ @@ -4468,6 +4523,12 @@ export type Site = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastModifiedTimeUtc?: Date; + /** Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. */ + vnetRouteAllEnabled?: boolean; + /** To enable pulling image over Virtual Network */ + vnetImagePullEnabled?: boolean; + /** To enable accessing content over virtual network */ + vnetContentShareEnabled?: boolean; /** Configuration of the app. */ siteConfig?: SiteConfig; /** @@ -4907,6 +4968,11 @@ export type StaticSiteARMResource = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; + /** + * Backends linked to the static side + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly linkedBackends?: StaticSiteLinkedBackend[]; /** The provider that submitted the last deployment to the primary environment of the static site. */ provider?: string; /** State indicating the status of the enterprise grade CDN serving traffic to the static web app. */ @@ -4997,7 +5063,7 @@ export type AppServiceCertificateOrderPatchResource = ProxyOnlyResource & { * Reasons why App Service Certificate is not renewable at the current moment. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly appServiceCertificateNotRenewableReasons?: AppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem[]; + readonly appServiceCertificateNotRenewableReasons?: ResourceNotRenewableReason[]; /** * Time stamp when the certificate would be auto renewed next * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5045,28 +5111,6 @@ export type RenewCertificateOrderRequest = ProxyOnlyResource & { isPrivateKeyExternal?: boolean; }; -/** Certificate order action. */ -export type CertificateOrderAction = ProxyOnlyResource & { - /** - * Action type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionType?: CertificateOrderActionType; - /** - * Time at which the certificate action was performed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdAt?: Date; -}; - -/** SSL certificate email. */ -export type CertificateEmail = ProxyOnlyResource & { - /** Email id. */ - emailId?: string; - /** Time stamp. */ - timeStamp?: Date; -}; - /** Class representing Response from Detector */ export type DetectorResponse = ProxyOnlyResource & { /** metadata for the detector */ @@ -5142,7 +5186,7 @@ export type DomainPatchResource = ProxyOnlyResource & { * Reasons why domain is not renewable. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly domainNotRenewableReasons?: DomainPatchResourcePropertiesDomainNotRenewableReasonsItem[]; + readonly domainNotRenewableReasons?: ResourceNotRenewableReason[]; /** Current DNS type */ dnsType?: DnsType; /** Azure DNS Zone to use */ @@ -5164,6 +5208,30 @@ export type TopLevelDomain = ProxyOnlyResource & { privacy?: boolean; }; +/** Full view of networking configuration for an ASE. */ +export type AseV3NetworkingConfiguration = ProxyOnlyResource & { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly windowsOutboundIpAddresses?: string[]; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly linuxOutboundIpAddresses?: string[]; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly externalInboundIpAddresses?: string[]; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly internalInboundIpAddresses?: string[]; + /** Property to enable and disable new private endpoint connection creation on ASE */ + allowNewPrivateEndpointConnections?: boolean; + /** Property to enable and disable FTP on ASEV3 */ + ftpEnabled?: boolean; + /** Property to enable and disable Remote Debug on ASEV3 */ + remoteDebugEnabled?: boolean; + /** Property to set the number of outbound ips on AseV3 */ + numberOfOutboundIpAddresses?: number; + /** Customer provided Inbound IP Address */ + inboundIpAddressOverride?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly targetNumberOfOutboundIpAddresses?: number; +}; + /** ARM resource for a app service environment. */ export type AppServiceEnvironmentPatchResource = ProxyOnlyResource & { /** @@ -5217,6 +5285,8 @@ export type AppServiceEnvironmentPatchResource = ProxyOnlyResource & { dedicatedHostCount?: number; /** Whether or not this App Service Environment is zone-redundant. */ zoneRedundant?: boolean; + /** Full view of networking configuration for an ASE. */ + networkingConfiguration?: AseV3NetworkingConfiguration; }; /** Describes main public IP address and any extra virtual IPs. */ @@ -5248,20 +5318,6 @@ export type PushSettings = ProxyOnlyResource & { dynamicTagsJson?: string; }; -/** Full view of networking configuration for an ASE. */ -export type AseV3NetworkingConfiguration = ProxyOnlyResource & { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly windowsOutboundIpAddresses?: string[]; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly linuxOutboundIpAddresses?: string[]; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly externalInboundIpAddresses?: string[]; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly internalInboundIpAddresses?: string[]; - /** Property to enable and disable new private endpoint connection creation on ASE */ - allowNewPrivateEndpointConnections?: boolean; -}; - /** Worker pool of an App Service Environment ARM resource. */ export type WorkerPoolResource = ProxyOnlyResource & { /** Description of a SKU for a scalable resource. */ @@ -6212,6 +6268,11 @@ export type StaticSitePatchResource = ProxyOnlyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; + /** + * Backends linked to the static side + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly linkedBackends?: StaticSiteLinkedBackend[]; /** The provider that submitted the last deployment to the primary environment of the static site. */ provider?: string; /** State indicating the status of the enterprise grade CDN serving traffic to the static web app. */ @@ -6281,6 +6342,11 @@ export type StaticSiteBuildARMResource = ProxyOnlyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; + /** + * Backends linked to the static side build + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly linkedBackends?: StaticSiteLinkedBackend[]; }; /** String dictionary resource. */ @@ -6404,6 +6470,24 @@ export type StaticSiteResetPropertiesARMResource = ProxyOnlyResource & { shouldUpdateRepository?: boolean; }; +/** Static Site Linked Backend ARM resource. */ +export type StaticSiteLinkedBackendARMResource = ProxyOnlyResource & { + /** The resource id of the backend linked to the static site */ + backendResourceId?: string; + /** The region of the backend linked to the static site */ + region?: string; + /** + * The date and time on which the backend was linked to the static site. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdOn?: Date; + /** + * The provisioning state of the linking process. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; +}; + /** ARM resource for a site. */ export type SitePatchResource = ProxyOnlyResource & { /** Managed service identity. */ @@ -7796,77 +7880,23 @@ export type WebJob = ProxyOnlyResource & { settings?: { [propertyName: string]: Record }; }; -/** Known values of {@link AppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem} that the service accepts. */ -export enum KnownAppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem { +/** Known values of {@link ResourceNotRenewableReason} that the service accepts. */ +export enum KnownResourceNotRenewableReason { RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", SubscriptionNotActive = "SubscriptionNotActive" } /** - * Defines values for AppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem. \ - * {@link KnownAppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem} can be used interchangeably with AppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem, + * Defines values for ResourceNotRenewableReason. \ + * {@link KnownResourceNotRenewableReason} can be used interchangeably with ResourceNotRenewableReason, * this enum contains the known values that the service supports. * ### Known values supported by the service * **RegistrationStatusNotSupportedForRenewal** \ * **ExpirationNotInRenewalTimeRange** \ * **SubscriptionNotActive** */ -export type AppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem = string; - -/** Known values of {@link AppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem} that the service accepts. */ -export enum KnownAppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem { - RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", - ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", - SubscriptionNotActive = "SubscriptionNotActive" -} - -/** - * Defines values for AppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem. \ - * {@link KnownAppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem} can be used interchangeably with AppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **RegistrationStatusNotSupportedForRenewal** \ - * **ExpirationNotInRenewalTimeRange** \ - * **SubscriptionNotActive** - */ -export type AppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem = string; - -/** Known values of {@link DomainPropertiesDomainNotRenewableReasonsItem} that the service accepts. */ -export enum KnownDomainPropertiesDomainNotRenewableReasonsItem { - RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", - ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", - SubscriptionNotActive = "SubscriptionNotActive" -} - -/** - * Defines values for DomainPropertiesDomainNotRenewableReasonsItem. \ - * {@link KnownDomainPropertiesDomainNotRenewableReasonsItem} can be used interchangeably with DomainPropertiesDomainNotRenewableReasonsItem, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **RegistrationStatusNotSupportedForRenewal** \ - * **ExpirationNotInRenewalTimeRange** \ - * **SubscriptionNotActive** - */ -export type DomainPropertiesDomainNotRenewableReasonsItem = string; - -/** Known values of {@link DomainPatchResourcePropertiesDomainNotRenewableReasonsItem} that the service accepts. */ -export enum KnownDomainPatchResourcePropertiesDomainNotRenewableReasonsItem { - RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", - ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", - SubscriptionNotActive = "SubscriptionNotActive" -} - -/** - * Defines values for DomainPatchResourcePropertiesDomainNotRenewableReasonsItem. \ - * {@link KnownDomainPatchResourcePropertiesDomainNotRenewableReasonsItem} can be used interchangeably with DomainPatchResourcePropertiesDomainNotRenewableReasonsItem, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **RegistrationStatusNotSupportedForRenewal** \ - * **ExpirationNotInRenewalTimeRange** \ - * **SubscriptionNotActive** - */ -export type DomainPatchResourcePropertiesDomainNotRenewableReasonsItem = string; +export type ResourceNotRenewableReason = string; /** Known values of {@link LoadBalancingMode} that the service accepts. */ export enum KnownLoadBalancingMode { @@ -8094,8 +8124,8 @@ export enum KnownRevisionProvisioningState { */ export type RevisionProvisioningState = string; -/** Known values of {@link Enum15} that the service accepts. */ -export enum KnownEnum15 { +/** Known values of {@link Enum12} that the service accepts. */ +export enum KnownEnum12 { Windows = "Windows", Linux = "Linux", WindowsFunctions = "WindowsFunctions", @@ -8104,8 +8134,8 @@ export enum KnownEnum15 { } /** - * Defines values for Enum15. \ - * {@link KnownEnum15} can be used interchangeably with Enum15, + * Defines values for Enum12. \ + * {@link KnownEnum12} can be used interchangeably with Enum12, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Windows** \ @@ -8114,82 +8144,82 @@ export enum KnownEnum15 { * **LinuxFunctions** \ * **All** */ -export type Enum15 = string; +export type Enum12 = string; -/** Known values of {@link Enum16} that the service accepts. */ -export enum KnownEnum16 { +/** Known values of {@link Enum13} that the service accepts. */ +export enum KnownEnum13 { Windows = "Windows", Linux = "Linux", All = "All" } /** - * Defines values for Enum16. \ - * {@link KnownEnum16} can be used interchangeably with Enum16, + * Defines values for Enum13. \ + * {@link KnownEnum13} can be used interchangeably with Enum13, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Windows** \ * **Linux** \ * **All** */ -export type Enum16 = string; +export type Enum13 = string; -/** Known values of {@link Enum17} that the service accepts. */ -export enum KnownEnum17 { +/** Known values of {@link Enum14} that the service accepts. */ +export enum KnownEnum14 { Windows = "Windows", Linux = "Linux", All = "All" } /** - * Defines values for Enum17. \ - * {@link KnownEnum17} can be used interchangeably with Enum17, + * Defines values for Enum14. \ + * {@link KnownEnum14} can be used interchangeably with Enum14, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Windows** \ * **Linux** \ * **All** */ -export type Enum17 = string; +export type Enum14 = string; -/** Known values of {@link Enum18} that the service accepts. */ -export enum KnownEnum18 { +/** Known values of {@link Enum15} that the service accepts. */ +export enum KnownEnum15 { Windows = "Windows", Linux = "Linux", All = "All" } /** - * Defines values for Enum18. \ - * {@link KnownEnum18} can be used interchangeably with Enum18, + * Defines values for Enum15. \ + * {@link KnownEnum15} can be used interchangeably with Enum15, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Windows** \ * **Linux** \ * **All** */ -export type Enum18 = string; +export type Enum15 = string; -/** Known values of {@link Enum19} that the service accepts. */ -export enum KnownEnum19 { +/** Known values of {@link Enum16} that the service accepts. */ +export enum KnownEnum16 { Windows = "Windows", Linux = "Linux", All = "All" } /** - * Defines values for Enum19. \ - * {@link KnownEnum19} can be used interchangeably with Enum19, + * Defines values for Enum16. \ + * {@link KnownEnum16} can be used interchangeably with Enum16, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Windows** \ * **Linux** \ * **All** */ -export type Enum19 = string; +export type Enum16 = string; -/** Known values of {@link Enum20} that the service accepts. */ -export enum KnownEnum20 { +/** Known values of {@link Enum17} that the service accepts. */ +export enum KnownEnum17 { Windows = "Windows", Linux = "Linux", WindowsFunctions = "WindowsFunctions", @@ -8198,8 +8228,8 @@ export enum KnownEnum20 { } /** - * Defines values for Enum20. \ - * {@link KnownEnum20} can be used interchangeably with Enum20, + * Defines values for Enum17. \ + * {@link KnownEnum17} can be used interchangeably with Enum17, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Windows** \ @@ -8208,7 +8238,7 @@ export enum KnownEnum20 { * **LinuxFunctions** \ * **All** */ -export type Enum20 = string; +export type Enum17 = string; /** Known values of {@link ResourceScopeType} that the service accepts. */ export enum KnownResourceScopeType { @@ -8397,7 +8427,8 @@ export enum KnownCustomDomainStatus { Adding = "Adding", Ready = "Ready", Failed = "Failed", - Deleting = "Deleting" + Deleting = "Deleting", + Unhealthy = "Unhealthy" } /** @@ -8410,7 +8441,8 @@ export enum KnownCustomDomainStatus { * **Adding** \ * **Ready** \ * **Failed** \ - * **Deleting** + * **Deleting** \ + * **Unhealthy** */ export type CustomDomainStatus = string; @@ -10498,7 +10530,7 @@ export type KubeEnvironmentsListByResourceGroupNextResponse = KubeEnvironmentCol /** Optional parameters. */ export interface ProviderGetAvailableStacksOptionalParams extends coreClient.OperationOptions { - osTypeSelected?: Enum15; + osTypeSelected?: Enum12; } /** Contains response data for the getAvailableStacks operation. */ @@ -10508,7 +10540,7 @@ export type ProviderGetAvailableStacksResponse = ApplicationStackCollection; export interface ProviderGetFunctionAppStacksOptionalParams extends coreClient.OperationOptions { /** Stack OS Type */ - stackOsType?: Enum16; + stackOsType?: Enum13; } /** Contains response data for the getFunctionAppStacks operation. */ @@ -10518,7 +10550,7 @@ export type ProviderGetFunctionAppStacksResponse = FunctionAppStackCollection; export interface ProviderGetFunctionAppStacksForLocationOptionalParams extends coreClient.OperationOptions { /** Stack OS Type */ - stackOsType?: Enum17; + stackOsType?: Enum14; } /** Contains response data for the getFunctionAppStacksForLocation operation. */ @@ -10528,7 +10560,7 @@ export type ProviderGetFunctionAppStacksForLocationResponse = FunctionAppStackCo export interface ProviderGetWebAppStacksForLocationOptionalParams extends coreClient.OperationOptions { /** Stack OS Type */ - stackOsType?: Enum18; + stackOsType?: Enum15; } /** Contains response data for the getWebAppStacksForLocation operation. */ @@ -10545,7 +10577,7 @@ export type ProviderListOperationsResponse = CsmOperationCollection; export interface ProviderGetWebAppStacksOptionalParams extends coreClient.OperationOptions { /** Stack OS Type */ - stackOsType?: Enum19; + stackOsType?: Enum16; } /** Contains response data for the getWebAppStacks operation. */ @@ -10554,7 +10586,7 @@ export type ProviderGetWebAppStacksResponse = WebAppStackCollection; /** Optional parameters. */ export interface ProviderGetAvailableStacksOnPremOptionalParams extends coreClient.OperationOptions { - osTypeSelected?: Enum20; + osTypeSelected?: Enum17; } /** Contains response data for the getAvailableStacksOnPrem operation. */ @@ -10563,7 +10595,7 @@ export type ProviderGetAvailableStacksOnPremResponse = ApplicationStackCollectio /** Optional parameters. */ export interface ProviderGetAvailableStacksNextOptionalParams extends coreClient.OperationOptions { - osTypeSelected?: Enum15; + osTypeSelected?: Enum12; } /** Contains response data for the getAvailableStacksNext operation. */ @@ -10573,7 +10605,7 @@ export type ProviderGetAvailableStacksNextResponse = ApplicationStackCollection; export interface ProviderGetFunctionAppStacksNextOptionalParams extends coreClient.OperationOptions { /** Stack OS Type */ - stackOsType?: Enum16; + stackOsType?: Enum13; } /** Contains response data for the getFunctionAppStacksNext operation. */ @@ -10583,7 +10615,7 @@ export type ProviderGetFunctionAppStacksNextResponse = FunctionAppStackCollectio export interface ProviderGetFunctionAppStacksForLocationNextOptionalParams extends coreClient.OperationOptions { /** Stack OS Type */ - stackOsType?: Enum17; + stackOsType?: Enum14; } /** Contains response data for the getFunctionAppStacksForLocationNext operation. */ @@ -10593,7 +10625,7 @@ export type ProviderGetFunctionAppStacksForLocationNextResponse = FunctionAppSta export interface ProviderGetWebAppStacksForLocationNextOptionalParams extends coreClient.OperationOptions { /** Stack OS Type */ - stackOsType?: Enum18; + stackOsType?: Enum15; } /** Contains response data for the getWebAppStacksForLocationNext operation. */ @@ -10610,7 +10642,7 @@ export type ProviderListOperationsNextResponse = CsmOperationCollection; export interface ProviderGetWebAppStacksNextOptionalParams extends coreClient.OperationOptions { /** Stack OS Type */ - stackOsType?: Enum19; + stackOsType?: Enum16; } /** Contains response data for the getWebAppStacksNext operation. */ @@ -10619,7 +10651,7 @@ export type ProviderGetWebAppStacksNextResponse = WebAppStackCollection; /** Optional parameters. */ export interface ProviderGetAvailableStacksOnPremNextOptionalParams extends coreClient.OperationOptions { - osTypeSelected?: Enum20; + osTypeSelected?: Enum17; } /** Contains response data for the getAvailableStacksOnPremNext operation. */ @@ -11429,6 +11461,90 @@ export interface StaticSitesCreateZipDeploymentForStaticSiteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface StaticSitesValidateBackendOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface StaticSitesValidateBackendForBuildOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface StaticSitesGetLinkedBackendsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getLinkedBackends operation. */ +export type StaticSitesGetLinkedBackendsResponse = StaticSiteLinkedBackendsCollection; + +/** Optional parameters. */ +export interface StaticSitesGetLinkedBackendsForBuildOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getLinkedBackendsForBuild operation. */ +export type StaticSitesGetLinkedBackendsForBuildResponse = StaticSiteLinkedBackendsCollection; + +/** Optional parameters. */ +export interface StaticSitesGetLinkedBackendOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getLinkedBackend operation. */ +export type StaticSitesGetLinkedBackendResponse = StaticSiteLinkedBackendARMResource; + +/** Optional parameters. */ +export interface StaticSitesLinkBackendOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the linkBackend operation. */ +export type StaticSitesLinkBackendResponse = StaticSiteLinkedBackendARMResource; + +/** Optional parameters. */ +export interface StaticSitesUnlinkBackendOptionalParams + extends coreClient.OperationOptions { + /** Decides if Easy Auth configuration will be removed from backend configuration */ + isCleaningAuthConfig?: boolean; +} + +/** Optional parameters. */ +export interface StaticSitesGetLinkedBackendForBuildOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getLinkedBackendForBuild operation. */ +export type StaticSitesGetLinkedBackendForBuildResponse = StaticSiteLinkedBackendARMResource; + +/** Optional parameters. */ +export interface StaticSitesLinkBackendToBuildOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the linkBackendToBuild operation. */ +export type StaticSitesLinkBackendToBuildResponse = StaticSiteLinkedBackendARMResource; + +/** Optional parameters. */ +export interface StaticSitesUnlinkBackendFromBuildOptionalParams + extends coreClient.OperationOptions { + /** Decides if auth will be removed from backend configuration */ + isCleaningAuthConfig?: boolean; +} + /** Optional parameters. */ export interface StaticSitesListNextOptionalParams extends coreClient.OperationOptions {} @@ -11499,6 +11615,20 @@ export interface StaticSitesGetUserProvidedFunctionAppsForStaticSiteNextOptional /** Contains response data for the getUserProvidedFunctionAppsForStaticSiteNext operation. */ export type StaticSitesGetUserProvidedFunctionAppsForStaticSiteNextResponse = StaticSiteUserProvidedFunctionAppsCollection; +/** Optional parameters. */ +export interface StaticSitesGetLinkedBackendsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getLinkedBackendsNext operation. */ +export type StaticSitesGetLinkedBackendsNextResponse = StaticSiteLinkedBackendsCollection; + +/** Optional parameters. */ +export interface StaticSitesGetLinkedBackendsForBuildNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getLinkedBackendsForBuildNext operation. */ +export type StaticSitesGetLinkedBackendsForBuildNextResponse = StaticSiteLinkedBackendsCollection; + /** Optional parameters. */ export interface WebAppsListOptionalParams extends coreClient.OperationOptions {} @@ -12044,6 +12174,20 @@ export interface WebAppsGetMSDeployLogOptionalParams /** Contains response data for the getMSDeployLog operation. */ export type WebAppsGetMSDeployLogResponse = MSDeployLog; +/** Optional parameters. */ +export interface WebAppsGetOneDeployStatusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getOneDeployStatus operation. */ +export type WebAppsGetOneDeployStatusResponse = Record; + +/** Optional parameters. */ +export interface WebAppsCreateOneDeployOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOneDeployOperation operation. */ +export type WebAppsCreateOneDeployOperationResponse = Record; + /** Optional parameters. */ export interface WebAppsListFunctionsOptionalParams extends coreClient.OperationOptions {} @@ -12936,6 +13080,13 @@ export interface WebAppsGetAuthSettingsSlotOptionalParams /** Contains response data for the getAuthSettingsSlot operation. */ export type WebAppsGetAuthSettingsSlotResponse = SiteAuthSettings; +/** Optional parameters. */ +export interface WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAuthSettingsV2WithoutSecretsSlot operation. */ +export type WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse = SiteAuthSettingsV2; + /** Optional parameters. */ export interface WebAppsUpdateAuthSettingsV2SlotOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/appservice/arm-appservice/src/models/mappers.ts b/sdk/appservice/arm-appservice/src/models/mappers.ts index ce6d65e1f8c0..2de25ce02fec 100644 --- a/sdk/appservice/arm-appservice/src/models/mappers.ts +++ b/sdk/appservice/arm-appservice/src/models/mappers.ts @@ -504,6 +504,72 @@ export const SiteSeal: coreClient.CompositeMapper = { } }; +export const CertificateOrderAction: coreClient.CompositeMapper = { + serializedName: "CertificateOrderAction", + type: { + name: "Composite", + className: "CertificateOrderAction", + modelProperties: { + actionType: { + serializedName: "actionType", + readOnly: true, + xmlName: "actionType", + type: { + name: "Enum", + allowedValues: [ + "CertificateIssued", + "CertificateOrderCanceled", + "CertificateOrderCreated", + "CertificateRevoked", + "DomainValidationComplete", + "FraudDetected", + "OrgNameChange", + "OrgValidationComplete", + "SanDrop", + "FraudCleared", + "CertificateExpired", + "CertificateExpirationWarning", + "FraudDocumentationRequired", + "Unknown" + ] + } + }, + createdAt: { + serializedName: "createdAt", + readOnly: true, + xmlName: "createdAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const CertificateEmail: coreClient.CompositeMapper = { + serializedName: "CertificateEmail", + type: { + name: "Composite", + className: "CertificateEmail", + modelProperties: { + emailId: { + serializedName: "emailId", + xmlName: "emailId", + type: { + name: "String" + } + }, + timeStamp: { + serializedName: "timeStamp", + xmlName: "timeStamp", + type: { + name: "DateTime" + } + } + } + } +}; + export const DetectorResponseCollection: coreClient.CompositeMapper = { serializedName: "DetectorResponseCollection", type: { @@ -2160,6 +2226,14 @@ export const AppServiceEnvironment: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + networkingConfiguration: { + serializedName: "networkingConfiguration", + xmlName: "networkingConfiguration", + type: { + name: "Composite", + className: "AseV3NetworkingConfiguration" + } } } } @@ -8222,7 +8296,7 @@ export const ResourceNameAvailabilityRequest: coreClient.CompositeMapper = { name: "String" } }, - typeParam: { + type: { serializedName: "type", required: true, xmlName: "type", @@ -9100,6 +9174,46 @@ export const StaticSiteTemplateOptions: coreClient.CompositeMapper = { } }; +export const StaticSiteLinkedBackend: coreClient.CompositeMapper = { + serializedName: "StaticSiteLinkedBackend", + type: { + name: "Composite", + className: "StaticSiteLinkedBackend", + modelProperties: { + backendResourceId: { + serializedName: "backendResourceId", + xmlName: "backendResourceId", + type: { + name: "String" + } + }, + region: { + serializedName: "region", + xmlName: "region", + type: { + name: "String" + } + }, + createdOn: { + serializedName: "createdOn", + readOnly: true, + xmlName: "createdOn", + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + xmlName: "provisioningState", + type: { + name: "String" + } + } + } + } +}; + export const StaticSiteUserCollection: coreClient.CompositeMapper = { serializedName: "StaticSiteUserCollection", type: { @@ -9265,6 +9379,39 @@ export const StaticSiteCustomDomainOverviewCollection: coreClient.CompositeMappe } }; +export const StaticSiteLinkedBackendsCollection: coreClient.CompositeMapper = { + serializedName: "StaticSiteLinkedBackendsCollection", + type: { + name: "Composite", + className: "StaticSiteLinkedBackendsCollection", + modelProperties: { + value: { + serializedName: "value", + required: true, + xmlName: "value", + xmlElementName: "StaticSiteLinkedBackendARMResource", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StaticSiteLinkedBackendARMResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const CsmSlotEntity: coreClient.CompositeMapper = { serializedName: "CsmSlotEntity", type: { @@ -12805,8 +12952,7 @@ export const AppServiceCertificateOrder: coreClient.CompositeMapper = { serializedName: "properties.appServiceCertificateNotRenewableReasons", readOnly: true, xmlName: "properties.appServiceCertificateNotRenewableReasons", - xmlElementName: - "AppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem", + xmlElementName: "ResourceNotRenewableReason", type: { name: "Sequence", element: { @@ -13055,7 +13201,7 @@ export const Domain: coreClient.CompositeMapper = { serializedName: "properties.domainNotRenewableReasons", readOnly: true, xmlName: "properties.domainNotRenewableReasons", - xmlElementName: "DomainPropertiesDomainNotRenewableReasonsItem", + xmlElementName: "ResourceNotRenewableReason", type: { name: "Sequence", element: { @@ -13245,6 +13391,14 @@ export const AppServiceEnvironmentResource: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + networkingConfiguration: { + serializedName: "properties.networkingConfiguration", + xmlName: "properties.networkingConfiguration", + type: { + name: "Composite", + className: "AseV3NetworkingConfiguration" + } } } } @@ -13395,6 +13549,27 @@ export const Site: coreClient.CompositeMapper = { name: "DateTime" } }, + vnetRouteAllEnabled: { + serializedName: "properties.vnetRouteAllEnabled", + xmlName: "properties.vnetRouteAllEnabled", + type: { + name: "Boolean" + } + }, + vnetImagePullEnabled: { + serializedName: "properties.vnetImagePullEnabled", + xmlName: "properties.vnetImagePullEnabled", + type: { + name: "Boolean" + } + }, + vnetContentShareEnabled: { + serializedName: "properties.vnetContentShareEnabled", + xmlName: "properties.vnetContentShareEnabled", + type: { + name: "Boolean" + } + }, siteConfig: { serializedName: "properties.siteConfig", xmlName: "properties.siteConfig", @@ -14410,6 +14585,21 @@ export const StaticSiteARMResource: coreClient.CompositeMapper = { } } }, + linkedBackends: { + serializedName: "properties.linkedBackends", + readOnly: true, + xmlName: "properties.linkedBackends", + xmlElementName: "StaticSiteLinkedBackend", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StaticSiteLinkedBackend" + } + } + } + }, provider: { serializedName: "properties.provider", xmlName: "properties.provider", @@ -14643,8 +14833,7 @@ export const AppServiceCertificateOrderPatchResource: coreClient.CompositeMapper serializedName: "properties.appServiceCertificateNotRenewableReasons", readOnly: true, xmlName: "properties.appServiceCertificateNotRenewableReasons", - xmlElementName: - "AppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem", + xmlElementName: "ResourceNotRenewableReason", type: { name: "Sequence", element: { @@ -14791,74 +14980,6 @@ export const RenewCertificateOrderRequest: coreClient.CompositeMapper = { } }; -export const CertificateOrderAction: coreClient.CompositeMapper = { - serializedName: "CertificateOrderAction", - type: { - name: "Composite", - className: "CertificateOrderAction", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - actionType: { - serializedName: "properties.actionType", - readOnly: true, - xmlName: "properties.actionType", - type: { - name: "Enum", - allowedValues: [ - "CertificateIssued", - "CertificateOrderCanceled", - "CertificateOrderCreated", - "CertificateRevoked", - "DomainValidationComplete", - "FraudDetected", - "OrgNameChange", - "OrgValidationComplete", - "SanDrop", - "FraudCleared", - "CertificateExpired", - "CertificateExpirationWarning", - "FraudDocumentationRequired", - "Unknown" - ] - } - }, - createdAt: { - serializedName: "properties.createdAt", - readOnly: true, - xmlName: "properties.createdAt", - type: { - name: "DateTime" - } - } - } - } -}; - -export const CertificateEmail: coreClient.CompositeMapper = { - serializedName: "CertificateEmail", - type: { - name: "Composite", - className: "CertificateEmail", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - emailId: { - serializedName: "properties.emailId", - xmlName: "properties.emailId", - type: { - name: "String" - } - }, - timeStamp: { - serializedName: "properties.timeStamp", - xmlName: "properties.timeStamp", - type: { - name: "DateTime" - } - } - } - } -}; - export const DetectorResponse: coreClient.CompositeMapper = { serializedName: "DetectorResponse", type: { @@ -15095,8 +15216,7 @@ export const DomainPatchResource: coreClient.CompositeMapper = { serializedName: "properties.domainNotRenewableReasons", readOnly: true, xmlName: "properties.domainNotRenewableReasons", - xmlElementName: - "DomainPatchResourcePropertiesDomainNotRenewableReasonsItem", + xmlElementName: "ResourceNotRenewableReason", type: { name: "Sequence", element: { @@ -15176,6 +15296,120 @@ export const TopLevelDomain: coreClient.CompositeMapper = { } }; +export const AseV3NetworkingConfiguration: coreClient.CompositeMapper = { + serializedName: "AseV3NetworkingConfiguration", + type: { + name: "Composite", + className: "AseV3NetworkingConfiguration", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + windowsOutboundIpAddresses: { + serializedName: "properties.windowsOutboundIpAddresses", + readOnly: true, + xmlName: "properties.windowsOutboundIpAddresses", + xmlElementName: + "AseV3NetworkingConfigurationPropertiesWindowsOutboundIpAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + linuxOutboundIpAddresses: { + serializedName: "properties.linuxOutboundIpAddresses", + readOnly: true, + xmlName: "properties.linuxOutboundIpAddresses", + xmlElementName: + "AseV3NetworkingConfigurationPropertiesLinuxOutboundIpAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + externalInboundIpAddresses: { + serializedName: "properties.externalInboundIpAddresses", + readOnly: true, + xmlName: "properties.externalInboundIpAddresses", + xmlElementName: + "AseV3NetworkingConfigurationPropertiesExternalInboundIpAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + internalInboundIpAddresses: { + serializedName: "properties.internalInboundIpAddresses", + readOnly: true, + xmlName: "properties.internalInboundIpAddresses", + xmlElementName: + "AseV3NetworkingConfigurationPropertiesInternalInboundIpAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + allowNewPrivateEndpointConnections: { + serializedName: "properties.allowNewPrivateEndpointConnections", + xmlName: "properties.allowNewPrivateEndpointConnections", + type: { + name: "Boolean" + } + }, + ftpEnabled: { + serializedName: "properties.ftpEnabled", + xmlName: "properties.ftpEnabled", + type: { + name: "Boolean" + } + }, + remoteDebugEnabled: { + serializedName: "properties.remoteDebugEnabled", + xmlName: "properties.remoteDebugEnabled", + type: { + name: "Boolean" + } + }, + numberOfOutboundIpAddresses: { + serializedName: "properties.numberOfOutboundIpAddresses", + xmlName: "properties.numberOfOutboundIpAddresses", + type: { + name: "Number" + } + }, + inboundIpAddressOverride: { + serializedName: "properties.inboundIpAddressOverride", + xmlName: "properties.inboundIpAddressOverride", + type: { + name: "String" + } + }, + targetNumberOfOutboundIpAddresses: { + serializedName: "properties.targetNumberOfOutboundIpAddresses", + readOnly: true, + xmlName: "properties.targetNumberOfOutboundIpAddresses", + type: { + name: "Number" + } + } + } + } +}; + export const AppServiceEnvironmentPatchResource: coreClient.CompositeMapper = { serializedName: "AppServiceEnvironmentPatchResource", type: { @@ -15322,6 +15556,14 @@ export const AppServiceEnvironmentPatchResource: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + networkingConfiguration: { + serializedName: "properties.networkingConfiguration", + xmlName: "properties.networkingConfiguration", + type: { + name: "Composite", + className: "AseV3NetworkingConfiguration" + } } } } @@ -15418,84 +15660,6 @@ export const PushSettings: coreClient.CompositeMapper = { } }; -export const AseV3NetworkingConfiguration: coreClient.CompositeMapper = { - serializedName: "AseV3NetworkingConfiguration", - type: { - name: "Composite", - className: "AseV3NetworkingConfiguration", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - windowsOutboundIpAddresses: { - serializedName: "properties.windowsOutboundIpAddresses", - readOnly: true, - xmlName: "properties.windowsOutboundIpAddresses", - xmlElementName: - "AseV3NetworkingConfigurationPropertiesWindowsOutboundIpAddressesItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - linuxOutboundIpAddresses: { - serializedName: "properties.linuxOutboundIpAddresses", - readOnly: true, - xmlName: "properties.linuxOutboundIpAddresses", - xmlElementName: - "AseV3NetworkingConfigurationPropertiesLinuxOutboundIpAddressesItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - externalInboundIpAddresses: { - serializedName: "properties.externalInboundIpAddresses", - readOnly: true, - xmlName: "properties.externalInboundIpAddresses", - xmlElementName: - "AseV3NetworkingConfigurationPropertiesExternalInboundIpAddressesItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - internalInboundIpAddresses: { - serializedName: "properties.internalInboundIpAddresses", - readOnly: true, - xmlName: "properties.internalInboundIpAddresses", - xmlElementName: - "AseV3NetworkingConfigurationPropertiesInternalInboundIpAddressesItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - allowNewPrivateEndpointConnections: { - serializedName: "properties.allowNewPrivateEndpointConnections", - xmlName: "properties.allowNewPrivateEndpointConnections", - type: { - name: "Boolean" - } - } - } - } -}; - export const WorkerPoolResource: coreClient.CompositeMapper = { serializedName: "WorkerPoolResource", type: { @@ -18054,6 +18218,21 @@ export const StaticSitePatchResource: coreClient.CompositeMapper = { } } }, + linkedBackends: { + serializedName: "properties.linkedBackends", + readOnly: true, + xmlName: "properties.linkedBackends", + xmlElementName: "StaticSiteLinkedBackend", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StaticSiteLinkedBackend" + } + } + } + }, provider: { serializedName: "properties.provider", xmlName: "properties.provider", @@ -18191,6 +18370,21 @@ export const StaticSiteBuildARMResource: coreClient.CompositeMapper = { } } } + }, + linkedBackends: { + serializedName: "properties.linkedBackends", + readOnly: true, + xmlName: "properties.linkedBackends", + xmlElementName: "StaticSiteLinkedBackend", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StaticSiteLinkedBackend" + } + } + } } } } @@ -18513,6 +18707,47 @@ export const StaticSiteResetPropertiesARMResource: coreClient.CompositeMapper = } }; +export const StaticSiteLinkedBackendARMResource: coreClient.CompositeMapper = { + serializedName: "StaticSiteLinkedBackendARMResource", + type: { + name: "Composite", + className: "StaticSiteLinkedBackendARMResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + backendResourceId: { + serializedName: "properties.backendResourceId", + xmlName: "properties.backendResourceId", + type: { + name: "String" + } + }, + region: { + serializedName: "properties.region", + xmlName: "properties.region", + type: { + name: "String" + } + }, + createdOn: { + serializedName: "properties.createdOn", + readOnly: true, + xmlName: "properties.createdOn", + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + export const SitePatchResource: coreClient.CompositeMapper = { serializedName: "SitePatchResource", type: { diff --git a/sdk/appservice/arm-appservice/src/models/parameters.ts b/sdk/appservice/arm-appservice/src/models/parameters.ts index f0be7cf969ed..547c8bb930b2 100644 --- a/sdk/appservice/arm-appservice/src/models/parameters.ts +++ b/sdk/appservice/arm-appservice/src/models/parameters.ts @@ -56,6 +56,7 @@ import { StaticSiteUserInvitationRequestResource as StaticSiteUserInvitationRequestResourceMapper, StaticSiteCustomDomainRequestPropertiesARMResource as StaticSiteCustomDomainRequestPropertiesARMResourceMapper, StaticSiteResetPropertiesARMResource as StaticSiteResetPropertiesARMResourceMapper, + StaticSiteLinkedBackendARMResource as StaticSiteLinkedBackendARMResourceMapper, Site as SiteMapper, SitePatchResource as SitePatchResourceMapper, CsmSlotEntity as CsmSlotEntityMapper, @@ -132,7 +133,7 @@ export const subscriptionId: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-03-01", + defaultValue: "2022-03-01", isConstant: true, serializedName: "api-version", type: { @@ -1103,6 +1104,34 @@ export const resetPropertiesEnvelope: OperationParameter = { mapper: StaticSiteResetPropertiesARMResourceMapper }; +export const staticSiteLinkedBackendEnvelope: OperationParameter = { + parameterPath: "staticSiteLinkedBackendEnvelope", + mapper: StaticSiteLinkedBackendARMResourceMapper +}; + +export const linkedBackendName: OperationURLParameter = { + parameterPath: "linkedBackendName", + mapper: { + serializedName: "linkedBackendName", + required: true, + xmlName: "linkedBackendName", + type: { + name: "String" + } + } +}; + +export const isCleaningAuthConfig: OperationQueryParameter = { + parameterPath: ["options", "isCleaningAuthConfig"], + mapper: { + serializedName: "isCleaningAuthConfig", + xmlName: "isCleaningAuthConfig", + type: { + name: "Boolean" + } + } +}; + export const includeSlots: OperationQueryParameter = { parameterPath: ["options", "includeSlots"], mapper: { diff --git a/sdk/appservice/arm-appservice/src/operations/appServiceCertificateOrders.ts b/sdk/appservice/arm-appservice/src/operations/appServiceCertificateOrders.ts index 7b1e464af5ae..699f65b69145 100644 --- a/sdk/appservice/arm-appservice/src/operations/appServiceCertificateOrders.ts +++ b/sdk/appservice/arm-appservice/src/operations/appServiceCertificateOrders.ts @@ -367,12 +367,10 @@ export class AppServiceCertificateOrdersImpl }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -546,12 +544,10 @@ export class AppServiceCertificateOrdersImpl }, createOrUpdateCertificateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts b/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts index 0b5993c73375..e36d6a5bc2d9 100644 --- a/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts +++ b/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts @@ -1794,12 +1794,10 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments { { resourceGroupName, name, hostingEnvironmentEnvelope, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1879,12 +1877,10 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments { { resourceGroupName, name, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2017,12 +2013,10 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments { { resourceGroupName, name, vnetInfo, options }, changeVnetOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2214,12 +2208,10 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments { { resourceGroupName, name, multiRolePoolEnvelope, options }, createOrUpdateMultiRolePoolOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2481,12 +2473,10 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments { }, approveOrRejectPrivateEndpointConnectionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2580,12 +2570,10 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments { { resourceGroupName, name, privateEndpointConnectionName, options }, deletePrivateEndpointConnectionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2704,12 +2692,10 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments { { resourceGroupName, name, options }, resumeOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2806,12 +2792,10 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments { { resourceGroupName, name, options }, suspendOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2933,12 +2917,10 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments { { resourceGroupName, name, workerPoolName, workerPoolEnvelope, options }, createOrUpdateWorkerPoolOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/appservice/arm-appservice/src/operations/appServicePlans.ts b/sdk/appservice/arm-appservice/src/operations/appServicePlans.ts index f48565783eaa..fa5fb164569f 100644 --- a/sdk/appservice/arm-appservice/src/operations/appServicePlans.ts +++ b/sdk/appservice/arm-appservice/src/operations/appServicePlans.ts @@ -575,12 +575,10 @@ export class AppServicePlansImpl implements AppServicePlans { { resourceGroupName, name, appServicePlan, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/appservice/arm-appservice/src/operations/containerApps.ts b/sdk/appservice/arm-appservice/src/operations/containerApps.ts index eabca0953130..7dd6e415712a 100644 --- a/sdk/appservice/arm-appservice/src/operations/containerApps.ts +++ b/sdk/appservice/arm-appservice/src/operations/containerApps.ts @@ -248,12 +248,10 @@ export class ContainerAppsImpl implements ContainerApps { { resourceGroupName, name, containerAppEnvelope, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -333,12 +331,10 @@ export class ContainerAppsImpl implements ContainerApps { { resourceGroupName, name, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/appservice/arm-appservice/src/operations/domains.ts b/sdk/appservice/arm-appservice/src/operations/domains.ts index 72927dd76a3a..0fcf3a26f467 100644 --- a/sdk/appservice/arm-appservice/src/operations/domains.ts +++ b/sdk/appservice/arm-appservice/src/operations/domains.ts @@ -438,12 +438,10 @@ export class DomainsImpl implements Domains { { resourceGroupName, domainName, domain, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/appservice/arm-appservice/src/operations/kubeEnvironments.ts b/sdk/appservice/arm-appservice/src/operations/kubeEnvironments.ts index 771d22f1e5f1..4412d01f8fa4 100644 --- a/sdk/appservice/arm-appservice/src/operations/kubeEnvironments.ts +++ b/sdk/appservice/arm-appservice/src/operations/kubeEnvironments.ts @@ -249,12 +249,10 @@ export class KubeEnvironmentsImpl implements KubeEnvironments { { resourceGroupName, name, kubeEnvironmentEnvelope, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -334,12 +332,10 @@ export class KubeEnvironmentsImpl implements KubeEnvironments { { resourceGroupName, name, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/appservice/arm-appservice/src/operations/staticSites.ts b/sdk/appservice/arm-appservice/src/operations/staticSites.ts index 2ffb96e48677..e08cde7ad488 100644 --- a/sdk/appservice/arm-appservice/src/operations/staticSites.ts +++ b/sdk/appservice/arm-appservice/src/operations/staticSites.ts @@ -42,6 +42,11 @@ import { StaticSitesGetPrivateEndpointConnectionListOptionalParams, StaticSitesGetUserProvidedFunctionAppsForStaticSiteNextOptionalParams, StaticSitesGetUserProvidedFunctionAppsForStaticSiteOptionalParams, + StaticSiteLinkedBackendARMResource, + StaticSitesGetLinkedBackendsNextOptionalParams, + StaticSitesGetLinkedBackendsOptionalParams, + StaticSitesGetLinkedBackendsForBuildNextOptionalParams, + StaticSitesGetLinkedBackendsForBuildOptionalParams, StaticSitesWorkflowPreviewRequest, StaticSitesPreviewWorkflowOptionalParams, StaticSitesPreviewWorkflowResponse, @@ -125,6 +130,20 @@ import { StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteResponse, StaticSitesDetachUserProvidedFunctionAppFromStaticSiteOptionalParams, StaticSitesCreateZipDeploymentForStaticSiteOptionalParams, + StaticSitesValidateBackendOptionalParams, + StaticSitesValidateBackendForBuildOptionalParams, + StaticSitesGetLinkedBackendsResponse, + StaticSitesGetLinkedBackendsForBuildResponse, + StaticSitesGetLinkedBackendOptionalParams, + StaticSitesGetLinkedBackendResponse, + StaticSitesLinkBackendOptionalParams, + StaticSitesLinkBackendResponse, + StaticSitesUnlinkBackendOptionalParams, + StaticSitesGetLinkedBackendForBuildOptionalParams, + StaticSitesGetLinkedBackendForBuildResponse, + StaticSitesLinkBackendToBuildOptionalParams, + StaticSitesLinkBackendToBuildResponse, + StaticSitesUnlinkBackendFromBuildOptionalParams, StaticSitesListNextResponse, StaticSitesGetStaticSitesByResourceGroupNextResponse, StaticSitesListStaticSiteUsersNextResponse, @@ -134,7 +153,9 @@ import { StaticSitesListStaticSiteCustomDomainsNextResponse, StaticSitesListStaticSiteFunctionsNextResponse, StaticSitesGetPrivateEndpointConnectionListNextResponse, - StaticSitesGetUserProvidedFunctionAppsForStaticSiteNextResponse + StaticSitesGetUserProvidedFunctionAppsForStaticSiteNextResponse, + StaticSitesGetLinkedBackendsNextResponse, + StaticSitesGetLinkedBackendsForBuildNextResponse } from "../models"; /// @@ -850,6 +871,157 @@ export class StaticSitesImpl implements StaticSites { } } + /** + * Returns details of all backends linked to a static site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param options The options parameters. + */ + public listLinkedBackends( + resourceGroupName: string, + name: string, + options?: StaticSitesGetLinkedBackendsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.getLinkedBackendsPagingAll( + resourceGroupName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.getLinkedBackendsPagingPage( + resourceGroupName, + name, + options + ); + } + }; + } + + private async *getLinkedBackendsPagingPage( + resourceGroupName: string, + name: string, + options?: StaticSitesGetLinkedBackendsOptionalParams + ): AsyncIterableIterator { + let result = await this._getLinkedBackends( + resourceGroupName, + name, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._getLinkedBackendsNext( + resourceGroupName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *getLinkedBackendsPagingAll( + resourceGroupName: string, + name: string, + options?: StaticSitesGetLinkedBackendsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.getLinkedBackendsPagingPage( + resourceGroupName, + name, + options + )) { + yield* page; + } + } + + /** + * Returns details of all backends linked to a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param options The options parameters. + */ + public listLinkedBackendsForBuild( + resourceGroupName: string, + name: string, + environmentName: string, + options?: StaticSitesGetLinkedBackendsForBuildOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.getLinkedBackendsForBuildPagingAll( + resourceGroupName, + name, + environmentName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.getLinkedBackendsForBuildPagingPage( + resourceGroupName, + name, + environmentName, + options + ); + } + }; + } + + private async *getLinkedBackendsForBuildPagingPage( + resourceGroupName: string, + name: string, + environmentName: string, + options?: StaticSitesGetLinkedBackendsForBuildOptionalParams + ): AsyncIterableIterator { + let result = await this._getLinkedBackendsForBuild( + resourceGroupName, + name, + environmentName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._getLinkedBackendsForBuildNext( + resourceGroupName, + name, + environmentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *getLinkedBackendsForBuildPagingAll( + resourceGroupName: string, + name: string, + environmentName: string, + options?: StaticSitesGetLinkedBackendsForBuildOptionalParams + ): AsyncIterableIterator { + for await (const page of this.getLinkedBackendsForBuildPagingPage( + resourceGroupName, + name, + environmentName, + options + )) { + yield* page; + } + } + /** * Description for Generates a preview workflow file for the static site * @param location Location where you plan to create the static site. @@ -973,12 +1145,10 @@ export class StaticSitesImpl implements StaticSites { { resourceGroupName, name, staticSiteEnvelope, options }, createOrUpdateStaticSiteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1059,12 +1229,10 @@ export class StaticSitesImpl implements StaticSites { { resourceGroupName, name, options }, deleteStaticSiteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1269,12 +1437,10 @@ export class StaticSitesImpl implements StaticSites { { resourceGroupName, name, environmentName, options }, deleteStaticSiteBuildOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1518,12 +1684,10 @@ export class StaticSitesImpl implements StaticSites { }, registerUserProvidedFunctionAppWithStaticSiteBuildOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1644,12 +1808,10 @@ export class StaticSitesImpl implements StaticSites { }, createZipDeploymentForStaticSiteBuildOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1850,12 +2012,10 @@ export class StaticSitesImpl implements StaticSites { }, createOrUpdateStaticSiteCustomDomainOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1942,12 +2102,10 @@ export class StaticSitesImpl implements StaticSites { { resourceGroupName, name, domainName, options }, deleteStaticSiteCustomDomainOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2038,12 +2196,10 @@ export class StaticSitesImpl implements StaticSites { }, validateCustomDomainCanBeAddedToStaticSiteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2127,12 +2283,10 @@ export class StaticSitesImpl implements StaticSites { { resourceGroupName, name, options }, detachStaticSiteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2347,12 +2501,10 @@ export class StaticSitesImpl implements StaticSites { }, approveOrRejectPrivateEndpointConnectionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2442,12 +2594,10 @@ export class StaticSitesImpl implements StaticSites { { resourceGroupName, name, privateEndpointConnectionName, options }, deletePrivateEndpointConnectionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2617,12 +2767,10 @@ export class StaticSitesImpl implements StaticSites { }, registerUserProvidedFunctionAppWithStaticSiteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2728,12 +2876,10 @@ export class StaticSitesImpl implements StaticSites { { resourceGroupName, name, staticSiteZipDeploymentEnvelope, options }, createZipDeploymentForStaticSiteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -2760,115 +2906,645 @@ export class StaticSitesImpl implements StaticSites { } /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: StaticSitesListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec - ); - } - - /** - * GetStaticSitesByResourceGroupNext - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param nextLink The nextLink from the previous successful call to the GetStaticSitesByResourceGroup - * method. - * @param options The options parameters. - */ - private _getStaticSitesByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: StaticSitesGetStaticSitesByResourceGroupNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - getStaticSitesByResourceGroupNextOperationSpec - ); - } - - /** - * ListStaticSiteUsersNext + * Validates that a backend can be linked to a static site * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the static site. - * @param authprovider The auth provider for the users. - * @param nextLink The nextLink from the previous successful call to the ListStaticSiteUsers method. + * @param name Name of the static site + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties * @param options The options parameters. */ - private _listStaticSiteUsersNext( + async beginValidateBackend( resourceGroupName: string, name: string, - authprovider: string, - nextLink: string, - options?: StaticSitesListStaticSiteUsersNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, name, authprovider, nextLink, options }, - listStaticSiteUsersNextOperationSpec - ); - } + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesValidateBackendOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; - /** - * GetStaticSiteBuildsNext - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the static site. - * @param nextLink The nextLink from the previous successful call to the GetStaticSiteBuilds method. - * @param options The options parameters. - */ - private _getStaticSiteBuildsNext( - resourceGroupName: string, - name: string, - nextLink: string, - options?: StaticSitesGetStaticSiteBuildsNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, name, nextLink, options }, - getStaticSiteBuildsNextOperationSpec + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + name, + linkedBackendName, + staticSiteLinkedBackendEnvelope, + options + }, + validateBackendOperationSpec ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * ListStaticSiteBuildFunctionsNext + * Validates that a backend can be linked to a static site * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the static site. - * @param environmentName The stage site identifier. - * @param nextLink The nextLink from the previous successful call to the ListStaticSiteBuildFunctions - * method. + * @param name Name of the static site + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties * @param options The options parameters. */ - private _listStaticSiteBuildFunctionsNext( + async beginValidateBackendAndWait( resourceGroupName: string, name: string, - environmentName: string, - nextLink: string, - options?: StaticSitesListStaticSiteBuildFunctionsNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, name, environmentName, nextLink, options }, - listStaticSiteBuildFunctionsNextOperationSpec + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesValidateBackendOptionalParams + ): Promise { + const poller = await this.beginValidateBackend( + resourceGroupName, + name, + linkedBackendName, + staticSiteLinkedBackendEnvelope, + options ); + return poller.pollUntilDone(); } /** - * GetUserProvidedFunctionAppsForStaticSiteBuildNext + * Validates that a backend can be linked to a static site build * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the static site. - * @param environmentName The stage site identifier. - * @param nextLink The nextLink from the previous successful call to the - * GetUserProvidedFunctionAppsForStaticSiteBuild method. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties * @param options The options parameters. */ - private _getUserProvidedFunctionAppsForStaticSiteBuildNext( + async beginValidateBackendForBuild( resourceGroupName: string, name: string, environmentName: string, - nextLink: string, - options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildNextOptionalParams + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesValidateBackendForBuildOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + name, + environmentName, + linkedBackendName, + staticSiteLinkedBackendEnvelope, + options + }, + validateBackendForBuildOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Validates that a backend can be linked to a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + async beginValidateBackendForBuildAndWait( + resourceGroupName: string, + name: string, + environmentName: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesValidateBackendForBuildOptionalParams + ): Promise { + const poller = await this.beginValidateBackendForBuild( + resourceGroupName, + name, + environmentName, + linkedBackendName, + staticSiteLinkedBackendEnvelope, + options + ); + return poller.pollUntilDone(); + } + + /** + * Returns details of all backends linked to a static site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param options The options parameters. + */ + private _getLinkedBackends( + resourceGroupName: string, + name: string, + options?: StaticSitesGetLinkedBackendsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, options }, + getLinkedBackendsOperationSpec + ); + } + + /** + * Returns details of all backends linked to a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param options The options parameters. + */ + private _getLinkedBackendsForBuild( + resourceGroupName: string, + name: string, + environmentName: string, + options?: StaticSitesGetLinkedBackendsForBuildOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, environmentName, options }, + getLinkedBackendsForBuildOperationSpec + ); + } + + /** + * Returns the details of a linked backend linked to a static site by name + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param options The options parameters. + */ + getLinkedBackend( + resourceGroupName: string, + name: string, + linkedBackendName: string, + options?: StaticSitesGetLinkedBackendOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, linkedBackendName, options }, + getLinkedBackendOperationSpec + ); + } + + /** + * Link backend to a static site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param linkedBackendName Name of the backend to link to the static site + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + async beginLinkBackend( + resourceGroupName: string, + name: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesLinkBackendOptionalParams + ): Promise< + PollerLike< + PollOperationState, + StaticSitesLinkBackendResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + name, + linkedBackendName, + staticSiteLinkedBackendEnvelope, + options + }, + linkBackendOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Link backend to a static site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param linkedBackendName Name of the backend to link to the static site + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + async beginLinkBackendAndWait( + resourceGroupName: string, + name: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesLinkBackendOptionalParams + ): Promise { + const poller = await this.beginLinkBackend( + resourceGroupName, + name, + linkedBackendName, + staticSiteLinkedBackendEnvelope, + options + ); + return poller.pollUntilDone(); + } + + /** + * Unlink a backend from a static site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param linkedBackendName Name of the backend linked to the static site + * @param options The options parameters. + */ + unlinkBackend( + resourceGroupName: string, + name: string, + linkedBackendName: string, + options?: StaticSitesUnlinkBackendOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, linkedBackendName, options }, + unlinkBackendOperationSpec + ); + } + + /** + * Returns the details of a linked backend linked to a static site build by name + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param options The options parameters. + */ + getLinkedBackendForBuild( + resourceGroupName: string, + name: string, + environmentName: string, + linkedBackendName: string, + options?: StaticSitesGetLinkedBackendForBuildOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, environmentName, linkedBackendName, options }, + getLinkedBackendForBuildOperationSpec + ); + } + + /** + * Link backend to a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the backend to link to the static site + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + async beginLinkBackendToBuild( + resourceGroupName: string, + name: string, + environmentName: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesLinkBackendToBuildOptionalParams + ): Promise< + PollerLike< + PollOperationState, + StaticSitesLinkBackendToBuildResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + name, + environmentName, + linkedBackendName, + staticSiteLinkedBackendEnvelope, + options + }, + linkBackendToBuildOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Link backend to a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the backend to link to the static site + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + async beginLinkBackendToBuildAndWait( + resourceGroupName: string, + name: string, + environmentName: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesLinkBackendToBuildOptionalParams + ): Promise { + const poller = await this.beginLinkBackendToBuild( + resourceGroupName, + name, + environmentName, + linkedBackendName, + staticSiteLinkedBackendEnvelope, + options + ); + return poller.pollUntilDone(); + } + + /** + * Unlink a backend from a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the backend linked to the static site + * @param options The options parameters. + */ + unlinkBackendFromBuild( + resourceGroupName: string, + name: string, + environmentName: string, + linkedBackendName: string, + options?: StaticSitesUnlinkBackendFromBuildOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, environmentName, linkedBackendName, options }, + unlinkBackendFromBuildOperationSpec + ); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: StaticSitesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec + ); + } + + /** + * GetStaticSitesByResourceGroupNext + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param nextLink The nextLink from the previous successful call to the GetStaticSitesByResourceGroup + * method. + * @param options The options parameters. + */ + private _getStaticSitesByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: StaticSitesGetStaticSitesByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + getStaticSitesByResourceGroupNextOperationSpec + ); + } + + /** + * ListStaticSiteUsersNext + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site. + * @param authprovider The auth provider for the users. + * @param nextLink The nextLink from the previous successful call to the ListStaticSiteUsers method. + * @param options The options parameters. + */ + private _listStaticSiteUsersNext( + resourceGroupName: string, + name: string, + authprovider: string, + nextLink: string, + options?: StaticSitesListStaticSiteUsersNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, authprovider, nextLink, options }, + listStaticSiteUsersNextOperationSpec + ); + } + + /** + * GetStaticSiteBuildsNext + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site. + * @param nextLink The nextLink from the previous successful call to the GetStaticSiteBuilds method. + * @param options The options parameters. + */ + private _getStaticSiteBuildsNext( + resourceGroupName: string, + name: string, + nextLink: string, + options?: StaticSitesGetStaticSiteBuildsNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, nextLink, options }, + getStaticSiteBuildsNextOperationSpec + ); + } + + /** + * ListStaticSiteBuildFunctionsNext + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site. + * @param environmentName The stage site identifier. + * @param nextLink The nextLink from the previous successful call to the ListStaticSiteBuildFunctions + * method. + * @param options The options parameters. + */ + private _listStaticSiteBuildFunctionsNext( + resourceGroupName: string, + name: string, + environmentName: string, + nextLink: string, + options?: StaticSitesListStaticSiteBuildFunctionsNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, environmentName, nextLink, options }, + listStaticSiteBuildFunctionsNextOperationSpec + ); + } + + /** + * GetUserProvidedFunctionAppsForStaticSiteBuildNext + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site. + * @param environmentName The stage site identifier. + * @param nextLink The nextLink from the previous successful call to the + * GetUserProvidedFunctionAppsForStaticSiteBuild method. + * @param options The options parameters. + */ + private _getUserProvidedFunctionAppsForStaticSiteBuildNext( + resourceGroupName: string, + name: string, + environmentName: string, + nextLink: string, + options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildNextOptionalParams ): Promise< StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildNextResponse > { @@ -2957,6 +3633,47 @@ export class StaticSitesImpl implements StaticSites { getUserProvidedFunctionAppsForStaticSiteNextOperationSpec ); } + + /** + * GetLinkedBackendsNext + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param nextLink The nextLink from the previous successful call to the GetLinkedBackends method. + * @param options The options parameters. + */ + private _getLinkedBackendsNext( + resourceGroupName: string, + name: string, + nextLink: string, + options?: StaticSitesGetLinkedBackendsNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, nextLink, options }, + getLinkedBackendsNextOperationSpec + ); + } + + /** + * GetLinkedBackendsForBuildNext + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param nextLink The nextLink from the previous successful call to the GetLinkedBackendsForBuild + * method. + * @param options The options parameters. + */ + private _getLinkedBackendsForBuildNext( + resourceGroupName: string, + name: string, + environmentName: string, + nextLink: string, + options?: StaticSitesGetLinkedBackendsForBuildNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, environmentName, nextLink, options }, + getLinkedBackendsForBuildNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -4139,6 +4856,265 @@ const createZipDeploymentForStaticSiteOperationSpec: coreClient.OperationSpec = mediaType: "json", serializer }; +const validateBackendOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends/{linkedBackendName}/validate", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + requestBody: Parameters.staticSiteLinkedBackendEnvelope, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.linkedBackendName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const validateBackendForBuildOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends/{linkedBackendName}/validate", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + requestBody: Parameters.staticSiteLinkedBackendEnvelope, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.environmentName1, + Parameters.linkedBackendName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getLinkedBackendsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticSiteLinkedBackendsCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getLinkedBackendsForBuildOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticSiteLinkedBackendsCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.environmentName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getLinkedBackendOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends/{linkedBackendName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticSiteLinkedBackendARMResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.linkedBackendName + ], + headerParameters: [Parameters.accept], + serializer +}; +const linkBackendOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends/{linkedBackendName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.StaticSiteLinkedBackendARMResource + }, + 201: { + bodyMapper: Mappers.StaticSiteLinkedBackendARMResource + }, + 202: { + bodyMapper: Mappers.StaticSiteLinkedBackendARMResource + }, + 204: { + bodyMapper: Mappers.StaticSiteLinkedBackendARMResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + requestBody: Parameters.staticSiteLinkedBackendEnvelope, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.linkedBackendName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const unlinkBackendOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends/{linkedBackendName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.isCleaningAuthConfig], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.linkedBackendName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getLinkedBackendForBuildOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends/{linkedBackendName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticSiteLinkedBackendARMResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.environmentName1, + Parameters.linkedBackendName + ], + headerParameters: [Parameters.accept], + serializer +}; +const linkBackendToBuildOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends/{linkedBackendName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.StaticSiteLinkedBackendARMResource + }, + 201: { + bodyMapper: Mappers.StaticSiteLinkedBackendARMResource + }, + 202: { + bodyMapper: Mappers.StaticSiteLinkedBackendARMResource + }, + 204: { + bodyMapper: Mappers.StaticSiteLinkedBackendARMResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + requestBody: Parameters.staticSiteLinkedBackendEnvelope, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.environmentName1, + Parameters.linkedBackendName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const unlinkBackendFromBuildOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends/{linkedBackendName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.isCleaningAuthConfig], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.environmentName1, + Parameters.linkedBackendName + ], + headerParameters: [Parameters.accept], + serializer +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -4359,3 +5335,48 @@ const getUserProvidedFunctionAppsForStaticSiteNextOperationSpec: coreClient.Oper headerParameters: [Parameters.accept], serializer }; +const getLinkedBackendsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticSiteLinkedBackendsCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const getLinkedBackendsForBuildNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticSiteLinkedBackendsCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.nextLink, + Parameters.environmentName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appservice/arm-appservice/src/operations/webApps.ts b/sdk/appservice/arm-appservice/src/operations/webApps.ts index 3f90176b83a9..290985e18956 100644 --- a/sdk/appservice/arm-appservice/src/operations/webApps.ts +++ b/sdk/appservice/arm-appservice/src/operations/webApps.ts @@ -305,6 +305,10 @@ import { WebAppsCreateMSDeployOperationResponse, WebAppsGetMSDeployLogOptionalParams, WebAppsGetMSDeployLogResponse, + WebAppsGetOneDeployStatusOptionalParams, + WebAppsGetOneDeployStatusResponse, + WebAppsCreateOneDeployOperationOptionalParams, + WebAppsCreateOneDeployOperationResponse, WebAppsListFunctionsResponse, WebAppsGetFunctionsAdminTokenOptionalParams, WebAppsGetFunctionsAdminTokenResponse, @@ -509,6 +513,8 @@ import { WebAppsUpdateAuthSettingsSlotResponse, WebAppsGetAuthSettingsSlotOptionalParams, WebAppsGetAuthSettingsSlotResponse, + WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams, + WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse, WebAppsUpdateAuthSettingsV2SlotOptionalParams, WebAppsUpdateAuthSettingsV2SlotResponse, WebAppsGetAuthSettingsV2SlotOptionalParams, @@ -5818,12 +5824,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, siteEnvelope, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -6081,12 +6085,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, backupId, request, options }, restoreOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -6676,12 +6678,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, options }, listPublishingCredentialsOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -7323,12 +7323,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, mSDeploy, options }, createMSDeployOperationOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -7370,6 +7368,41 @@ export class WebAppsImpl implements WebApps { ); } + /** + * Description for Invoke onedeploy status API /api/deployments and gets the deployment status for the + * site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The options parameters. + */ + getOneDeployStatus( + resourceGroupName: string, + name: string, + options?: WebAppsGetOneDeployStatusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, options }, + getOneDeployStatusOperationSpec + ); + } + + /** + * Description for Invoke the OneDeploy publish web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The options parameters. + */ + createOneDeployOperation( + resourceGroupName: string, + name: string, + options?: WebAppsCreateOneDeployOperationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, options }, + createOneDeployOperationOperationSpec + ); + } + /** * Description for List the functions for a web site, or a deployment slot. * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -7487,12 +7520,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, functionName, functionEnvelope, options }, createFunctionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -8129,12 +8160,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, instanceId, mSDeploy, options }, createInstanceMSDeployOperationOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -8455,12 +8484,10 @@ export class WebAppsImpl implements WebApps { { subscriptionName, resourceGroupName, name, migrationOptions, options }, migrateStorageOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -8550,12 +8577,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, migrationRequestEnvelope, options }, migrateMySqlOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -8794,12 +8819,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, options }, startWebSiteNetworkTraceOperationOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -9192,12 +9215,10 @@ export class WebAppsImpl implements WebApps { }, approveOrRejectPrivateEndpointConnectionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -9287,12 +9308,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, privateEndpointConnectionName, options }, deletePrivateEndpointConnectionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -9667,12 +9686,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, request, options }, restoreFromBackupBlobOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -9754,12 +9771,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, restoreRequest, options }, restoreFromDeletedAppOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -9842,12 +9857,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, restoreRequest, options }, restoreSnapshotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -9971,12 +9984,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, siteExtensionId, options }, installSiteExtensionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -10123,12 +10134,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slot, siteEnvelope, options }, createOrUpdateSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -10417,12 +10426,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, backupId, slot, request, options }, restoreSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -10669,6 +10676,26 @@ export class WebAppsImpl implements WebApps { ); } + /** + * Gets site's Authentication / Authorization settings for apps via the V2 format + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings + * for the production slot. + * @param options The options parameters. + */ + getAuthSettingsV2WithoutSecretsSlot( + resourceGroupName: string, + name: string, + slot: string, + options?: WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, slot, options }, + getAuthSettingsV2WithoutSecretsSlotOperationSpec + ); + } + /** * Description for Updates site's Authentication / Authorization settings for apps via the V2 format * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -11084,12 +11111,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slot, options }, listPublishingCredentialsSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -11777,12 +11802,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slot, mSDeploy, options }, createMSDeployOperationSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -11961,12 +11984,10 @@ export class WebAppsImpl implements WebApps { }, createInstanceFunctionSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -12689,12 +12710,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slot, instanceId, mSDeploy, options }, createInstanceMSDeployOperationSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -13231,12 +13250,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slot, options }, startWebSiteNetworkTraceOperationSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -13690,12 +13707,10 @@ export class WebAppsImpl implements WebApps { }, approveOrRejectPrivateEndpointConnectionSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -13790,12 +13805,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, privateEndpointConnectionName, slot, options }, deletePrivateEndpointConnectionSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -14221,12 +14234,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slot, request, options }, restoreFromBackupBlobSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -14314,12 +14325,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slot, restoreRequest, options }, restoreFromDeletedAppSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -14407,12 +14416,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slot, restoreRequest, options }, restoreSnapshotSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -14548,12 +14555,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, siteExtensionId, slot, options }, installSiteExtensionSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -14686,12 +14691,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slot, slotSwapEntity, options }, swapSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -14843,12 +14846,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slot, siteSourceControl, options }, createOrUpdateSourceControlSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -15001,12 +15002,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slot, options }, startNetworkTraceSlotOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -15584,12 +15583,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, slotSwapEntity, options }, swapSlotWithProductionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -15727,12 +15724,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, siteSourceControl, options }, createOrUpdateSourceControlOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -15870,12 +15865,10 @@ export class WebAppsImpl implements WebApps { { resourceGroupName, name, options }, startNetworkTraceOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -19409,6 +19402,54 @@ const getMSDeployLogOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const getOneDeployStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/onedeploy", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOneDeployOperationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/onedeploy", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; const listFunctionsOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions", @@ -22379,6 +22420,29 @@ const getAuthSettingsSlotOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const getAuthSettingsV2WithoutSecretsSlotOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SiteAuthSettingsV2 + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot + ], + headerParameters: [Parameters.accept], + serializer +}; const updateAuthSettingsV2SlotOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/staticSites.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/staticSites.ts index f699f706b60b..dc24633c3d55 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/staticSites.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/staticSites.ts @@ -26,6 +26,9 @@ import { RemotePrivateEndpointConnectionARMResource, StaticSitesGetPrivateEndpointConnectionListOptionalParams, StaticSitesGetUserProvidedFunctionAppsForStaticSiteOptionalParams, + StaticSiteLinkedBackendARMResource, + StaticSitesGetLinkedBackendsOptionalParams, + StaticSitesGetLinkedBackendsForBuildOptionalParams, StaticSitesWorkflowPreviewRequest, StaticSitesPreviewWorkflowOptionalParams, StaticSitesPreviewWorkflowResponse, @@ -98,7 +101,19 @@ import { StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteOptionalParams, StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteResponse, StaticSitesDetachUserProvidedFunctionAppFromStaticSiteOptionalParams, - StaticSitesCreateZipDeploymentForStaticSiteOptionalParams + StaticSitesCreateZipDeploymentForStaticSiteOptionalParams, + StaticSitesValidateBackendOptionalParams, + StaticSitesValidateBackendForBuildOptionalParams, + StaticSitesGetLinkedBackendOptionalParams, + StaticSitesGetLinkedBackendResponse, + StaticSitesLinkBackendOptionalParams, + StaticSitesLinkBackendResponse, + StaticSitesUnlinkBackendOptionalParams, + StaticSitesGetLinkedBackendForBuildOptionalParams, + StaticSitesGetLinkedBackendForBuildResponse, + StaticSitesLinkBackendToBuildOptionalParams, + StaticSitesLinkBackendToBuildResponse, + StaticSitesUnlinkBackendFromBuildOptionalParams } from "../models"; /// @@ -215,6 +230,30 @@ export interface StaticSites { name: string, options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteOptionalParams ): PagedAsyncIterableIterator; + /** + * Returns details of all backends linked to a static site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param options The options parameters. + */ + listLinkedBackends( + resourceGroupName: string, + name: string, + options?: StaticSitesGetLinkedBackendsOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns details of all backends linked to a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param options The options parameters. + */ + listLinkedBackendsForBuild( + resourceGroupName: string, + name: string, + environmentName: string, + options?: StaticSitesGetLinkedBackendsForBuildOptionalParams + ): PagedAsyncIterableIterator; /** * Description for Generates a preview workflow file for the static site * @param location Location where you plan to create the static site. @@ -959,4 +998,206 @@ export interface StaticSites { staticSiteZipDeploymentEnvelope: StaticSiteZipDeploymentARMResource, options?: StaticSitesCreateZipDeploymentForStaticSiteOptionalParams ): Promise; + /** + * Validates that a backend can be linked to a static site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + beginValidateBackend( + resourceGroupName: string, + name: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesValidateBackendOptionalParams + ): Promise, void>>; + /** + * Validates that a backend can be linked to a static site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + beginValidateBackendAndWait( + resourceGroupName: string, + name: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesValidateBackendOptionalParams + ): Promise; + /** + * Validates that a backend can be linked to a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + beginValidateBackendForBuild( + resourceGroupName: string, + name: string, + environmentName: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesValidateBackendForBuildOptionalParams + ): Promise, void>>; + /** + * Validates that a backend can be linked to a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + beginValidateBackendForBuildAndWait( + resourceGroupName: string, + name: string, + environmentName: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesValidateBackendForBuildOptionalParams + ): Promise; + /** + * Returns the details of a linked backend linked to a static site by name + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param options The options parameters. + */ + getLinkedBackend( + resourceGroupName: string, + name: string, + linkedBackendName: string, + options?: StaticSitesGetLinkedBackendOptionalParams + ): Promise; + /** + * Link backend to a static site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param linkedBackendName Name of the backend to link to the static site + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + beginLinkBackend( + resourceGroupName: string, + name: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesLinkBackendOptionalParams + ): Promise< + PollerLike< + PollOperationState, + StaticSitesLinkBackendResponse + > + >; + /** + * Link backend to a static site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param linkedBackendName Name of the backend to link to the static site + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + beginLinkBackendAndWait( + resourceGroupName: string, + name: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesLinkBackendOptionalParams + ): Promise; + /** + * Unlink a backend from a static site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param linkedBackendName Name of the backend linked to the static site + * @param options The options parameters. + */ + unlinkBackend( + resourceGroupName: string, + name: string, + linkedBackendName: string, + options?: StaticSitesUnlinkBackendOptionalParams + ): Promise; + /** + * Returns the details of a linked backend linked to a static site build by name + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the linked backend that should be retrieved + * @param options The options parameters. + */ + getLinkedBackendForBuild( + resourceGroupName: string, + name: string, + environmentName: string, + linkedBackendName: string, + options?: StaticSitesGetLinkedBackendForBuildOptionalParams + ): Promise; + /** + * Link backend to a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the backend to link to the static site + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + beginLinkBackendToBuild( + resourceGroupName: string, + name: string, + environmentName: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesLinkBackendToBuildOptionalParams + ): Promise< + PollerLike< + PollOperationState, + StaticSitesLinkBackendToBuildResponse + > + >; + /** + * Link backend to a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the backend to link to the static site + * @param staticSiteLinkedBackendEnvelope A JSON representation of the linked backend request + * properties + * @param options The options parameters. + */ + beginLinkBackendToBuildAndWait( + resourceGroupName: string, + name: string, + environmentName: string, + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesLinkBackendToBuildOptionalParams + ): Promise; + /** + * Unlink a backend from a static site build + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the static site + * @param environmentName The stage site identifier + * @param linkedBackendName Name of the backend linked to the static site + * @param options The options parameters. + */ + unlinkBackendFromBuild( + resourceGroupName: string, + name: string, + environmentName: string, + linkedBackendName: string, + options?: StaticSitesUnlinkBackendFromBuildOptionalParams + ): Promise; } diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts index c8f1715d7f59..a0339e5a4f7d 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts @@ -225,6 +225,10 @@ import { WebAppsCreateMSDeployOperationResponse, WebAppsGetMSDeployLogOptionalParams, WebAppsGetMSDeployLogResponse, + WebAppsGetOneDeployStatusOptionalParams, + WebAppsGetOneDeployStatusResponse, + WebAppsCreateOneDeployOperationOptionalParams, + WebAppsCreateOneDeployOperationResponse, WebAppsGetFunctionsAdminTokenOptionalParams, WebAppsGetFunctionsAdminTokenResponse, WebAppsGetFunctionOptionalParams, @@ -411,6 +415,8 @@ import { WebAppsUpdateAuthSettingsSlotResponse, WebAppsGetAuthSettingsSlotOptionalParams, WebAppsGetAuthSettingsSlotResponse, + WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams, + WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse, WebAppsUpdateAuthSettingsV2SlotOptionalParams, WebAppsUpdateAuthSettingsV2SlotResponse, WebAppsGetAuthSettingsV2SlotOptionalParams, @@ -2398,6 +2404,29 @@ export interface WebApps { name: string, options?: WebAppsGetMSDeployLogOptionalParams ): Promise; + /** + * Description for Invoke onedeploy status API /api/deployments and gets the deployment status for the + * site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The options parameters. + */ + getOneDeployStatus( + resourceGroupName: string, + name: string, + options?: WebAppsGetOneDeployStatusOptionalParams + ): Promise; + /** + * Description for Invoke the OneDeploy publish web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The options parameters. + */ + createOneDeployOperation( + resourceGroupName: string, + name: string, + options?: WebAppsCreateOneDeployOperationOptionalParams + ): Promise; /** * Description for Fetch a short lived token that can be exchanged for a master key. * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -4006,6 +4035,20 @@ export interface WebApps { slot: string, options?: WebAppsGetAuthSettingsSlotOptionalParams ): Promise; + /** + * Gets site's Authentication / Authorization settings for apps via the V2 format + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings + * for the production slot. + * @param options The options parameters. + */ + getAuthSettingsV2WithoutSecretsSlot( + resourceGroupName: string, + name: string, + slot: string, + options?: WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams + ): Promise; /** * Description for Updates site's Authentication / Authorization settings for apps via the V2 format * @param resourceGroupName Name of the resource group to which the resource belongs. diff --git a/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts b/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts index d526946679bf..c4114b51d87d 100644 --- a/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts +++ b/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts @@ -149,7 +149,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-appservice/12.0.1`; + const packageDetails = `azsdk-js-arm-appservice/13.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -164,8 +164,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { userAgentOptions: { userAgentPrefix }, - baseUri: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + baseUri: options.endpoint || "https://management.azure.com" }; super(optionsWithDefaults); // Parameter assignments @@ -173,7 +172,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-03-01"; + this.apiVersion = options.apiVersion || "2022-03-01"; this.appServiceCertificateOrders = new AppServiceCertificateOrdersImpl( this ); diff --git a/sdk/appservice/arm-appservice/test/sampleTest.ts b/sdk/appservice/arm-appservice/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/appservice/arm-appservice/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/appservice/arm-appservice/tsconfig.json b/sdk/appservice/arm-appservice/tsconfig.json index c0481691633c..3e6ae96443f3 100644 --- a/sdk/appservice/arm-appservice/tsconfig.json +++ b/sdk/appservice/arm-appservice/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-appservice": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"