diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 61cec91a5106..8d72b1e669ab 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3928,7 +3928,7 @@ packages: dependencies: semver: 7.3.8 shelljs: 0.8.5 - typescript: 5.0.0-dev.20230210 + typescript: 5.0.0-dev.20230212 dev: false /downlevel-dts/0.7.0: @@ -8712,8 +8712,8 @@ packages: hasBin: true dev: false - /typescript/5.0.0-dev.20230210: - resolution: {integrity: sha512-FjXPw8PFeIuT1cxouvP4LRu8J1G+FsWVEGwlJ9GcVywRNDfD3Hh6flQFUympS+3QnAIiG/+CHs9ZS2EQIT733g==} + /typescript/5.0.0-dev.20230212: + resolution: {integrity: sha512-efEcegARgRwbXNd6AqZXsitNHVZMEGFxiYFi/OBbWvoI0d/ynmUfSbkBYRZ7L5iSFEbSwIt/Git9go43vefUCQ==} engines: {node: '>=4.2.0'} hasBin: true dev: false @@ -10080,15 +10080,15 @@ packages: dev: false file:projects/arm-appplatform.tgz: - resolution: {integrity: sha512-QlO5IloyaT6RmxCHqZtfHgS7QNgrZjtdfakMyS8FLMvah1baFcmmycNdnWmlcHuV54ZH8j5bNfW7tyzs003MGA==, tarball: file:projects/arm-appplatform.tgz} + resolution: {integrity: sha512-VOU1HsCy6xcT1LoXiPOxwCISJJEV0wmp+DPssZCZ59Y/3XXXln805obsP6Rxpk9eBSi9Pawt4H5wXnzQfKOLIw==, tarball: file:projects/arm-appplatform.tgz} name: '@rush-temp/arm-appplatform' version: 0.0.0 dependencies: '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.34.3_@types+node@14.18.36 - '@rollup/plugin-commonjs': 24.0.1_rollup@2.79.1 - '@rollup/plugin-json': 6.0.0_rollup@2.79.1 - '@rollup/plugin-multi-entry': 6.0.0_rollup@2.79.1 + '@rollup/plugin-commonjs': 21.1.0_rollup@2.79.1 + '@rollup/plugin-json': 4.1.0_rollup@2.79.1 + '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 '@types/chai': 4.3.4 '@types/node': 14.18.36 diff --git a/sdk/appplatform/arm-appplatform/CHANGELOG.md b/sdk/appplatform/arm-appplatform/CHANGELOG.md index 3d14145be6f7..799fd4bfb3f3 100644 --- a/sdk/appplatform/arm-appplatform/CHANGELOG.md +++ b/sdk/appplatform/arm-appplatform/CHANGELOG.md @@ -1,29 +1,14 @@ # Release History - -## 2.1.0-beta.6 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 2.1.0-beta.5 (2023-01-13) + +## 3.0.0 (2023-02-13) **Features** - Added operation group ApiPortalCustomDomains - Added operation group ApiPortals - - Added operation group ApplicationAccelerators - - Added operation group ApplicationLiveViews - - Added operation group CustomizedAccelerators - - Added operation group DevToolPortals - Added operation group GatewayCustomDomains - Added operation group GatewayRouteConfigs - Added operation group Gateways - - Added operation group PredefinedAccelerators - Added operation group Storages - Added operation BuildServiceBuilder.listDeployments - Added operation Deployments.beginDisableRemoteDebugging @@ -35,11 +20,6 @@ - Added operation Services.beginStartAndWait - Added operation Services.beginStop - Added operation Services.beginStopAndWait - - Added Interface AcceleratorAuthSetting - - Added Interface AcceleratorBasicAuthSetting - - Added Interface AcceleratorGitRepository - - Added Interface AcceleratorPublicSetting - - Added Interface AcceleratorSshSetting - Added Interface ApiPortalCustomDomainProperties - Added Interface ApiPortalCustomDomainResource - Added Interface ApiPortalCustomDomainResourceCollection @@ -59,28 +39,6 @@ - Added Interface ApiPortalsListNextOptionalParams - Added Interface ApiPortalsListOptionalParams - Added Interface ApiPortalsValidateDomainOptionalParams - - Added Interface ApplicationAcceleratorComponent - - Added Interface ApplicationAcceleratorInstance - - Added Interface ApplicationAcceleratorProperties - - Added Interface ApplicationAcceleratorResource - - Added Interface ApplicationAcceleratorResourceCollection - - Added Interface ApplicationAcceleratorResourceRequests - - Added Interface ApplicationAcceleratorsCreateOrUpdateOptionalParams - - Added Interface ApplicationAcceleratorsDeleteOptionalParams - - Added Interface ApplicationAcceleratorsGetOptionalParams - - Added Interface ApplicationAcceleratorsListNextOptionalParams - - Added Interface ApplicationAcceleratorsListOptionalParams - - Added Interface ApplicationLiveViewComponent - - Added Interface ApplicationLiveViewInstance - - Added Interface ApplicationLiveViewProperties - - Added Interface ApplicationLiveViewResource - - Added Interface ApplicationLiveViewResourceCollection - - Added Interface ApplicationLiveViewResourceRequests - - Added Interface ApplicationLiveViewsCreateOrUpdateOptionalParams - - Added Interface ApplicationLiveViewsDeleteOptionalParams - - Added Interface ApplicationLiveViewsGetOptionalParams - - Added Interface ApplicationLiveViewsListNextOptionalParams - - Added Interface ApplicationLiveViewsListOptionalParams - Added Interface AppResource - Added Interface AppVNetAddons - Added Interface AzureFileVolume @@ -102,16 +60,6 @@ - Added Interface CustomContainer - Added Interface CustomContainerUserSourceInfo - Added Interface CustomDomainResource - - Added Interface CustomizedAcceleratorProperties - - Added Interface CustomizedAcceleratorResource - - Added Interface CustomizedAcceleratorResourceCollection - - Added Interface CustomizedAcceleratorsCreateOrUpdateOptionalParams - - Added Interface CustomizedAcceleratorsDeleteOptionalParams - - Added Interface CustomizedAcceleratorsGetOptionalParams - - Added Interface CustomizedAcceleratorsListNextOptionalParams - - Added Interface CustomizedAcceleratorsListOptionalParams - - Added Interface CustomizedAcceleratorsValidateOptionalParams - - Added Interface CustomizedAcceleratorValidateResult - Added Interface CustomPersistentDiskProperties - Added Interface CustomPersistentDiskResource - Added Interface DeploymentList @@ -119,19 +67,6 @@ - Added Interface DeploymentsDisableRemoteDebuggingOptionalParams - Added Interface DeploymentsEnableRemoteDebuggingOptionalParams - Added Interface DeploymentsGetRemoteDebuggingConfigOptionalParams - - Added Interface DevToolPortalFeatureDetail - - Added Interface DevToolPortalFeatureSettings - - Added Interface DevToolPortalInstance - - Added Interface DevToolPortalProperties - - Added Interface DevToolPortalResource - - Added Interface DevToolPortalResourceCollection - - Added Interface DevToolPortalResourceRequests - - Added Interface DevToolPortalsCreateOrUpdateOptionalParams - - Added Interface DevToolPortalsDeleteOptionalParams - - Added Interface DevToolPortalsGetOptionalParams - - Added Interface DevToolPortalsListNextOptionalParams - - Added Interface DevToolPortalsListOptionalParams - - Added Interface DevToolPortalSsoProperties - Added Interface ExecAction - Added Interface GatewayApiMetadataProperties - Added Interface GatewayApiRoute @@ -148,7 +83,6 @@ - Added Interface GatewayOperatorProperties - Added Interface GatewayOperatorResourceRequests - Added Interface GatewayProperties - - Added Interface GatewayPropertiesEnvironmentVariables - Added Interface GatewayResource - Added Interface GatewayResourceCollection - Added Interface GatewayResourceRequests @@ -164,7 +98,6 @@ - Added Interface GatewaysCreateOrUpdateOptionalParams - Added Interface GatewaysDeleteOptionalParams - Added Interface GatewaysGetOptionalParams - - Added Interface GatewaysListEnvSecretsOptionalParams - Added Interface GatewaysListNextOptionalParams - Added Interface GatewaysListOptionalParams - Added Interface GatewaysValidateDomainOptionalParams @@ -175,17 +108,8 @@ - Added Interface IngressSettingsClientAuth - Added Interface JarUploadedUserSourceInfo - Added Interface KeyVaultCertificateProperties - - Added Interface MarketplaceResource - Added Interface MonitoringSettingResource - Added Interface NetCoreZipUploadedUserSourceInfo - - Added Interface PredefinedAcceleratorProperties - - Added Interface PredefinedAcceleratorResource - - Added Interface PredefinedAcceleratorResourceCollection - - Added Interface PredefinedAcceleratorsDisableOptionalParams - - Added Interface PredefinedAcceleratorsEnableOptionalParams - - Added Interface PredefinedAcceleratorsGetOptionalParams - - Added Interface PredefinedAcceleratorsListNextOptionalParams - - Added Interface PredefinedAcceleratorsListOptionalParams - Added Interface Probe - Added Interface ProbeAction - Added Interface ProxyResource @@ -213,7 +137,6 @@ - Added Interface TrackedResource - Added Interface UploadedUserSourceInfo - Added Interface UserAssignedManagedIdentity - - Added Type Alias AcceleratorAuthSettingUnion - Added Type Alias ApiPortalCustomDomainsCreateOrUpdateResponse - Added Type Alias ApiPortalCustomDomainsGetResponse - Added Type Alias ApiPortalCustomDomainsListNextResponse @@ -224,38 +147,14 @@ - Added Type Alias ApiPortalsListNextResponse - Added Type Alias ApiPortalsListResponse - Added Type Alias ApiPortalsValidateDomainResponse - - Added Type Alias ApmType - - Added Type Alias ApplicationAcceleratorProvisioningState - - Added Type Alias ApplicationAcceleratorsCreateOrUpdateResponse - - Added Type Alias ApplicationAcceleratorsGetResponse - - Added Type Alias ApplicationAcceleratorsListNextResponse - - Added Type Alias ApplicationAcceleratorsListResponse - - Added Type Alias ApplicationLiveViewProvisioningState - - Added Type Alias ApplicationLiveViewsCreateOrUpdateResponse - - Added Type Alias ApplicationLiveViewsGetResponse - - Added Type Alias ApplicationLiveViewsListNextResponse - - Added Type Alias ApplicationLiveViewsListResponse - Added Type Alias BackendProtocol - Added Type Alias BuildServiceBuilderListDeploymentsResponse - Added Type Alias CertificateResourceProvisioningState - Added Type Alias CustomDomainResourceProvisioningState - - Added Type Alias CustomizedAcceleratorProvisioningState - - Added Type Alias CustomizedAcceleratorsCreateOrUpdateResponse - - Added Type Alias CustomizedAcceleratorsGetResponse - - Added Type Alias CustomizedAcceleratorsListNextResponse - - Added Type Alias CustomizedAcceleratorsListResponse - - Added Type Alias CustomizedAcceleratorsValidateResponse - - Added Type Alias CustomizedAcceleratorValidateResultState - Added Type Alias CustomPersistentDiskPropertiesUnion - Added Type Alias DeploymentsDisableRemoteDebuggingResponse - Added Type Alias DeploymentsEnableRemoteDebuggingResponse - Added Type Alias DeploymentsGetRemoteDebuggingConfigResponse - - Added Type Alias DevToolPortalFeatureState - - Added Type Alias DevToolPortalProvisioningState - - Added Type Alias DevToolPortalsCreateOrUpdateResponse - - Added Type Alias DevToolPortalsGetResponse - - Added Type Alias DevToolPortalsListNextResponse - - Added Type Alias DevToolPortalsListResponse - Added Type Alias GatewayCustomDomainsCreateOrUpdateResponse - Added Type Alias GatewayCustomDomainsGetResponse - Added Type Alias GatewayCustomDomainsListNextResponse @@ -268,17 +167,11 @@ - Added Type Alias GatewayRouteConfigsListResponse - Added Type Alias GatewaysCreateOrUpdateResponse - Added Type Alias GatewaysGetResponse - - Added Type Alias GatewaysListEnvSecretsResponse - Added Type Alias GatewaysListNextResponse - Added Type Alias GatewaysListResponse - Added Type Alias GatewaysValidateDomainResponse - Added Type Alias HttpSchemeType - Added Type Alias PowerState - - Added Type Alias PredefinedAcceleratorProvisioningState - - Added Type Alias PredefinedAcceleratorsGetResponse - - Added Type Alias PredefinedAcceleratorsListNextResponse - - Added Type Alias PredefinedAcceleratorsListResponse - - Added Type Alias PredefinedAcceleratorState - Added Type Alias ProbeActionType - Added Type Alias ProbeActionUnion - Added Type Alias SessionAffinity @@ -293,11 +186,7 @@ - Interface AppResourceProperties has a new optional parameter ingressSettings - Interface AppResourceProperties has a new optional parameter vnetAddons - Interface BuildProperties has a new optional parameter resourceRequests - - Interface BuildResultProperties has a new optional parameter error - - Interface BuildStageProperties has a new optional parameter exitCode - - Interface BuildStageProperties has a new optional parameter reason - Interface CertificateProperties has a new optional parameter provisioningState - - Interface ClusterResourceProperties has a new optional parameter marketplaceResource - Interface ClusterResourceProperties has a new optional parameter powerState - Interface ClusterResourceProperties has a new optional parameter vnetAddons - Interface CustomDomainProperties has a new optional parameter provisioningState @@ -309,32 +198,25 @@ - Interface ManagedIdentityProperties has a new optional parameter userAssignedIdentities - Interface NetworkProfile has a new optional parameter ingressConfig - Interface NetworkProfile has a new optional parameter outboundType + - Type of parameter type of interface UserSourceInfo is changed from "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" to "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" | "Container" - Added Enum KnownApiPortalProvisioningState - - Added Enum KnownApmType - - Added Enum KnownApplicationAcceleratorProvisioningState - - Added Enum KnownApplicationLiveViewProvisioningState - Added Enum KnownBackendProtocol - Added Enum KnownCertificateResourceProvisioningState - Added Enum KnownCustomDomainResourceProvisioningState - - Added Enum KnownCustomizedAcceleratorProvisioningState - - Added Enum KnownCustomizedAcceleratorValidateResultState - - Added Enum KnownDevToolPortalFeatureState - - Added Enum KnownDevToolPortalProvisioningState - Added Enum KnownGatewayProvisioningState - Added Enum KnownGatewayRouteConfigProtocol - Added Enum KnownHttpSchemeType - Added Enum KnownPowerState - - Added Enum KnownPredefinedAcceleratorProvisioningState - - Added Enum KnownPredefinedAcceleratorState - Added Enum KnownProbeActionType - Added Enum KnownSessionAffinity - Added Enum KnownStorageType - Added Enum KnownType - - Enum KnownBindingType has a new value CACertificates - Added function getContinuationToken + +**Breaking Changes** + - Interface DeploymentsListForClusterNextOptionalParams no longer has parameter version - Interface DeploymentsListNextOptionalParams no longer has parameter version - - Type of parameter type of interface UserSourceInfo is changed from "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" to "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" | "Container" ## 2.0.0 (2022-05-19) diff --git a/sdk/appplatform/arm-appplatform/README.md b/sdk/appplatform/arm-appplatform/README.md index 22becae73dbd..edfddbbcc142 100644 --- a/sdk/appplatform/arm-appplatform/README.md +++ b/sdk/appplatform/arm-appplatform/README.md @@ -6,7 +6,7 @@ REST API for Azure Spring Apps [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-appplatform) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-appplatform) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/appplatform/arm-appplatform/_meta.json b/sdk/appplatform/arm-appplatform/_meta.json index 52e13413dba1..805dc512518c 100644 --- a/sdk/appplatform/arm-appplatform/_meta.json +++ b/sdk/appplatform/arm-appplatform/_meta.json @@ -1,8 +1,8 @@ { - "commit": "e7bf3adfa2d5e5cdbb804eec35279501794f461c", + "commit": "5cbff4ee6bce68a077525774a444de37ff4e3b38", "readme": "specification/appplatform/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appplatform\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.7 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --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/appplatform/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.5", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", - "use": "@autorest/typescript@6.0.0-rc.7" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "use": "@autorest/typescript@6.0.0-rc.5" } \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json index 38529eb8c10c..c3660b6f979e 100644 --- a/sdk/appplatform/arm-appplatform/package.json +++ b/sdk/appplatform/arm-appplatform/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AppPlatformManagementClient.", - "version": "2.1.0-beta.6", + "version": "3.0.0", "engines": { "node": ">=14.0.0" }, @@ -29,9 +29,9 @@ "types": "./types/arm-appplatform.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "@rollup/plugin-commonjs": "^24.0.0", - "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-multi-entry": "^6.0.0", + "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-multi-entry": "^4.1.0", "@rollup/plugin-node-resolve": "^13.1.3", "mkdirp": "^1.0.4", "rollup": "^2.66.1", @@ -39,7 +39,6 @@ "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -50,6 +49,7 @@ "@types/node": "^14.0.0", "@azure/dev-tool": "^1.0.0" }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -110,14 +110,5 @@ } ] }, - "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md b/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md index b74108eb05e7..cd139efcbfcc 100644 --- a/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md +++ b/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md @@ -10,44 +10,6 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { PollerLike } from '@azure/core-lro'; import { PollOperationState } from '@azure/core-lro'; -// @public -export interface AcceleratorAuthSetting { - authType: "Public" | "BasicAuth" | "SSH"; -} - -// @public (undocumented) -export type AcceleratorAuthSettingUnion = AcceleratorAuthSetting | AcceleratorPublicSetting | AcceleratorBasicAuthSetting | AcceleratorSshSetting; - -// @public -export interface AcceleratorBasicAuthSetting extends AcceleratorAuthSetting { - authType: "BasicAuth"; - password?: string; - username: string; -} - -// @public (undocumented) -export interface AcceleratorGitRepository { - authSetting: AcceleratorAuthSettingUnion; - branch?: string; - commit?: string; - gitTag?: string; - intervalInSeconds?: number; - url: string; -} - -// @public -export interface AcceleratorPublicSetting extends AcceleratorAuthSetting { - authType: "Public"; -} - -// @public -export interface AcceleratorSshSetting extends AcceleratorAuthSetting { - authType: "SSH"; - hostKey?: string; - hostKeyAlgorithm?: string; - privateKey?: string; -} - // @public export type ActionType = string; @@ -212,188 +174,11 @@ export interface ApiPortalsValidateDomainOptionalParams extends coreClient.Opera // @public export type ApiPortalsValidateDomainResponse = CustomDomainValidateResult; -// @public -export type ApmType = string; - -// @public (undocumented) -export interface ApplicationAcceleratorComponent { - readonly instances?: ApplicationAcceleratorInstance[]; - readonly name?: string; - // (undocumented) - resourceRequests?: ApplicationAcceleratorResourceRequests; -} - -// @public (undocumented) -export interface ApplicationAcceleratorInstance { - readonly name?: string; - readonly status?: string; -} - -// @public -export interface ApplicationAcceleratorProperties { - readonly components?: ApplicationAcceleratorComponent[]; - readonly provisioningState?: ApplicationAcceleratorProvisioningState; -} - -// @public -export type ApplicationAcceleratorProvisioningState = string; - -// @public -export interface ApplicationAcceleratorResource extends ProxyResource { - properties?: ApplicationAcceleratorProperties; - sku?: Sku; -} - -// @public -export interface ApplicationAcceleratorResourceCollection { - nextLink?: string; - value?: ApplicationAcceleratorResource[]; -} - -// @public (undocumented) -export interface ApplicationAcceleratorResourceRequests { - readonly cpu?: string; - readonly instanceCount?: number; - readonly memory?: string; -} - -// @public -export interface ApplicationAccelerators { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, applicationAcceleratorResource: ApplicationAcceleratorResource, options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams): Promise, ApplicationAcceleratorsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, applicationAcceleratorResource: ApplicationAcceleratorResource, options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, options?: ApplicationAcceleratorsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, options?: ApplicationAcceleratorsDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, options?: ApplicationAcceleratorsGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, options?: ApplicationAcceleratorsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ApplicationAcceleratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ApplicationAcceleratorsCreateOrUpdateResponse = ApplicationAcceleratorResource; - -// @public -export interface ApplicationAcceleratorsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface ApplicationAcceleratorsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationAcceleratorsGetResponse = ApplicationAcceleratorResource; - -// @public -export interface ApplicationAcceleratorsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationAcceleratorsListNextResponse = ApplicationAcceleratorResourceCollection; - -// @public -export interface ApplicationAcceleratorsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationAcceleratorsListResponse = ApplicationAcceleratorResourceCollection; - // @public export interface ApplicationInsightsAgentVersions { readonly java?: string; } -// @public -export interface ApplicationLiveViewComponent { - readonly instances?: ApplicationLiveViewInstance[]; - readonly name?: any; - readonly resourceRequests?: ApplicationLiveViewResourceRequests; -} - -// @public -export interface ApplicationLiveViewInstance { - readonly name?: string; - readonly status?: string; -} - -// @public -export interface ApplicationLiveViewProperties { - readonly components?: ApplicationLiveViewComponent[]; - readonly provisioningState?: ApplicationLiveViewProvisioningState; -} - -// @public -export type ApplicationLiveViewProvisioningState = string; - -// @public -export interface ApplicationLiveViewResource extends ProxyResource { - properties?: ApplicationLiveViewProperties; -} - -// @public -export interface ApplicationLiveViewResourceCollection { - nextLink?: string; - value?: ApplicationLiveViewResource[]; -} - -// @public -export interface ApplicationLiveViewResourceRequests { - readonly cpu?: string; - readonly instanceCount?: number; - readonly memory?: string; -} - -// @public -export interface ApplicationLiveViews { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, applicationLiveViewName: string, applicationLiveViewResource: ApplicationLiveViewResource, options?: ApplicationLiveViewsCreateOrUpdateOptionalParams): Promise, ApplicationLiveViewsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, applicationLiveViewName: string, applicationLiveViewResource: ApplicationLiveViewResource, options?: ApplicationLiveViewsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, applicationLiveViewName: string, options?: ApplicationLiveViewsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, applicationLiveViewName: string, options?: ApplicationLiveViewsDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, applicationLiveViewName: string, options?: ApplicationLiveViewsGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, options?: ApplicationLiveViewsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ApplicationLiveViewsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ApplicationLiveViewsCreateOrUpdateResponse = ApplicationLiveViewResource; - -// @public -export interface ApplicationLiveViewsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface ApplicationLiveViewsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationLiveViewsGetResponse = ApplicationLiveViewResource; - -// @public -export interface ApplicationLiveViewsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationLiveViewsListNextResponse = ApplicationLiveViewResourceCollection; - -// @public -export interface ApplicationLiveViewsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationLiveViewsListResponse = ApplicationLiveViewResourceCollection; - // @public (undocumented) export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) @@ -406,10 +191,6 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) - applicationAccelerators: ApplicationAccelerators; - // (undocumented) - applicationLiveViews: ApplicationLiveViews; - // (undocumented) apps: Apps; // (undocumented) bindings: Bindings; @@ -430,12 +211,8 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) customDomains: CustomDomains; // (undocumented) - customizedAccelerators: CustomizedAccelerators; - // (undocumented) deployments: Deployments; // (undocumented) - devToolPortals: DevToolPortals; - // (undocumented) gatewayCustomDomains: GatewayCustomDomains; // (undocumented) gatewayRouteConfigs: GatewayRouteConfigs; @@ -446,8 +223,6 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) operations: Operations; // (undocumented) - predefinedAccelerators: PredefinedAccelerators; - // (undocumented) runtimeVersions: RuntimeVersions; // (undocumented) serviceRegistries: ServiceRegistries; @@ -863,7 +638,6 @@ export interface BuildResultLog { export interface BuildResultProperties { buildPodName?: string; readonly buildStages?: BuildStageProperties[]; - error?: ErrorModel; name?: string; readonly provisioningState?: BuildResultProvisioningState; } @@ -1151,9 +925,7 @@ export type BuildServiceProvisioningState = string; // @public export interface BuildStageProperties { - readonly exitCode?: string; readonly name?: string; - readonly reason?: string; readonly status?: KPackBuildStageProvisioningState; } @@ -1249,7 +1021,6 @@ export interface CloudErrorBody { // @public export interface ClusterResourceProperties { readonly fqdn?: string; - marketplaceResource?: MarketplaceResource; networkProfile?: NetworkProfile; readonly powerState?: PowerState; readonly provisioningState?: ProvisioningState; @@ -1600,101 +1371,6 @@ export interface CustomDomainValidateResult { message?: string; } -// @public -export interface CustomizedAcceleratorProperties { - // (undocumented) - acceleratorTags?: string[]; - // (undocumented) - description?: string; - // (undocumented) - displayName?: string; - // (undocumented) - gitRepository: AcceleratorGitRepository; - // (undocumented) - iconUrl?: string; - readonly provisioningState?: CustomizedAcceleratorProvisioningState; -} - -// @public -export type CustomizedAcceleratorProvisioningState = string; - -// @public -export interface CustomizedAcceleratorResource extends ProxyResource { - properties?: CustomizedAcceleratorProperties; - sku?: Sku; -} - -// @public (undocumented) -export interface CustomizedAcceleratorResourceCollection { - // (undocumented) - nextLink?: string; - // (undocumented) - value?: CustomizedAcceleratorResource[]; -} - -// @public -export interface CustomizedAccelerators { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, customizedAcceleratorResource: CustomizedAcceleratorResource, options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams): Promise, CustomizedAcceleratorsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, customizedAcceleratorResource: CustomizedAcceleratorResource, options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, options?: CustomizedAcceleratorsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, options?: CustomizedAcceleratorsDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, options?: CustomizedAcceleratorsGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, options?: CustomizedAcceleratorsListOptionalParams): PagedAsyncIterableIterator; - validate(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, properties: CustomizedAcceleratorProperties, options?: CustomizedAcceleratorsValidateOptionalParams): Promise; -} - -// @public -export interface CustomizedAcceleratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CustomizedAcceleratorsCreateOrUpdateResponse = CustomizedAcceleratorResource; - -// @public -export interface CustomizedAcceleratorsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface CustomizedAcceleratorsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CustomizedAcceleratorsGetResponse = CustomizedAcceleratorResource; - -// @public -export interface CustomizedAcceleratorsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CustomizedAcceleratorsListNextResponse = CustomizedAcceleratorResourceCollection; - -// @public -export interface CustomizedAcceleratorsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CustomizedAcceleratorsListResponse = CustomizedAcceleratorResourceCollection; - -// @public -export interface CustomizedAcceleratorsValidateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CustomizedAcceleratorsValidateResponse = CustomizedAcceleratorValidateResult; - -// @public -export interface CustomizedAcceleratorValidateResult { - errorMessage?: string; - state?: CustomizedAcceleratorValidateResultState; -} - -// @public -export type CustomizedAcceleratorValidateResultState = string; - // @public export interface CustomPersistentDiskProperties { mountOptions?: string[]; @@ -1934,113 +1610,6 @@ export interface DeploymentsUpdateOptionalParams extends coreClient.OperationOpt // @public export type DeploymentsUpdateResponse = DeploymentResource; -// @public -export interface DevToolPortalFeatureDetail { - readonly route?: string; - state?: DevToolPortalFeatureState; -} - -// @public -export interface DevToolPortalFeatureSettings { - applicationAccelerator?: DevToolPortalFeatureDetail; - applicationLiveView?: DevToolPortalFeatureDetail; -} - -// @public -export type DevToolPortalFeatureState = string; - -// @public -export interface DevToolPortalInstance { - readonly name?: string; - readonly status?: string; -} - -// @public -export interface DevToolPortalProperties { - features?: DevToolPortalFeatureSettings; - readonly instances?: DevToolPortalInstance[]; - readonly provisioningState?: DevToolPortalProvisioningState; - public?: boolean; - readonly resourceRequests?: DevToolPortalResourceRequests; - ssoProperties?: DevToolPortalSsoProperties; - readonly url?: string; -} - -// @public -export type DevToolPortalProvisioningState = string; - -// @public -export interface DevToolPortalResource extends ProxyResource { - properties?: DevToolPortalProperties; -} - -// @public -export interface DevToolPortalResourceCollection { - nextLink?: string; - value?: DevToolPortalResource[]; -} - -// @public -export interface DevToolPortalResourceRequests { - readonly cpu?: string; - readonly instanceCount?: number; - readonly memory?: string; -} - -// @public -export interface DevToolPortals { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, devToolPortalName: string, devToolPortalResource: DevToolPortalResource, options?: DevToolPortalsCreateOrUpdateOptionalParams): Promise, DevToolPortalsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, devToolPortalName: string, devToolPortalResource: DevToolPortalResource, options?: DevToolPortalsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, devToolPortalName: string, options?: DevToolPortalsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, devToolPortalName: string, options?: DevToolPortalsDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, devToolPortalName: string, options?: DevToolPortalsGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, options?: DevToolPortalsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface DevToolPortalsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type DevToolPortalsCreateOrUpdateResponse = DevToolPortalResource; - -// @public -export interface DevToolPortalsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface DevToolPortalsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DevToolPortalsGetResponse = DevToolPortalResource; - -// @public -export interface DevToolPortalsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DevToolPortalsListNextResponse = DevToolPortalResourceCollection; - -// @public -export interface DevToolPortalsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DevToolPortalsListResponse = DevToolPortalResourceCollection; - -// @public -export interface DevToolPortalSsoProperties { - clientId?: string; - clientSecret?: string; - metadataUrl?: string; - scopes?: string[]; -} - // @public export interface DiagnosticParameters { appInstance?: string; @@ -2176,9 +1745,7 @@ export interface GatewayOperatorResourceRequests { // @public export interface GatewayProperties { apiMetadataProperties?: GatewayApiMetadataProperties; - apmTypes?: ApmType[]; corsProperties?: GatewayCorsProperties; - environmentVariables?: GatewayPropertiesEnvironmentVariables; httpsOnly?: boolean; readonly instances?: GatewayInstance[]; readonly operatorProperties?: GatewayOperatorProperties; @@ -2189,16 +1756,6 @@ export interface GatewayProperties { readonly url?: string; } -// @public -export interface GatewayPropertiesEnvironmentVariables { - properties?: { - [propertyName: string]: string; - }; - secrets?: { - [propertyName: string]: string; - }; -} - // @public export type GatewayProvisioningState = string; @@ -2228,13 +1785,10 @@ export interface GatewayRouteConfigOpenApiProperties { // @public export interface GatewayRouteConfigProperties { appResourceId?: string; - filters?: string[]; openApi?: GatewayRouteConfigOpenApiProperties; - predicates?: string[]; protocol?: GatewayRouteConfigProtocol; readonly provisioningState?: GatewayProvisioningState; routes?: GatewayApiRoute[]; - ssoEnabled?: boolean; } // @public @@ -2305,7 +1859,6 @@ export interface Gateways { beginDeleteAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysGetOptionalParams): Promise; list(resourceGroupName: string, serviceName: string, options?: GatewaysListOptionalParams): PagedAsyncIterableIterator; - listEnvSecrets(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysListEnvSecretsOptionalParams): Promise; validateDomain(resourceGroupName: string, serviceName: string, gatewayName: string, validatePayload: CustomDomainValidatePayload, options?: GatewaysValidateDomainOptionalParams): Promise; } @@ -2331,15 +1884,6 @@ export interface GatewaysGetOptionalParams extends coreClient.OperationOptions { // @public export type GatewaysGetResponse = GatewayResource; -// @public -export interface GatewaysListEnvSecretsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GatewaysListEnvSecretsResponse = { - [propertyName: string]: string; -}; - // @public export interface GatewaysListNextOptionalParams extends coreClient.OperationOptions { } @@ -2445,34 +1989,6 @@ export enum KnownApiPortalProvisioningState { Updating = "Updating" } -// @public -export enum KnownApmType { - AppDynamics = "AppDynamics", - ApplicationInsights = "ApplicationInsights", - Dynatrace = "Dynatrace", - ElasticAPM = "ElasticAPM", - NewRelic = "NewRelic" -} - -// @public -export enum KnownApplicationAcceleratorProvisioningState { - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" -} - -// @public -export enum KnownApplicationLiveViewProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" -} - // @public export enum KnownAppResourceProvisioningState { Creating = "Creating", @@ -2493,7 +2009,6 @@ export enum KnownBindingType { ApacheSkyWalking = "ApacheSkyWalking", AppDynamics = "AppDynamics", ApplicationInsights = "ApplicationInsights", - CACertificates = "CACertificates", Dynatrace = "Dynatrace", ElasticAPM = "ElasticAPM", NewRelic = "NewRelic" @@ -2588,21 +2103,6 @@ export enum KnownCustomDomainResourceProvisioningState { Updating = "Updating" } -// @public -export enum KnownCustomizedAcceleratorProvisioningState { - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" -} - -// @public -export enum KnownCustomizedAcceleratorValidateResultState { - Invalid = "Invalid", - Valid = "Valid" -} - // @public export enum KnownDeploymentResourceProvisioningState { Creating = "Creating", @@ -2617,22 +2117,6 @@ export enum KnownDeploymentResourceStatus { Stopped = "Stopped" } -// @public -export enum KnownDevToolPortalFeatureState { - Disabled = "Disabled", - Enabled = "Enabled" -} - -// @public -export enum KnownDevToolPortalProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" -} - // @public export enum KnownGatewayProvisioningState { Creating = "Creating", @@ -2692,20 +2176,6 @@ export enum KnownPowerState { Stopped = "Stopped" } -// @public -export enum KnownPredefinedAcceleratorProvisioningState { - Creating = "Creating", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" -} - -// @public -export enum KnownPredefinedAcceleratorState { - Disabled = "Disabled", - Enabled = "Enabled" -} - // @public export enum KnownProbeActionType { ExecAction = "ExecAction", @@ -2835,13 +2305,6 @@ export interface ManagedIdentityProperties { // @public export type ManagedIdentityType = string; -// @public -export interface MarketplaceResource { - plan?: string; - product?: string; - publisher?: string; -} - // @public export interface MetricDimension { displayName?: string; @@ -3006,79 +2469,6 @@ export interface PersistentDisk { // @public export type PowerState = string; -// @public -export interface PredefinedAcceleratorProperties { - readonly acceleratorTags?: string[]; - readonly description?: string; - readonly displayName?: string; - readonly iconUrl?: string; - readonly provisioningState?: PredefinedAcceleratorProvisioningState; - state?: PredefinedAcceleratorState; -} - -// @public -export type PredefinedAcceleratorProvisioningState = string; - -// @public -export interface PredefinedAcceleratorResource extends ProxyResource { - properties?: PredefinedAcceleratorProperties; - sku?: Sku; -} - -// @public (undocumented) -export interface PredefinedAcceleratorResourceCollection { - // (undocumented) - nextLink?: string; - // (undocumented) - value?: PredefinedAcceleratorResource[]; -} - -// @public -export interface PredefinedAccelerators { - beginDisable(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, options?: PredefinedAcceleratorsDisableOptionalParams): Promise, void>>; - beginDisableAndWait(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, options?: PredefinedAcceleratorsDisableOptionalParams): Promise; - beginEnable(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, options?: PredefinedAcceleratorsEnableOptionalParams): Promise, void>>; - beginEnableAndWait(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, options?: PredefinedAcceleratorsEnableOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, options?: PredefinedAcceleratorsGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, options?: PredefinedAcceleratorsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface PredefinedAcceleratorsDisableOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface PredefinedAcceleratorsEnableOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface PredefinedAcceleratorsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PredefinedAcceleratorsGetResponse = PredefinedAcceleratorResource; - -// @public -export interface PredefinedAcceleratorsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PredefinedAcceleratorsListNextResponse = PredefinedAcceleratorResourceCollection; - -// @public -export interface PredefinedAcceleratorsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PredefinedAcceleratorsListResponse = PredefinedAcceleratorResourceCollection; - -// @public -export type PredefinedAcceleratorState = string; - // @public export interface Probe { disableProbe: boolean; diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts index 061667286602..664b1f7b92d2 100644 --- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts @@ -19,8 +19,6 @@ import { ConfigServersImpl, ConfigurationServicesImpl, ServiceRegistriesImpl, - ApplicationLiveViewsImpl, - DevToolPortalsImpl, BuildServiceOperationsImpl, BuildpackBindingImpl, BuildServiceBuilderImpl, @@ -39,18 +37,13 @@ import { GatewayRouteConfigsImpl, GatewayCustomDomainsImpl, ApiPortalsImpl, - ApiPortalCustomDomainsImpl, - ApplicationAcceleratorsImpl, - CustomizedAcceleratorsImpl, - PredefinedAcceleratorsImpl + ApiPortalCustomDomainsImpl } from "./operations"; import { Services, ConfigServers, ConfigurationServices, ServiceRegistries, - ApplicationLiveViews, - DevToolPortals, BuildServiceOperations, BuildpackBinding, BuildServiceBuilder, @@ -69,10 +62,7 @@ import { GatewayRouteConfigs, GatewayCustomDomains, ApiPortals, - ApiPortalCustomDomains, - ApplicationAccelerators, - CustomizedAccelerators, - PredefinedAccelerators + ApiPortalCustomDomains } from "./operationsInterfaces"; import { AppPlatformManagementClientOptionalParams } from "./models"; @@ -109,7 +99,7 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-appplatform/2.1.0-beta.6`; + const packageDetails = `azsdk-js-arm-appplatform/3.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -162,13 +152,11 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-11-01-preview"; + this.apiVersion = options.apiVersion || "2022-12-01"; this.services = new ServicesImpl(this); this.configServers = new ConfigServersImpl(this); this.configurationServices = new ConfigurationServicesImpl(this); this.serviceRegistries = new ServiceRegistriesImpl(this); - this.applicationLiveViews = new ApplicationLiveViewsImpl(this); - this.devToolPortals = new DevToolPortalsImpl(this); this.buildServiceOperations = new BuildServiceOperationsImpl(this); this.buildpackBinding = new BuildpackBindingImpl(this); this.buildServiceBuilder = new BuildServiceBuilderImpl(this); @@ -188,9 +176,6 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { this.gatewayCustomDomains = new GatewayCustomDomainsImpl(this); this.apiPortals = new ApiPortalsImpl(this); this.apiPortalCustomDomains = new ApiPortalCustomDomainsImpl(this); - this.applicationAccelerators = new ApplicationAcceleratorsImpl(this); - this.customizedAccelerators = new CustomizedAcceleratorsImpl(this); - this.predefinedAccelerators = new PredefinedAcceleratorsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -226,8 +211,6 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { configServers: ConfigServers; configurationServices: ConfigurationServices; serviceRegistries: ServiceRegistries; - applicationLiveViews: ApplicationLiveViews; - devToolPortals: DevToolPortals; buildServiceOperations: BuildServiceOperations; buildpackBinding: BuildpackBinding; buildServiceBuilder: BuildServiceBuilder; @@ -247,7 +230,4 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { gatewayCustomDomains: GatewayCustomDomains; apiPortals: ApiPortals; apiPortalCustomDomains: ApiPortalCustomDomains; - applicationAccelerators: ApplicationAccelerators; - customizedAccelerators: CustomizedAccelerators; - predefinedAccelerators: PredefinedAccelerators; } diff --git a/sdk/appplatform/arm-appplatform/src/models/index.ts b/sdk/appplatform/arm-appplatform/src/models/index.ts index 8190d0613ce9..de33e016bffc 100644 --- a/sdk/appplatform/arm-appplatform/src/models/index.ts +++ b/sdk/appplatform/arm-appplatform/src/models/index.ts @@ -26,11 +26,6 @@ export type ProbeActionUnion = | HttpGetAction | ExecAction | TCPSocketAction; -export type AcceleratorAuthSettingUnion = - | AcceleratorAuthSetting - | AcceleratorPublicSetting - | AcceleratorBasicAuthSetting - | AcceleratorSshSetting; export type UploadedUserSourceInfoUnion = | UploadedUserSourceInfo | JarUploadedUserSourceInfo @@ -69,8 +64,6 @@ export interface ClusterResourceProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fqdn?: string; - /** Purchasing 3rd party product of the Service resource. */ - marketplaceResource?: MarketplaceResource; } /** Service network profile payload */ @@ -151,16 +144,6 @@ export interface ServiceVNetAddons { logStreamPublicEndpoint?: boolean; } -/** Purchasing 3rd Party product for one Azure Spring Apps instance */ -export interface MarketplaceResource { - /** The plan id of the 3rd Party Artifact that is being procured. */ - plan?: string; - /** The publisher id of the 3rd Party Artifact that is being bought. */ - publisher?: string; - /** The 3rd Party artifact that is being procured. */ - product?: string; -} - /** Sku of Azure Spring Apps */ export interface Sku { /** Name of the Sku */ @@ -532,188 +515,6 @@ export interface ServiceRegistryResourceCollection { nextLink?: string; } -/** Object that includes an array of Application Live View resources and a possible link for next set */ -export interface ApplicationLiveViewResourceCollection { - /** Collection of Application Live View resources */ - value?: ApplicationLiveViewResource[]; - /** - * URL client should use to fetch the next page (per server side paging). - * It's null for now, added for future use. - */ - nextLink?: string; -} - -/** Application Live View properties payload */ -export interface ApplicationLiveViewProperties { - /** - * State of the Application Live View. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ApplicationLiveViewProvisioningState; - /** - * Component details of Application Live View - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly components?: ApplicationLiveViewComponent[]; -} - -/** Application Live View properties payload */ -export interface ApplicationLiveViewComponent { - /** - * Name of the component. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: any; - /** - * The requested resource quantity for required CPU and Memory. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceRequests?: ApplicationLiveViewResourceRequests; - /** - * Collection of instances belong to Application Live View. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instances?: ApplicationLiveViewInstance[]; -} - -/** The resource quantity for required CPU and Memory of Application Live View component */ -export interface ApplicationLiveViewResourceRequests { - /** - * Cpu quantity allocated to each Application Live View component instance. 1 core can be represented by 1 or 1000m. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cpu?: string; - /** - * Memory quantity allocated to each Application Live View component instance. 1 GB can be represented by 1Gi or 1024Mi. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly memory?: string; - /** - * Desired instance count of Application Live View component instance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceCount?: number; -} - -/** Collection of instances belong to the Application Live View */ -export interface ApplicationLiveViewInstance { - /** - * Name of the Application Live View instance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Status of the Application Live View instance. It can be Pending, Running, Succeeded, Failed, Unknown. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; -} - -/** Object that includes an array of Dev Tool Portal resources and a possible link for next set */ -export interface DevToolPortalResourceCollection { - /** Collection of Dev Tool Portal resources */ - value?: DevToolPortalResource[]; - /** - * URL client should use to fetch the next page (per server side paging). - * It's null for now, added for future use. - */ - nextLink?: string; -} - -/** Dev Tool Portal properties payload */ -export interface DevToolPortalProperties { - /** - * State of the Dev Tool Portal. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: DevToolPortalProvisioningState; - /** - * The requested resource quantity for required CPU and Memory. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceRequests?: DevToolPortalResourceRequests; - /** - * Collection of instances belong to Dev Tool Portal. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instances?: DevToolPortalInstance[]; - /** Indicates whether the resource exposes public endpoint */ - public?: boolean; - /** - * URL of the resource, exposed when 'public' is true. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly url?: string; - /** Single sign-on related configuration */ - ssoProperties?: DevToolPortalSsoProperties; - /** Settings for Dev Tool Portal */ - features?: DevToolPortalFeatureSettings; -} - -/** The resource quantity for required CPU and Memory of Dev Tool Portal */ -export interface DevToolPortalResourceRequests { - /** - * Cpu quantity allocated to each Dev Tool Portal instance. 1 core can be represented by 1 or 1000m - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cpu?: string; - /** - * Memory quantity allocated to each Dev Tool Portal instance. 1 GB can be represented by 1Gi or 1024Mi. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly memory?: string; - /** - * Desired instance count of Dev Tool Portal. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceCount?: number; -} - -/** Collection of instances belong to the Dev Tool Portal. */ -export interface DevToolPortalInstance { - /** - * Name of the Dev Tool Portal instance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Status of the Dev Tool Portal instance. It can be Pending, Running, Succeeded, Failed, Unknown. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; -} - -/** Single sign-on related configuration */ -export interface DevToolPortalSsoProperties { - /** It defines the specific actions applications can be allowed to do on a user's behalf */ - scopes?: string[]; - /** The public identifier for the application */ - clientId?: string; - /** The secret known only to the application and the authorization server */ - clientSecret?: string; - /** The URI of a JSON file with generic OIDC provider configuration. */ - metadataUrl?: string; -} - -/** Settings for Dev Tool Portal */ -export interface DevToolPortalFeatureSettings { - /** Detail of Accelerator plugin */ - applicationAccelerator?: DevToolPortalFeatureDetail; - /** Detail of App Live View plugin */ - applicationLiveView?: DevToolPortalFeatureDetail; -} - -/** Detail settings for Dev Tool Portal feature */ -export interface DevToolPortalFeatureDetail { - /** State of the plugin */ - state?: DevToolPortalFeatureState; - /** - * Route path to visit the plugin - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly route?: string; -} - /** Object that includes an array of Build service resources and a possible link for next set */ export interface BuildServiceCollection { /** Collection of Build service resources */ @@ -859,8 +660,6 @@ export interface BuildResultProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: BuildResultProvisioningState; - /** Error when build is failed. */ - error?: ErrorModel; /** The build pod name which can be used to get the build log streaming. */ buildPodName?: string; /** @@ -882,16 +681,6 @@ export interface BuildStageProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: KPackBuildStageProvisioningState; - /** - * The exit code of this build init container. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly exitCode?: string; - /** - * The reason of this build init container. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reason?: string; } /** Build result log resource properties payload */ @@ -1827,10 +1616,6 @@ export interface GatewayProperties { apiMetadataProperties?: GatewayApiMetadataProperties; /** Cross-Origin Resource Sharing property */ corsProperties?: GatewayCorsProperties; - /** Collection of APM type used in Spring Cloud Gateway */ - apmTypes?: ApmType[]; - /** Environment variables of Spring Cloud Gateway */ - environmentVariables?: GatewayPropertiesEnvironmentVariables; /** The requested resource quantity for required CPU and Memory. */ resourceRequests?: GatewayResourceRequests; /** @@ -1887,14 +1672,6 @@ export interface GatewayCorsProperties { exposedHeaders?: string[]; } -/** Environment variables of Spring Cloud Gateway */ -export interface GatewayPropertiesEnvironmentVariables { - /** Non-sensitive properties */ - properties?: { [propertyName: string]: string }; - /** Sensitive properties */ - secrets?: { [propertyName: string]: string }; -} - /** Resource request payload of Spring Cloud Gateway. */ export interface GatewayResourceRequests { /** Cpu allocated to each Spring Cloud Gateway instance. */ @@ -1976,12 +1753,6 @@ export interface GatewayRouteConfigProperties { protocol?: GatewayRouteConfigProtocol; /** Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`. */ routes?: GatewayApiRoute[]; - /** Enable Single Sign-On in app level. */ - ssoEnabled?: boolean; - /** A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request. */ - predicates?: string[]; - /** To modify the request before sending it to the target endpoint, or the received response in app level. */ - filters?: string[]; } /** OpenAPI properties of Spring Cloud Gateway route config. */ @@ -2130,142 +1901,6 @@ export interface ApiPortalCustomDomainResourceCollection { nextLink?: string; } -/** Object that includes an array of application accelerator resources and a possible link for next set */ -export interface ApplicationAcceleratorResourceCollection { - /** Collection of application accelerator resources */ - value?: ApplicationAcceleratorResource[]; - /** - * URL client should use to fetch the next page (per server side paging). - * It's null for now, added for future use. - */ - nextLink?: string; -} - -/** Application accelerator properties payload */ -export interface ApplicationAcceleratorProperties { - /** - * State of the application accelerator. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ApplicationAcceleratorProvisioningState; - /** - * Collection of components belong to application accelerator. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly components?: ApplicationAcceleratorComponent[]; -} - -export interface ApplicationAcceleratorComponent { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; - resourceRequests?: ApplicationAcceleratorResourceRequests; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instances?: ApplicationAcceleratorInstance[]; -} - -export interface ApplicationAcceleratorResourceRequests { - /** - * Cpu allocated to each application accelerator component. 1 core can be represented by 1 or 1000m - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cpu?: string; - /** - * Memory allocated to each application accelerator component. 1 GB can be represented by 1Gi or 1024Mi. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly memory?: string; - /** - * Instance count of the application accelerator component. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceCount?: number; -} - -export interface ApplicationAcceleratorInstance { - /** - * Name of the Application Accelerator instance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Status of the Application Accelerator instance. It can be Pending, Running, Succeeded, Failed, Unknown. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; -} - -export interface CustomizedAcceleratorResourceCollection { - value?: CustomizedAcceleratorResource[]; - nextLink?: string; -} - -/** Customized accelerator properties payload */ -export interface CustomizedAcceleratorProperties { - /** - * State of the customized accelerator. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: CustomizedAcceleratorProvisioningState; - displayName?: string; - description?: string; - iconUrl?: string; - acceleratorTags?: string[]; - gitRepository: AcceleratorGitRepository; -} - -export interface AcceleratorGitRepository { - /** Git repository URL for the accelerator. */ - url: string; - /** Interval for checking for updates to Git or image repository. */ - intervalInSeconds?: number; - /** Git repository branch to be used. */ - branch?: string; - /** Git repository commit to be used. */ - commit?: string; - /** Git repository tag to be used. */ - gitTag?: string; - /** Properties of the auth setting payload. */ - authSetting: AcceleratorAuthSettingUnion; -} - -/** Auth setting payload. */ -export interface AcceleratorAuthSetting { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "Public" | "BasicAuth" | "SSH"; -} - -/** Validation result for customized accelerator properties */ -export interface CustomizedAcceleratorValidateResult { - /** State of the customized accelerator validation result */ - state?: CustomizedAcceleratorValidateResultState; - /** The detail validation results */ - errorMessage?: string; -} - -export interface PredefinedAcceleratorResourceCollection { - value?: PredefinedAcceleratorResource[]; - nextLink?: string; -} - -/** Predefined accelerator properties payload */ -export interface PredefinedAcceleratorProperties { - /** - * Provisioning state of the predefined accelerator. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: PredefinedAcceleratorProvisioningState; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly iconUrl?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly acceleratorTags?: string[]; - /** State of the predefined accelerator. */ - state?: PredefinedAcceleratorState; -} - /** Custom container payload */ export interface CustomContainer { /** The name of the registry that contains the container image */ @@ -2395,34 +2030,6 @@ export interface TCPSocketAction extends ProbeAction { type: "TCPSocketAction"; } -/** Auth setting for public url. */ -export interface AcceleratorPublicSetting extends AcceleratorAuthSetting { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "Public"; -} - -/** Auth setting for basic auth. */ -export interface AcceleratorBasicAuthSetting extends AcceleratorAuthSetting { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "BasicAuth"; - /** Username of git repository basic auth. */ - username: string; - /** Password of git repository basic auth. */ - password?: string; -} - -/** Auth setting for SSH auth. */ -export interface AcceleratorSshSetting extends AcceleratorAuthSetting { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "SSH"; - /** Public SSH Key of git repository. */ - hostKey?: string; - /** SSH Key algorithm of git repository. */ - hostKeyAlgorithm?: string; - /** Private SSH Key algorithm of git repository. */ - privateKey?: string; -} - /** Service resource */ export interface ServiceResource extends TrackedResource { /** Properties of the Service resource */ @@ -2449,18 +2056,6 @@ export interface ServiceRegistryResource extends ProxyResource { properties?: ServiceRegistryProperties; } -/** Application Live View resource */ -export interface ApplicationLiveViewResource extends ProxyResource { - /** Application Live View properties payload */ - properties?: ApplicationLiveViewProperties; -} - -/** Dev Tool Portal resource */ -export interface DevToolPortalResource extends ProxyResource { - /** Dev Tool Portal properties payload */ - properties?: DevToolPortalProperties; -} - /** Build service resource payload */ export interface BuildService extends ProxyResource { /** Properties of the build resource */ @@ -2591,30 +2186,6 @@ export interface ApiPortalCustomDomainResource extends ProxyResource { properties?: ApiPortalCustomDomainProperties; } -/** Application accelerator resource */ -export interface ApplicationAcceleratorResource extends ProxyResource { - /** Application accelerator properties payload */ - properties?: ApplicationAcceleratorProperties; - /** Sku of the application accelerator resource */ - sku?: Sku; -} - -/** Customized accelerator resource */ -export interface CustomizedAcceleratorResource extends ProxyResource { - /** Customized accelerator properties payload */ - properties?: CustomizedAcceleratorProperties; - /** Sku of the customized accelerator resource */ - sku?: Sku; -} - -/** Predefined accelerator resource */ -export interface PredefinedAcceleratorResource extends ProxyResource { - /** Predefined accelerator properties payload */ - properties?: PredefinedAcceleratorProperties; - /** Sku of the predefined accelerator resource */ - sku?: Sku; -} - /** Uploaded Jar binary for a deployment */ export interface JarUploadedUserSourceInfo extends UploadedUserSourceInfo { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2877,8 +2448,8 @@ export enum KnownServiceRegistryProvisioningState { */ export type ServiceRegistryProvisioningState = string; -/** Known values of {@link ApplicationLiveViewProvisioningState} that the service accepts. */ -export enum KnownApplicationLiveViewProvisioningState { +/** Known values of {@link BuildServiceProvisioningState} that the service accepts. */ +export enum KnownBuildServiceProvisioningState { /** Creating */ Creating = "Creating", /** Updating */ @@ -2888,27 +2459,24 @@ export enum KnownApplicationLiveViewProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting", - /** Canceled */ - Canceled = "Canceled" + Deleting = "Deleting" } /** - * Defines values for ApplicationLiveViewProvisioningState. \ - * {@link KnownApplicationLiveViewProvisioningState} can be used interchangeably with ApplicationLiveViewProvisioningState, + * Defines values for BuildServiceProvisioningState. \ + * {@link KnownBuildServiceProvisioningState} can be used interchangeably with BuildServiceProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Creating** \ * **Updating** \ * **Succeeded** \ * **Failed** \ - * **Deleting** \ - * **Canceled** + * **Deleting** */ -export type ApplicationLiveViewProvisioningState = string; +export type BuildServiceProvisioningState = string; -/** Known values of {@link DevToolPortalProvisioningState} that the service accepts. */ -export enum KnownDevToolPortalProvisioningState { +/** Known values of {@link BuildProvisioningState} that the service accepts. */ +export enum KnownBuildProvisioningState { /** Creating */ Creating = "Creating", /** Updating */ @@ -2918,96 +2486,21 @@ export enum KnownDevToolPortalProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting", - /** Canceled */ - Canceled = "Canceled" + Deleting = "Deleting" } /** - * Defines values for DevToolPortalProvisioningState. \ - * {@link KnownDevToolPortalProvisioningState} can be used interchangeably with DevToolPortalProvisioningState, + * Defines values for BuildProvisioningState. \ + * {@link KnownBuildProvisioningState} can be used interchangeably with BuildProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Creating** \ * **Updating** \ * **Succeeded** \ * **Failed** \ - * **Deleting** \ - * **Canceled** - */ -export type DevToolPortalProvisioningState = string; - -/** Known values of {@link DevToolPortalFeatureState} that the service accepts. */ -export enum KnownDevToolPortalFeatureState { - /** Enable the plugin in Dev Tool Portal. */ - Enabled = "Enabled", - /** Disable the plugin in Dev Tool Portal. */ - Disabled = "Disabled" -} - -/** - * Defines values for DevToolPortalFeatureState. \ - * {@link KnownDevToolPortalFeatureState} can be used interchangeably with DevToolPortalFeatureState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled**: Enable the plugin in Dev Tool Portal. \ - * **Disabled**: Disable the plugin in Dev Tool Portal. + * **Deleting** */ -export type DevToolPortalFeatureState = string; - -/** Known values of {@link BuildServiceProvisioningState} that the service accepts. */ -export enum KnownBuildServiceProvisioningState { - /** Creating */ - Creating = "Creating", - /** Updating */ - Updating = "Updating", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Deleting */ - Deleting = "Deleting" -} - -/** - * Defines values for BuildServiceProvisioningState. \ - * {@link KnownBuildServiceProvisioningState} can be used interchangeably with BuildServiceProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** \ - * **Deleting** - */ -export type BuildServiceProvisioningState = string; - -/** Known values of {@link BuildProvisioningState} that the service accepts. */ -export enum KnownBuildProvisioningState { - /** Creating */ - Creating = "Creating", - /** Updating */ - Updating = "Updating", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Deleting */ - Deleting = "Deleting" -} - -/** - * Defines values for BuildProvisioningState. \ - * {@link KnownBuildProvisioningState} can be used interchangeably with BuildProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** \ - * **Deleting** - */ -export type BuildProvisioningState = string; +export type BuildProvisioningState = string; /** Known values of {@link BindingType} that the service accepts. */ export enum KnownBindingType { @@ -3022,9 +2515,7 @@ export enum KnownBindingType { /** NewRelic */ NewRelic = "NewRelic", /** ElasticAPM */ - ElasticAPM = "ElasticAPM", - /** CACertificates */ - CACertificates = "CACertificates" + ElasticAPM = "ElasticAPM" } /** @@ -3037,8 +2528,7 @@ export enum KnownBindingType { * **AppDynamics** \ * **Dynatrace** \ * **NewRelic** \ - * **ElasticAPM** \ - * **CACertificates** + * **ElasticAPM** */ export type BindingType = string; @@ -3546,33 +3036,6 @@ export enum KnownGatewayProvisioningState { */ export type GatewayProvisioningState = string; -/** Known values of {@link ApmType} that the service accepts. */ -export enum KnownApmType { - /** ApplicationInsights */ - ApplicationInsights = "ApplicationInsights", - /** AppDynamics */ - AppDynamics = "AppDynamics", - /** Dynatrace */ - Dynatrace = "Dynatrace", - /** NewRelic */ - NewRelic = "NewRelic", - /** ElasticAPM */ - ElasticAPM = "ElasticAPM" -} - -/** - * Defines values for ApmType. \ - * {@link KnownApmType} can be used interchangeably with ApmType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ApplicationInsights** \ - * **AppDynamics** \ - * **Dynatrace** \ - * **NewRelic** \ - * **ElasticAPM** - */ -export type ApmType = string; - /** Known values of {@link GatewayRouteConfigProtocol} that the service accepts. */ export enum KnownGatewayRouteConfigProtocol { /** Http */ @@ -3618,120 +3081,6 @@ export enum KnownApiPortalProvisioningState { */ export type ApiPortalProvisioningState = string; -/** Known values of {@link ApplicationAcceleratorProvisioningState} that the service accepts. */ -export enum KnownApplicationAcceleratorProvisioningState { - /** Creating */ - Creating = "Creating", - /** Updating */ - Updating = "Updating", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Deleting */ - Deleting = "Deleting" -} - -/** - * Defines values for ApplicationAcceleratorProvisioningState. \ - * {@link KnownApplicationAcceleratorProvisioningState} can be used interchangeably with ApplicationAcceleratorProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** \ - * **Deleting** - */ -export type ApplicationAcceleratorProvisioningState = string; - -/** Known values of {@link CustomizedAcceleratorProvisioningState} that the service accepts. */ -export enum KnownCustomizedAcceleratorProvisioningState { - /** Creating */ - Creating = "Creating", - /** Updating */ - Updating = "Updating", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Deleting */ - Deleting = "Deleting" -} - -/** - * Defines values for CustomizedAcceleratorProvisioningState. \ - * {@link KnownCustomizedAcceleratorProvisioningState} can be used interchangeably with CustomizedAcceleratorProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** \ - * **Deleting** - */ -export type CustomizedAcceleratorProvisioningState = string; - -/** Known values of {@link CustomizedAcceleratorValidateResultState} that the service accepts. */ -export enum KnownCustomizedAcceleratorValidateResultState { - /** Customized accelerator properties are valid. */ - Valid = "Valid", - /** Customized accelerator properties are invalid. */ - Invalid = "Invalid" -} - -/** - * Defines values for CustomizedAcceleratorValidateResultState. \ - * {@link KnownCustomizedAcceleratorValidateResultState} can be used interchangeably with CustomizedAcceleratorValidateResultState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Valid**: Customized accelerator properties are valid. \ - * **Invalid**: Customized accelerator properties are invalid. - */ -export type CustomizedAcceleratorValidateResultState = string; - -/** Known values of {@link PredefinedAcceleratorProvisioningState} that the service accepts. */ -export enum KnownPredefinedAcceleratorProvisioningState { - /** Creating */ - Creating = "Creating", - /** Updating */ - Updating = "Updating", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed" -} - -/** - * Defines values for PredefinedAcceleratorProvisioningState. \ - * {@link KnownPredefinedAcceleratorProvisioningState} can be used interchangeably with PredefinedAcceleratorProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** - */ -export type PredefinedAcceleratorProvisioningState = string; - -/** Known values of {@link PredefinedAcceleratorState} that the service accepts. */ -export enum KnownPredefinedAcceleratorState { - /** Enable the predefined accelerator. */ - Enabled = "Enabled", - /** Disable the predefined accelerator. */ - Disabled = "Disabled" -} - -/** - * Defines values for PredefinedAcceleratorState. \ - * {@link KnownPredefinedAcceleratorState} can be used interchangeably with PredefinedAcceleratorState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled**: Enable the predefined accelerator. \ - * **Disabled**: Disable the predefined accelerator. - */ -export type PredefinedAcceleratorState = string; - /** Known values of {@link HttpSchemeType} that the service accepts. */ export enum KnownHttpSchemeType { /** Http */ @@ -4007,90 +3356,6 @@ export interface ServiceRegistriesListNextOptionalParams /** Contains response data for the listNext operation. */ export type ServiceRegistriesListNextResponse = ServiceRegistryResourceCollection; -/** Optional parameters. */ -export interface ApplicationLiveViewsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ApplicationLiveViewsListResponse = ApplicationLiveViewResourceCollection; - -/** Optional parameters. */ -export interface ApplicationLiveViewsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApplicationLiveViewsGetResponse = ApplicationLiveViewResource; - -/** Optional parameters. */ -export interface ApplicationLiveViewsCreateOrUpdateOptionalParams - 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 createOrUpdate operation. */ -export type ApplicationLiveViewsCreateOrUpdateResponse = ApplicationLiveViewResource; - -/** Optional parameters. */ -export interface ApplicationLiveViewsDeleteOptionalParams - 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 ApplicationLiveViewsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ApplicationLiveViewsListNextResponse = ApplicationLiveViewResourceCollection; - -/** Optional parameters. */ -export interface DevToolPortalsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type DevToolPortalsListResponse = DevToolPortalResourceCollection; - -/** Optional parameters. */ -export interface DevToolPortalsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DevToolPortalsGetResponse = DevToolPortalResource; - -/** Optional parameters. */ -export interface DevToolPortalsCreateOrUpdateOptionalParams - 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 createOrUpdate operation. */ -export type DevToolPortalsCreateOrUpdateResponse = DevToolPortalResource; - -/** Optional parameters. */ -export interface DevToolPortalsDeleteOptionalParams - 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 DevToolPortalsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type DevToolPortalsListNextResponse = DevToolPortalResourceCollection; - /** Optional parameters. */ export interface BuildServiceListBuildServicesOptionalParams extends coreClient.OperationOptions {} @@ -4859,13 +4124,6 @@ export interface GatewaysDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface GatewaysListEnvSecretsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listEnvSecrets operation. */ -export type GatewaysListEnvSecretsResponse = { [propertyName: string]: string }; - /** Optional parameters. */ export interface GatewaysListOptionalParams extends coreClient.OperationOptions {} @@ -5062,136 +4320,6 @@ export interface ApiPortalCustomDomainsListNextOptionalParams /** Contains response data for the listNext operation. */ export type ApiPortalCustomDomainsListNextResponse = ApiPortalCustomDomainResourceCollection; -/** Optional parameters. */ -export interface ApplicationAcceleratorsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ApplicationAcceleratorsListResponse = ApplicationAcceleratorResourceCollection; - -/** Optional parameters. */ -export interface ApplicationAcceleratorsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApplicationAcceleratorsGetResponse = ApplicationAcceleratorResource; - -/** Optional parameters. */ -export interface ApplicationAcceleratorsCreateOrUpdateOptionalParams - 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 createOrUpdate operation. */ -export type ApplicationAcceleratorsCreateOrUpdateResponse = ApplicationAcceleratorResource; - -/** Optional parameters. */ -export interface ApplicationAcceleratorsDeleteOptionalParams - 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 ApplicationAcceleratorsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ApplicationAcceleratorsListNextResponse = ApplicationAcceleratorResourceCollection; - -/** Optional parameters. */ -export interface CustomizedAcceleratorsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type CustomizedAcceleratorsListResponse = CustomizedAcceleratorResourceCollection; - -/** Optional parameters. */ -export interface CustomizedAcceleratorsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type CustomizedAcceleratorsGetResponse = CustomizedAcceleratorResource; - -/** Optional parameters. */ -export interface CustomizedAcceleratorsCreateOrUpdateOptionalParams - 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 createOrUpdate operation. */ -export type CustomizedAcceleratorsCreateOrUpdateResponse = CustomizedAcceleratorResource; - -/** Optional parameters. */ -export interface CustomizedAcceleratorsDeleteOptionalParams - 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 CustomizedAcceleratorsValidateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the validate operation. */ -export type CustomizedAcceleratorsValidateResponse = CustomizedAcceleratorValidateResult; - -/** Optional parameters. */ -export interface CustomizedAcceleratorsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type CustomizedAcceleratorsListNextResponse = CustomizedAcceleratorResourceCollection; - -/** Optional parameters. */ -export interface PredefinedAcceleratorsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type PredefinedAcceleratorsListResponse = PredefinedAcceleratorResourceCollection; - -/** Optional parameters. */ -export interface PredefinedAcceleratorsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type PredefinedAcceleratorsGetResponse = PredefinedAcceleratorResource; - -/** Optional parameters. */ -export interface PredefinedAcceleratorsDisableOptionalParams - 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 PredefinedAcceleratorsEnableOptionalParams - 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 PredefinedAcceleratorsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type PredefinedAcceleratorsListNextResponse = PredefinedAcceleratorResourceCollection; - /** Optional parameters. */ export interface AppPlatformManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/appplatform/arm-appplatform/src/models/mappers.ts b/sdk/appplatform/arm-appplatform/src/models/mappers.ts index 848e27cff3a1..f5666e919318 100644 --- a/sdk/appplatform/arm-appplatform/src/models/mappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/mappers.ts @@ -68,13 +68,6 @@ export const ClusterResourceProperties: coreClient.CompositeMapper = { type: { name: "String" } - }, - marketplaceResource: { - serializedName: "marketplaceResource", - type: { - name: "Composite", - className: "MarketplaceResource" - } } } } @@ -258,33 +251,6 @@ export const ServiceVNetAddons: coreClient.CompositeMapper = { } }; -export const MarketplaceResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MarketplaceResource", - modelProperties: { - plan: { - serializedName: "plan", - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - product: { - serializedName: "product", - type: { - name: "String" - } - } - } - } -}; - export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1234,10 +1200,10 @@ export const ServiceRegistryResourceCollection: coreClient.CompositeMapper = { } }; -export const ApplicationLiveViewResourceCollection: coreClient.CompositeMapper = { +export const BuildServiceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationLiveViewResourceCollection", + className: "BuildServiceCollection", modelProperties: { value: { serializedName: "value", @@ -1246,7 +1212,7 @@ export const ApplicationLiveViewResourceCollection: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "ApplicationLiveViewResource" + className: "BuildService" } } } @@ -1261,75 +1227,39 @@ export const ApplicationLiveViewResourceCollection: coreClient.CompositeMapper = } }; -export const ApplicationLiveViewProperties: coreClient.CompositeMapper = { +export const BuildServiceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationLiveViewProperties", + className: "BuildServiceProperties", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + kPackVersion: { + serializedName: "kPackVersion", type: { name: "String" } }, - components: { - serializedName: "components", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationLiveViewComponent" - } - } - } - } - } - } -}; - -export const ApplicationLiveViewComponent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationLiveViewComponent", - modelProperties: { - name: { - serializedName: "name", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { - name: "any" + name: "String" } }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "ApplicationLiveViewResourceRequests" - } - }, - instances: { - serializedName: "instances", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationLiveViewInstance" - } - } + className: "BuildServicePropertiesResourceRequests" } } } } }; -export const ApplicationLiveViewResourceRequests: coreClient.CompositeMapper = { +export const BuildServicePropertiesResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationLiveViewResourceRequests", + className: "BuildServicePropertiesResourceRequests", modelProperties: { cpu: { serializedName: "cpu", @@ -1344,45 +1274,15 @@ export const ApplicationLiveViewResourceRequests: coreClient.CompositeMapper = { type: { name: "String" } - }, - instanceCount: { - serializedName: "instanceCount", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const ApplicationLiveViewInstance: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationLiveViewInstance", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } } } } }; -export const DevToolPortalResourceCollection: coreClient.CompositeMapper = { +export const BuildCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DevToolPortalResourceCollection", + className: "BuildCollection", modelProperties: { value: { serializedName: "value", @@ -1391,7 +1291,7 @@ export const DevToolPortalResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DevToolPortalResource" + className: "Build" } } } @@ -1406,115 +1306,91 @@ export const DevToolPortalResourceCollection: coreClient.CompositeMapper = { } }; -export const DevToolPortalProperties: coreClient.CompositeMapper = { +export const BuildProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DevToolPortalProperties", + className: "BuildProperties", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + relativePath: { + serializedName: "relativePath", type: { name: "String" } }, - resourceRequests: { - serializedName: "resourceRequests", + builder: { + serializedName: "builder", type: { - name: "Composite", - className: "DevToolPortalResourceRequests" + name: "String" } }, - instances: { - serializedName: "instances", - readOnly: true, + agentPool: { + serializedName: "agentPool", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DevToolPortalInstance" - } - } + name: "String" } }, - public: { - defaultValue: false, - serializedName: "public", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - url: { - serializedName: "url", - readOnly: true, + env: { + serializedName: "env", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - ssoProperties: { - serializedName: "ssoProperties", + triggeredBuildResult: { + serializedName: "triggeredBuildResult", type: { name: "Composite", - className: "DevToolPortalSsoProperties" + className: "TriggeredBuildResult" } }, - features: { - serializedName: "features", + resourceRequests: { + serializedName: "resourceRequests", type: { name: "Composite", - className: "DevToolPortalFeatureSettings" + className: "BuildResourceRequests" } } } } }; -export const DevToolPortalResourceRequests: coreClient.CompositeMapper = { +export const TriggeredBuildResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DevToolPortalResourceRequests", + className: "TriggeredBuildResult", modelProperties: { - cpu: { - serializedName: "cpu", - readOnly: true, - type: { - name: "String" - } - }, - memory: { - serializedName: "memory", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } - }, - instanceCount: { - serializedName: "instanceCount", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const DevToolPortalInstance: coreClient.CompositeMapper = { +export const BuildResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DevToolPortalInstance", + className: "BuildResourceRequests", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + cpu: { + defaultValue: "1", + serializedName: "cpu", type: { name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + memory: { + defaultValue: "2Gi", + serializedName: "memory", type: { name: "String" } @@ -1523,82 +1399,77 @@ export const DevToolPortalInstance: coreClient.CompositeMapper = { } }; -export const DevToolPortalSsoProperties: coreClient.CompositeMapper = { +export const BuildpackBindingProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DevToolPortalSsoProperties", + className: "BuildpackBindingProperties", modelProperties: { - scopes: { - serializedName: "scopes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clientId: { - serializedName: "clientId", + bindingType: { + serializedName: "bindingType", type: { name: "String" } }, - clientSecret: { - serializedName: "clientSecret", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - metadataUrl: { - serializedName: "metadataUrl", + launchProperties: { + serializedName: "launchProperties", type: { - name: "String" + name: "Composite", + className: "BuildpackBindingLaunchProperties" } } } } }; -export const DevToolPortalFeatureSettings: coreClient.CompositeMapper = { +export const BuildpackBindingLaunchProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DevToolPortalFeatureSettings", + className: "BuildpackBindingLaunchProperties", modelProperties: { - applicationAccelerator: { - serializedName: "applicationAccelerator", + properties: { + serializedName: "properties", type: { - name: "Composite", - className: "DevToolPortalFeatureDetail" + name: "Dictionary", + value: { type: { name: "String" } } } }, - applicationLiveView: { - serializedName: "applicationLiveView", + secrets: { + serializedName: "secrets", type: { - name: "Composite", - className: "DevToolPortalFeatureDetail" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const DevToolPortalFeatureDetail: coreClient.CompositeMapper = { +export const BuildpackBindingResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DevToolPortalFeatureDetail", + className: "BuildpackBindingResourceCollection", modelProperties: { - state: { - defaultValue: "Enabled", - serializedName: "state", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuildpackBindingResource" + } + } } }, - route: { - serializedName: "route", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1607,10 +1478,10 @@ export const DevToolPortalFeatureDetail: coreClient.CompositeMapper = { } }; -export const BuildServiceCollection: coreClient.CompositeMapper = { +export const BuildResultCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildServiceCollection", + className: "BuildResultCollection", modelProperties: { value: { serializedName: "value", @@ -1619,7 +1490,7 @@ export const BuildServiceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuildService" + className: "BuildResult" } } } @@ -1634,13 +1505,13 @@ export const BuildServiceCollection: coreClient.CompositeMapper = { } }; -export const BuildServiceProperties: coreClient.CompositeMapper = { +export const BuildResultProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildServiceProperties", + className: "BuildResultProperties", modelProperties: { - kPackVersion: { - serializedName: "kPackVersion", + name: { + serializedName: "name", type: { name: "String" } @@ -1652,31 +1523,43 @@ export const BuildServiceProperties: coreClient.CompositeMapper = { name: "String" } }, - resourceRequests: { - serializedName: "resourceRequests", + buildPodName: { + serializedName: "buildPodName", type: { - name: "Composite", - className: "BuildServicePropertiesResourceRequests" + name: "String" + } + }, + buildStages: { + serializedName: "buildStages", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuildStageProperties" + } + } } } } } }; -export const BuildServicePropertiesResourceRequests: coreClient.CompositeMapper = { +export const BuildStageProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildServicePropertiesResourceRequests", + className: "BuildStageProperties", modelProperties: { - cpu: { - serializedName: "cpu", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - memory: { - serializedName: "memory", + status: { + serializedName: "status", readOnly: true, type: { name: "String" @@ -1686,25 +1569,13 @@ export const BuildServicePropertiesResourceRequests: coreClient.CompositeMapper } }; -export const BuildCollection: coreClient.CompositeMapper = { +export const BuildResultLog: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildCollection", + className: "BuildResultLog", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Build" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + blobUrl: { + serializedName: "blobUrl", type: { name: "String" } @@ -1713,29 +1584,11 @@ export const BuildCollection: coreClient.CompositeMapper = { } }; -export const BuildProperties: coreClient.CompositeMapper = { +export const BuilderProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildProperties", + className: "BuilderProperties", modelProperties: { - relativePath: { - serializedName: "relativePath", - type: { - name: "String" - } - }, - builder: { - serializedName: "builder", - type: { - name: "String" - } - }, - agentPool: { - serializedName: "agentPool", - type: { - name: "String" - } - }, provisioningState: { serializedName: "provisioningState", readOnly: true, @@ -1743,125 +1596,144 @@ export const BuildProperties: coreClient.CompositeMapper = { name: "String" } }, - env: { - serializedName: "env", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - triggeredBuildResult: { - serializedName: "triggeredBuildResult", + stack: { + serializedName: "stack", type: { name: "Composite", - className: "TriggeredBuildResult" + className: "StackProperties" } }, - resourceRequests: { - serializedName: "resourceRequests", + buildpackGroups: { + serializedName: "buildpackGroups", type: { - name: "Composite", - className: "BuildResourceRequests" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuildpacksGroupProperties" + } + } } } } } }; -export const TriggeredBuildResult: coreClient.CompositeMapper = { +export const StackProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TriggeredBuildResult", + className: "StackProperties", modelProperties: { id: { serializedName: "id", type: { name: "String" } + }, + version: { + serializedName: "version", + type: { + name: "String" + } } } } }; -export const BuildResourceRequests: coreClient.CompositeMapper = { +export const BuildpacksGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildResourceRequests", + className: "BuildpacksGroupProperties", modelProperties: { - cpu: { - defaultValue: "1", - serializedName: "cpu", + name: { + serializedName: "name", type: { name: "String" } }, - memory: { - defaultValue: "2Gi", - serializedName: "memory", + buildpacks: { + serializedName: "buildpacks", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuildpackProperties" + } + } } } } } }; -export const BuildpackBindingProperties: coreClient.CompositeMapper = { +export const BuildpackProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildpackBindingProperties", + className: "BuildpackProperties", modelProperties: { - bindingType: { - serializedName: "bindingType", + id: { + serializedName: "id", type: { name: "String" } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + } + } + } +}; + +export const BuilderResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuilderResourceCollection", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuilderResource" + } + } } }, - launchProperties: { - serializedName: "launchProperties", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "BuildpackBindingLaunchProperties" + name: "String" } } } } }; -export const BuildpackBindingLaunchProperties: coreClient.CompositeMapper = { +export const ResourceUploadDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildpackBindingLaunchProperties", + className: "ResourceUploadDefinition", modelProperties: { - properties: { - serializedName: "properties", + relativePath: { + serializedName: "relativePath", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - secrets: { - serializedName: "secrets", + uploadUrl: { + serializedName: "uploadUrl", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const BuildpackBindingResourceCollection: coreClient.CompositeMapper = { +export const SupportedBuildpacksCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildpackBindingResourceCollection", + className: "SupportedBuildpacksCollection", modelProperties: { value: { serializedName: "value", @@ -1870,7 +1742,7 @@ export const BuildpackBindingResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuildpackBindingResource" + className: "SupportedBuildpackResource" } } } @@ -1885,10 +1757,25 @@ export const BuildpackBindingResourceCollection: coreClient.CompositeMapper = { } }; -export const BuildResultCollection: coreClient.CompositeMapper = { +export const SupportedBuildpackResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildResultCollection", + className: "SupportedBuildpackResourceProperties", + modelProperties: { + buildpackId: { + serializedName: "buildpackId", + type: { + name: "String" + } + } + } + } +}; + +export const SupportedStacksCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedStacksCollection", modelProperties: { value: { serializedName: "value", @@ -1897,7 +1784,7 @@ export const BuildResultCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuildResult" + className: "SupportedStackResource" } } } @@ -1912,83 +1799,46 @@ export const BuildResultCollection: coreClient.CompositeMapper = { } }; -export const BuildResultProperties: coreClient.CompositeMapper = { +export const SupportedStackResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildResultProperties", + className: "SupportedStackResourceProperties", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + stackId: { + serializedName: "stackId", type: { name: "String" } }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorModel" - } - }, - buildPodName: { - serializedName: "buildPodName", + version: { + serializedName: "version", type: { name: "String" } - }, - buildStages: { - serializedName: "buildStages", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuildStageProperties" - } - } - } } } } }; -export const BuildStageProperties: coreClient.CompositeMapper = { +export const BuildServiceAgentPoolResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildStageProperties", + className: "BuildServiceAgentPoolResourceCollection", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - }, - exitCode: { - serializedName: "exitCode", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuildServiceAgentPoolResource" + } + } } }, - reason: { - serializedName: "reason", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1997,111 +1847,118 @@ export const BuildStageProperties: coreClient.CompositeMapper = { } }; -export const BuildResultLog: coreClient.CompositeMapper = { +export const BuildServiceAgentPoolProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildResultLog", + className: "BuildServiceAgentPoolProperties", modelProperties: { - blobUrl: { - serializedName: "blobUrl", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } + }, + poolSize: { + serializedName: "poolSize", + type: { + name: "Composite", + className: "BuildServiceAgentPoolSizeProperties" + } } } } }; -export const BuilderProperties: coreClient.CompositeMapper = { +export const BuildServiceAgentPoolSizeProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuilderProperties", + className: "BuildServiceAgentPoolSizeProperties", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - stack: { - serializedName: "stack", + cpu: { + serializedName: "cpu", + readOnly: true, type: { - name: "Composite", - className: "StackProperties" + name: "String" } }, - buildpackGroups: { - serializedName: "buildpackGroups", + memory: { + serializedName: "memory", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuildpacksGroupProperties" - } - } + name: "String" } } } } }; -export const StackProperties: coreClient.CompositeMapper = { +export const MonitoringSettingProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StackProperties", + className: "MonitoringSettingProperties", modelProperties: { - id: { - serializedName: "id", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - version: { - serializedName: "version", + error: { + serializedName: "error", type: { - name: "String" + name: "Composite", + className: "ErrorModel" } - } - } - } -}; - -export const BuildpacksGroupProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BuildpacksGroupProperties", - modelProperties: { - name: { - serializedName: "name", + }, + traceEnabled: { + serializedName: "traceEnabled", + type: { + name: "Boolean" + } + }, + appInsightsInstrumentationKey: { + serializedName: "appInsightsInstrumentationKey", type: { name: "String" } }, - buildpacks: { - serializedName: "buildpacks", + appInsightsSamplingRate: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "appInsightsSamplingRate", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuildpackProperties" - } - } + name: "Number" + } + }, + appInsightsAgentVersions: { + serializedName: "appInsightsAgentVersions", + type: { + name: "Composite", + className: "ApplicationInsightsAgentVersions" } } } } }; -export const BuildpackProperties: coreClient.CompositeMapper = { +export const ApplicationInsightsAgentVersions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildpackProperties", + className: "ApplicationInsightsAgentVersions", modelProperties: { - id: { - serializedName: "id", + java: { + serializedName: "java", + readOnly: true, type: { name: "String" } @@ -2110,115 +1967,140 @@ export const BuildpackProperties: coreClient.CompositeMapper = { } }; -export const BuilderResourceCollection: coreClient.CompositeMapper = { +export const AppResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuilderResourceCollection", + className: "AppResourceProperties", modelProperties: { - value: { - serializedName: "value", + public: { + serializedName: "public", type: { - name: "Sequence", - element: { + name: "Boolean" + } + }, + url: { + serializedName: "url", + readOnly: true, + type: { + name: "String" + } + }, + addonConfigs: { + serializedName: "addonConfigs", + type: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "BuilderResource" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } }, - nextLink: { - serializedName: "nextLink", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ResourceUploadDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceUploadDefinition", - modelProperties: { - relativePath: { - serializedName: "relativePath", + }, + fqdn: { + serializedName: "fqdn", + readOnly: true, type: { name: "String" } }, - uploadUrl: { - serializedName: "uploadUrl", + httpsOnly: { + defaultValue: false, + serializedName: "httpsOnly", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const SupportedBuildpacksCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SupportedBuildpacksCollection", - modelProperties: { - value: { - serializedName: "value", + }, + temporaryDisk: { + serializedName: "temporaryDisk", + type: { + name: "Composite", + className: "TemporaryDisk" + } + }, + persistentDisk: { + serializedName: "persistentDisk", + type: { + name: "Composite", + className: "PersistentDisk" + } + }, + customPersistentDisks: { + serializedName: "customPersistentDisks", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SupportedBuildpackResource" + className: "CustomPersistentDiskResource" } } } }, - nextLink: { - serializedName: "nextLink", + enableEndToEndTLS: { + defaultValue: false, + serializedName: "enableEndToEndTLS", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const SupportedBuildpackResourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SupportedBuildpackResourceProperties", - modelProperties: { - buildpackId: { - serializedName: "buildpackId", + }, + loadedCertificates: { + serializedName: "loadedCertificates", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadedCertificate" + } + } + } + }, + vnetAddons: { + serializedName: "vnetAddons", + type: { + name: "Composite", + className: "AppVNetAddons" + } + }, + ingressSettings: { + serializedName: "ingressSettings", + type: { + name: "Composite", + className: "IngressSettings" } } } } }; -export const SupportedStacksCollection: coreClient.CompositeMapper = { +export const TemporaryDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedStacksCollection", + className: "TemporaryDisk", modelProperties: { - value: { - serializedName: "value", + sizeInGB: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 0 + }, + serializedName: "sizeInGB", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SupportedStackResource" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + mountPath: { + defaultValue: "/tmp", + serializedName: "mountPath", type: { name: "String" } @@ -2227,19 +2109,34 @@ export const SupportedStacksCollection: coreClient.CompositeMapper = { } }; -export const SupportedStackResourceProperties: coreClient.CompositeMapper = { +export const PersistentDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedStackResourceProperties", + className: "PersistentDisk", modelProperties: { - stackId: { - serializedName: "stackId", + sizeInGB: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: "sizeInGB", type: { - name: "String" + name: "Number" } }, - version: { - serializedName: "version", + usedInGB: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: "usedInGB", + readOnly: true, + type: { + name: "Number" + } + }, + mountPath: { + serializedName: "mountPath", type: { name: "String" } @@ -2248,25 +2145,21 @@ export const SupportedStackResourceProperties: coreClient.CompositeMapper = { } }; -export const BuildServiceAgentPoolResourceCollection: coreClient.CompositeMapper = { +export const CustomPersistentDiskResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildServiceAgentPoolResourceCollection", + className: "CustomPersistentDiskResource", modelProperties: { - value: { - serializedName: "value", + customPersistentDiskProperties: { + serializedName: "customPersistentDiskProperties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuildServiceAgentPoolResource" - } - } + name: "Composite", + className: "CustomPersistentDiskProperties" } }, - nextLink: { - serializedName: "nextLink", + storageId: { + serializedName: "storageId", + required: true, type: { name: "String" } @@ -2275,49 +2168,88 @@ export const BuildServiceAgentPoolResourceCollection: coreClient.CompositeMapper } }; -export const BuildServiceAgentPoolProperties: coreClient.CompositeMapper = { +export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildServiceAgentPoolProperties", + className: "CustomPersistentDiskProperties", + uberParent: "CustomPersistentDiskProperties", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - poolSize: { - serializedName: "poolSize", + mountPath: { + serializedName: "mountPath", + required: true, type: { - name: "Composite", - className: "BuildServiceAgentPoolSizeProperties" + name: "String" + } + }, + readOnly: { + serializedName: "readOnly", + type: { + name: "Boolean" + } + }, + mountOptions: { + serializedName: "mountOptions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const BuildServiceAgentPoolSizeProperties: coreClient.CompositeMapper = { +export const LoadedCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildServiceAgentPoolSizeProperties", + className: "LoadedCertificate", modelProperties: { - name: { - serializedName: "name", + resourceId: { + serializedName: "resourceId", + required: true, type: { name: "String" } }, - cpu: { - serializedName: "cpu", - readOnly: true, + loadTrustStore: { + defaultValue: false, + serializedName: "loadTrustStore", type: { - name: "String" + name: "Boolean" + } + } + } + } +}; + +export const AppVNetAddons: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AppVNetAddons", + modelProperties: { + publicEndpoint: { + defaultValue: false, + serializedName: "publicEndpoint", + type: { + name: "Boolean" } }, - memory: { - serializedName: "memory", + publicEndpointUrl: { + serializedName: "publicEndpointUrl", readOnly: true, type: { name: "String" @@ -2327,208 +2259,265 @@ export const BuildServiceAgentPoolSizeProperties: coreClient.CompositeMapper = { } }; -export const MonitoringSettingProperties: coreClient.CompositeMapper = { +export const IngressSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MonitoringSettingProperties", + className: "IngressSettings", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + readTimeoutInSeconds: { + serializedName: "readTimeoutInSeconds", type: { - name: "String" + name: "Number" } }, - error: { - serializedName: "error", + sendTimeoutInSeconds: { + serializedName: "sendTimeoutInSeconds", type: { - name: "Composite", - className: "ErrorModel" + name: "Number" } }, - traceEnabled: { - serializedName: "traceEnabled", + sessionAffinity: { + serializedName: "sessionAffinity", type: { - name: "Boolean" + name: "String" } }, - appInsightsInstrumentationKey: { - serializedName: "appInsightsInstrumentationKey", + sessionCookieMaxAge: { + serializedName: "sessionCookieMaxAge", type: { - name: "String" + name: "Number" } }, - appInsightsSamplingRate: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0 - }, - serializedName: "appInsightsSamplingRate", + backendProtocol: { + serializedName: "backendProtocol", type: { - name: "Number" + name: "String" } }, - appInsightsAgentVersions: { - serializedName: "appInsightsAgentVersions", + clientAuth: { + serializedName: "clientAuth", type: { name: "Composite", - className: "ApplicationInsightsAgentVersions" + className: "IngressSettingsClientAuth" } } } } }; -export const ApplicationInsightsAgentVersions: coreClient.CompositeMapper = { +export const IngressSettingsClientAuth: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsAgentVersions", + className: "IngressSettingsClientAuth", modelProperties: { - java: { - serializedName: "java", - readOnly: true, + certificates: { + serializedName: "certificates", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const AppResourceProperties: coreClient.CompositeMapper = { +export const ManagedIdentityProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AppResourceProperties", + className: "ManagedIdentityProperties", modelProperties: { - public: { - serializedName: "public", + type: { + serializedName: "type", type: { - name: "Boolean" + name: "String" } }, - url: { - serializedName: "url", - readOnly: true, + principalId: { + serializedName: "principalId", type: { name: "String" } }, - addonConfigs: { - serializedName: "addonConfigs", + tenantId: { + serializedName: "tenantId", type: { - name: "Dictionary", + name: "String" + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", value: { type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Composite", + className: "UserAssignedManagedIdentity" } } } - }, - provisioningState: { - serializedName: "provisioningState", + } + } + } +}; + +export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAssignedManagedIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", readOnly: true, type: { name: "String" } }, - fqdn: { - serializedName: "fqdn", + clientId: { + serializedName: "clientId", readOnly: true, type: { name: "String" } - }, - httpsOnly: { - defaultValue: false, - serializedName: "httpsOnly", - type: { - name: "Boolean" - } - }, - temporaryDisk: { - serializedName: "temporaryDisk", + } + } + } +}; + +export const AppResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AppResourceCollection", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Composite", - className: "TemporaryDisk" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AppResource" + } + } } }, - persistentDisk: { - serializedName: "persistentDisk", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "PersistentDisk" + name: "String" } - }, - customPersistentDisks: { - serializedName: "customPersistentDisks", + } + } + } +}; + +export const ActiveDeploymentCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActiveDeploymentCollection", + modelProperties: { + activeDeploymentNames: { + serializedName: "activeDeploymentNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CustomPersistentDiskResource" + name: "String" } } } + } + } + } +}; + +export const BindingResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BindingResourceProperties", + modelProperties: { + resourceName: { + serializedName: "resourceName", + readOnly: true, + type: { + name: "String" + } }, - enableEndToEndTLS: { - defaultValue: false, - serializedName: "enableEndToEndTLS", + resourceType: { + serializedName: "resourceType", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - loadedCertificates: { - serializedName: "loadedCertificates", + resourceId: { + serializedName: "resourceId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LoadedCertificate" - } + name: "String" + } + }, + key: { + serializedName: "key", + type: { + name: "String" + } + }, + bindingParameters: { + serializedName: "bindingParameters", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } } } }, - vnetAddons: { - serializedName: "vnetAddons", + generatedProperties: { + serializedName: "generatedProperties", + readOnly: true, type: { - name: "Composite", - className: "AppVNetAddons" + name: "String" } }, - ingressSettings: { - serializedName: "ingressSettings", + createdAt: { + serializedName: "createdAt", + readOnly: true, type: { - name: "Composite", - className: "IngressSettings" + name: "String" + } + }, + updatedAt: { + serializedName: "updatedAt", + readOnly: true, + type: { + name: "String" } } } } }; -export const TemporaryDisk: coreClient.CompositeMapper = { +export const BindingResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TemporaryDisk", + className: "BindingResourceCollection", modelProperties: { - sizeInGB: { - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 0 - }, - serializedName: "sizeInGB", + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BindingResource" + } + } } }, - mountPath: { - defaultValue: "/tmp", - serializedName: "mountPath", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -2537,34 +2526,19 @@ export const TemporaryDisk: coreClient.CompositeMapper = { } }; -export const PersistentDisk: coreClient.CompositeMapper = { +export const StorageProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PersistentDisk", + className: "StorageProperties", + uberParent: "StorageProperties", + polymorphicDiscriminator: { + serializedName: "storageType", + clientName: "storageType" + }, modelProperties: { - sizeInGB: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: "sizeInGB", - type: { - name: "Number" - } - }, - usedInGB: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: "usedInGB", - readOnly: true, - type: { - name: "Number" - } - }, - mountPath: { - serializedName: "mountPath", + storageType: { + serializedName: "storageType", + required: true, type: { name: "String" } @@ -2573,21 +2547,25 @@ export const PersistentDisk: coreClient.CompositeMapper = { } }; -export const CustomPersistentDiskResource: coreClient.CompositeMapper = { +export const StorageResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomPersistentDiskResource", + className: "StorageResourceCollection", modelProperties: { - customPersistentDiskProperties: { - serializedName: "customPersistentDiskProperties", + value: { + serializedName: "value", type: { - name: "Composite", - className: "CustomPersistentDiskProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageResource" + } + } } }, - storageId: { - serializedName: "storageId", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -2596,11 +2574,11 @@ export const CustomPersistentDiskResource: coreClient.CompositeMapper = { } }; -export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { +export const CertificateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomPersistentDiskProperties", - uberParent: "CustomPersistentDiskProperties", + className: "CertificateProperties", + uberParent: "CertificateProperties", polymorphicDiscriminator: { serializedName: "type", clientName: "type" @@ -2613,133 +2591,51 @@ export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { name: "String" } }, - mountPath: { - serializedName: "mountPath", - required: true, + thumbprint: { + serializedName: "thumbprint", + readOnly: true, type: { name: "String" } }, - readOnly: { - serializedName: "readOnly", - type: { - name: "Boolean" - } - }, - mountOptions: { - serializedName: "mountOptions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const LoadedCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LoadedCertificate", - modelProperties: { - resourceId: { - serializedName: "resourceId", - required: true, + issuer: { + serializedName: "issuer", + readOnly: true, type: { name: "String" } }, - loadTrustStore: { - defaultValue: false, - serializedName: "loadTrustStore", - type: { - name: "Boolean" - } - } - } - } -}; - -export const AppVNetAddons: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AppVNetAddons", - modelProperties: { - publicEndpoint: { - defaultValue: false, - serializedName: "publicEndpoint", - type: { - name: "Boolean" - } - }, - publicEndpointUrl: { - serializedName: "publicEndpointUrl", + issuedDate: { + serializedName: "issuedDate", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const IngressSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IngressSettings", - modelProperties: { - readTimeoutInSeconds: { - serializedName: "readTimeoutInSeconds", - type: { - name: "Number" - } }, - sendTimeoutInSeconds: { - serializedName: "sendTimeoutInSeconds", - type: { - name: "Number" - } - }, - sessionAffinity: { - serializedName: "sessionAffinity", + expirationDate: { + serializedName: "expirationDate", + readOnly: true, type: { name: "String" } }, - sessionCookieMaxAge: { - serializedName: "sessionCookieMaxAge", + activateDate: { + serializedName: "activateDate", + readOnly: true, type: { - name: "Number" + name: "String" } }, - backendProtocol: { - serializedName: "backendProtocol", + subjectName: { + serializedName: "subjectName", + readOnly: true, type: { name: "String" } }, - clientAuth: { - serializedName: "clientAuth", - type: { - name: "Composite", - className: "IngressSettingsClientAuth" - } - } - } - } -}; - -export const IngressSettingsClientAuth: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IngressSettingsClientAuth", - modelProperties: { - certificates: { - serializedName: "certificates", + dnsNames: { + serializedName: "dnsNames", + readOnly: true, type: { name: "Sequence", element: { @@ -2748,64 +2644,9 @@ export const IngressSettingsClientAuth: coreClient.CompositeMapper = { } } } - } - } - } -}; - -export const ManagedIdentityProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedIdentityProperties", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - principalId: { - serializedName: "principalId", - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - type: { - name: "String" - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "UserAssignedManagedIdentity" - } - } - } - } - } - } -}; - -export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserAssignedManagedIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } }, - clientId: { - serializedName: "clientId", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" @@ -2815,10 +2656,10 @@ export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { } }; -export const AppResourceCollection: coreClient.CompositeMapper = { +export const CertificateResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AppResourceCollection", + className: "CertificateResourceCollection", modelProperties: { value: { serializedName: "value", @@ -2827,682 +2668,13 @@ export const AppResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AppResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ActiveDeploymentCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActiveDeploymentCollection", - modelProperties: { - activeDeploymentNames: { - serializedName: "activeDeploymentNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" + className: "CertificateResource" } } } - } - } - } -}; - -export const BindingResourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BindingResourceProperties", - modelProperties: { - resourceName: { - serializedName: "resourceName", - readOnly: true, - type: { - name: "String" - } - }, - resourceType: { - serializedName: "resourceType", - readOnly: true, - type: { - name: "String" - } - }, - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - key: { - serializedName: "key", - type: { - name: "String" - } - }, - bindingParameters: { - serializedName: "bindingParameters", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } }, - generatedProperties: { - serializedName: "generatedProperties", - readOnly: true, - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - readOnly: true, - type: { - name: "String" - } - }, - updatedAt: { - serializedName: "updatedAt", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const BindingResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BindingResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BindingResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const StorageProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageProperties", - uberParent: "StorageProperties", - polymorphicDiscriminator: { - serializedName: "storageType", - clientName: "storageType" - }, - modelProperties: { - storageType: { - serializedName: "storageType", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const StorageResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StorageResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const CertificateProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CertificateProperties", - uberParent: "CertificateProperties", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - modelProperties: { - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - }, - thumbprint: { - serializedName: "thumbprint", - readOnly: true, - type: { - name: "String" - } - }, - issuer: { - serializedName: "issuer", - readOnly: true, - type: { - name: "String" - } - }, - issuedDate: { - serializedName: "issuedDate", - readOnly: true, - type: { - name: "String" - } - }, - expirationDate: { - serializedName: "expirationDate", - readOnly: true, - type: { - name: "String" - } - }, - activateDate: { - serializedName: "activateDate", - readOnly: true, - type: { - name: "String" - } - }, - subjectName: { - serializedName: "subjectName", - readOnly: true, - type: { - name: "String" - } - }, - dnsNames: { - serializedName: "dnsNames", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const CertificateResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CertificateResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const NameAvailabilityParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NameAvailabilityParameters", - modelProperties: { - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const NameAvailability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NameAvailability", - modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", - type: { - name: "Boolean" - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const CustomDomainProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomDomainProperties", - modelProperties: { - thumbprint: { - serializedName: "thumbprint", - type: { - name: "String" - } - }, - appName: { - serializedName: "appName", - readOnly: true, - type: { - name: "String" - } - }, - certName: { - serializedName: "certName", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const CustomDomainResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomDomainResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomDomainResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const CustomDomainValidatePayload: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomDomainValidatePayload", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const CustomDomainValidateResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomDomainValidateResult", - modelProperties: { - isValid: { - serializedName: "isValid", - type: { - name: "Boolean" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const DeploymentResourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentResourceProperties", - modelProperties: { - source: { - serializedName: "source", - type: { - name: "Composite", - className: "UserSourceInfo" - } - }, - deploymentSettings: { - serializedName: "deploymentSettings", - type: { - name: "Composite", - className: "DeploymentSettings" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - }, - active: { - serializedName: "active", - type: { - name: "Boolean" - } - }, - instances: { - serializedName: "instances", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeploymentInstance" - } - } - } - } - } - } -}; - -export const UserSourceInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserSourceInfo", - uberParent: "UserSourceInfo", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - modelProperties: { - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - }, - version: { - serializedName: "version", - type: { - name: "String" - } - } - } - } -}; - -export const DeploymentSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentSettings", - modelProperties: { - resourceRequests: { - serializedName: "resourceRequests", - type: { - name: "Composite", - className: "ResourceRequests" - } - }, - environmentVariables: { - serializedName: "environmentVariables", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - addonConfigs: { - serializedName: "addonConfigs", - type: { - name: "Dictionary", - value: { - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - } - } - }, - livenessProbe: { - serializedName: "livenessProbe", - type: { - name: "Composite", - className: "Probe" - } - }, - readinessProbe: { - serializedName: "readinessProbe", - type: { - name: "Composite", - className: "Probe" - } - }, - startupProbe: { - serializedName: "startupProbe", - type: { - name: "Composite", - className: "Probe" - } - }, - terminationGracePeriodSeconds: { - defaultValue: 90, - serializedName: "terminationGracePeriodSeconds", - type: { - name: "Number" - } - }, - containerProbeSettings: { - serializedName: "containerProbeSettings", - type: { - name: "Composite", - className: "ContainerProbeSettings" - } - } - } - } -}; - -export const ResourceRequests: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceRequests", - modelProperties: { - cpu: { - serializedName: "cpu", - type: { - name: "String" - } - }, - memory: { - serializedName: "memory", - type: { - name: "String" - } - } - } - } -}; - -export const Probe: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Probe", - modelProperties: { - probeAction: { - serializedName: "probeAction", - type: { - name: "Composite", - className: "ProbeAction" - } - }, - disableProbe: { - defaultValue: false, - serializedName: "disableProbe", - required: true, - type: { - name: "Boolean" - } - }, - initialDelaySeconds: { - serializedName: "initialDelaySeconds", - type: { - name: "Number" - } - }, - periodSeconds: { - serializedName: "periodSeconds", - type: { - name: "Number" - } - }, - timeoutSeconds: { - serializedName: "timeoutSeconds", - type: { - name: "Number" - } - }, - failureThreshold: { - serializedName: "failureThreshold", - type: { - name: "Number" - } - }, - successThreshold: { - serializedName: "successThreshold", - type: { - name: "Number" - } - } - } - } -}; - -export const ProbeAction: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProbeAction", - uberParent: "ProbeAction", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - modelProperties: { - type: { - serializedName: "type", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3511,63 +2683,82 @@ export const ProbeAction: coreClient.CompositeMapper = { } }; -export const ContainerProbeSettings: coreClient.CompositeMapper = { +export const NameAvailabilityParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerProbeSettings", + className: "NameAvailabilityParameters", modelProperties: { - disableProbe: { - serializedName: "disableProbe", + type: { + serializedName: "type", + required: true, type: { - name: "Boolean" + name: "String" + } + }, + name: { + serializedName: "name", + required: true, + type: { + name: "String" } } } } }; -export const DeploymentInstance: coreClient.CompositeMapper = { +export const NameAvailability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentInstance", + className: "NameAvailability", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + nameAvailable: { + serializedName: "nameAvailable", type: { - name: "String" + name: "Boolean" } }, - status: { - serializedName: "status", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } }, - reason: { - serializedName: "reason", - readOnly: true, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const CustomDomainProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomDomainProperties", + modelProperties: { + thumbprint: { + serializedName: "thumbprint", type: { name: "String" } }, - discoveryStatus: { - serializedName: "discoveryStatus", + appName: { + serializedName: "appName", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "startTime", - readOnly: true, + certName: { + serializedName: "certName", type: { name: "String" } }, - zone: { - serializedName: "zone", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" @@ -3577,10 +2768,10 @@ export const DeploymentInstance: coreClient.CompositeMapper = { } }; -export const DeploymentResourceCollection: coreClient.CompositeMapper = { +export const CustomDomainResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentResourceCollection", + className: "CustomDomainResourceCollection", modelProperties: { value: { serializedName: "value", @@ -3589,7 +2780,7 @@ export const DeploymentResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeploymentResource" + className: "CustomDomainResource" } } } @@ -3604,151 +2795,118 @@ export const DeploymentResourceCollection: coreClient.CompositeMapper = { } }; -export const DeploymentList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentList", - modelProperties: { - deployments: { - serializedName: "deployments", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const RemoteDebuggingPayload: coreClient.CompositeMapper = { +export const CustomDomainValidatePayload: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RemoteDebuggingPayload", + className: "CustomDomainValidatePayload", modelProperties: { - port: { - serializedName: "port", + name: { + serializedName: "name", + required: true, type: { - name: "Number" + name: "String" } } } } }; -export const RemoteDebugging: coreClient.CompositeMapper = { +export const CustomDomainValidateResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RemoteDebugging", + className: "CustomDomainValidateResult", modelProperties: { - port: { - serializedName: "port", + isValid: { + serializedName: "isValid", type: { - name: "Number" + name: "Boolean" } }, - enabled: { - serializedName: "enabled", + message: { + serializedName: "message", type: { - name: "Boolean" + name: "String" } } } } }; -export const LogFileUrlResponse: coreClient.CompositeMapper = { +export const DeploymentResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogFileUrlResponse", + className: "DeploymentResourceProperties", modelProperties: { - url: { - serializedName: "url", - required: true, + source: { + serializedName: "source", type: { - name: "String" + name: "Composite", + className: "UserSourceInfo" } - } - } - } -}; - -export const DiagnosticParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiagnosticParameters", - modelProperties: { - appInstance: { - serializedName: "appInstance", + }, + deploymentSettings: { + serializedName: "deploymentSettings", type: { - name: "String" + name: "Composite", + className: "DeploymentSettings" } }, - filePath: { - serializedName: "filePath", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - duration: { - serializedName: "duration", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServiceResourceList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceResourceList", - modelProperties: { - value: { - serializedName: "value", + }, + active: { + serializedName: "active", + type: { + name: "Boolean" + } + }, + instances: { + serializedName: "instances", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServiceResource" + className: "DeploymentInstance" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const AvailableOperations: coreClient.CompositeMapper = { +export const UserSourceInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableOperations", + className: "UserSourceInfo", + uberParent: "UserSourceInfo", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationDetail" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + version: { + serializedName: "version", type: { name: "String" } @@ -3757,79 +2915,91 @@ export const AvailableOperations: coreClient.CompositeMapper = { } }; -export const OperationDetail: coreClient.CompositeMapper = { +export const DeploymentSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDetail", + className: "DeploymentSettings", modelProperties: { - name: { - serializedName: "name", + resourceRequests: { + serializedName: "resourceRequests", type: { - name: "String" + name: "Composite", + className: "ResourceRequests" } }, - isDataAction: { - serializedName: "isDataAction", + environmentVariables: { + serializedName: "environmentVariables", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + addonConfigs: { + serializedName: "addonConfigs", + type: { + name: "Dictionary", + value: { + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + } + } + }, + livenessProbe: { + serializedName: "livenessProbe", + type: { + name: "Composite", + className: "Probe" } }, - display: { - serializedName: "display", + readinessProbe: { + serializedName: "readinessProbe", type: { name: "Composite", - className: "OperationDisplay" + className: "Probe" } }, - actionType: { - serializedName: "actionType", - readOnly: true, + startupProbe: { + serializedName: "startupProbe", type: { - name: "String" + name: "Composite", + className: "Probe" } }, - origin: { - serializedName: "origin", + terminationGracePeriodSeconds: { + defaultValue: 90, + serializedName: "terminationGracePeriodSeconds", type: { - name: "String" + name: "Number" } }, - properties: { - serializedName: "properties", + containerProbeSettings: { + serializedName: "containerProbeSettings", type: { name: "Composite", - className: "OperationProperties" + className: "ContainerProbeSettings" } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const ResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "ResourceRequests", modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", + cpu: { + serializedName: "cpu", type: { name: "String" } }, - description: { - serializedName: "description", + memory: { + serializedName: "memory", type: { name: "String" } @@ -3838,192 +3008,222 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const OperationProperties: coreClient.CompositeMapper = { +export const Probe: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationProperties", + className: "Probe", modelProperties: { - serviceSpecification: { - serializedName: "serviceSpecification", + probeAction: { + serializedName: "probeAction", type: { name: "Composite", - className: "ServiceSpecification" + className: "ProbeAction" + } + }, + disableProbe: { + defaultValue: false, + serializedName: "disableProbe", + required: true, + type: { + name: "Boolean" + } + }, + initialDelaySeconds: { + serializedName: "initialDelaySeconds", + type: { + name: "Number" + } + }, + periodSeconds: { + serializedName: "periodSeconds", + type: { + name: "Number" + } + }, + timeoutSeconds: { + serializedName: "timeoutSeconds", + type: { + name: "Number" + } + }, + failureThreshold: { + serializedName: "failureThreshold", + type: { + name: "Number" + } + }, + successThreshold: { + serializedName: "successThreshold", + type: { + name: "Number" } } } } }; -export const ServiceSpecification: coreClient.CompositeMapper = { +export const ProbeAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceSpecification", + className: "ProbeAction", + uberParent: "ProbeAction", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - logSpecifications: { - serializedName: "logSpecifications", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LogSpecification" - } - } - } - }, - metricSpecifications: { - serializedName: "metricSpecifications", + type: { + serializedName: "type", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricSpecification" - } - } + name: "String" } } } } }; -export const LogSpecification: coreClient.CompositeMapper = { +export const ContainerProbeSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogSpecification", + className: "ContainerProbeSettings", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - blobDuration: { - serializedName: "blobDuration", + disableProbe: { + serializedName: "disableProbe", type: { - name: "String" + name: "Boolean" } } } } }; -export const MetricSpecification: coreClient.CompositeMapper = { +export const DeploymentInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricSpecification", + className: "DeploymentInstance", modelProperties: { name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } }, - displayDescription: { - serializedName: "displayDescription", + reason: { + serializedName: "reason", + readOnly: true, type: { name: "String" } }, - unit: { - serializedName: "unit", + discoveryStatus: { + serializedName: "discoveryStatus", + readOnly: true, type: { name: "String" } }, - category: { - serializedName: "category", + startTime: { + serializedName: "startTime", + readOnly: true, type: { name: "String" } }, - aggregationType: { - serializedName: "aggregationType", + zone: { + serializedName: "zone", + readOnly: true, type: { name: "String" } - }, - supportedAggregationTypes: { - serializedName: "supportedAggregationTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - supportedTimeGrainTypes: { - serializedName: "supportedTimeGrainTypes", + } + } + } +}; + +export const DeploymentResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentResourceCollection", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DeploymentResource" } } } }, - fillGapWithZero: { - serializedName: "fillGapWithZero", + nextLink: { + serializedName: "nextLink", type: { - name: "Boolean" + name: "String" } - }, - dimensions: { - serializedName: "dimensions", + } + } + } +}; + +export const DeploymentList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentList", + modelProperties: { + deployments: { + serializedName: "deployments", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MetricDimension" + name: "String" } } } - }, - sourceMdmNamespace: { - serializedName: "sourceMdmNamespace", + } + } + } +}; + +export const RemoteDebuggingPayload: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RemoteDebuggingPayload", + modelProperties: { + port: { + serializedName: "port", type: { - name: "String" + name: "Number" } } } } }; -export const MetricDimension: coreClient.CompositeMapper = { +export const RemoteDebugging: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDimension", + className: "RemoteDebugging", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", + port: { + serializedName: "port", type: { - name: "String" + name: "Number" } }, - toBeExportedForShoebox: { - serializedName: "toBeExportedForShoebox", + enabled: { + serializedName: "enabled", type: { name: "Boolean" } @@ -4032,47 +3232,41 @@ export const MetricDimension: coreClient.CompositeMapper = { } }; -export const AvailableRuntimeVersions: coreClient.CompositeMapper = { +export const LogFileUrlResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableRuntimeVersions", + className: "LogFileUrlResponse", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + url: { + serializedName: "url", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SupportedRuntimeVersion" - } - } + name: "String" } } } } }; -export const SupportedRuntimeVersion: coreClient.CompositeMapper = { +export const DiagnosticParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedRuntimeVersion", + className: "DiagnosticParameters", modelProperties: { - value: { - serializedName: "value", + appInstance: { + serializedName: "appInstance", type: { name: "String" } }, - platform: { - serializedName: "platform", + filePath: { + serializedName: "filePath", type: { name: "String" } }, - version: { - serializedName: "version", + duration: { + serializedName: "duration", type: { name: "String" } @@ -4081,10 +3275,10 @@ export const SupportedRuntimeVersion: coreClient.CompositeMapper = { } }; -export const ResourceSkuCollection: coreClient.CompositeMapper = { +export const ServiceResourceList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuCollection", + className: "ServiceResourceList", modelProperties: { value: { serializedName: "value", @@ -4093,7 +3287,7 @@ export const ResourceSkuCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSku" + className: "ServiceResource" } } } @@ -4108,192 +3302,106 @@ export const ResourceSkuCollection: coreClient.CompositeMapper = { } }; -export const ResourceSku: coreClient.CompositeMapper = { +export const AvailableOperations: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSku", + className: "AvailableOperations", modelProperties: { - resourceType: { - serializedName: "resourceType", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", - type: { - name: "String" - } - }, - capacity: { - serializedName: "capacity", - type: { - name: "Composite", - className: "SkuCapacity" - } - }, - locations: { - serializedName: "locations", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - locationInfo: { - serializedName: "locationInfo", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceSkuLocationInfo" + className: "OperationDetail" } } } }, - restrictions: { - serializedName: "restrictions", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuRestrictions" - } - } + name: "String" } } } } }; -export const SkuCapacity: coreClient.CompositeMapper = { +export const OperationDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuCapacity", + className: "OperationDetail", modelProperties: { - minimum: { - serializedName: "minimum", - required: true, + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - maximum: { - serializedName: "maximum", + isDataAction: { + serializedName: "isDataAction", type: { - name: "Number" + name: "Boolean" } }, - default: { - serializedName: "default", + display: { + serializedName: "display", type: { - name: "Number" + name: "Composite", + className: "OperationDisplay" } }, - scaleType: { - serializedName: "scaleType", - type: { - name: "String" - } - } - } - } -}; - -export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuLocationInfo", - modelProperties: { - location: { - serializedName: "location", + actionType: { + serializedName: "actionType", + readOnly: true, type: { name: "String" } }, - zones: { - serializedName: "zones", + origin: { + serializedName: "origin", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - zoneDetails: { - serializedName: "zoneDetails", + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuZoneDetails" - } - } + name: "Composite", + className: "OperationProperties" } } } } }; -export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuZoneDetails", + className: "OperationDisplay", modelProperties: { - name: { - serializedName: "name", + provider: { + serializedName: "provider", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - capabilities: { - serializedName: "capabilities", + resource: { + serializedName: "resource", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCapabilities" - } - } + name: "String" } - } - } - } -}; - -export const ResourceSkuCapabilities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuCapabilities", - modelProperties: { - name: { - serializedName: "name", + }, + operation: { + serializedName: "operation", type: { name: "String" } }, - value: { - serializedName: "value", + description: { + serializedName: "description", type: { name: "String" } @@ -4302,68 +3410,47 @@ export const ResourceSkuCapabilities: coreClient.CompositeMapper = { } }; -export const ResourceSkuRestrictions: coreClient.CompositeMapper = { +export const OperationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuRestrictions", + className: "OperationProperties", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - restrictionInfo: { - serializedName: "restrictionInfo", + serviceSpecification: { + serializedName: "serviceSpecification", type: { name: "Composite", - className: "ResourceSkuRestrictionInfo" - } - }, - reasonCode: { - serializedName: "reasonCode", - type: { - name: "String" + className: "ServiceSpecification" } } } } }; -export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { +export const ServiceSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuRestrictionInfo", + className: "ServiceSpecification", modelProperties: { - locations: { - serializedName: "locations", + logSpecifications: { + serializedName: "logSpecifications", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "LogSpecification" } } } }, - zones: { - serializedName: "zones", + metricSpecifications: { + serializedName: "metricSpecifications", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MetricSpecification" } } } @@ -4372,65 +3459,76 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { } }; -export const GatewayProperties: coreClient.CompositeMapper = { +export const LogSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayProperties", + className: "LogSpecification", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - public: { - defaultValue: false, - serializedName: "public", + displayName: { + serializedName: "displayName", type: { - name: "Boolean" + name: "String" } }, - url: { - serializedName: "url", - readOnly: true, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const MetricSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - httpsOnly: { - defaultValue: false, - serializedName: "httpsOnly", + displayName: { + serializedName: "displayName", type: { - name: "Boolean" + name: "String" } }, - ssoProperties: { - serializedName: "ssoProperties", + displayDescription: { + serializedName: "displayDescription", type: { - name: "Composite", - className: "SsoProperties" + name: "String" } }, - apiMetadataProperties: { - serializedName: "apiMetadataProperties", + unit: { + serializedName: "unit", type: { - name: "Composite", - className: "GatewayApiMetadataProperties" + name: "String" } }, - corsProperties: { - serializedName: "corsProperties", + category: { + serializedName: "category", type: { - name: "Composite", - className: "GatewayCorsProperties" + name: "String" } }, - apmTypes: { - constraints: { - UniqueItems: true - }, - serializedName: "apmTypes", + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", type: { name: "Sequence", element: { @@ -4440,101 +3538,107 @@ export const GatewayProperties: coreClient.CompositeMapper = { } } }, - environmentVariables: { - serializedName: "environmentVariables", + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", type: { - name: "Composite", - className: "GatewayPropertiesEnvironmentVariables" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - resourceRequests: { - serializedName: "resourceRequests", + fillGapWithZero: { + serializedName: "fillGapWithZero", type: { - name: "Composite", - className: "GatewayResourceRequests" + name: "Boolean" } }, - instances: { - serializedName: "instances", - readOnly: true, + dimensions: { + serializedName: "dimensions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "GatewayInstance" + className: "MetricDimension" } } } }, - operatorProperties: { - serializedName: "operatorProperties", + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", type: { - name: "Composite", - className: "GatewayOperatorProperties" + name: "String" } } } } }; -export const SsoProperties: coreClient.CompositeMapper = { +export const MetricDimension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SsoProperties", + className: "MetricDimension", modelProperties: { - scope: { - serializedName: "scope", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clientId: { - serializedName: "clientId", + name: { + serializedName: "name", type: { name: "String" } }, - clientSecret: { - serializedName: "clientSecret", + displayName: { + serializedName: "displayName", type: { name: "String" } }, - issuerUri: { - serializedName: "issuerUri", + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", type: { - name: "String" + name: "Boolean" } } } } }; -export const GatewayApiMetadataProperties: coreClient.CompositeMapper = { +export const AvailableRuntimeVersions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayApiMetadataProperties", + className: "AvailableRuntimeVersions", modelProperties: { - title: { - serializedName: "title", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SupportedRuntimeVersion" + } + } } - }, - description: { - serializedName: "description", + } + } + } +}; + +export const SupportedRuntimeVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedRuntimeVersion", + modelProperties: { + value: { + serializedName: "value", type: { name: "String" } }, - documentation: { - serializedName: "documentation", + platform: { + serializedName: "platform", type: { name: "String" } @@ -4544,9 +3648,30 @@ export const GatewayApiMetadataProperties: coreClient.CompositeMapper = { type: { name: "String" } + } + } + } +}; + +export const ResourceSkuCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSku" + } + } + } }, - serverUrl: { - serializedName: "serverUrl", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -4555,13 +3680,38 @@ export const GatewayApiMetadataProperties: coreClient.CompositeMapper = { } }; -export const GatewayCorsProperties: coreClient.CompositeMapper = { +export const ResourceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayCorsProperties", + className: "ResourceSku", modelProperties: { - allowedOrigins: { - serializedName: "allowedOrigins", + resourceType: { + serializedName: "resourceType", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Composite", + className: "SkuCapacity" + } + }, + locations: { + serializedName: "locations", type: { name: "Sequence", element: { @@ -4571,116 +3721,151 @@ export const GatewayCorsProperties: coreClient.CompositeMapper = { } } }, - allowedMethods: { - serializedName: "allowedMethods", + locationInfo: { + serializedName: "locationInfo", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ResourceSkuLocationInfo" } } } }, - allowedHeaders: { - serializedName: "allowedHeaders", + restrictions: { + serializedName: "restrictions", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ResourceSkuRestrictions" } } } + } + } + } +}; + +export const SkuCapacity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuCapacity", + modelProperties: { + minimum: { + serializedName: "minimum", + required: true, + type: { + name: "Number" + } }, - maxAge: { - serializedName: "maxAge", + maximum: { + serializedName: "maximum", type: { name: "Number" } }, - allowCredentials: { - serializedName: "allowCredentials", + default: { + serializedName: "default", type: { - name: "Boolean" + name: "Number" } }, - exposedHeaders: { - serializedName: "exposedHeaders", + scaleType: { + serializedName: "scaleType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const GatewayPropertiesEnvironmentVariables: coreClient.CompositeMapper = { +export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayPropertiesEnvironmentVariables", + className: "ResourceSkuLocationInfo", modelProperties: { - properties: { - serializedName: "properties", + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - secrets: { - serializedName: "secrets", + zones: { + serializedName: "zones", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zoneDetails: { + serializedName: "zoneDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails" + } + } } } } } }; -export const GatewayResourceRequests: coreClient.CompositeMapper = { +export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayResourceRequests", + className: "ResourceSkuZoneDetails", modelProperties: { - cpu: { - defaultValue: "1", - serializedName: "cpu", + name: { + serializedName: "name", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - memory: { - defaultValue: "2Gi", - serializedName: "memory", + capabilities: { + serializedName: "capabilities", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuCapabilities" + } + } } } } } }; -export const GatewayInstance: coreClient.CompositeMapper = { +export const ResourceSkuCapabilities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayInstance", + className: "ResourceSkuCapabilities", modelProperties: { name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + value: { + serializedName: "value", type: { name: "String" } @@ -4689,96 +3874,80 @@ export const GatewayInstance: coreClient.CompositeMapper = { } }; -export const GatewayOperatorProperties: coreClient.CompositeMapper = { +export const ResourceSkuRestrictions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayOperatorProperties", + className: "ResourceSkuRestrictions", modelProperties: { - resourceRequests: { - serializedName: "resourceRequests", + type: { + serializedName: "type", type: { - name: "Composite", - className: "GatewayOperatorResourceRequests" + name: "String" } }, - instances: { - serializedName: "instances", - readOnly: true, + values: { + serializedName: "values", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "GatewayInstance" + name: "String" } } } - } - } - } -}; - -export const GatewayOperatorResourceRequests: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayOperatorResourceRequests", - modelProperties: { - cpu: { - serializedName: "cpu", - readOnly: true, - type: { - name: "String" - } }, - memory: { - serializedName: "memory", - readOnly: true, + restrictionInfo: { + serializedName: "restrictionInfo", type: { - name: "String" + name: "Composite", + className: "ResourceSkuRestrictionInfo" } }, - instanceCount: { - serializedName: "instanceCount", - readOnly: true, + reasonCode: { + serializedName: "reasonCode", type: { - name: "Number" + name: "String" } } } } }; -export const GatewayResourceCollection: coreClient.CompositeMapper = { +export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayResourceCollection", + className: "ResourceSkuRestrictionInfo", modelProperties: { - value: { - serializedName: "value", + locations: { + serializedName: "locations", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "GatewayResource" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + zones: { + serializedName: "zones", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { +export const GatewayProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayRouteConfigProperties", + className: "GatewayProperties", modelProperties: { provisioningState: { serializedName: "provisioningState", @@ -4787,77 +3956,109 @@ export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { name: "String" } }, - appResourceId: { - serializedName: "appResourceId", + public: { + defaultValue: false, + serializedName: "public", + type: { + name: "Boolean" + } + }, + url: { + serializedName: "url", + readOnly: true, type: { name: "String" } }, - openApi: { - serializedName: "openApi", + httpsOnly: { + defaultValue: false, + serializedName: "httpsOnly", + type: { + name: "Boolean" + } + }, + ssoProperties: { + serializedName: "ssoProperties", type: { name: "Composite", - className: "GatewayRouteConfigOpenApiProperties" + className: "SsoProperties" } }, - protocol: { - defaultValue: "HTTP", - serializedName: "protocol", + apiMetadataProperties: { + serializedName: "apiMetadataProperties", type: { - name: "String" + name: "Composite", + className: "GatewayApiMetadataProperties" } }, - routes: { - serializedName: "routes", + corsProperties: { + serializedName: "corsProperties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayApiRoute" - } - } + name: "Composite", + className: "GatewayCorsProperties" } }, - ssoEnabled: { - serializedName: "ssoEnabled", + resourceRequests: { + serializedName: "resourceRequests", type: { - name: "Boolean" + name: "Composite", + className: "GatewayResourceRequests" } }, - predicates: { - serializedName: "predicates", + instances: { + serializedName: "instances", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "GatewayInstance" } } } }, - filters: { - serializedName: "filters", + operatorProperties: { + serializedName: "operatorProperties", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "GatewayOperatorProperties" } } } } }; -export const GatewayRouteConfigOpenApiProperties: coreClient.CompositeMapper = { +export const SsoProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayRouteConfigOpenApiProperties", + className: "SsoProperties", modelProperties: { - uri: { - serializedName: "uri", + scope: { + serializedName: "scope", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "clientSecret", + type: { + name: "String" + } + }, + issuerUri: { + serializedName: "issuerUri", type: { name: "String" } @@ -4866,10 +4067,10 @@ export const GatewayRouteConfigOpenApiProperties: coreClient.CompositeMapper = { } }; -export const GatewayApiRoute: coreClient.CompositeMapper = { +export const GatewayApiMetadataProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayApiRoute", + className: "GatewayApiMetadataProperties", modelProperties: { title: { serializedName: "title", @@ -4883,26 +4084,46 @@ export const GatewayApiRoute: coreClient.CompositeMapper = { name: "String" } }, - uri: { - serializedName: "uri", + documentation: { + serializedName: "documentation", type: { name: "String" } }, - ssoEnabled: { - serializedName: "ssoEnabled", + version: { + serializedName: "version", type: { - name: "Boolean" + name: "String" } }, - tokenRelay: { - serializedName: "tokenRelay", + serverUrl: { + serializedName: "serverUrl", type: { - name: "Boolean" + name: "String" + } + } + } + } +}; + +export const GatewayCorsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayCorsProperties", + modelProperties: { + allowedOrigins: { + serializedName: "allowedOrigins", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - predicates: { - serializedName: "predicates", + allowedMethods: { + serializedName: "allowedMethods", type: { name: "Sequence", element: { @@ -4912,8 +4133,8 @@ export const GatewayApiRoute: coreClient.CompositeMapper = { } } }, - filters: { - serializedName: "filters", + allowedHeaders: { + serializedName: "allowedHeaders", type: { name: "Sequence", element: { @@ -4923,14 +4144,20 @@ export const GatewayApiRoute: coreClient.CompositeMapper = { } } }, - order: { - serializedName: "order", + maxAge: { + serializedName: "maxAge", type: { name: "Number" } }, - tags: { - serializedName: "tags", + allowCredentials: { + serializedName: "allowCredentials", + type: { + name: "Boolean" + } + }, + exposedHeaders: { + serializedName: "exposedHeaders", type: { name: "Sequence", element: { @@ -4944,25 +4171,21 @@ export const GatewayApiRoute: coreClient.CompositeMapper = { } }; -export const GatewayRouteConfigResourceCollection: coreClient.CompositeMapper = { +export const GatewayResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayRouteConfigResourceCollection", + className: "GatewayResourceRequests", modelProperties: { - value: { - serializedName: "value", + cpu: { + defaultValue: "1", + serializedName: "cpu", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayRouteConfigResource" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + memory: { + defaultValue: "2Gi", + serializedName: "memory", type: { name: "String" } @@ -4971,40 +4194,21 @@ export const GatewayRouteConfigResourceCollection: coreClient.CompositeMapper = } }; -export const GatewayCustomDomainProperties: coreClient.CompositeMapper = { +export const GatewayInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayCustomDomainProperties", + className: "GatewayInstance", modelProperties: { - thumbprint: { - serializedName: "thumbprint", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const GatewayCustomDomainResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayCustomDomainResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayCustomDomainResource" - } - } - } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } @@ -5013,73 +4217,16 @@ export const GatewayCustomDomainResourceCollection: coreClient.CompositeMapper = } }; -export const ApiPortalProperties: coreClient.CompositeMapper = { +export const GatewayOperatorProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiPortalProperties", + className: "GatewayOperatorProperties", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - public: { - defaultValue: false, - serializedName: "public", - type: { - name: "Boolean" - } - }, - url: { - serializedName: "url", - readOnly: true, - type: { - name: "String" - } - }, - httpsOnly: { - defaultValue: false, - serializedName: "httpsOnly", - type: { - name: "Boolean" - } - }, - gatewayIds: { - serializedName: "gatewayIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - sourceUrls: { - serializedName: "sourceUrls", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - ssoProperties: { - serializedName: "ssoProperties", - type: { - name: "Composite", - className: "SsoProperties" - } - }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "ApiPortalResourceRequests" + className: "GatewayOperatorResourceRequests" } }, instances: { @@ -5090,65 +4237,49 @@ export const ApiPortalProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiPortalInstance" - } - } - } - } - } - } -}; - -export const ApiPortalResourceRequests: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApiPortalResourceRequests", - modelProperties: { - cpu: { - serializedName: "cpu", - readOnly: true, - type: { - name: "String" - } - }, - memory: { - serializedName: "memory", - readOnly: true, - type: { - name: "String" + className: "GatewayInstance" + } + } } } } } }; -export const ApiPortalInstance: coreClient.CompositeMapper = { +export const GatewayOperatorResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiPortalInstance", + className: "GatewayOperatorResourceRequests", modelProperties: { - name: { - serializedName: "name", + cpu: { + serializedName: "cpu", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + memory: { + serializedName: "memory", readOnly: true, type: { name: "String" } + }, + instanceCount: { + serializedName: "instanceCount", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const ApiPortalResourceCollection: coreClient.CompositeMapper = { +export const GatewayResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiPortalResourceCollection", + className: "GatewayResourceCollection", modelProperties: { value: { serializedName: "value", @@ -5157,7 +4288,7 @@ export const ApiPortalResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiPortalResource" + className: "GatewayResource" } } } @@ -5172,67 +4303,61 @@ export const ApiPortalResourceCollection: coreClient.CompositeMapper = { } }; -export const ApiPortalCustomDomainProperties: coreClient.CompositeMapper = { +export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiPortalCustomDomainProperties", + className: "GatewayRouteConfigProperties", modelProperties: { - thumbprint: { - serializedName: "thumbprint", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ApiPortalCustomDomainResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApiPortalCustomDomainResourceCollection", - modelProperties: { - value: { - serializedName: "value", + }, + appResourceId: { + serializedName: "appResourceId", + type: { + name: "String" + } + }, + openApi: { + serializedName: "openApi", + type: { + name: "Composite", + className: "GatewayRouteConfigOpenApiProperties" + } + }, + protocol: { + defaultValue: "HTTP", + serializedName: "protocol", + type: { + name: "String" + } + }, + routes: { + serializedName: "routes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiPortalCustomDomainResource" + className: "GatewayApiRoute" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const ApplicationAcceleratorResourceCollection: coreClient.CompositeMapper = { +export const GatewayRouteConfigOpenApiProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationAcceleratorResourceCollection", + className: "GatewayRouteConfigOpenApiProperties", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationAcceleratorResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + uri: { + serializedName: "uri", type: { name: "String" } @@ -5241,63 +4366,76 @@ export const ApplicationAcceleratorResourceCollection: coreClient.CompositeMappe } }; -export const ApplicationAcceleratorProperties: coreClient.CompositeMapper = { +export const GatewayApiRoute: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationAcceleratorProperties", + className: "GatewayApiRoute", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + title: { + serializedName: "title", type: { name: "String" } }, - components: { - serializedName: "components", - readOnly: true, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + uri: { + serializedName: "uri", + type: { + name: "String" + } + }, + ssoEnabled: { + serializedName: "ssoEnabled", + type: { + name: "Boolean" + } + }, + tokenRelay: { + serializedName: "tokenRelay", + type: { + name: "Boolean" + } + }, + predicates: { + serializedName: "predicates", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ApplicationAcceleratorComponent" + name: "String" } } } - } - } - } -}; - -export const ApplicationAcceleratorComponent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationAcceleratorComponent", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + }, + filters: { + serializedName: "filters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - resourceRequests: { - serializedName: "resourceRequests", + order: { + serializedName: "order", type: { - name: "Composite", - className: "ApplicationAcceleratorResourceRequests" + name: "Number" } }, - instances: { - serializedName: "instances", - readOnly: true, + tags: { + serializedName: "tags", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ApplicationAcceleratorInstance" + name: "String" } } } @@ -5306,51 +4444,40 @@ export const ApplicationAcceleratorComponent: coreClient.CompositeMapper = { } }; -export const ApplicationAcceleratorResourceRequests: coreClient.CompositeMapper = { +export const GatewayRouteConfigResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationAcceleratorResourceRequests", + className: "GatewayRouteConfigResourceCollection", modelProperties: { - cpu: { - serializedName: "cpu", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayRouteConfigResource" + } + } } }, - memory: { - serializedName: "memory", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - instanceCount: { - serializedName: "instanceCount", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const ApplicationAcceleratorInstance: coreClient.CompositeMapper = { +export const GatewayCustomDomainProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationAcceleratorInstance", + className: "GatewayCustomDomainProperties", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "status", - readOnly: true, + thumbprint: { + serializedName: "thumbprint", type: { name: "String" } @@ -5359,10 +4486,10 @@ export const ApplicationAcceleratorInstance: coreClient.CompositeMapper = { } }; -export const CustomizedAcceleratorResourceCollection: coreClient.CompositeMapper = { +export const GatewayCustomDomainResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomizedAcceleratorResourceCollection", + className: "GatewayCustomDomainResourceCollection", modelProperties: { value: { serializedName: "value", @@ -5371,7 +4498,7 @@ export const CustomizedAcceleratorResourceCollection: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "CustomizedAcceleratorResource" + className: "GatewayCustomDomainResource" } } } @@ -5386,10 +4513,10 @@ export const CustomizedAcceleratorResourceCollection: coreClient.CompositeMapper } }; -export const CustomizedAcceleratorProperties: coreClient.CompositeMapper = { +export const ApiPortalProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomizedAcceleratorProperties", + className: "ApiPortalProperties", modelProperties: { provisioningState: { serializedName: "provisioningState", @@ -5398,106 +4525,95 @@ export const CustomizedAcceleratorProperties: coreClient.CompositeMapper = { name: "String" } }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - description: { - serializedName: "description", + public: { + defaultValue: false, + serializedName: "public", type: { - name: "String" + name: "Boolean" } }, - iconUrl: { - serializedName: "iconUrl", + url: { + serializedName: "url", + readOnly: true, type: { name: "String" } }, - acceleratorTags: { - serializedName: "acceleratorTags", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - gitRepository: { - serializedName: "gitRepository", - type: { - name: "Composite", - className: "AcceleratorGitRepository" - } - } - } - } -}; - -export const AcceleratorGitRepository: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AcceleratorGitRepository", - modelProperties: { - url: { - serializedName: "url", - required: true, + httpsOnly: { + defaultValue: false, + serializedName: "httpsOnly", type: { - name: "String" + name: "Boolean" } }, - intervalInSeconds: { - serializedName: "intervalInSeconds", + gatewayIds: { + serializedName: "gatewayIds", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - branch: { - serializedName: "branch", + sourceUrls: { + serializedName: "sourceUrls", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - commit: { - serializedName: "commit", + ssoProperties: { + serializedName: "ssoProperties", type: { - name: "String" + name: "Composite", + className: "SsoProperties" } }, - gitTag: { - serializedName: "gitTag", + resourceRequests: { + serializedName: "resourceRequests", type: { - name: "String" + name: "Composite", + className: "ApiPortalResourceRequests" } }, - authSetting: { - serializedName: "authSetting", + instances: { + serializedName: "instances", + readOnly: true, type: { - name: "Composite", - className: "AcceleratorAuthSetting" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiPortalInstance" + } + } } } } } }; -export const AcceleratorAuthSetting: coreClient.CompositeMapper = { +export const ApiPortalResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AcceleratorAuthSetting", - uberParent: "AcceleratorAuthSetting", - polymorphicDiscriminator: { - serializedName: "authType", - clientName: "authType" - }, + className: "ApiPortalResourceRequests", modelProperties: { - authType: { - serializedName: "authType", - required: true, + cpu: { + serializedName: "cpu", + readOnly: true, + type: { + name: "String" + } + }, + memory: { + serializedName: "memory", + readOnly: true, type: { name: "String" } @@ -5506,20 +4622,21 @@ export const AcceleratorAuthSetting: coreClient.CompositeMapper = { } }; -export const CustomizedAcceleratorValidateResult: coreClient.CompositeMapper = { +export const ApiPortalInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomizedAcceleratorValidateResult", + className: "ApiPortalInstance", modelProperties: { - state: { - defaultValue: "Valid", - serializedName: "state", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "errorMessage", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } @@ -5528,10 +4645,10 @@ export const CustomizedAcceleratorValidateResult: coreClient.CompositeMapper = { } }; -export const PredefinedAcceleratorResourceCollection: coreClient.CompositeMapper = { +export const ApiPortalResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PredefinedAcceleratorResourceCollection", + className: "ApiPortalResourceCollection", modelProperties: { value: { serializedName: "value", @@ -5540,7 +4657,7 @@ export const PredefinedAcceleratorResourceCollection: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "PredefinedAcceleratorResource" + className: "ApiPortalResource" } } } @@ -5555,54 +4672,40 @@ export const PredefinedAcceleratorResourceCollection: coreClient.CompositeMapper } }; -export const PredefinedAcceleratorProperties: coreClient.CompositeMapper = { +export const ApiPortalCustomDomainProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PredefinedAcceleratorProperties", + className: "ApiPortalCustomDomainProperties", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - readOnly: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String" - } - }, - iconUrl: { - serializedName: "iconUrl", - readOnly: true, + thumbprint: { + serializedName: "thumbprint", type: { name: "String" } - }, - acceleratorTags: { - serializedName: "acceleratorTags", - readOnly: true, + } + } + } +}; + +export const ApiPortalCustomDomainResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiPortalCustomDomainResourceCollection", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ApiPortalCustomDomainResource" } } } }, - state: { - defaultValue: "Enabled", - serializedName: "state", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -5953,79 +5056,6 @@ export const TCPSocketAction: coreClient.CompositeMapper = { } }; -export const AcceleratorPublicSetting: coreClient.CompositeMapper = { - serializedName: "Public", - type: { - name: "Composite", - className: "AcceleratorPublicSetting", - uberParent: "AcceleratorAuthSetting", - polymorphicDiscriminator: - AcceleratorAuthSetting.type.polymorphicDiscriminator, - modelProperties: { - ...AcceleratorAuthSetting.type.modelProperties - } - } -}; - -export const AcceleratorBasicAuthSetting: coreClient.CompositeMapper = { - serializedName: "BasicAuth", - type: { - name: "Composite", - className: "AcceleratorBasicAuthSetting", - uberParent: "AcceleratorAuthSetting", - polymorphicDiscriminator: - AcceleratorAuthSetting.type.polymorphicDiscriminator, - modelProperties: { - ...AcceleratorAuthSetting.type.modelProperties, - username: { - serializedName: "username", - required: true, - type: { - name: "String" - } - }, - password: { - serializedName: "password", - type: { - name: "String" - } - } - } - } -}; - -export const AcceleratorSshSetting: coreClient.CompositeMapper = { - serializedName: "SSH", - type: { - name: "Composite", - className: "AcceleratorSshSetting", - uberParent: "AcceleratorAuthSetting", - polymorphicDiscriminator: - AcceleratorAuthSetting.type.polymorphicDiscriminator, - modelProperties: { - ...AcceleratorAuthSetting.type.modelProperties, - hostKey: { - serializedName: "hostKey", - type: { - name: "String" - } - }, - hostKeyAlgorithm: { - serializedName: "hostKeyAlgorithm", - type: { - name: "String" - } - }, - privateKey: { - serializedName: "privateKey", - type: { - name: "String" - } - } - } - } -}; - export const ServiceResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6101,40 +5131,6 @@ export const ServiceRegistryResource: coreClient.CompositeMapper = { } }; -export const ApplicationLiveViewResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationLiveViewResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ApplicationLiveViewProperties" - } - } - } - } -}; - -export const DevToolPortalResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DevToolPortalResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DevToolPortalProperties" - } - } - } - } -}; - export const BuildService: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6509,78 +5505,6 @@ export const ApiPortalCustomDomainResource: coreClient.CompositeMapper = { } }; -export const ApplicationAcceleratorResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationAcceleratorResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ApplicationAcceleratorProperties" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - } - } - } -}; - -export const CustomizedAcceleratorResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomizedAcceleratorResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "CustomizedAcceleratorProperties" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - } - } - } -}; - -export const PredefinedAcceleratorResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PredefinedAcceleratorResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "PredefinedAcceleratorProperties" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - } - } - } -}; - export const JarUploadedUserSourceInfo: coreClient.CompositeMapper = { serializedName: "Jar", type: { @@ -6665,7 +5589,6 @@ export let discriminators = { CertificateProperties: CertificateProperties, UserSourceInfo: UserSourceInfo, ProbeAction: ProbeAction, - AcceleratorAuthSetting: AcceleratorAuthSetting, "CustomPersistentDiskProperties.AzureFileVolume": AzureFileVolume, "StorageProperties.StorageAccount": StorageAccount, "CertificateProperties.KeyVaultCertificate": KeyVaultCertificateProperties, @@ -6676,9 +5599,6 @@ export let discriminators = { "ProbeAction.HTTPGetAction": HttpGetAction, "ProbeAction.ExecAction": ExecAction, "ProbeAction.TCPSocketAction": TCPSocketAction, - "AcceleratorAuthSetting.Public": AcceleratorPublicSetting, - "AcceleratorAuthSetting.BasicAuth": AcceleratorBasicAuthSetting, - "AcceleratorAuthSetting.SSH": AcceleratorSshSetting, "UploadedUserSourceInfo.Jar": JarUploadedUserSourceInfo, "UploadedUserSourceInfo.Source": SourceUploadedUserSourceInfo, "UploadedUserSourceInfo.NetCoreZip": NetCoreZipUploadedUserSourceInfo diff --git a/sdk/appplatform/arm-appplatform/src/models/parameters.ts b/sdk/appplatform/arm-appplatform/src/models/parameters.ts index c87db12761d4..0f7d4ee7bd85 100644 --- a/sdk/appplatform/arm-appplatform/src/models/parameters.ts +++ b/sdk/appplatform/arm-appplatform/src/models/parameters.ts @@ -19,8 +19,6 @@ import { ConfigServerSettings as ConfigServerSettingsMapper, ConfigurationServiceResource as ConfigurationServiceResourceMapper, ConfigurationServiceSettings as ConfigurationServiceSettingsMapper, - ApplicationLiveViewResource as ApplicationLiveViewResourceMapper, - DevToolPortalResource as DevToolPortalResourceMapper, Build as BuildMapper, BuildpackBindingResource as BuildpackBindingResourceMapper, BuilderResource as BuilderResourceMapper, @@ -40,10 +38,7 @@ import { GatewayRouteConfigResource as GatewayRouteConfigResourceMapper, GatewayCustomDomainResource as GatewayCustomDomainResourceMapper, ApiPortalResource as ApiPortalResourceMapper, - ApiPortalCustomDomainResource as ApiPortalCustomDomainResourceMapper, - ApplicationAcceleratorResource as ApplicationAcceleratorResourceMapper, - CustomizedAcceleratorResource as CustomizedAcceleratorResourceMapper, - CustomizedAcceleratorProperties as CustomizedAcceleratorPropertiesMapper + ApiPortalCustomDomainResource as ApiPortalCustomDomainResourceMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -73,7 +68,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-11-01-preview", + defaultValue: "2022-12-01", isConstant: true, serializedName: "api-version", type: { @@ -207,38 +202,6 @@ export const serviceRegistryName: OperationURLParameter = { } }; -export const applicationLiveViewName: OperationURLParameter = { - parameterPath: "applicationLiveViewName", - mapper: { - serializedName: "applicationLiveViewName", - required: true, - type: { - name: "String" - } - } -}; - -export const applicationLiveViewResource: OperationParameter = { - parameterPath: "applicationLiveViewResource", - mapper: ApplicationLiveViewResourceMapper -}; - -export const devToolPortalName: OperationURLParameter = { - parameterPath: "devToolPortalName", - mapper: { - serializedName: "devToolPortalName", - required: true, - type: { - name: "String" - } - } -}; - -export const devToolPortalResource: OperationParameter = { - parameterPath: "devToolPortalResource", - mapper: DevToolPortalResourceMapper -}; - export const buildServiceName: OperationURLParameter = { parameterPath: "buildServiceName", mapper: { @@ -551,51 +514,3 @@ export const apiPortalCustomDomainResource: OperationParameter = { parameterPath: "apiPortalCustomDomainResource", mapper: ApiPortalCustomDomainResourceMapper }; - -export const applicationAcceleratorName: OperationURLParameter = { - parameterPath: "applicationAcceleratorName", - mapper: { - serializedName: "applicationAcceleratorName", - required: true, - type: { - name: "String" - } - } -}; - -export const applicationAcceleratorResource: OperationParameter = { - parameterPath: "applicationAcceleratorResource", - mapper: ApplicationAcceleratorResourceMapper -}; - -export const customizedAcceleratorName: OperationURLParameter = { - parameterPath: "customizedAcceleratorName", - mapper: { - serializedName: "customizedAcceleratorName", - required: true, - type: { - name: "String" - } - } -}; - -export const customizedAcceleratorResource: OperationParameter = { - parameterPath: "customizedAcceleratorResource", - mapper: CustomizedAcceleratorResourceMapper -}; - -export const properties: OperationParameter = { - parameterPath: "properties", - mapper: CustomizedAcceleratorPropertiesMapper -}; - -export const predefinedAcceleratorName: OperationURLParameter = { - parameterPath: "predefinedAcceleratorName", - mapper: { - serializedName: "predefinedAcceleratorName", - required: true, - type: { - name: "String" - } - } -}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts deleted file mode 100644 index 2190b9ec764f..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts +++ /dev/null @@ -1,499 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ApplicationAccelerators } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AppPlatformManagementClient } from "../appPlatformManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - ApplicationAcceleratorResource, - ApplicationAcceleratorsListNextOptionalParams, - ApplicationAcceleratorsListOptionalParams, - ApplicationAcceleratorsListResponse, - ApplicationAcceleratorsGetOptionalParams, - ApplicationAcceleratorsGetResponse, - ApplicationAcceleratorsCreateOrUpdateOptionalParams, - ApplicationAcceleratorsCreateOrUpdateResponse, - ApplicationAcceleratorsDeleteOptionalParams, - ApplicationAcceleratorsListNextResponse -} from "../models"; - -/// -/** Class containing ApplicationAccelerators operations. */ -export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { - private readonly client: AppPlatformManagementClient; - - /** - * Initialize a new instance of the class ApplicationAccelerators class. - * @param client Reference to the service client - */ - constructor(client: AppPlatformManagementClient) { - this.client = client; - } - - /** - * Handle requests to list all application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - serviceName: string, - options?: ApplicationAcceleratorsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, serviceName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage( - resourceGroupName, - serviceName, - options, - settings - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - serviceName: string, - options?: ApplicationAcceleratorsListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: ApplicationAcceleratorsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceGroupName, serviceName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - serviceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - serviceName: string, - options?: ApplicationAcceleratorsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - serviceName, - options - )) { - yield* page; - } - } - - /** - * Handle requests to list all application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - serviceName: string, - options?: ApplicationAcceleratorsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, options }, - listOperationSpec - ); - } - - /** - * Get the application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: ApplicationAcceleratorsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, applicationAcceleratorName, options }, - getOperationSpec - ); - } - - /** - * Create or update the application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param applicationAcceleratorResource The application accelerator for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - applicationAcceleratorResource: ApplicationAcceleratorResource, - options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - ApplicationAcceleratorsCreateOrUpdateResponse - > - > { - 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, - serviceName, - applicationAcceleratorName, - applicationAcceleratorResource, - options - }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Create or update the application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param applicationAcceleratorResource The application accelerator for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - applicationAcceleratorResource: ApplicationAcceleratorResource, - options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - serviceName, - applicationAcceleratorName, - applicationAcceleratorResource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete the application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: ApplicationAcceleratorsDeleteOptionalParams - ): 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, serviceName, applicationAcceleratorName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Delete the application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: ApplicationAcceleratorsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - serviceName, - applicationAcceleratorName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - serviceName: string, - nextLink: string, - options?: ApplicationAcceleratorsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApplicationAcceleratorResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApplicationAcceleratorResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ApplicationAcceleratorResource - }, - 201: { - bodyMapper: Mappers.ApplicationAcceleratorResource - }, - 202: { - bodyMapper: Mappers.ApplicationAcceleratorResource - }, - 204: { - bodyMapper: Mappers.ApplicationAcceleratorResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.applicationAcceleratorResource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApplicationAcceleratorResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts b/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts deleted file mode 100644 index 1890e6d1a053..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts +++ /dev/null @@ -1,499 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ApplicationLiveViews } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AppPlatformManagementClient } from "../appPlatformManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - ApplicationLiveViewResource, - ApplicationLiveViewsListNextOptionalParams, - ApplicationLiveViewsListOptionalParams, - ApplicationLiveViewsListResponse, - ApplicationLiveViewsGetOptionalParams, - ApplicationLiveViewsGetResponse, - ApplicationLiveViewsCreateOrUpdateOptionalParams, - ApplicationLiveViewsCreateOrUpdateResponse, - ApplicationLiveViewsDeleteOptionalParams, - ApplicationLiveViewsListNextResponse -} from "../models"; - -/// -/** Class containing ApplicationLiveViews operations. */ -export class ApplicationLiveViewsImpl implements ApplicationLiveViews { - private readonly client: AppPlatformManagementClient; - - /** - * Initialize a new instance of the class ApplicationLiveViews class. - * @param client Reference to the service client - */ - constructor(client: AppPlatformManagementClient) { - this.client = client; - } - - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - serviceName: string, - options?: ApplicationLiveViewsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, serviceName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage( - resourceGroupName, - serviceName, - options, - settings - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - serviceName: string, - options?: ApplicationLiveViewsListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: ApplicationLiveViewsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceGroupName, serviceName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - serviceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - serviceName: string, - options?: ApplicationLiveViewsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - serviceName, - options - )) { - yield* page; - } - } - - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - serviceName: string, - options?: ApplicationLiveViewsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, options }, - listOperationSpec - ); - } - - /** - * Get the Application Live and its properties. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationLiveViewName The name of Application Live View. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - applicationLiveViewName: string, - options?: ApplicationLiveViewsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, applicationLiveViewName, options }, - getOperationSpec - ); - } - - /** - * Create the default Application Live View or update the existing Application Live View. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationLiveViewName The name of Application Live View. - * @param applicationLiveViewResource Parameters for the update operation - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - applicationLiveViewName: string, - applicationLiveViewResource: ApplicationLiveViewResource, - options?: ApplicationLiveViewsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - ApplicationLiveViewsCreateOrUpdateResponse - > - > { - 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, - serviceName, - applicationLiveViewName, - applicationLiveViewResource, - options - }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Create the default Application Live View or update the existing Application Live View. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationLiveViewName The name of Application Live View. - * @param applicationLiveViewResource Parameters for the update operation - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - applicationLiveViewName: string, - applicationLiveViewResource: ApplicationLiveViewResource, - options?: ApplicationLiveViewsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - serviceName, - applicationLiveViewName, - applicationLiveViewResource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Disable the default Application Live View. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationLiveViewName The name of Application Live View. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - serviceName: string, - applicationLiveViewName: string, - options?: ApplicationLiveViewsDeleteOptionalParams - ): 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, serviceName, applicationLiveViewName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Disable the default Application Live View. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationLiveViewName The name of Application Live View. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - applicationLiveViewName: string, - options?: ApplicationLiveViewsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - serviceName, - applicationLiveViewName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - serviceName: string, - nextLink: string, - options?: ApplicationLiveViewsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApplicationLiveViewResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApplicationLiveViewResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationLiveViewName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ApplicationLiveViewResource - }, - 201: { - bodyMapper: Mappers.ApplicationLiveViewResource - }, - 202: { - bodyMapper: Mappers.ApplicationLiveViewResource - }, - 204: { - bodyMapper: Mappers.ApplicationLiveViewResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.applicationLiveViewResource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationLiveViewName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationLiveViewName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApplicationLiveViewResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts deleted file mode 100644 index 3e868f31908a..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts +++ /dev/null @@ -1,617 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { CustomizedAccelerators } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AppPlatformManagementClient } from "../appPlatformManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - CustomizedAcceleratorResource, - CustomizedAcceleratorsListNextOptionalParams, - CustomizedAcceleratorsListOptionalParams, - CustomizedAcceleratorsListResponse, - CustomizedAcceleratorsGetOptionalParams, - CustomizedAcceleratorsGetResponse, - CustomizedAcceleratorsCreateOrUpdateOptionalParams, - CustomizedAcceleratorsCreateOrUpdateResponse, - CustomizedAcceleratorsDeleteOptionalParams, - CustomizedAcceleratorProperties, - CustomizedAcceleratorsValidateOptionalParams, - CustomizedAcceleratorsValidateResponse, - CustomizedAcceleratorsListNextResponse -} from "../models"; - -/// -/** Class containing CustomizedAccelerators operations. */ -export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { - private readonly client: AppPlatformManagementClient; - - /** - * Initialize a new instance of the class CustomizedAccelerators class. - * @param client Reference to the service client - */ - constructor(client: AppPlatformManagementClient) { - this.client = client; - } - - /** - * Handle requests to list all customized accelerators. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: CustomizedAcceleratorsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - serviceName, - applicationAcceleratorName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage( - resourceGroupName, - serviceName, - applicationAcceleratorName, - options, - settings - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: CustomizedAcceleratorsListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: CustomizedAcceleratorsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list( - resourceGroupName, - serviceName, - applicationAcceleratorName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - serviceName, - applicationAcceleratorName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: CustomizedAcceleratorsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - serviceName, - applicationAcceleratorName, - options - )) { - yield* page; - } - } - - /** - * Handle requests to list all customized accelerators. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: CustomizedAcceleratorsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, applicationAcceleratorName, options }, - listOperationSpec - ); - } - - /** - * Get the customized accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - options?: CustomizedAcceleratorsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - applicationAcceleratorName, - customizedAcceleratorName, - options - }, - getOperationSpec - ); - } - - /** - * Create or update the customized accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param customizedAcceleratorResource The customized accelerator for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - customizedAcceleratorResource: CustomizedAcceleratorResource, - options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - CustomizedAcceleratorsCreateOrUpdateResponse - > - > { - 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, - serviceName, - applicationAcceleratorName, - customizedAcceleratorName, - customizedAcceleratorResource, - options - }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Create or update the customized accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param customizedAcceleratorResource The customized accelerator for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - customizedAcceleratorResource: CustomizedAcceleratorResource, - options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - serviceName, - applicationAcceleratorName, - customizedAcceleratorName, - customizedAcceleratorResource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete the customized accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - options?: CustomizedAcceleratorsDeleteOptionalParams - ): 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, - serviceName, - applicationAcceleratorName, - customizedAcceleratorName, - options - }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Delete the customized accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - options?: CustomizedAcceleratorsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - serviceName, - applicationAcceleratorName, - customizedAcceleratorName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Check the customized accelerator are valid. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param properties Customized accelerator properties to be validated - * @param options The options parameters. - */ - validate( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - properties: CustomizedAcceleratorProperties, - options?: CustomizedAcceleratorsValidateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - applicationAcceleratorName, - customizedAcceleratorName, - properties, - options - }, - validateOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - nextLink: string, - options?: CustomizedAcceleratorsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - applicationAcceleratorName, - nextLink, - options - }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CustomizedAcceleratorResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CustomizedAcceleratorResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName, - Parameters.customizedAcceleratorName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.CustomizedAcceleratorResource - }, - 201: { - bodyMapper: Mappers.CustomizedAcceleratorResource - }, - 202: { - bodyMapper: Mappers.CustomizedAcceleratorResource - }, - 204: { - bodyMapper: Mappers.CustomizedAcceleratorResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.customizedAcceleratorResource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName, - Parameters.customizedAcceleratorName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName, - Parameters.customizedAcceleratorName - ], - headerParameters: [Parameters.accept], - serializer -}; -const validateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}/validate", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CustomizedAcceleratorValidateResult - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.properties, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName, - Parameters.customizedAcceleratorName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CustomizedAcceleratorResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.nextLink, - Parameters.applicationAcceleratorName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts b/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts deleted file mode 100644 index a4101ccc51b9..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts +++ /dev/null @@ -1,499 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DevToolPortals } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AppPlatformManagementClient } from "../appPlatformManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - DevToolPortalResource, - DevToolPortalsListNextOptionalParams, - DevToolPortalsListOptionalParams, - DevToolPortalsListResponse, - DevToolPortalsGetOptionalParams, - DevToolPortalsGetResponse, - DevToolPortalsCreateOrUpdateOptionalParams, - DevToolPortalsCreateOrUpdateResponse, - DevToolPortalsDeleteOptionalParams, - DevToolPortalsListNextResponse -} from "../models"; - -/// -/** Class containing DevToolPortals operations. */ -export class DevToolPortalsImpl implements DevToolPortals { - private readonly client: AppPlatformManagementClient; - - /** - * Initialize a new instance of the class DevToolPortals class. - * @param client Reference to the service client - */ - constructor(client: AppPlatformManagementClient) { - this.client = client; - } - - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - serviceName: string, - options?: DevToolPortalsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, serviceName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage( - resourceGroupName, - serviceName, - options, - settings - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - serviceName: string, - options?: DevToolPortalsListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: DevToolPortalsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceGroupName, serviceName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - serviceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - serviceName: string, - options?: DevToolPortalsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - serviceName, - options - )) { - yield* page; - } - } - - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - serviceName: string, - options?: DevToolPortalsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, options }, - listOperationSpec - ); - } - - /** - * Get the Application Live and its properties. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param devToolPortalName The name of Dev Tool Portal. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - devToolPortalName: string, - options?: DevToolPortalsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, devToolPortalName, options }, - getOperationSpec - ); - } - - /** - * Create the default Dev Tool Portal or update the existing Dev Tool Portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param devToolPortalName The name of Dev Tool Portal. - * @param devToolPortalResource Parameters for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - devToolPortalName: string, - devToolPortalResource: DevToolPortalResource, - options?: DevToolPortalsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DevToolPortalsCreateOrUpdateResponse - > - > { - 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, - serviceName, - devToolPortalName, - devToolPortalResource, - options - }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Create the default Dev Tool Portal or update the existing Dev Tool Portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param devToolPortalName The name of Dev Tool Portal. - * @param devToolPortalResource Parameters for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - devToolPortalName: string, - devToolPortalResource: DevToolPortalResource, - options?: DevToolPortalsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - serviceName, - devToolPortalName, - devToolPortalResource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Disable the default Dev Tool Portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param devToolPortalName The name of Dev Tool Portal. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - serviceName: string, - devToolPortalName: string, - options?: DevToolPortalsDeleteOptionalParams - ): 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, serviceName, devToolPortalName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Disable the default Dev Tool Portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param devToolPortalName The name of Dev Tool Portal. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - devToolPortalName: string, - options?: DevToolPortalsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - serviceName, - devToolPortalName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - serviceName: string, - nextLink: string, - options?: DevToolPortalsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DevToolPortalResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DevToolPortalResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.devToolPortalName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.DevToolPortalResource - }, - 201: { - bodyMapper: Mappers.DevToolPortalResource - }, - 202: { - bodyMapper: Mappers.DevToolPortalResource - }, - 204: { - bodyMapper: Mappers.DevToolPortalResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.devToolPortalResource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.devToolPortalName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.devToolPortalName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DevToolPortalResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts index d7be0cfd3150..74e2aad3fb4c 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts @@ -25,8 +25,6 @@ import { GatewaysCreateOrUpdateOptionalParams, GatewaysCreateOrUpdateResponse, GatewaysDeleteOptionalParams, - GatewaysListEnvSecretsOptionalParams, - GatewaysListEnvSecretsResponse, CustomDomainValidatePayload, GatewaysValidateDomainOptionalParams, GatewaysValidateDomainResponse, @@ -331,26 +329,6 @@ export class GatewaysImpl implements Gateways { return poller.pollUntilDone(); } - /** - * List sensitive environment variables of Spring Cloud Gateway. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - listEnvSecrets( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewaysListEnvSecretsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, gatewayName, options }, - listEnvSecretsOperationSpec - ); - } - /** * Handles requests to list all resources in a Service. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -495,31 +473,6 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listEnvSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/listEnvSecrets", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "String" } } } - } - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept], - serializer -}; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", diff --git a/sdk/appplatform/arm-appplatform/src/operations/index.ts b/sdk/appplatform/arm-appplatform/src/operations/index.ts index c9b971fc027b..74a7d0c1f6fa 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/index.ts @@ -10,8 +10,6 @@ export * from "./services"; export * from "./configServers"; export * from "./configurationServices"; export * from "./serviceRegistries"; -export * from "./applicationLiveViews"; -export * from "./devToolPortals"; export * from "./buildServiceOperations"; export * from "./buildpackBinding"; export * from "./buildServiceBuilder"; @@ -31,6 +29,3 @@ export * from "./gatewayRouteConfigs"; export * from "./gatewayCustomDomains"; export * from "./apiPortals"; export * from "./apiPortalCustomDomains"; -export * from "./applicationAccelerators"; -export * from "./customizedAccelerators"; -export * from "./predefinedAccelerators"; diff --git a/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts deleted file mode 100644 index fe1df0e58911..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts +++ /dev/null @@ -1,534 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { PredefinedAccelerators } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AppPlatformManagementClient } from "../appPlatformManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - PredefinedAcceleratorResource, - PredefinedAcceleratorsListNextOptionalParams, - PredefinedAcceleratorsListOptionalParams, - PredefinedAcceleratorsListResponse, - PredefinedAcceleratorsGetOptionalParams, - PredefinedAcceleratorsGetResponse, - PredefinedAcceleratorsDisableOptionalParams, - PredefinedAcceleratorsEnableOptionalParams, - PredefinedAcceleratorsListNextResponse -} from "../models"; - -/// -/** Class containing PredefinedAccelerators operations. */ -export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { - private readonly client: AppPlatformManagementClient; - - /** - * Initialize a new instance of the class PredefinedAccelerators class. - * @param client Reference to the service client - */ - constructor(client: AppPlatformManagementClient) { - this.client = client; - } - - /** - * Handle requests to list all predefined accelerators. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: PredefinedAcceleratorsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - serviceName, - applicationAcceleratorName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage( - resourceGroupName, - serviceName, - applicationAcceleratorName, - options, - settings - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: PredefinedAcceleratorsListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: PredefinedAcceleratorsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list( - resourceGroupName, - serviceName, - applicationAcceleratorName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - serviceName, - applicationAcceleratorName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: PredefinedAcceleratorsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - serviceName, - applicationAcceleratorName, - options - )) { - yield* page; - } - } - - /** - * Handle requests to list all predefined accelerators. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: PredefinedAcceleratorsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, applicationAcceleratorName, options }, - listOperationSpec - ); - } - - /** - * Get the predefined accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param predefinedAcceleratorName The name of the predefined accelerator. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - applicationAcceleratorName, - predefinedAcceleratorName, - options - }, - getOperationSpec - ); - } - - /** - * Disable predefined accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param predefinedAcceleratorName The name of the predefined accelerator. - * @param options The options parameters. - */ - async beginDisable( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsDisableOptionalParams - ): 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, - serviceName, - applicationAcceleratorName, - predefinedAcceleratorName, - options - }, - disableOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Disable predefined accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param predefinedAcceleratorName The name of the predefined accelerator. - * @param options The options parameters. - */ - async beginDisableAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsDisableOptionalParams - ): Promise { - const poller = await this.beginDisable( - resourceGroupName, - serviceName, - applicationAcceleratorName, - predefinedAcceleratorName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Enable predefined accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param predefinedAcceleratorName The name of the predefined accelerator. - * @param options The options parameters. - */ - async beginEnable( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsEnableOptionalParams - ): 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, - serviceName, - applicationAcceleratorName, - predefinedAcceleratorName, - options - }, - enableOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Enable predefined accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param predefinedAcceleratorName The name of the predefined accelerator. - * @param options The options parameters. - */ - async beginEnableAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsEnableOptionalParams - ): Promise { - const poller = await this.beginEnable( - resourceGroupName, - serviceName, - applicationAcceleratorName, - predefinedAcceleratorName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - nextLink: string, - options?: PredefinedAcceleratorsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - applicationAcceleratorName, - nextLink, - options - }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PredefinedAcceleratorResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PredefinedAcceleratorResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName, - Parameters.predefinedAcceleratorName - ], - headerParameters: [Parameters.accept], - serializer -}; -const disableOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/disable", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName, - Parameters.predefinedAcceleratorName - ], - headerParameters: [Parameters.accept], - serializer -}; -const enableOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/enable", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.applicationAcceleratorName, - Parameters.predefinedAcceleratorName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PredefinedAcceleratorResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.nextLink, - Parameters.applicationAcceleratorName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts deleted file mode 100644 index e214f09c687b..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - ApplicationAcceleratorResource, - ApplicationAcceleratorsListOptionalParams, - ApplicationAcceleratorsGetOptionalParams, - ApplicationAcceleratorsGetResponse, - ApplicationAcceleratorsCreateOrUpdateOptionalParams, - ApplicationAcceleratorsCreateOrUpdateResponse, - ApplicationAcceleratorsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a ApplicationAccelerators. */ -export interface ApplicationAccelerators { - /** - * Handle requests to list all application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - options?: ApplicationAcceleratorsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: ApplicationAcceleratorsGetOptionalParams - ): Promise; - /** - * Create or update the application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param applicationAcceleratorResource The application accelerator for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - applicationAcceleratorResource: ApplicationAcceleratorResource, - options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - ApplicationAcceleratorsCreateOrUpdateResponse - > - >; - /** - * Create or update the application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param applicationAcceleratorResource The application accelerator for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - applicationAcceleratorResource: ApplicationAcceleratorResource, - options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams - ): Promise; - /** - * Delete the application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: ApplicationAcceleratorsDeleteOptionalParams - ): Promise, void>>; - /** - * Delete the application accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: ApplicationAcceleratorsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts deleted file mode 100644 index 65a8cbcfcaac..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - ApplicationLiveViewResource, - ApplicationLiveViewsListOptionalParams, - ApplicationLiveViewsGetOptionalParams, - ApplicationLiveViewsGetResponse, - ApplicationLiveViewsCreateOrUpdateOptionalParams, - ApplicationLiveViewsCreateOrUpdateResponse, - ApplicationLiveViewsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a ApplicationLiveViews. */ -export interface ApplicationLiveViews { - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - options?: ApplicationLiveViewsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the Application Live and its properties. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationLiveViewName The name of Application Live View. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - applicationLiveViewName: string, - options?: ApplicationLiveViewsGetOptionalParams - ): Promise; - /** - * Create the default Application Live View or update the existing Application Live View. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationLiveViewName The name of Application Live View. - * @param applicationLiveViewResource Parameters for the update operation - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - applicationLiveViewName: string, - applicationLiveViewResource: ApplicationLiveViewResource, - options?: ApplicationLiveViewsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - ApplicationLiveViewsCreateOrUpdateResponse - > - >; - /** - * Create the default Application Live View or update the existing Application Live View. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationLiveViewName The name of Application Live View. - * @param applicationLiveViewResource Parameters for the update operation - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - applicationLiveViewName: string, - applicationLiveViewResource: ApplicationLiveViewResource, - options?: ApplicationLiveViewsCreateOrUpdateOptionalParams - ): Promise; - /** - * Disable the default Application Live View. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationLiveViewName The name of Application Live View. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - serviceName: string, - applicationLiveViewName: string, - options?: ApplicationLiveViewsDeleteOptionalParams - ): Promise, void>>; - /** - * Disable the default Application Live View. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationLiveViewName The name of Application Live View. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - applicationLiveViewName: string, - options?: ApplicationLiveViewsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts deleted file mode 100644 index d69cbc5a74b6..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts +++ /dev/null @@ -1,148 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - CustomizedAcceleratorResource, - CustomizedAcceleratorsListOptionalParams, - CustomizedAcceleratorsGetOptionalParams, - CustomizedAcceleratorsGetResponse, - CustomizedAcceleratorsCreateOrUpdateOptionalParams, - CustomizedAcceleratorsCreateOrUpdateResponse, - CustomizedAcceleratorsDeleteOptionalParams, - CustomizedAcceleratorProperties, - CustomizedAcceleratorsValidateOptionalParams, - CustomizedAcceleratorsValidateResponse -} from "../models"; - -/// -/** Interface representing a CustomizedAccelerators. */ -export interface CustomizedAccelerators { - /** - * Handle requests to list all customized accelerators. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: CustomizedAcceleratorsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the customized accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - options?: CustomizedAcceleratorsGetOptionalParams - ): Promise; - /** - * Create or update the customized accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param customizedAcceleratorResource The customized accelerator for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - customizedAcceleratorResource: CustomizedAcceleratorResource, - options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - CustomizedAcceleratorsCreateOrUpdateResponse - > - >; - /** - * Create or update the customized accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param customizedAcceleratorResource The customized accelerator for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - customizedAcceleratorResource: CustomizedAcceleratorResource, - options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams - ): Promise; - /** - * Delete the customized accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - options?: CustomizedAcceleratorsDeleteOptionalParams - ): Promise, void>>; - /** - * Delete the customized accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - options?: CustomizedAcceleratorsDeleteOptionalParams - ): Promise; - /** - * Check the customized accelerator are valid. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param customizedAcceleratorName The name of the customized accelerator. - * @param properties Customized accelerator properties to be validated - * @param options The options parameters. - */ - validate( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - customizedAcceleratorName: string, - properties: CustomizedAcceleratorProperties, - options?: CustomizedAcceleratorsValidateOptionalParams - ): Promise; -} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts deleted file mode 100644 index 2864c8609244..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - DevToolPortalResource, - DevToolPortalsListOptionalParams, - DevToolPortalsGetOptionalParams, - DevToolPortalsGetResponse, - DevToolPortalsCreateOrUpdateOptionalParams, - DevToolPortalsCreateOrUpdateResponse, - DevToolPortalsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a DevToolPortals. */ -export interface DevToolPortals { - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - options?: DevToolPortalsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the Application Live and its properties. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param devToolPortalName The name of Dev Tool Portal. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - devToolPortalName: string, - options?: DevToolPortalsGetOptionalParams - ): Promise; - /** - * Create the default Dev Tool Portal or update the existing Dev Tool Portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param devToolPortalName The name of Dev Tool Portal. - * @param devToolPortalResource Parameters for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - devToolPortalName: string, - devToolPortalResource: DevToolPortalResource, - options?: DevToolPortalsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DevToolPortalsCreateOrUpdateResponse - > - >; - /** - * Create the default Dev Tool Portal or update the existing Dev Tool Portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param devToolPortalName The name of Dev Tool Portal. - * @param devToolPortalResource Parameters for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - devToolPortalName: string, - devToolPortalResource: DevToolPortalResource, - options?: DevToolPortalsCreateOrUpdateOptionalParams - ): Promise; - /** - * Disable the default Dev Tool Portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param devToolPortalName The name of Dev Tool Portal. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - serviceName: string, - devToolPortalName: string, - options?: DevToolPortalsDeleteOptionalParams - ): Promise, void>>; - /** - * Disable the default Dev Tool Portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param devToolPortalName The name of Dev Tool Portal. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - devToolPortalName: string, - options?: DevToolPortalsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts index 977cdb00f61b..9f95eea1bc7a 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts @@ -16,8 +16,6 @@ import { GatewaysCreateOrUpdateOptionalParams, GatewaysCreateOrUpdateResponse, GatewaysDeleteOptionalParams, - GatewaysListEnvSecretsOptionalParams, - GatewaysListEnvSecretsResponse, CustomDomainValidatePayload, GatewaysValidateDomainOptionalParams, GatewaysValidateDomainResponse @@ -117,20 +115,6 @@ export interface Gateways { gatewayName: string, options?: GatewaysDeleteOptionalParams ): Promise; - /** - * List sensitive environment variables of Spring Cloud Gateway. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - listEnvSecrets( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewaysListEnvSecretsOptionalParams - ): Promise; /** * Check the domains are valid as well as not in use. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts index c9b971fc027b..74a7d0c1f6fa 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts @@ -10,8 +10,6 @@ export * from "./services"; export * from "./configServers"; export * from "./configurationServices"; export * from "./serviceRegistries"; -export * from "./applicationLiveViews"; -export * from "./devToolPortals"; export * from "./buildServiceOperations"; export * from "./buildpackBinding"; export * from "./buildServiceBuilder"; @@ -31,6 +29,3 @@ export * from "./gatewayRouteConfigs"; export * from "./gatewayCustomDomains"; export * from "./apiPortals"; export * from "./apiPortalCustomDomains"; -export * from "./applicationAccelerators"; -export * from "./customizedAccelerators"; -export * from "./predefinedAccelerators"; diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts deleted file mode 100644 index 3a287e95feb1..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - PredefinedAcceleratorResource, - PredefinedAcceleratorsListOptionalParams, - PredefinedAcceleratorsGetOptionalParams, - PredefinedAcceleratorsGetResponse, - PredefinedAcceleratorsDisableOptionalParams, - PredefinedAcceleratorsEnableOptionalParams -} from "../models"; - -/// -/** Interface representing a PredefinedAccelerators. */ -export interface PredefinedAccelerators { - /** - * Handle requests to list all predefined accelerators. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - options?: PredefinedAcceleratorsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the predefined accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param predefinedAcceleratorName The name of the predefined accelerator. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsGetOptionalParams - ): Promise; - /** - * Disable predefined accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param predefinedAcceleratorName The name of the predefined accelerator. - * @param options The options parameters. - */ - beginDisable( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsDisableOptionalParams - ): Promise, void>>; - /** - * Disable predefined accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param predefinedAcceleratorName The name of the predefined accelerator. - * @param options The options parameters. - */ - beginDisableAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsDisableOptionalParams - ): Promise; - /** - * Enable predefined accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param predefinedAcceleratorName The name of the predefined accelerator. - * @param options The options parameters. - */ - beginEnable( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsEnableOptionalParams - ): Promise, void>>; - /** - * Enable predefined accelerator. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param applicationAcceleratorName The name of the application accelerator. - * @param predefinedAcceleratorName The name of the predefined accelerator. - * @param options The options parameters. - */ - beginEnableAndWait( - resourceGroupName: string, - serviceName: string, - applicationAcceleratorName: string, - predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsEnableOptionalParams - ): Promise; -} diff --git a/sdk/appplatform/arm-appplatform/test/sampleTest.ts b/sdk/appplatform/arm-appplatform/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/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/appplatform/arm-appplatform/tsconfig.json b/sdk/appplatform/arm-appplatform/tsconfig.json index 04fa881dd845..3e6ae96443f3 100644 --- a/sdk/appplatform/arm-appplatform/tsconfig.json +++ b/sdk/appplatform/arm-appplatform/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-appplatform": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"