From a9294ef2932691b204352eed7eab444cbb438b3c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 7 Jun 2022 19:21:53 +0000 Subject: [PATCH] CodeGen from PR 19352 in Azure/azure-rest-api-specs Merge 05d7de514da2ccd90e201664cb9146d7417a34d8 into b5e1ee6475c47ad5a6bdea430a2516ae5e1fdb31 --- sdk/appservice/arm-appservice/CHANGELOG.md | 137 +- sdk/appservice/arm-appservice/_meta.json | 12 +- sdk/appservice/arm-appservice/package.json | 26 +- .../review/arm-appservice.api.md | 414 +++++- .../arm-appservice/src/models/index.ts | 620 +++++++-- .../arm-appservice/src/models/mappers.ts | 771 ++++++++--- .../arm-appservice/src/models/parameters.ts | 60 +- .../src/operations/appServiceEnvironments.ts | 139 ++ .../src/operations/staticSites.ts | 1217 +++++++++++++++-- .../arm-appservice/src/operations/webApps.ts | 747 +++++++++- .../appServiceEnvironments.ts | 46 + .../src/operationsInterfaces/staticSites.ts | 243 +++- .../src/operationsInterfaces/webApps.ts | 143 ++ .../src/webSiteManagementClient.ts | 66 +- .../arm-appservice/test/sampleTest.ts | 43 + sdk/appservice/arm-appservice/tsconfig.json | 10 +- 16 files changed, 4165 insertions(+), 529 deletions(-) create mode 100644 sdk/appservice/arm-appservice/test/sampleTest.ts diff --git a/sdk/appservice/arm-appservice/CHANGELOG.md b/sdk/appservice/arm-appservice/CHANGELOG.md index 5e5aac94471a..bd1e89ece71f 100644 --- a/sdk/appservice/arm-appservice/CHANGELOG.md +++ b/sdk/appservice/arm-appservice/CHANGELOG.md @@ -1,15 +1,136 @@ # Release History + +## 13.0.0 (2022-06-07) + +**Features** -## 12.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation AppServiceEnvironments.deleteAseCustomDnsSuffixConfiguration + - Added operation AppServiceEnvironments.getAseCustomDnsSuffixConfiguration + - Added operation AppServiceEnvironments.updateAseCustomDnsSuffixConfiguration + - 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.beginGetProductionSiteDeploymentStatus + - Added operation WebApps.beginGetProductionSiteDeploymentStatusAndWait + - Added operation WebApps.beginGetSlotSiteDeploymentStatusSlot + - Added operation WebApps.beginGetSlotSiteDeploymentStatusSlotAndWait + - Added operation WebApps.createOneDeployOperation + - Added operation WebApps.getAuthSettingsV2WithoutSecretsSlot + - Added operation WebApps.getOneDeployStatus + - Added operation WebApps.listProductionSiteDeploymentStatuses + - Added operation WebApps.listSlotSiteDeploymentStatusesSlot + - Added Interface AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationOptionalParams + - Added Interface AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationOptionalParams + - Added Interface AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationOptionalParams + - Added Interface CertificateEmail + - Added Interface CertificateOrderAction + - Added Interface CsmDeploymentStatusCollection + - 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 Interface WebAppsGetProductionSiteDeploymentStatusOptionalParams + - Added Interface WebAppsGetSlotSiteDeploymentStatusSlotOptionalParams + - Added Interface WebAppsListProductionSiteDeploymentStatusesNextOptionalParams + - Added Interface WebAppsListProductionSiteDeploymentStatusesOptionalParams + - Added Interface WebAppsListSlotSiteDeploymentStatusesSlotNextOptionalParams + - Added Interface WebAppsListSlotSiteDeploymentStatusesSlotOptionalParams + - Added Type Alias AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationResponse + - Added Type Alias AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationResponse + - Added Type Alias AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationResponse + - Added Type Alias CsmDeploymentStatus + - Added Type Alias CustomDnsSuffixConfiguration + - Added Type Alias CustomDnsSuffixProvisioningState + - Added Type Alias DeploymentBuildStatus + - 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 + - Added Type Alias WebAppsGetProductionSiteDeploymentStatusResponse + - Added Type Alias WebAppsGetSlotSiteDeploymentStatusSlotResponse + - Added Type Alias WebAppsListProductionSiteDeploymentStatusesNextResponse + - Added Type Alias WebAppsListProductionSiteDeploymentStatusesResponse + - Added Type Alias WebAppsListSlotSiteDeploymentStatusesSlotNextResponse + - Added Type Alias WebAppsListSlotSiteDeploymentStatusesSlotResponse + - Interface AppServiceEnvironment has a new optional parameter customDnsSuffixConfiguration + - Interface AppServiceEnvironment has a new optional parameter networkingConfiguration + - Interface ListCustomHostNameSitesNextOptionalParams has a new optional parameter hostname + - Interface ListCustomHostNameSitesOptionalParams has a new optional parameter hostname + - Type Alias AppServiceEnvironmentPatchResource has a new parameter customDnsSuffixConfiguration + - Type Alias AppServiceEnvironmentPatchResource has a new parameter networkingConfiguration + - Type Alias AppServiceEnvironmentResource has a new parameter customDnsSuffixConfiguration + - 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 inboundIpAddressOverride + - 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 Site has a new parameter publicNetworkAccess + - Type Alias SitePatchResource has a new parameter publicNetworkAccess + - Type Alias StaticSiteARMResource has a new parameter linkedBackends + - Type Alias StaticSiteARMResource has a new parameter publicNetworkAccess + - Type Alias StaticSiteBuildARMResource has a new parameter linkedBackends + - Type Alias StaticSitePatchResource has a new parameter linkedBackends + - Type Alias StaticSitePatchResource has a new parameter publicNetworkAccess + - Added Enum KnownDeploymentBuildStatus + - 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/_meta.json b/sdk/appservice/arm-appservice/_meta.json index 59b632fd1f20..34a49c772953 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": "62189b93b342cba41702e53d0d531f389210e7d5", + "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.19.20220425.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.1", + "use": "@autorest/typescript@6.0.0-alpha.19.20220425.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..96ff06ce2a16 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" }, @@ -11,9 +11,9 @@ "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.0.0", + "@azure/core-client": "^1.5.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.1.0", + "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" }, "keywords": [ @@ -40,9 +40,11 @@ "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "cross-env": "^7.0.2", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appservice/arm-appservice", "repository": { @@ -93,7 +95,7 @@ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", "integration-test:browser": "echo skipped", "docs": "echo skipped" }, @@ -106,13 +108,5 @@ } ] }, - "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..53b989a3d9c0 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>>; @@ -422,6 +416,7 @@ export type AppServiceCertificateResource = Resource & { // @public export interface AppServiceEnvironment { clusterSettings?: NameValuePair[]; + customDnsSuffixConfiguration?: CustomDnsSuffixConfiguration; dedicatedHostCount?: number; dnsSuffix?: string; frontEndScaleFactor?: number; @@ -431,6 +426,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 +459,8 @@ export type AppServiceEnvironmentPatchResource = ProxyOnlyResource & { readonly hasLinuxWorkers?: boolean; dedicatedHostCount?: number; zoneRedundant?: boolean; + customDnsSuffixConfiguration?: CustomDnsSuffixConfiguration; + networkingConfiguration?: AseV3NetworkingConfiguration; }; // @public @@ -483,6 +481,8 @@ export type AppServiceEnvironmentResource = Resource & { readonly hasLinuxWorkers?: boolean; dedicatedHostCount?: number; zoneRedundant?: boolean; + customDnsSuffixConfiguration?: CustomDnsSuffixConfiguration; + networkingConfiguration?: AseV3NetworkingConfiguration; }; // @public @@ -502,7 +502,9 @@ export interface AppServiceEnvironments { beginListChangeVnetAndWait(resourceGroupName: string, name: string, vnetInfo: VirtualNetworkProfile, options?: AppServiceEnvironmentsChangeVnetOptionalParams): PagedAsyncIterableIterator; beginListResumeAndWait(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsResumeOptionalParams): PagedAsyncIterableIterator; beginListSuspendAndWait(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsSuspendOptionalParams): PagedAsyncIterableIterator; + deleteAseCustomDnsSuffixConfiguration(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationOptionalParams): Promise; get(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetOptionalParams): Promise; + getAseCustomDnsSuffixConfiguration(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationOptionalParams): Promise; getAseV3NetworkingConfiguration(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetAseV3NetworkingConfigurationOptionalParams): Promise; getDiagnosticsItem(resourceGroupName: string, name: string, diagnosticsName: string, options?: AppServiceEnvironmentsGetDiagnosticsItemOptionalParams): Promise; getMultiRolePool(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetMultiRolePoolOptionalParams): Promise; @@ -533,6 +535,7 @@ export interface AppServiceEnvironments { listWorkerPoolSkus(resourceGroupName: string, name: string, workerPoolName: string, options?: AppServiceEnvironmentsListWorkerPoolSkusOptionalParams): PagedAsyncIterableIterator; reboot(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsRebootOptionalParams): Promise; update(resourceGroupName: string, name: string, hostingEnvironmentEnvelope: AppServiceEnvironmentPatchResource, options?: AppServiceEnvironmentsUpdateOptionalParams): Promise; + updateAseCustomDnsSuffixConfiguration(resourceGroupName: string, name: string, customDnsSuffixConfiguration: CustomDnsSuffixConfiguration, options?: AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationOptionalParams): Promise; updateAseNetworkingConfiguration(resourceGroupName: string, name: string, aseNetworkingConfiguration: AseV3NetworkingConfiguration, options?: AppServiceEnvironmentsUpdateAseNetworkingConfigurationOptionalParams): Promise; updateMultiRolePool(resourceGroupName: string, name: string, multiRolePoolEnvelope: WorkerPoolResource, options?: AppServiceEnvironmentsUpdateMultiRolePoolOptionalParams): Promise; updateWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, workerPoolEnvelope: WorkerPoolResource, options?: AppServiceEnvironmentsUpdateWorkerPoolOptionalParams): Promise; @@ -590,6 +593,13 @@ export interface AppServiceEnvironmentsCreateOrUpdateWorkerPoolOptionalParams ex // @public export type AppServiceEnvironmentsCreateOrUpdateWorkerPoolResponse = WorkerPoolResource; +// @public +export interface AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationResponse = Record; + // @public export interface AppServiceEnvironmentsDeleteOptionalParams extends coreClient.OperationOptions { forceDelete?: boolean; @@ -606,6 +616,13 @@ export interface AppServiceEnvironmentsDeletePrivateEndpointConnectionOptionalPa // @public export type AppServiceEnvironmentsDeletePrivateEndpointConnectionResponse = Record; +// @public +export interface AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationResponse = CustomDnsSuffixConfiguration; + // @public export interface AppServiceEnvironmentsGetAseV3NetworkingConfigurationOptionalParams extends coreClient.OperationOptions { } @@ -982,6 +999,13 @@ export interface AppServiceEnvironmentsSuspendOptionalParams extends coreClient. // @public export type AppServiceEnvironmentsSuspendResponse = WebAppCollection; +// @public +export interface AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationResponse = CustomDnsSuffixConfiguration; + // @public export interface AppServiceEnvironmentsUpdateAseNetworkingConfigurationOptionalParams extends coreClient.OperationOptions { } @@ -1388,6 +1412,9 @@ export type AseV3NetworkingConfiguration = ProxyOnlyResource & { readonly externalInboundIpAddresses?: string[]; readonly internalInboundIpAddresses?: string[]; allowNewPrivateEndpointConnections?: boolean; + ftpEnabled?: boolean; + remoteDebugEnabled?: boolean; + inboundIpAddressOverride?: string; }; // @public @@ -1647,16 +1674,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"; @@ -2194,6 +2221,23 @@ export interface CorsSettings { supportCredentials?: boolean; } +// @public +export type CsmDeploymentStatus = ProxyOnlyResource & { + deploymentId?: string; + status?: DeploymentBuildStatus; + numberOfInstancesInProgress?: number; + numberOfInstancesSuccessful?: number; + numberOfInstancesFailed?: number; + failedInstancesLogs?: string[]; + errors?: ErrorEntity[]; +}; + +// @public +export interface CsmDeploymentStatusCollection { + readonly nextLink?: string; + value: CsmDeploymentStatus[]; +} + // @public export interface CsmMoveResourceEnvelope { // (undocumented) @@ -2269,6 +2313,18 @@ export interface CsmUsageQuotaCollection { value: CsmUsageQuota[]; } +// @public +export type CustomDnsSuffixConfiguration = ProxyOnlyResource & { + readonly provisioningState?: CustomDnsSuffixProvisioningState; + readonly provisioningDetails?: string; + dnsSuffix?: string; + certificateUrl?: string; + keyVaultReferenceIdentity?: string; +}; + +// @public +export type CustomDnsSuffixProvisioningState = "Succeeded" | "Failed" | "Degraded" | "InProgress"; + // @public export type CustomDomainStatus = string; @@ -2490,6 +2546,9 @@ export type Deployment = ProxyOnlyResource & { details?: string; }; +// @public +export type DeploymentBuildStatus = string; + // @public export interface DeploymentCollection { readonly nextLink?: string; @@ -2931,7 +2990,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 +3045,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 +3268,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 +3825,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 +3888,8 @@ export enum KnownCustomDomainStatus { // (undocumented) RetrievingValidationToken = "RetrievingValidationToken", // (undocumented) + Unhealthy = "Unhealthy", + // (undocumented) Validating = "Validating" } @@ -3871,23 +3906,33 @@ export enum KnownDatabaseType { } // @public -export enum KnownDomainPatchResourcePropertiesDomainNotRenewableReasonsItem { +export enum KnownDeploymentBuildStatus { // (undocumented) - ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", + BuildAborted = "BuildAborted", // (undocumented) - RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", + BuildFailed = "BuildFailed", // (undocumented) - SubscriptionNotActive = "SubscriptionNotActive" -} - -// @public -export enum KnownDomainPropertiesDomainNotRenewableReasonsItem { + BuildInProgress = "BuildInProgress", // (undocumented) - ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", + BuildPending = "BuildPending", // (undocumented) - RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", + BuildRequestReceived = "BuildRequestReceived", // (undocumented) - SubscriptionNotActive = "SubscriptionNotActive" + BuildSuccessful = "BuildSuccessful", + // (undocumented) + PostBuildRestartRequired = "PostBuildRestartRequired", + // (undocumented) + RuntimeFailed = "RuntimeFailed", + // (undocumented) + RuntimeStarting = "RuntimeStarting", + // (undocumented) + RuntimeSuccessful = "RuntimeSuccessful", + // (undocumented) + StartPolling = "StartPolling", + // (undocumented) + StartPollingWithRestart = "StartPollingWithRestart", + // (undocumented) + TimedOut = "TimedOut" } // @public @@ -3903,7 +3948,7 @@ export enum KnownEnterpriseGradeCdnStatus { } // @public -export enum KnownEnum15 { +export enum KnownEnum12 { // (undocumented) All = "All", // (undocumented) @@ -3917,7 +3962,7 @@ export enum KnownEnum15 { } // @public -export enum KnownEnum16 { +export enum KnownEnum13 { // (undocumented) All = "All", // (undocumented) @@ -3927,7 +3972,7 @@ export enum KnownEnum16 { } // @public -export enum KnownEnum17 { +export enum KnownEnum14 { // (undocumented) All = "All", // (undocumented) @@ -3937,7 +3982,7 @@ export enum KnownEnum17 { } // @public -export enum KnownEnum18 { +export enum KnownEnum15 { // (undocumented) All = "All", // (undocumented) @@ -3947,7 +3992,7 @@ export enum KnownEnum18 { } // @public -export enum KnownEnum19 { +export enum KnownEnum16 { // (undocumented) All = "All", // (undocumented) @@ -3957,7 +4002,7 @@ export enum KnownEnum19 { } // @public -export enum KnownEnum20 { +export enum KnownEnum17 { // (undocumented) All = "All", // (undocumented) @@ -4030,6 +4075,16 @@ export enum KnownPublishingProfileFormat { WebDeploy = "WebDeploy" } +// @public +export enum KnownResourceNotRenewableReason { + // (undocumented) + ExpirationNotInRenewalTimeRange = "ExpirationNotInRenewalTimeRange", + // (undocumented) + RegistrationStatusNotSupportedForRenewal = "RegistrationStatusNotSupportedForRenewal", + // (undocumented) + SubscriptionNotActive = "SubscriptionNotActive" +} + // @public export enum KnownResourceScopeType { // (undocumented) @@ -4317,6 +4372,7 @@ export type ListBillingMetersResponse = BillingMeterCollection; // @public export interface ListCustomHostNameSitesNextOptionalParams extends coreClient.OperationOptions { + hostname?: string; } // @public @@ -4324,6 +4380,7 @@ export type ListCustomHostNameSitesNextResponse = CustomHostnameSitesCollection; // @public export interface ListCustomHostNameSitesOptionalParams extends coreClient.OperationOptions { + hostname?: string; } // @public @@ -4903,7 +4960,7 @@ export interface Provider { // @public export interface ProviderGetAvailableStacksNextOptionalParams extends coreClient.OperationOptions { // (undocumented) - osTypeSelected?: Enum15; + osTypeSelected?: Enum12; } // @public @@ -4912,7 +4969,7 @@ export type ProviderGetAvailableStacksNextResponse = ApplicationStackCollection; // @public export interface ProviderGetAvailableStacksOnPremNextOptionalParams extends coreClient.OperationOptions { // (undocumented) - osTypeSelected?: Enum20; + osTypeSelected?: Enum17; } // @public @@ -4921,7 +4978,7 @@ export type ProviderGetAvailableStacksOnPremNextResponse = ApplicationStackColle // @public export interface ProviderGetAvailableStacksOnPremOptionalParams extends coreClient.OperationOptions { // (undocumented) - osTypeSelected?: Enum20; + osTypeSelected?: Enum17; } // @public @@ -4930,7 +4987,7 @@ export type ProviderGetAvailableStacksOnPremResponse = ApplicationStackCollectio // @public export interface ProviderGetAvailableStacksOptionalParams extends coreClient.OperationOptions { // (undocumented) - osTypeSelected?: Enum15; + osTypeSelected?: Enum12; } // @public @@ -4938,7 +4995,7 @@ export type ProviderGetAvailableStacksResponse = ApplicationStackCollection; // @public export interface ProviderGetFunctionAppStacksForLocationNextOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum17; + stackOsType?: Enum14; } // @public @@ -4946,7 +5003,7 @@ export type ProviderGetFunctionAppStacksForLocationNextResponse = FunctionAppSta // @public export interface ProviderGetFunctionAppStacksForLocationOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum17; + stackOsType?: Enum14; } // @public @@ -4954,7 +5011,7 @@ export type ProviderGetFunctionAppStacksForLocationResponse = FunctionAppStackCo // @public export interface ProviderGetFunctionAppStacksNextOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum16; + stackOsType?: Enum13; } // @public @@ -4962,7 +5019,7 @@ export type ProviderGetFunctionAppStacksNextResponse = FunctionAppStackCollectio // @public export interface ProviderGetFunctionAppStacksOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum16; + stackOsType?: Enum13; } // @public @@ -4970,7 +5027,7 @@ export type ProviderGetFunctionAppStacksResponse = FunctionAppStackCollection; // @public export interface ProviderGetWebAppStacksForLocationNextOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum18; + stackOsType?: Enum15; } // @public @@ -4978,7 +5035,7 @@ export type ProviderGetWebAppStacksForLocationNextResponse = WebAppStackCollecti // @public export interface ProviderGetWebAppStacksForLocationOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum18; + stackOsType?: Enum15; } // @public @@ -4986,7 +5043,7 @@ export type ProviderGetWebAppStacksForLocationResponse = WebAppStackCollection; // @public export interface ProviderGetWebAppStacksNextOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum19; + stackOsType?: Enum16; } // @public @@ -4994,7 +5051,7 @@ export type ProviderGetWebAppStacksNextResponse = WebAppStackCollection; // @public export interface ProviderGetWebAppStacksOptionalParams extends coreClient.OperationOptions { - stackOsType?: Enum19; + stackOsType?: Enum16; } // @public @@ -5516,6 +5573,9 @@ export interface ResourceNameAvailabilityRequest { type: CheckNameResourceTypes; } +// @public +export type ResourceNotRenewableReason = string; + // @public export type ResourceScopeType = string; @@ -5652,6 +5712,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; @@ -5677,6 +5740,7 @@ export type Site = Resource & { httpsOnly?: boolean; redundancyMode?: RedundancyMode; readonly inProgressOperationId?: string; + publicNetworkAccess?: string; storageAccountRequired?: boolean; keyVaultReferenceIdentity?: string; virtualNetworkSubnetId?: string; @@ -6022,6 +6086,7 @@ export type SitePatchResource = ProxyOnlyResource & { httpsOnly?: boolean; redundancyMode?: RedundancyMode; readonly inProgressOperationId?: string; + publicNetworkAccess?: string; storageAccountRequired?: boolean; keyVaultReferenceIdentity?: string; virtualNetworkSubnetId?: string; @@ -6270,8 +6335,10 @@ export type StaticSiteARMResource = Resource & { readonly contentDistributionEndpoint?: string; readonly keyVaultReferenceIdentity?: string; readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; + readonly linkedBackends?: StaticSiteLinkedBackend[]; provider?: string; enterpriseGradeCdnStatus?: EnterpriseGradeCdnStatus; + publicNetworkAccess?: string; }; // @public @@ -6284,6 +6351,7 @@ export type StaticSiteBuildARMResource = ProxyOnlyResource & { readonly lastUpdatedOn?: Date; readonly status?: BuildStatus; readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; + readonly linkedBackends?: StaticSiteLinkedBackend[]; }; // @public @@ -6342,6 +6410,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,8 +6447,10 @@ export type StaticSitePatchResource = ProxyOnlyResource & { readonly contentDistributionEndpoint?: string; readonly keyVaultReferenceIdentity?: string; readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; + readonly linkedBackends?: StaticSiteLinkedBackend[]; provider?: string; enterpriseGradeCdnStatus?: EnterpriseGradeCdnStatus; + publicNetworkAccess?: string; }; // @public @@ -6389,10 +6481,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 +6503,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 +6513,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 +6532,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 +6657,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 +6818,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 +6979,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 +7003,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; @@ -7430,6 +7618,10 @@ export interface WebApps { beginDeletePrivateEndpointConnectionAndWait(resourceGroupName: string, name: string, privateEndpointConnectionName: string, options?: WebAppsDeletePrivateEndpointConnectionOptionalParams): Promise; beginDeletePrivateEndpointConnectionSlot(resourceGroupName: string, name: string, privateEndpointConnectionName: string, slot: string, options?: WebAppsDeletePrivateEndpointConnectionSlotOptionalParams): Promise, WebAppsDeletePrivateEndpointConnectionSlotResponse>>; beginDeletePrivateEndpointConnectionSlotAndWait(resourceGroupName: string, name: string, privateEndpointConnectionName: string, slot: string, options?: WebAppsDeletePrivateEndpointConnectionSlotOptionalParams): Promise; + beginGetProductionSiteDeploymentStatus(resourceGroupName: string, name: string, deploymentStatusId: string, options?: WebAppsGetProductionSiteDeploymentStatusOptionalParams): Promise, WebAppsGetProductionSiteDeploymentStatusResponse>>; + beginGetProductionSiteDeploymentStatusAndWait(resourceGroupName: string, name: string, deploymentStatusId: string, options?: WebAppsGetProductionSiteDeploymentStatusOptionalParams): Promise; + beginGetSlotSiteDeploymentStatusSlot(resourceGroupName: string, name: string, slot: string, deploymentStatusId: string, options?: WebAppsGetSlotSiteDeploymentStatusSlotOptionalParams): Promise, WebAppsGetSlotSiteDeploymentStatusSlotResponse>>; + beginGetSlotSiteDeploymentStatusSlotAndWait(resourceGroupName: string, name: string, slot: string, deploymentStatusId: string, options?: WebAppsGetSlotSiteDeploymentStatusSlotOptionalParams): Promise; beginInstallSiteExtension(resourceGroupName: string, name: string, siteExtensionId: string, options?: WebAppsInstallSiteExtensionOptionalParams): Promise, WebAppsInstallSiteExtensionResponse>>; beginInstallSiteExtensionAndWait(resourceGroupName: string, name: string, siteExtensionId: string, options?: WebAppsInstallSiteExtensionOptionalParams): Promise; beginInstallSiteExtensionSlot(resourceGroupName: string, name: string, siteExtensionId: string, slot: string, options?: WebAppsInstallSiteExtensionSlotOptionalParams): Promise, WebAppsInstallSiteExtensionSlotResponse>>; @@ -7472,6 +7664,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 +7741,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 +7796,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; @@ -7711,6 +7906,7 @@ export interface WebApps { listProcessModulesSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: WebAppsListProcessModulesSlotOptionalParams): PagedAsyncIterableIterator; listProcessThreads(resourceGroupName: string, name: string, processId: string, options?: WebAppsListProcessThreadsOptionalParams): PagedAsyncIterableIterator; listProcessThreadsSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: WebAppsListProcessThreadsSlotOptionalParams): PagedAsyncIterableIterator; + listProductionSiteDeploymentStatuses(resourceGroupName: string, name: string, options?: WebAppsListProductionSiteDeploymentStatusesOptionalParams): PagedAsyncIterableIterator; listPublicCertificates(resourceGroupName: string, name: string, options?: WebAppsListPublicCertificatesOptionalParams): PagedAsyncIterableIterator; listPublicCertificatesSlot(resourceGroupName: string, name: string, slot: string, options?: WebAppsListPublicCertificatesSlotOptionalParams): PagedAsyncIterableIterator; listPublishingProfileXmlWithSecrets(resourceGroupName: string, name: string, publishingProfileOptions: CsmPublishingProfileOptions, options?: WebAppsListPublishingProfileXmlWithSecretsOptionalParams): Promise; @@ -7729,6 +7925,7 @@ export interface WebApps { listSlotDifferencesFromProduction(resourceGroupName: string, name: string, slotSwapEntity: CsmSlotEntity, options?: WebAppsListSlotDifferencesFromProductionOptionalParams): PagedAsyncIterableIterator; listSlotDifferencesSlot(resourceGroupName: string, name: string, slot: string, slotSwapEntity: CsmSlotEntity, options?: WebAppsListSlotDifferencesSlotOptionalParams): PagedAsyncIterableIterator; listSlots(resourceGroupName: string, name: string, options?: WebAppsListSlotsOptionalParams): PagedAsyncIterableIterator; + listSlotSiteDeploymentStatusesSlot(resourceGroupName: string, name: string, slot: string, options?: WebAppsListSlotSiteDeploymentStatusesSlotOptionalParams): PagedAsyncIterableIterator; listSnapshots(resourceGroupName: string, name: string, options?: WebAppsListSnapshotsOptionalParams): PagedAsyncIterableIterator; listSnapshotsFromDRSecondary(resourceGroupName: string, name: string, options?: WebAppsListSnapshotsFromDRSecondaryOptionalParams): PagedAsyncIterableIterator; listSnapshotsFromDRSecondarySlot(resourceGroupName: string, name: string, slot: string, options?: WebAppsListSnapshotsFromDRSecondarySlotOptionalParams): PagedAsyncIterableIterator; @@ -7960,6 +8157,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 +8647,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 +9048,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 { } @@ -8973,6 +9191,15 @@ export interface WebAppsGetProcessSlotOptionalParams extends coreClient.Operatio // @public export type WebAppsGetProcessSlotResponse = ProcessInfo; +// @public +export interface WebAppsGetProductionSiteDeploymentStatusOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WebAppsGetProductionSiteDeploymentStatusResponse = CsmDeploymentStatus; + // @public export interface WebAppsGetPublicCertificateOptionalParams extends coreClient.OperationOptions { } @@ -9095,6 +9322,15 @@ export interface WebAppsGetSlotOptionalParams extends coreClient.OperationOption // @public export type WebAppsGetSlotResponse = Site; +// @public +export interface WebAppsGetSlotSiteDeploymentStatusSlotOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WebAppsGetSlotSiteDeploymentStatusSlotResponse = CsmDeploymentStatus; + // @public export interface WebAppsGetSourceControlOptionalParams extends coreClient.OperationOptions { } @@ -9920,6 +10156,20 @@ export interface WebAppsListProcessThreadsSlotOptionalParams extends coreClient. // @public export type WebAppsListProcessThreadsSlotResponse = ProcessThreadInfoCollection; +// @public +export interface WebAppsListProductionSiteDeploymentStatusesNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebAppsListProductionSiteDeploymentStatusesNextResponse = CsmDeploymentStatusCollection; + +// @public +export interface WebAppsListProductionSiteDeploymentStatusesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebAppsListProductionSiteDeploymentStatusesResponse = CsmDeploymentStatusCollection; + // @public export interface WebAppsListPublicCertificatesNextOptionalParams extends coreClient.OperationOptions { } @@ -10108,6 +10358,20 @@ export interface WebAppsListSlotDifferencesSlotOptionalParams extends coreClient // @public export type WebAppsListSlotDifferencesSlotResponse = SlotDifferenceCollection; +// @public +export interface WebAppsListSlotSiteDeploymentStatusesSlotNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebAppsListSlotSiteDeploymentStatusesSlotNextResponse = CsmDeploymentStatusCollection; + +// @public +export interface WebAppsListSlotSiteDeploymentStatusesSlotOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebAppsListSlotSiteDeploymentStatusesSlotResponse = CsmDeploymentStatusCollection; + // @public export interface WebAppsListSlotsNextOptionalParams extends coreClient.OperationOptions { } diff --git a/sdk/appservice/arm-appservice/src/models/index.ts b/sdk/appservice/arm-appservice/src/models/index.ts index b32f79a854c2..583b7d814f6a 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,10 @@ export interface AppServiceEnvironment { dedicatedHostCount?: number; /** Whether or not this App Service Environment is zone-redundant. */ zoneRedundant?: boolean; + /** Full view of the custom domain suffix configuration for ASEv3. */ + customDnsSuffixConfiguration?: CustomDnsSuffixConfiguration; + /** Full view of networking configuration for an ASE. */ + networkingConfiguration?: AseV3NetworkingConfiguration; } /** Specification for using a Virtual Network. */ @@ -3055,6 +3081,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 +3154,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. */ @@ -3742,6 +3797,17 @@ export interface ContinuousWebJobCollection { readonly nextLink?: string; } +/** Deployment status collection ARM resource. */ +export interface CsmDeploymentStatusCollection { + /** Collection of resources. */ + value: CsmDeploymentStatus[]; + /** + * Link to next page of resources. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + /** Collection of app deployments. */ export interface DeploymentCollection { /** Collection of resources. */ @@ -4262,7 +4328,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 +4415,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 +4478,10 @@ export type AppServiceEnvironmentResource = Resource & { dedicatedHostCount?: number; /** Whether or not this App Service Environment is zone-redundant. */ zoneRedundant?: boolean; + /** Full view of the custom domain suffix configuration for ASEv3. */ + customDnsSuffixConfiguration?: CustomDnsSuffixConfiguration; + /** Full view of networking configuration for an ASE. */ + networkingConfiguration?: AseV3NetworkingConfiguration; }; /** A web app, a mobile app backend, or an API app. */ @@ -4468,6 +4538,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; /** @@ -4563,6 +4639,8 @@ export type Site = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly inProgressOperationId?: string; + /** Property to allow or block all public traffic. */ + publicNetworkAccess?: string; /** Checks if Customer provided storage account is required */ storageAccountRequired?: boolean; /** Identity to use for Key Vault Reference authentication. */ @@ -4907,10 +4985,17 @@ 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. */ enterpriseGradeCdnStatus?: EnterpriseGradeCdnStatus; + /** State indicating whether public traffic are allowed or not for a static web app. */ + publicNetworkAccess?: string; }; /** Premier add-on. */ @@ -4997,7 +5082,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 +5130,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 +5205,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 +5227,40 @@ export type TopLevelDomain = ProxyOnlyResource & { privacy?: boolean; }; +/** Full view of the custom domain suffix configuration for ASEv3. */ +export type CustomDnsSuffixConfiguration = ProxyOnlyResource & { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly provisioningState?: CustomDnsSuffixProvisioningState; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly provisioningDetails?: string; + /** The default custom domain suffix to use for all sites deployed on the ASE. */ + dnsSuffix?: string; + /** The URL referencing the Azure Key Vault certificate secret that should be used as the default SSL/TLS certificate for sites with the custom domain suffix. */ + certificateUrl?: string; + /** The user-assigned identity to use for resolving the key vault certificate reference. If not specified, the system-assigned ASE identity will be used if available. */ + keyVaultReferenceIdentity?: 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; + /** Property to enable and disable FTP on ASEV3 */ + ftpEnabled?: boolean; + /** Property to enable and disable Remote Debug on ASEV3 */ + remoteDebugEnabled?: boolean; + /** Customer provided Inbound IP Address. Only able to be set on Ase create. */ + inboundIpAddressOverride?: string; +}; + /** ARM resource for a app service environment. */ export type AppServiceEnvironmentPatchResource = ProxyOnlyResource & { /** @@ -5217,6 +5314,10 @@ export type AppServiceEnvironmentPatchResource = ProxyOnlyResource & { dedicatedHostCount?: number; /** Whether or not this App Service Environment is zone-redundant. */ zoneRedundant?: boolean; + /** Full view of the custom domain suffix configuration for ASEv3. */ + customDnsSuffixConfiguration?: CustomDnsSuffixConfiguration; + /** Full view of networking configuration for an ASE. */ + networkingConfiguration?: AseV3NetworkingConfiguration; }; /** Describes main public IP address and any extra virtual IPs. */ @@ -5248,20 +5349,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,10 +6299,17 @@ 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. */ enterpriseGradeCdnStatus?: EnterpriseGradeCdnStatus; + /** State indicating whether public traffic are allowed or not for a static web app. */ + publicNetworkAccess?: string; }; /** Static Site User ARM resource. */ @@ -6281,6 +6375,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 +6503,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. */ @@ -6551,6 +6668,8 @@ export type SitePatchResource = ProxyOnlyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly inProgressOperationId?: string; + /** Property to allow or block all public traffic. */ + publicNetworkAccess?: string; /** Checks if Customer provided storage account is required */ storageAccountRequired?: boolean; /** Identity to use for Key Vault Reference authentication. */ @@ -7179,6 +7298,24 @@ export type ContinuousWebJob = ProxyOnlyResource & { settings?: { [propertyName: string]: Record }; }; +/** Deployment status response payload. */ +export type CsmDeploymentStatus = ProxyOnlyResource & { + /** Deployment operation id. */ + deploymentId?: string; + /** Deployment build status. */ + status?: DeploymentBuildStatus; + /** Number of site instances currently being provisioned. */ + numberOfInstancesInProgress?: number; + /** Number of site instances provisioned successfully. */ + numberOfInstancesSuccessful?: number; + /** Number of site instances failed to provision. */ + numberOfInstancesFailed?: number; + /** List of URLs pointing to logs for instances which failed to provision. */ + failedInstancesLogs?: string[]; + /** List of errors. */ + errors?: ErrorEntity[]; +}; + /** User credentials used for publishing activity. */ export type Deployment = ProxyOnlyResource & { /** Deployment status. */ @@ -7796,77 +7933,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 +8177,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 +8187,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 +8197,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 +8281,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 +8291,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 +8480,8 @@ export enum KnownCustomDomainStatus { Adding = "Adding", Ready = "Ready", Failed = "Failed", - Deleting = "Deleting" + Deleting = "Deleting", + Unhealthy = "Unhealthy" } /** @@ -8410,7 +8494,8 @@ export enum KnownCustomDomainStatus { * **Adding** \ * **Ready** \ * **Failed** \ - * **Deleting** + * **Deleting** \ + * **Unhealthy** */ export type CustomDomainStatus = string; @@ -8434,6 +8519,44 @@ export enum KnownDatabaseType { */ export type DatabaseType = string; +/** Known values of {@link DeploymentBuildStatus} that the service accepts. */ +export enum KnownDeploymentBuildStatus { + TimedOut = "TimedOut", + RuntimeFailed = "RuntimeFailed", + BuildAborted = "BuildAborted", + BuildFailed = "BuildFailed", + BuildRequestReceived = "BuildRequestReceived", + BuildPending = "BuildPending", + BuildInProgress = "BuildInProgress", + BuildSuccessful = "BuildSuccessful", + PostBuildRestartRequired = "PostBuildRestartRequired", + StartPolling = "StartPolling", + StartPollingWithRestart = "StartPollingWithRestart", + RuntimeStarting = "RuntimeStarting", + RuntimeSuccessful = "RuntimeSuccessful" +} + +/** + * Defines values for DeploymentBuildStatus. \ + * {@link KnownDeploymentBuildStatus} can be used interchangeably with DeploymentBuildStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TimedOut** \ + * **RuntimeFailed** \ + * **BuildAborted** \ + * **BuildFailed** \ + * **BuildRequestReceived** \ + * **BuildPending** \ + * **BuildInProgress** \ + * **BuildSuccessful** \ + * **PostBuildRestartRequired** \ + * **StartPolling** \ + * **StartPollingWithRestart** \ + * **RuntimeStarting** \ + * **RuntimeSuccessful** + */ +export type DeploymentBuildStatus = string; + /** Known values of {@link PublishingProfileFormat} that the service accepts. */ export enum KnownPublishingProfileFormat { FileZilla3 = "FileZilla3", @@ -8578,6 +8701,12 @@ export type HostingEnvironmentStatus = | "Ready" | "Scaling" | "Deleting"; +/** Defines values for CustomDnsSuffixProvisioningState. */ +export type CustomDnsSuffixProvisioningState = + | "Succeeded" + | "Failed" + | "Degraded" + | "InProgress"; /** Defines values for ComputeModeOptions. */ export type ComputeModeOptions = "Shared" | "Dedicated" | "Dynamic"; /** Defines values for WorkerSizeOptions. */ @@ -9268,6 +9397,30 @@ export interface AppServiceEnvironmentsChangeVnetOptionalParams /** Contains response data for the changeVnet operation. */ export type AppServiceEnvironmentsChangeVnetResponse = WebAppCollection; +/** Optional parameters. */ +export interface AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAseCustomDnsSuffixConfiguration operation. */ +export type AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationResponse = CustomDnsSuffixConfiguration; + +/** Optional parameters. */ +export interface AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the updateAseCustomDnsSuffixConfiguration operation. */ +export type AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationResponse = CustomDnsSuffixConfiguration; + +/** Optional parameters. */ +export interface AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the deleteAseCustomDnsSuffixConfiguration operation. */ +export type AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationResponse = Record< + string, + unknown +>; + /** Optional parameters. */ export interface AppServiceEnvironmentsGetAseV3NetworkingConfigurationOptionalParams extends coreClient.OperationOptions {} @@ -10498,7 +10651,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 +10661,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 +10671,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 +10681,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 +10698,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 +10707,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 +10716,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 +10726,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 +10736,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 +10746,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 +10763,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 +10772,7 @@ export type ProviderGetWebAppStacksNextResponse = WebAppStackCollection; /** Optional parameters. */ export interface ProviderGetAvailableStacksOnPremNextOptionalParams extends coreClient.OperationOptions { - osTypeSelected?: Enum20; + osTypeSelected?: Enum17; } /** Contains response data for the getAvailableStacksOnPremNext operation. */ @@ -10930,7 +11083,10 @@ export type CheckNameAvailabilityResponse = ResourceNameAvailability; /** Optional parameters. */ export interface ListCustomHostNameSitesOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Specific hostname */ + hostname?: string; +} /** Contains response data for the listCustomHostNameSites operation. */ export type ListCustomHostNameSitesResponse = CustomHostnameSitesCollection; @@ -11019,7 +11175,10 @@ export type ListBillingMetersNextResponse = BillingMeterCollection; /** Optional parameters. */ export interface ListCustomHostNameSitesNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Specific hostname */ + hostname?: string; +} /** Contains response data for the listCustomHostNameSitesNext operation. */ export type ListCustomHostNameSitesNextResponse = CustomHostnameSitesCollection; @@ -11429,6 +11588,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 +11742,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 {} @@ -11947,6 +12204,25 @@ export interface WebAppsStartContinuousWebJobOptionalParams export interface WebAppsStopContinuousWebJobOptionalParams extends coreClient.OperationOptions {} +/** Optional parameters. */ +export interface WebAppsListProductionSiteDeploymentStatusesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listProductionSiteDeploymentStatuses operation. */ +export type WebAppsListProductionSiteDeploymentStatusesResponse = CsmDeploymentStatusCollection; + +/** Optional parameters. */ +export interface WebAppsGetProductionSiteDeploymentStatusOptionalParams + 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 getProductionSiteDeploymentStatus operation. */ +export type WebAppsGetProductionSiteDeploymentStatusResponse = CsmDeploymentStatus; + /** Optional parameters. */ export interface WebAppsListDeploymentsOptionalParams extends coreClient.OperationOptions {} @@ -12044,6 +12320,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 +13226,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 {} @@ -13187,6 +13484,25 @@ export interface WebAppsStartContinuousWebJobSlotOptionalParams export interface WebAppsStopContinuousWebJobSlotOptionalParams extends coreClient.OperationOptions {} +/** Optional parameters. */ +export interface WebAppsListSlotSiteDeploymentStatusesSlotOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSlotSiteDeploymentStatusesSlot operation. */ +export type WebAppsListSlotSiteDeploymentStatusesSlotResponse = CsmDeploymentStatusCollection; + +/** Optional parameters. */ +export interface WebAppsGetSlotSiteDeploymentStatusSlotOptionalParams + 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 getSlotSiteDeploymentStatusSlot operation. */ +export type WebAppsGetSlotSiteDeploymentStatusSlotResponse = CsmDeploymentStatus; + /** Optional parameters. */ export interface WebAppsListDeploymentsSlotOptionalParams extends coreClient.OperationOptions {} @@ -14477,6 +14793,13 @@ export interface WebAppsListContinuousWebJobsNextOptionalParams /** Contains response data for the listContinuousWebJobsNext operation. */ export type WebAppsListContinuousWebJobsNextResponse = ContinuousWebJobCollection; +/** Optional parameters. */ +export interface WebAppsListProductionSiteDeploymentStatusesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listProductionSiteDeploymentStatusesNext operation. */ +export type WebAppsListProductionSiteDeploymentStatusesNextResponse = CsmDeploymentStatusCollection; + /** Optional parameters. */ export interface WebAppsListDeploymentsNextOptionalParams extends coreClient.OperationOptions {} @@ -14648,6 +14971,13 @@ export interface WebAppsListContinuousWebJobsSlotNextOptionalParams /** Contains response data for the listContinuousWebJobsSlotNext operation. */ export type WebAppsListContinuousWebJobsSlotNextResponse = ContinuousWebJobCollection; +/** Optional parameters. */ +export interface WebAppsListSlotSiteDeploymentStatusesSlotNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSlotSiteDeploymentStatusesSlotNext operation. */ +export type WebAppsListSlotSiteDeploymentStatusesSlotNextResponse = CsmDeploymentStatusCollection; + /** Optional parameters. */ export interface WebAppsListDeploymentsSlotNextOptionalParams 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..84ccf254430e 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,22 @@ export const AppServiceEnvironment: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + customDnsSuffixConfiguration: { + serializedName: "customDnsSuffixConfiguration", + xmlName: "customDnsSuffixConfiguration", + type: { + name: "Composite", + className: "CustomDnsSuffixConfiguration" + } + }, + networkingConfiguration: { + serializedName: "networkingConfiguration", + xmlName: "networkingConfiguration", + type: { + name: "Composite", + className: "AseV3NetworkingConfiguration" + } } } } @@ -9100,6 +9182,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 +9387,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: { @@ -11135,6 +11290,39 @@ export const ContinuousWebJobCollection: coreClient.CompositeMapper = { } }; +export const CsmDeploymentStatusCollection: coreClient.CompositeMapper = { + serializedName: "CsmDeploymentStatusCollection", + type: { + name: "Composite", + className: "CsmDeploymentStatusCollection", + modelProperties: { + value: { + serializedName: "value", + required: true, + xmlName: "value", + xmlElementName: "CsmDeploymentStatus", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CsmDeploymentStatus" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const DeploymentCollection: coreClient.CompositeMapper = { serializedName: "DeploymentCollection", type: { @@ -12805,8 +12993,7 @@ export const AppServiceCertificateOrder: coreClient.CompositeMapper = { serializedName: "properties.appServiceCertificateNotRenewableReasons", readOnly: true, xmlName: "properties.appServiceCertificateNotRenewableReasons", - xmlElementName: - "AppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem", + xmlElementName: "ResourceNotRenewableReason", type: { name: "Sequence", element: { @@ -13055,7 +13242,7 @@ export const Domain: coreClient.CompositeMapper = { serializedName: "properties.domainNotRenewableReasons", readOnly: true, xmlName: "properties.domainNotRenewableReasons", - xmlElementName: "DomainPropertiesDomainNotRenewableReasonsItem", + xmlElementName: "ResourceNotRenewableReason", type: { name: "Sequence", element: { @@ -13245,6 +13432,22 @@ export const AppServiceEnvironmentResource: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + customDnsSuffixConfiguration: { + serializedName: "properties.customDnsSuffixConfiguration", + xmlName: "properties.customDnsSuffixConfiguration", + type: { + name: "Composite", + className: "CustomDnsSuffixConfiguration" + } + }, + networkingConfiguration: { + serializedName: "properties.networkingConfiguration", + xmlName: "properties.networkingConfiguration", + type: { + name: "Composite", + className: "AseV3NetworkingConfiguration" + } } } } @@ -13395,6 +13598,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", @@ -13599,6 +13823,13 @@ export const Site: coreClient.CompositeMapper = { name: "Uuid" } }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, storageAccountRequired: { serializedName: "properties.storageAccountRequired", xmlName: "properties.storageAccountRequired", @@ -14410,6 +14641,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", @@ -14423,6 +14669,13 @@ export const StaticSiteARMResource: coreClient.CompositeMapper = { type: { name: "String" } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", + type: { + name: "String" + } } } } @@ -14643,8 +14896,7 @@ export const AppServiceCertificateOrderPatchResource: coreClient.CompositeMapper serializedName: "properties.appServiceCertificateNotRenewableReasons", readOnly: true, xmlName: "properties.appServiceCertificateNotRenewableReasons", - xmlElementName: - "AppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem", + xmlElementName: "ResourceNotRenewableReason", type: { name: "Sequence", element: { @@ -14791,101 +15043,33 @@ export const RenewCertificateOrderRequest: coreClient.CompositeMapper = { } }; -export const CertificateOrderAction: coreClient.CompositeMapper = { - serializedName: "CertificateOrderAction", +export const DetectorResponse: coreClient.CompositeMapper = { + serializedName: "DetectorResponse", type: { name: "Composite", - className: "CertificateOrderAction", + className: "DetectorResponse", modelProperties: { ...ProxyOnlyResource.type.modelProperties, - actionType: { - serializedName: "properties.actionType", - readOnly: true, - xmlName: "properties.actionType", + metadata: { + serializedName: "properties.metadata", + xmlName: "properties.metadata", type: { - name: "Enum", - allowedValues: [ - "CertificateIssued", - "CertificateOrderCanceled", - "CertificateOrderCreated", - "CertificateRevoked", - "DomainValidationComplete", - "FraudDetected", - "OrgNameChange", - "OrgValidationComplete", - "SanDrop", - "FraudCleared", - "CertificateExpired", - "CertificateExpirationWarning", - "FraudDocumentationRequired", - "Unknown" - ] + name: "Composite", + className: "DetectorInfo" } }, - createdAt: { - serializedName: "properties.createdAt", - readOnly: true, - xmlName: "properties.createdAt", + dataset: { + serializedName: "properties.dataset", + xmlName: "properties.dataset", + xmlElementName: "DiagnosticData", 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: { - name: "Composite", - className: "DetectorResponse", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - metadata: { - serializedName: "properties.metadata", - xmlName: "properties.metadata", - type: { - name: "Composite", - className: "DetectorInfo" - } - }, - dataset: { - serializedName: "properties.dataset", - xmlName: "properties.dataset", - xmlElementName: "DiagnosticData", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnosticData" - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnosticData" + } + } } }, status: { @@ -15095,8 +15279,7 @@ export const DomainPatchResource: coreClient.CompositeMapper = { serializedName: "properties.domainNotRenewableReasons", readOnly: true, xmlName: "properties.domainNotRenewableReasons", - xmlElementName: - "DomainPatchResourcePropertiesDomainNotRenewableReasonsItem", + xmlElementName: "ResourceNotRenewableReason", type: { name: "Sequence", element: { @@ -15176,6 +15359,154 @@ export const TopLevelDomain: coreClient.CompositeMapper = { } }; +export const CustomDnsSuffixConfiguration: coreClient.CompositeMapper = { + serializedName: "CustomDnsSuffixConfiguration", + type: { + name: "Composite", + className: "CustomDnsSuffixConfiguration", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: ["Succeeded", "Failed", "Degraded", "InProgress"] + } + }, + provisioningDetails: { + serializedName: "properties.provisioningDetails", + readOnly: true, + xmlName: "properties.provisioningDetails", + type: { + name: "String" + } + }, + dnsSuffix: { + serializedName: "properties.dnsSuffix", + xmlName: "properties.dnsSuffix", + type: { + name: "String" + } + }, + certificateUrl: { + serializedName: "properties.certificateUrl", + xmlName: "properties.certificateUrl", + type: { + name: "String" + } + }, + keyVaultReferenceIdentity: { + serializedName: "properties.keyVaultReferenceIdentity", + xmlName: "properties.keyVaultReferenceIdentity", + type: { + name: "String" + } + } + } + } +}; + +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" + } + }, + inboundIpAddressOverride: { + serializedName: "properties.inboundIpAddressOverride", + xmlName: "properties.inboundIpAddressOverride", + type: { + name: "String" + } + } + } + } +}; + export const AppServiceEnvironmentPatchResource: coreClient.CompositeMapper = { serializedName: "AppServiceEnvironmentPatchResource", type: { @@ -15322,6 +15653,22 @@ export const AppServiceEnvironmentPatchResource: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + customDnsSuffixConfiguration: { + serializedName: "properties.customDnsSuffixConfiguration", + xmlName: "properties.customDnsSuffixConfiguration", + type: { + name: "Composite", + className: "CustomDnsSuffixConfiguration" + } + }, + networkingConfiguration: { + serializedName: "properties.networkingConfiguration", + xmlName: "properties.networkingConfiguration", + type: { + name: "Composite", + className: "AseV3NetworkingConfiguration" + } } } } @@ -15418,84 +15765,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 +18323,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", @@ -18067,6 +18351,13 @@ export const StaticSitePatchResource: coreClient.CompositeMapper = { type: { name: "String" } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", + type: { + name: "String" + } } } } @@ -18191,6 +18482,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 +18819,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: { @@ -18855,6 +19202,13 @@ export const SitePatchResource: coreClient.CompositeMapper = { name: "Uuid" } }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, storageAccountRequired: { serializedName: "properties.storageAccountRequired", xmlName: "properties.storageAccountRequired", @@ -20613,6 +20967,79 @@ export const ContinuousWebJob: coreClient.CompositeMapper = { } }; +export const CsmDeploymentStatus: coreClient.CompositeMapper = { + serializedName: "CsmDeploymentStatus", + type: { + name: "Composite", + className: "CsmDeploymentStatus", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + deploymentId: { + serializedName: "properties.deploymentId", + xmlName: "properties.deploymentId", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + xmlName: "properties.status", + type: { + name: "String" + } + }, + numberOfInstancesInProgress: { + serializedName: "properties.numberOfInstancesInProgress", + xmlName: "properties.numberOfInstancesInProgress", + type: { + name: "Number" + } + }, + numberOfInstancesSuccessful: { + serializedName: "properties.numberOfInstancesSuccessful", + xmlName: "properties.numberOfInstancesSuccessful", + type: { + name: "Number" + } + }, + numberOfInstancesFailed: { + serializedName: "properties.numberOfInstancesFailed", + xmlName: "properties.numberOfInstancesFailed", + type: { + name: "Number" + } + }, + failedInstancesLogs: { + serializedName: "properties.failedInstancesLogs", + xmlName: "properties.failedInstancesLogs", + xmlElementName: "CsmDeploymentStatusPropertiesFailedInstancesLogsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + errors: { + serializedName: "properties.errors", + xmlName: "properties.errors", + xmlElementName: "ErrorEntity", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorEntity" + } + } + } + } + } + } +}; + export const Deployment: coreClient.CompositeMapper = { serializedName: "Deployment", type: { diff --git a/sdk/appservice/arm-appservice/src/models/parameters.ts b/sdk/appservice/arm-appservice/src/models/parameters.ts index f0be7cf969ed..74f5a7dca76e 100644 --- a/sdk/appservice/arm-appservice/src/models/parameters.ts +++ b/sdk/appservice/arm-appservice/src/models/parameters.ts @@ -28,6 +28,7 @@ import { AppServiceEnvironmentResource as AppServiceEnvironmentResourceMapper, AppServiceEnvironmentPatchResource as AppServiceEnvironmentPatchResourceMapper, VirtualNetworkProfile as VirtualNetworkProfileMapper, + CustomDnsSuffixConfiguration as CustomDnsSuffixConfigurationMapper, AseV3NetworkingConfiguration as AseV3NetworkingConfigurationMapper, WorkerPoolResource as WorkerPoolResourceMapper, PrivateLinkConnectionApprovalRequestResource as PrivateLinkConnectionApprovalRequestResourceMapper, @@ -56,6 +57,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 +134,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: { @@ -394,6 +396,11 @@ export const vnetInfo: OperationParameter = { mapper: VirtualNetworkProfileMapper }; +export const customDnsSuffixConfiguration: OperationParameter = { + parameterPath: "customDnsSuffixConfiguration", + mapper: CustomDnsSuffixConfigurationMapper +}; + export const aseNetworkingConfiguration: OperationParameter = { parameterPath: "aseNetworkingConfiguration", mapper: AseV3NetworkingConfigurationMapper @@ -935,6 +942,17 @@ export const isFqdn: OperationParameter = { mapper: ResourceNameAvailabilityRequestMapper }; +export const hostname: OperationQueryParameter = { + parameterPath: ["options", "hostname"], + mapper: { + serializedName: "hostname", + xmlName: "hostname", + type: { + name: "String" + } + } +}; + export const sku: OperationQueryParameter = { parameterPath: ["options", "sku"], mapper: { @@ -1103,6 +1121,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: { @@ -1306,6 +1352,18 @@ export const webJobName: OperationURLParameter = { } }; +export const deploymentStatusId: OperationURLParameter = { + parameterPath: "deploymentStatusId", + mapper: { + serializedName: "deploymentStatusId", + required: true, + xmlName: "deploymentStatusId", + type: { + name: "String" + } + } +}; + export const id: OperationURLParameter = { parameterPath: "id", mapper: { diff --git a/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts b/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts index 0b5993c73375..edf0a599ba09 100644 --- a/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts +++ b/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts @@ -86,6 +86,13 @@ import { AppServiceEnvironmentsGetVipInfoOptionalParams, AppServiceEnvironmentsGetVipInfoResponse, AppServiceEnvironmentsChangeVnetResponse, + AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationOptionalParams, + AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationResponse, + CustomDnsSuffixConfiguration, + AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationOptionalParams, + AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationResponse, + AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationOptionalParams, + AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationResponse, AppServiceEnvironmentsGetAseV3NetworkingConfigurationOptionalParams, AppServiceEnvironmentsGetAseV3NetworkingConfigurationResponse, AseV3NetworkingConfiguration, @@ -2025,6 +2032,63 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments { return poller; } + /** + * Get Custom Dns Suffix configuration of an App Service Environment + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The options parameters. + */ + getAseCustomDnsSuffixConfiguration( + resourceGroupName: string, + name: string, + options?: AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, options }, + getAseCustomDnsSuffixConfigurationOperationSpec + ); + } + + /** + * Update Custom Dns Suffix configuration of an App Service Environment + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param customDnsSuffixConfiguration Full view of the custom domain suffix configuration for ASEv3. + * @param options The options parameters. + */ + updateAseCustomDnsSuffixConfiguration( + resourceGroupName: string, + name: string, + customDnsSuffixConfiguration: CustomDnsSuffixConfiguration, + options?: AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationOptionalParams + ): Promise< + AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, name, customDnsSuffixConfiguration, options }, + updateAseCustomDnsSuffixConfigurationOperationSpec + ); + } + + /** + * Delete Custom Dns Suffix configuration of an App Service Environment + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The options parameters. + */ + deleteAseCustomDnsSuffixConfiguration( + resourceGroupName: string, + name: string, + options?: AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationOptionalParams + ): Promise< + AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, name, options }, + deleteAseCustomDnsSuffixConfigurationOperationSpec + ); + } + /** * Description for Get networking configuration of an App Service Environment * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -3737,6 +3801,81 @@ const changeVnetOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const getAseCustomDnsSuffixConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/customdnssuffix", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CustomDnsSuffixConfiguration + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateAseCustomDnsSuffixConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/customdnssuffix", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CustomDnsSuffixConfiguration + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + requestBody: Parameters.customDnsSuffixConfiguration, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteAseCustomDnsSuffixConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/customdnssuffix", + httpMethod: "DELETE", + responses: { + 200: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 204: { + 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 getAseV3NetworkingConfigurationOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/networking", diff --git a/sdk/appservice/arm-appservice/src/operations/staticSites.ts b/sdk/appservice/arm-appservice/src/operations/staticSites.ts index 2ffb96e48677..57ac8d97da95 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. @@ -2760,110 +2932,648 @@ 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() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + name, + linkedBackendName, + staticSiteLinkedBackendEnvelope, + options + }, + validateBackendOperationSpec ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; } /** - * GetStaticSiteBuildsNext + * 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 nextLink The nextLink from the previous successful call to the GetStaticSiteBuilds 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 _getStaticSiteBuildsNext( + async beginValidateBackendAndWait( resourceGroupName: string, name: string, - nextLink: string, - options?: StaticSitesGetStaticSiteBuildsNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, name, nextLink, options }, - getStaticSiteBuildsNextOperationSpec + linkedBackendName: string, + staticSiteLinkedBackendEnvelope: StaticSiteLinkedBackendARMResource, + options?: StaticSitesValidateBackendOptionalParams + ): Promise { + const poller = await this.beginValidateBackend( + resourceGroupName, + name, + linkedBackendName, + staticSiteLinkedBackendEnvelope, + options ); + return poller.pollUntilDone(); } /** - * ListStaticSiteBuildFunctionsNext + * 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 ListStaticSiteBuildFunctions - * 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 _listStaticSiteBuildFunctionsNext( + async beginValidateBackendForBuild( 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( + 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 + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * 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 + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * 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 + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * 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, @@ -2957,6 +3667,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 +4890,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 +5369,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..10bc8b5716c4 100644 --- a/sdk/appservice/arm-appservice/src/operations/webApps.ts +++ b/sdk/appservice/arm-appservice/src/operations/webApps.ts @@ -40,6 +40,9 @@ import { ContinuousWebJob, WebAppsListContinuousWebJobsNextOptionalParams, WebAppsListContinuousWebJobsOptionalParams, + CsmDeploymentStatus, + WebAppsListProductionSiteDeploymentStatusesNextOptionalParams, + WebAppsListProductionSiteDeploymentStatusesOptionalParams, Deployment, WebAppsListDeploymentsNextOptionalParams, WebAppsListDeploymentsOptionalParams, @@ -100,6 +103,8 @@ import { WebAppsListConfigurationSnapshotInfoSlotOptionalParams, WebAppsListContinuousWebJobsSlotNextOptionalParams, WebAppsListContinuousWebJobsSlotOptionalParams, + WebAppsListSlotSiteDeploymentStatusesSlotNextOptionalParams, + WebAppsListSlotSiteDeploymentStatusesSlotOptionalParams, WebAppsListDeploymentsSlotNextOptionalParams, WebAppsListDeploymentsSlotOptionalParams, WebAppsListDomainOwnershipIdentifiersSlotNextOptionalParams, @@ -280,6 +285,9 @@ import { WebAppsDeleteContinuousWebJobOptionalParams, WebAppsStartContinuousWebJobOptionalParams, WebAppsStopContinuousWebJobOptionalParams, + WebAppsListProductionSiteDeploymentStatusesResponse, + WebAppsGetProductionSiteDeploymentStatusOptionalParams, + WebAppsGetProductionSiteDeploymentStatusResponse, WebAppsListDeploymentsResponse, WebAppsGetDeploymentOptionalParams, WebAppsGetDeploymentResponse, @@ -305,6 +313,10 @@ import { WebAppsCreateMSDeployOperationResponse, WebAppsGetMSDeployLogOptionalParams, WebAppsGetMSDeployLogResponse, + WebAppsGetOneDeployStatusOptionalParams, + WebAppsGetOneDeployStatusResponse, + WebAppsCreateOneDeployOperationOptionalParams, + WebAppsCreateOneDeployOperationResponse, WebAppsListFunctionsResponse, WebAppsGetFunctionsAdminTokenOptionalParams, WebAppsGetFunctionsAdminTokenResponse, @@ -509,6 +521,8 @@ import { WebAppsUpdateAuthSettingsSlotResponse, WebAppsGetAuthSettingsSlotOptionalParams, WebAppsGetAuthSettingsSlotResponse, + WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams, + WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse, WebAppsUpdateAuthSettingsV2SlotOptionalParams, WebAppsUpdateAuthSettingsV2SlotResponse, WebAppsGetAuthSettingsV2SlotOptionalParams, @@ -566,6 +580,9 @@ import { WebAppsDeleteContinuousWebJobSlotOptionalParams, WebAppsStartContinuousWebJobSlotOptionalParams, WebAppsStopContinuousWebJobSlotOptionalParams, + WebAppsListSlotSiteDeploymentStatusesSlotResponse, + WebAppsGetSlotSiteDeploymentStatusSlotOptionalParams, + WebAppsGetSlotSiteDeploymentStatusSlotResponse, WebAppsListDeploymentsSlotResponse, WebAppsGetDeploymentSlotOptionalParams, WebAppsGetDeploymentSlotResponse, @@ -841,6 +858,7 @@ import { WebAppsGetSiteConnectionStringKeyVaultReferencesNextResponse, WebAppsListConfigurationSnapshotInfoNextResponse, WebAppsListContinuousWebJobsNextResponse, + WebAppsListProductionSiteDeploymentStatusesNextResponse, WebAppsListDeploymentsNextResponse, WebAppsListDomainOwnershipIdentifiersNextResponse, WebAppsListFunctionsNextResponse, @@ -865,6 +883,7 @@ import { WebAppsGetSiteConnectionStringKeyVaultReferencesSlotNextResponse, WebAppsListConfigurationSnapshotInfoSlotNextResponse, WebAppsListContinuousWebJobsSlotNextResponse, + WebAppsListSlotSiteDeploymentStatusesSlotNextResponse, WebAppsListDeploymentsSlotNextResponse, WebAppsListDomainOwnershipIdentifiersSlotNextResponse, WebAppsListInstanceFunctionsSlotNextResponse, @@ -1492,6 +1511,77 @@ export class WebAppsImpl implements WebApps { } } + /** + * List deployment statuses for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The options parameters. + */ + public listProductionSiteDeploymentStatuses( + resourceGroupName: string, + name: string, + options?: WebAppsListProductionSiteDeploymentStatusesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listProductionSiteDeploymentStatusesPagingAll( + resourceGroupName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listProductionSiteDeploymentStatusesPagingPage( + resourceGroupName, + name, + options + ); + } + }; + } + + private async *listProductionSiteDeploymentStatusesPagingPage( + resourceGroupName: string, + name: string, + options?: WebAppsListProductionSiteDeploymentStatusesOptionalParams + ): AsyncIterableIterator { + let result = await this._listProductionSiteDeploymentStatuses( + resourceGroupName, + name, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listProductionSiteDeploymentStatusesNext( + resourceGroupName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listProductionSiteDeploymentStatusesPagingAll( + resourceGroupName: string, + name: string, + options?: WebAppsListProductionSiteDeploymentStatusesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listProductionSiteDeploymentStatusesPagingPage( + resourceGroupName, + name, + options + )) { + yield* page; + } + } + /** * Description for List deployments for an app, or a deployment slot. * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -3285,6 +3375,87 @@ export class WebAppsImpl implements WebApps { } } + /** + * List deployment statuses for an app (or deployment slot, if specified). + * @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 deployment + * status for the production slot. + * @param options The options parameters. + */ + public listSlotSiteDeploymentStatusesSlot( + resourceGroupName: string, + name: string, + slot: string, + options?: WebAppsListSlotSiteDeploymentStatusesSlotOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSlotSiteDeploymentStatusesSlotPagingAll( + resourceGroupName, + name, + slot, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listSlotSiteDeploymentStatusesSlotPagingPage( + resourceGroupName, + name, + slot, + options + ); + } + }; + } + + private async *listSlotSiteDeploymentStatusesSlotPagingPage( + resourceGroupName: string, + name: string, + slot: string, + options?: WebAppsListSlotSiteDeploymentStatusesSlotOptionalParams + ): AsyncIterableIterator { + let result = await this._listSlotSiteDeploymentStatusesSlot( + resourceGroupName, + name, + slot, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listSlotSiteDeploymentStatusesSlotNext( + resourceGroupName, + name, + slot, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listSlotSiteDeploymentStatusesSlotPagingAll( + resourceGroupName: string, + name: string, + slot: string, + options?: WebAppsListSlotSiteDeploymentStatusesSlotOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSlotSiteDeploymentStatusesSlotPagingPage( + resourceGroupName, + name, + slot, + options + )) { + yield* page; + } + } + /** * Description for List deployments for an app, or a deployment slot. * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -7016,6 +7187,115 @@ export class WebAppsImpl implements WebApps { ); } + /** + * List deployment statuses for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The options parameters. + */ + private _listProductionSiteDeploymentStatuses( + resourceGroupName: string, + name: string, + options?: WebAppsListProductionSiteDeploymentStatusesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, options }, + listProductionSiteDeploymentStatusesOperationSpec + ); + } + + /** + * Gets the deployment status for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param deploymentStatusId GUID of the deployment operation. + * @param options The options parameters. + */ + async beginGetProductionSiteDeploymentStatus( + resourceGroupName: string, + name: string, + deploymentStatusId: string, + options?: WebAppsGetProductionSiteDeploymentStatusOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WebAppsGetProductionSiteDeploymentStatusResponse + > + > { + 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, deploymentStatusId, options }, + getProductionSiteDeploymentStatusOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Gets the deployment status for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param deploymentStatusId GUID of the deployment operation. + * @param options The options parameters. + */ + async beginGetProductionSiteDeploymentStatusAndWait( + resourceGroupName: string, + name: string, + deploymentStatusId: string, + options?: WebAppsGetProductionSiteDeploymentStatusOptionalParams + ): Promise { + const poller = await this.beginGetProductionSiteDeploymentStatus( + resourceGroupName, + name, + deploymentStatusId, + options + ); + return poller.pollUntilDone(); + } + /** * Description for List deployments for an app, or a deployment slot. * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -7370,6 +7650,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. @@ -10669,6 +10984,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. @@ -11410,25 +11745,144 @@ export class WebAppsImpl implements WebApps { } /** - * Description for Stop a continuous web job for an app, or a deployment slot. + * Description for Stop a continuous web job for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment + * for the production slot. + * @param options The options parameters. + */ + stopContinuousWebJobSlot( + resourceGroupName: string, + name: string, + webJobName: string, + slot: string, + options?: WebAppsStopContinuousWebJobSlotOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, webJobName, slot, options }, + stopContinuousWebJobSlotOperationSpec + ); + } + + /** + * List deployment statuses for an app (or deployment slot, if specified). + * @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 deployment + * status for the production slot. + * @param options The options parameters. + */ + private _listSlotSiteDeploymentStatusesSlot( + resourceGroupName: string, + name: string, + slot: string, + options?: WebAppsListSlotSiteDeploymentStatusesSlotOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, slot, options }, + listSlotSiteDeploymentStatusesSlotOperationSpec + ); + } + + /** + * Gets the deployment status for an app (or deployment slot, if specified). + * @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 deployment + * status for the production slot. + * @param deploymentStatusId GUID of the deployment operation. + * @param options The options parameters. + */ + async beginGetSlotSiteDeploymentStatusSlot( + resourceGroupName: string, + name: string, + slot: string, + deploymentStatusId: string, + options?: WebAppsGetSlotSiteDeploymentStatusSlotOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WebAppsGetSlotSiteDeploymentStatusSlotResponse + > + > { + 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, slot, deploymentStatusId, options }, + getSlotSiteDeploymentStatusSlotOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Gets the deployment status for an app (or deployment slot, if specified). * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment - * for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the deployment + * status for the production slot. + * @param deploymentStatusId GUID of the deployment operation. * @param options The options parameters. */ - stopContinuousWebJobSlot( + async beginGetSlotSiteDeploymentStatusSlotAndWait( resourceGroupName: string, name: string, - webJobName: string, slot: string, - options?: WebAppsStopContinuousWebJobSlotOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, name, webJobName, slot, options }, - stopContinuousWebJobSlotOperationSpec + deploymentStatusId: string, + options?: WebAppsGetSlotSiteDeploymentStatusSlotOptionalParams + ): Promise { + const poller = await this.beginGetSlotSiteDeploymentStatusSlot( + resourceGroupName, + name, + slot, + deploymentStatusId, + options ); + return poller.pollUntilDone(); } /** @@ -16481,6 +16935,26 @@ export class WebAppsImpl implements WebApps { ); } + /** + * ListProductionSiteDeploymentStatusesNext + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param nextLink The nextLink from the previous successful call to the + * ListProductionSiteDeploymentStatuses method. + * @param options The options parameters. + */ + private _listProductionSiteDeploymentStatusesNext( + resourceGroupName: string, + name: string, + nextLink: string, + options?: WebAppsListProductionSiteDeploymentStatusesNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, nextLink, options }, + listProductionSiteDeploymentStatusesNextOperationSpec + ); + } + /** * ListDeploymentsNext * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -16982,6 +17456,29 @@ export class WebAppsImpl implements WebApps { ); } + /** + * ListSlotSiteDeploymentStatusesSlotNext + * @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 deployment + * status for the production slot. + * @param nextLink The nextLink from the previous successful call to the + * ListSlotSiteDeploymentStatusesSlot method. + * @param options The options parameters. + */ + private _listSlotSiteDeploymentStatusesSlotNext( + resourceGroupName: string, + name: string, + slot: string, + nextLink: string, + options?: WebAppsListSlotSiteDeploymentStatusesSlotNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, name, slot, nextLink, options }, + listSlotSiteDeploymentStatusesSlotNextOperationSpec + ); + } + /** * ListDeploymentsSlotNext * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -19070,6 +19567,60 @@ const stopContinuousWebJobOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listProductionSiteDeploymentStatusesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deploymentStatus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CsmDeploymentStatusCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getProductionSiteDeploymentStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deploymentStatus/{deploymentStatusId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CsmDeploymentStatus + }, + 201: { + bodyMapper: Mappers.CsmDeploymentStatus + }, + 202: { + bodyMapper: Mappers.CsmDeploymentStatus + }, + 204: { + bodyMapper: Mappers.CsmDeploymentStatus + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.deploymentStatusId + ], + headerParameters: [Parameters.accept], + serializer +}; const listDeploymentsOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments", @@ -19409,6 +19960,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 +22978,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", @@ -23171,6 +23793,62 @@ const stopContinuousWebJobSlotOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listSlotSiteDeploymentStatusesSlotOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deploymentStatus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CsmDeploymentStatusCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot + ], + headerParameters: [Parameters.accept], + serializer +}; +const getSlotSiteDeploymentStatusSlotOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deploymentStatus/{deploymentStatusId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CsmDeploymentStatus + }, + 201: { + bodyMapper: Mappers.CsmDeploymentStatus + }, + 202: { + bodyMapper: Mappers.CsmDeploymentStatus + }, + 204: { + bodyMapper: Mappers.CsmDeploymentStatus + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.deploymentStatusId + ], + headerParameters: [Parameters.accept], + serializer +}; const listDeploymentsSlotOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments", @@ -27741,6 +28419,28 @@ const listContinuousWebJobsNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listProductionSiteDeploymentStatusesNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CsmDeploymentStatusCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; const listDeploymentsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -28307,6 +29007,29 @@ const listContinuousWebJobsSlotNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listSlotSiteDeploymentStatusesSlotNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CsmDeploymentStatusCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + Parameters.nextLink, + Parameters.slot + ], + headerParameters: [Parameters.accept], + serializer +}; const listDeploymentsSlotNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceEnvironments.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceEnvironments.ts index efe7878919ca..0dec4eb455a4 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceEnvironments.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceEnvironments.ts @@ -54,6 +54,13 @@ import { AppServiceEnvironmentsUpdateResponse, AppServiceEnvironmentsGetVipInfoOptionalParams, AppServiceEnvironmentsGetVipInfoResponse, + AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationOptionalParams, + AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationResponse, + CustomDnsSuffixConfiguration, + AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationOptionalParams, + AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationResponse, + AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationOptionalParams, + AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationResponse, AppServiceEnvironmentsGetAseV3NetworkingConfigurationOptionalParams, AppServiceEnvironmentsGetAseV3NetworkingConfigurationResponse, AseV3NetworkingConfiguration, @@ -433,6 +440,45 @@ export interface AppServiceEnvironments { name: string, options?: AppServiceEnvironmentsGetVipInfoOptionalParams ): Promise; + /** + * Get Custom Dns Suffix configuration of an App Service Environment + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The options parameters. + */ + getAseCustomDnsSuffixConfiguration( + resourceGroupName: string, + name: string, + options?: AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationOptionalParams + ): Promise; + /** + * Update Custom Dns Suffix configuration of an App Service Environment + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param customDnsSuffixConfiguration Full view of the custom domain suffix configuration for ASEv3. + * @param options The options parameters. + */ + updateAseCustomDnsSuffixConfiguration( + resourceGroupName: string, + name: string, + customDnsSuffixConfiguration: CustomDnsSuffixConfiguration, + options?: AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationOptionalParams + ): Promise< + AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationResponse + >; + /** + * Delete Custom Dns Suffix configuration of an App Service Environment + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The options parameters. + */ + deleteAseCustomDnsSuffixConfiguration( + resourceGroupName: string, + name: string, + options?: AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationOptionalParams + ): Promise< + AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationResponse + >; /** * Description for Get networking configuration of an App Service Environment * @param resourceGroupName Name of the resource group to which the resource belongs. 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..58c541850952 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts @@ -25,6 +25,8 @@ import { WebAppsListConfigurationSnapshotInfoOptionalParams, ContinuousWebJob, WebAppsListContinuousWebJobsOptionalParams, + CsmDeploymentStatus, + WebAppsListProductionSiteDeploymentStatusesOptionalParams, Deployment, WebAppsListDeploymentsOptionalParams, Identifier, @@ -61,6 +63,7 @@ import { WebAppsGetSiteConnectionStringKeyVaultReferencesSlotOptionalParams, WebAppsListConfigurationSnapshotInfoSlotOptionalParams, WebAppsListContinuousWebJobsSlotOptionalParams, + WebAppsListSlotSiteDeploymentStatusesSlotOptionalParams, WebAppsListDeploymentsSlotOptionalParams, WebAppsListDomainOwnershipIdentifiersSlotOptionalParams, WebAppsListInstanceFunctionsSlotOptionalParams, @@ -202,6 +205,8 @@ import { WebAppsDeleteContinuousWebJobOptionalParams, WebAppsStartContinuousWebJobOptionalParams, WebAppsStopContinuousWebJobOptionalParams, + WebAppsGetProductionSiteDeploymentStatusOptionalParams, + WebAppsGetProductionSiteDeploymentStatusResponse, WebAppsGetDeploymentOptionalParams, WebAppsGetDeploymentResponse, WebAppsCreateDeploymentOptionalParams, @@ -225,6 +230,10 @@ import { WebAppsCreateMSDeployOperationResponse, WebAppsGetMSDeployLogOptionalParams, WebAppsGetMSDeployLogResponse, + WebAppsGetOneDeployStatusOptionalParams, + WebAppsGetOneDeployStatusResponse, + WebAppsCreateOneDeployOperationOptionalParams, + WebAppsCreateOneDeployOperationResponse, WebAppsGetFunctionsAdminTokenOptionalParams, WebAppsGetFunctionsAdminTokenResponse, WebAppsGetFunctionOptionalParams, @@ -411,6 +420,8 @@ import { WebAppsUpdateAuthSettingsSlotResponse, WebAppsGetAuthSettingsSlotOptionalParams, WebAppsGetAuthSettingsSlotResponse, + WebAppsGetAuthSettingsV2WithoutSecretsSlotOptionalParams, + WebAppsGetAuthSettingsV2WithoutSecretsSlotResponse, WebAppsUpdateAuthSettingsV2SlotOptionalParams, WebAppsUpdateAuthSettingsV2SlotResponse, WebAppsGetAuthSettingsV2SlotOptionalParams, @@ -464,6 +475,8 @@ import { WebAppsDeleteContinuousWebJobSlotOptionalParams, WebAppsStartContinuousWebJobSlotOptionalParams, WebAppsStopContinuousWebJobSlotOptionalParams, + WebAppsGetSlotSiteDeploymentStatusSlotOptionalParams, + WebAppsGetSlotSiteDeploymentStatusSlotResponse, WebAppsGetDeploymentSlotOptionalParams, WebAppsGetDeploymentSlotResponse, WebAppsCreateDeploymentSlotOptionalParams, @@ -798,6 +811,17 @@ export interface WebApps { name: string, options?: WebAppsListContinuousWebJobsOptionalParams ): PagedAsyncIterableIterator; + /** + * List deployment statuses for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The options parameters. + */ + listProductionSiteDeploymentStatuses( + resourceGroupName: string, + name: string, + options?: WebAppsListProductionSiteDeploymentStatusesOptionalParams + ): PagedAsyncIterableIterator; /** * Description for List deployments for an app, or a deployment slot. * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -1105,6 +1129,20 @@ export interface WebApps { slot: string, options?: WebAppsListContinuousWebJobsSlotOptionalParams ): PagedAsyncIterableIterator; + /** + * List deployment statuses for an app (or deployment slot, if specified). + * @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 deployment + * status for the production slot. + * @param options The options parameters. + */ + listSlotSiteDeploymentStatusesSlot( + resourceGroupName: string, + name: string, + slot: string, + options?: WebAppsListSlotSiteDeploymentStatusesSlotOptionalParams + ): PagedAsyncIterableIterator; /** * Description for List deployments for an app, or a deployment slot. * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -2217,6 +2255,37 @@ export interface WebApps { webJobName: string, options?: WebAppsStopContinuousWebJobOptionalParams ): Promise; + /** + * Gets the deployment status for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param deploymentStatusId GUID of the deployment operation. + * @param options The options parameters. + */ + beginGetProductionSiteDeploymentStatus( + resourceGroupName: string, + name: string, + deploymentStatusId: string, + options?: WebAppsGetProductionSiteDeploymentStatusOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WebAppsGetProductionSiteDeploymentStatusResponse + > + >; + /** + * Gets the deployment status for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param deploymentStatusId GUID of the deployment operation. + * @param options The options parameters. + */ + beginGetProductionSiteDeploymentStatusAndWait( + resourceGroupName: string, + name: string, + deploymentStatusId: string, + options?: WebAppsGetProductionSiteDeploymentStatusOptionalParams + ): Promise; /** * Description for Get a deployment by its ID for an app, or a deployment slot. * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -2398,6 +2467,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 +4098,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. @@ -4460,6 +4566,43 @@ export interface WebApps { slot: string, options?: WebAppsStopContinuousWebJobSlotOptionalParams ): Promise; + /** + * Gets the deployment status for an app (or deployment slot, if specified). + * @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 deployment + * status for the production slot. + * @param deploymentStatusId GUID of the deployment operation. + * @param options The options parameters. + */ + beginGetSlotSiteDeploymentStatusSlot( + resourceGroupName: string, + name: string, + slot: string, + deploymentStatusId: string, + options?: WebAppsGetSlotSiteDeploymentStatusSlotOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WebAppsGetSlotSiteDeploymentStatusSlotResponse + > + >; + /** + * Gets the deployment status for an app (or deployment slot, if specified). + * @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 deployment + * status for the production slot. + * @param deploymentStatusId GUID of the deployment operation. + * @param options The options parameters. + */ + beginGetSlotSiteDeploymentStatusSlotAndWait( + resourceGroupName: string, + name: string, + slot: string, + deploymentStatusId: string, + options?: WebAppsGetSlotSiteDeploymentStatusSlotOptionalParams + ): Promise; /** * Description for Get a deployment by its ID for an app, or a deployment slot. * @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..61dde16afe56 100644 --- a/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts +++ b/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts @@ -7,6 +7,12 @@ */ import * as coreClient from "@azure/core-client"; +import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { @@ -149,7 +155,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}` @@ -168,12 +174,35 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { options.endpoint ?? options.baseUri ?? "https://management.azure.com" }; super(optionsWithDefaults); + + if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + (pipelinePolicy) => + pipelinePolicy.name === + coreRestPipeline.bearerTokenAuthenticationPolicyName + ); + if (!bearerTokenAuthenticationPolicyFound) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + scopes: `${optionsWithDefaults.baseUri}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); + } + } // Parameter assignments this.subscriptionId = subscriptionId; // 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 ); @@ -202,6 +231,35 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { ); this.staticSites = new StaticSitesImpl(this); this.webApps = new WebAppsImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return item.replace(/(?<==).*$/, apiVersion); + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); } /** @@ -984,7 +1042,7 @@ const listCustomHostNameSitesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.hostname], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -1215,7 +1273,7 @@ const listCustomHostNameSitesNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.hostname], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appservice/arm-appservice/test/sampleTest.ts b/sdk/appservice/arm-appservice/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/appservice/arm-appservice/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * 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 { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + 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" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + 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"