From a830a4090eea949327795bbfd10a8929b185d725 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 8 Nov 2022 06:06:01 +0000 Subject: [PATCH] CodeGen from PR 21467 in Azure/azure-rest-api-specs Merge 00f3dcc9120875a0e9ee5bccfda69059848be085 into 4903b1ed79e30f689d7c469cfa06734cfcd106d6 --- sdk/appplatform/arm-appplatform/CHANGELOG.md | 140 +- sdk/appplatform/arm-appplatform/README.md | 2 +- sdk/appplatform/arm-appplatform/_meta.json | 8 +- sdk/appplatform/arm-appplatform/package.json | 12 +- .../review/arm-appplatform.api.md | 602 +++ .../src/appPlatformManagementClient.ts | 26 +- .../arm-appplatform/src/models/index.ts | 918 +++- .../arm-appplatform/src/models/mappers.ts | 4204 ++++++++++------- .../arm-appplatform/src/models/parameters.ts | 89 +- .../src/operations/applicationAccelerators.ts | 482 ++ .../src/operations/applicationLiveViews.ts | 482 ++ .../src/operations/customizedAccelerators.ts | 604 +++ .../src/operations/devToolPortals.ts | 482 ++ .../src/operations/gateways.ts | 47 + .../arm-appplatform/src/operations/index.ts | 5 + .../src/operations/predefinedAccelerators.ts | 521 ++ .../applicationAccelerators.ts | 115 + .../applicationLiveViews.ts | 115 + .../customizedAccelerators.ts | 148 + .../operationsInterfaces/devToolPortals.ts | 115 + .../src/operationsInterfaces/gateways.ts | 16 + .../src/operationsInterfaces/index.ts | 5 + .../predefinedAccelerators.ts | 117 + .../arm-appplatform/test/sampleTest.ts | 43 + sdk/appplatform/arm-appplatform/tsconfig.json | 10 +- 25 files changed, 7648 insertions(+), 1660 deletions(-) create mode 100644 sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts create mode 100644 sdk/appplatform/arm-appplatform/test/sampleTest.ts diff --git a/sdk/appplatform/arm-appplatform/CHANGELOG.md b/sdk/appplatform/arm-appplatform/CHANGELOG.md index 9a23aa9866be..3392dc14da7e 100644 --- a/sdk/appplatform/arm-appplatform/CHANGELOG.md +++ b/sdk/appplatform/arm-appplatform/CHANGELOG.md @@ -1,36 +1,19 @@ # Release History - -## 2.1.0-beta.4 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 2.1.0-beta.3 (2022-10-08) - -**Bugs Fixed** - - - revert credential scopes - -## 2.1.0-beta.2 (2022-09-30) - -**Bugs Fixed** - - - fix better user experience of credential scopes in government cloud - -## 2.1.0-beta.1 (2022-09-09) + +## 2.1.0-beta.4 (2022-11-08) **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 @@ -42,6 +25,11 @@ - 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 @@ -61,6 +49,28 @@ - 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 @@ -82,6 +92,16 @@ - 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 @@ -89,6 +109,19 @@ - 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 @@ -105,6 +138,7 @@ - Added Interface GatewayOperatorProperties - Added Interface GatewayOperatorResourceRequests - Added Interface GatewayProperties + - Added Interface GatewayPropertiesEnvironmentVariables - Added Interface GatewayResource - Added Interface GatewayResourceCollection - Added Interface GatewayResourceRequests @@ -120,6 +154,7 @@ - Added Interface GatewaysCreateOrUpdateOptionalParams - Added Interface GatewaysDeleteOptionalParams - Added Interface GatewaysGetOptionalParams + - Added Interface GatewaysListEnvSecretsOptionalParams - Added Interface GatewaysListNextOptionalParams - Added Interface GatewaysListOptionalParams - Added Interface GatewaysValidateDomainOptionalParams @@ -133,6 +168,14 @@ - 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 @@ -160,6 +203,7 @@ - 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 @@ -170,14 +214,38 @@ - 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 @@ -190,11 +258,17 @@ - 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 @@ -209,6 +283,9 @@ - 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 @@ -224,22 +301,37 @@ - Interface NetworkProfile has a new optional parameter outboundType - Class AppPlatformManagementClient has a new parameter apiPortalCustomDomains - Class AppPlatformManagementClient has a new parameter apiPortals + - Class AppPlatformManagementClient has a new parameter applicationAccelerators + - Class AppPlatformManagementClient has a new parameter applicationLiveViews + - Class AppPlatformManagementClient has a new parameter customizedAccelerators + - Class AppPlatformManagementClient has a new parameter devToolPortals - Class AppPlatformManagementClient has a new parameter gatewayCustomDomains - Class AppPlatformManagementClient has a new parameter gatewayRouteConfigs - Class AppPlatformManagementClient has a new parameter gateways + - Class AppPlatformManagementClient has a new parameter predefinedAccelerators - Class AppPlatformManagementClient has a new parameter storages - 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 ## 2.0.0 (2022-05-19) diff --git a/sdk/appplatform/arm-appplatform/README.md b/sdk/appplatform/arm-appplatform/README.md index 1617989ed5d2..22becae73dbd 100644 --- a/sdk/appplatform/arm-appplatform/README.md +++ b/sdk/appplatform/arm-appplatform/README.md @@ -13,7 +13,7 @@ REST API for Azure Spring Apps ### Currently supported environments -- [LTS versions of Node.js](https://nodejs.org/en/download/) +- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule) - Latest versions of Safari, Chrome, Edge and Firefox. See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. diff --git a/sdk/appplatform/arm-appplatform/_meta.json b/sdk/appplatform/arm-appplatform/_meta.json index e152e69505d0..76a270542bd5 100644 --- a/sdk/appplatform/arm-appplatform/_meta.json +++ b/sdk/appplatform/arm-appplatform/_meta.json @@ -1,8 +1,8 @@ { - "commit": "dbc70fac5e8915c4e80bc1937bc11e6fbb037c91", + "commit": "d4d8c629d35c22ed932fce547f3ccdfda1368697", "readme": "specification/appplatform/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appplatform\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1.20220727.1 --generate-sample=true", + "autorest_command": "autorest --version=3.8.4 --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.2", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.1.20220727.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.5.1", + "use": "@autorest/typescript@6.0.0-rc.2" } \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json index 55f704d62b2e..27f5e4d191cd 100644 --- a/sdk/appplatform/arm-appplatform/package.json +++ b/sdk/appplatform/arm-appplatform/package.json @@ -109,13 +109,5 @@ } ] }, - "autoPublish": true, - "//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 243b4218fd6f..1497e87facab 100644 --- a/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md +++ b/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md @@ -10,6 +10,44 @@ 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; @@ -174,11 +212,188 @@ 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) @@ -191,6 +406,10 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) + applicationAccelerators: ApplicationAccelerators; + // (undocumented) + applicationLiveViews: ApplicationLiveViews; + // (undocumented) apps: Apps; // (undocumented) bindings: Bindings; @@ -211,8 +430,12 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) customDomains: CustomDomains; // (undocumented) + customizedAccelerators: CustomizedAccelerators; + // (undocumented) deployments: Deployments; // (undocumented) + devToolPortals: DevToolPortals; + // (undocumented) gatewayCustomDomains: GatewayCustomDomains; // (undocumented) gatewayRouteConfigs: GatewayRouteConfigs; @@ -223,6 +446,8 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) operations: Operations; // (undocumented) + predefinedAccelerators: PredefinedAccelerators; + // (undocumented) runtimeVersions: RuntimeVersions; // (undocumented) serviceRegistries: ServiceRegistries; @@ -638,6 +863,7 @@ export interface BuildResultLog { export interface BuildResultProperties { buildPodName?: string; readonly buildStages?: BuildStageProperties[]; + error?: ErrorModel; name?: string; readonly provisioningState?: BuildResultProvisioningState; } @@ -925,7 +1151,9 @@ export type BuildServiceProvisioningState = string; // @public export interface BuildStageProperties { + readonly exitCode?: string; readonly name?: string; + readonly reason?: string; readonly status?: KPackBuildStageProvisioningState; } @@ -1372,6 +1600,101 @@ 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[]; @@ -1613,6 +1936,113 @@ 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; @@ -1748,7 +2178,9 @@ export interface GatewayOperatorResourceRequests { // @public export interface GatewayProperties { apiMetadataProperties?: GatewayApiMetadataProperties; + apmTypes?: ApmType[]; corsProperties?: GatewayCorsProperties; + environmentVariables?: GatewayPropertiesEnvironmentVariables; httpsOnly?: boolean; readonly instances?: GatewayInstance[]; readonly operatorProperties?: GatewayOperatorProperties; @@ -1759,6 +2191,16 @@ export interface GatewayProperties { readonly url?: string; } +// @public +export interface GatewayPropertiesEnvironmentVariables { + properties?: { + [propertyName: string]: string; + }; + secrets?: { + [propertyName: string]: string; + }; +} + // @public export type GatewayProvisioningState = string; @@ -1788,10 +2230,13 @@ 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 @@ -1862,6 +2307,7 @@ 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; } @@ -1887,6 +2333,15 @@ 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 { } @@ -1989,6 +2444,34 @@ 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", @@ -2009,6 +2492,7 @@ export enum KnownBindingType { ApacheSkyWalking = "ApacheSkyWalking", AppDynamics = "AppDynamics", ApplicationInsights = "ApplicationInsights", + CACertificates = "CACertificates", Dynatrace = "Dynatrace", ElasticAPM = "ElasticAPM", NewRelic = "NewRelic" @@ -2103,6 +2587,21 @@ 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", @@ -2117,6 +2616,22 @@ 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", @@ -2176,6 +2691,20 @@ 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", @@ -2476,6 +3005,79 @@ 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 33d2d114df74..56347cbfc880 100644 --- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts @@ -19,6 +19,8 @@ import { ConfigServersImpl, ConfigurationServicesImpl, ServiceRegistriesImpl, + ApplicationLiveViewsImpl, + DevToolPortalsImpl, BuildServiceOperationsImpl, BuildpackBindingImpl, BuildServiceBuilderImpl, @@ -37,13 +39,18 @@ import { GatewayRouteConfigsImpl, GatewayCustomDomainsImpl, ApiPortalsImpl, - ApiPortalCustomDomainsImpl + ApiPortalCustomDomainsImpl, + ApplicationAcceleratorsImpl, + CustomizedAcceleratorsImpl, + PredefinedAcceleratorsImpl } from "./operations"; import { Services, ConfigServers, ConfigurationServices, ServiceRegistries, + ApplicationLiveViews, + DevToolPortals, BuildServiceOperations, BuildpackBinding, BuildServiceBuilder, @@ -62,7 +69,10 @@ import { GatewayRouteConfigs, GatewayCustomDomains, ApiPortals, - ApiPortalCustomDomains + ApiPortalCustomDomains, + ApplicationAccelerators, + CustomizedAccelerators, + PredefinedAccelerators } from "./operationsInterfaces"; import { AppPlatformManagementClientOptionalParams } from "./models"; @@ -153,11 +163,13 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-09-01-preview"; + this.apiVersion = options.apiVersion || "2022-11-01-preview"; 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); @@ -177,6 +189,9 @@ 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); } @@ -212,6 +227,8 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { configServers: ConfigServers; configurationServices: ConfigurationServices; serviceRegistries: ServiceRegistries; + applicationLiveViews: ApplicationLiveViews; + devToolPortals: DevToolPortals; buildServiceOperations: BuildServiceOperations; buildpackBinding: BuildpackBinding; buildServiceBuilder: BuildServiceBuilder; @@ -231,4 +248,7 @@ 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 152cb7187750..cc09ce957170 100644 --- a/sdk/appplatform/arm-appplatform/src/models/index.ts +++ b/sdk/appplatform/arm-appplatform/src/models/index.ts @@ -26,6 +26,11 @@ export type ProbeActionUnion = | HttpGetAction | ExecAction | TCPSocketAction; +export type AcceleratorAuthSettingUnion = + | AcceleratorAuthSetting + | AcceleratorPublicSetting + | AcceleratorBasicAuthSetting + | AcceleratorSshSetting; export type UploadedUserSourceInfoUnion = | UploadedUserSourceInfo | JarUploadedUserSourceInfo @@ -527,6 +532,188 @@ 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 */ @@ -672,6 +859,8 @@ 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; /** @@ -693,6 +882,16 @@ 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 */ @@ -1628,6 +1827,10 @@ 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; /** @@ -1684,6 +1887,14 @@ 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. */ @@ -1765,6 +1976,12 @@ 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. */ @@ -1913,6 +2130,142 @@ 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 */ @@ -2042,6 +2395,34 @@ 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 */ @@ -2068,6 +2449,18 @@ 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 */ @@ -2198,6 +2591,30 @@ 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 */ @@ -2460,8 +2877,8 @@ export enum KnownServiceRegistryProvisioningState { */ export type ServiceRegistryProvisioningState = string; -/** Known values of {@link BuildServiceProvisioningState} that the service accepts. */ -export enum KnownBuildServiceProvisioningState { +/** Known values of {@link ApplicationLiveViewProvisioningState} that the service accepts. */ +export enum KnownApplicationLiveViewProvisioningState { /** Creating */ Creating = "Creating", /** Updating */ @@ -2471,24 +2888,27 @@ export enum KnownBuildServiceProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", + /** Canceled */ + Canceled = "Canceled" } /** - * Defines values for BuildServiceProvisioningState. \ - * {@link KnownBuildServiceProvisioningState} can be used interchangeably with BuildServiceProvisioningState, + * Defines values for ApplicationLiveViewProvisioningState. \ + * {@link KnownApplicationLiveViewProvisioningState} can be used interchangeably with ApplicationLiveViewProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Creating** \ * **Updating** \ * **Succeeded** \ * **Failed** \ - * **Deleting** + * **Deleting** \ + * **Canceled** */ -export type BuildServiceProvisioningState = string; +export type ApplicationLiveViewProvisioningState = string; -/** Known values of {@link BuildProvisioningState} that the service accepts. */ -export enum KnownBuildProvisioningState { +/** Known values of {@link DevToolPortalProvisioningState} that the service accepts. */ +export enum KnownDevToolPortalProvisioningState { /** Creating */ Creating = "Creating", /** Updating */ @@ -2498,36 +2918,113 @@ export enum KnownBuildProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", + /** Canceled */ + Canceled = "Canceled" } /** - * Defines values for BuildProvisioningState. \ - * {@link KnownBuildProvisioningState} can be used interchangeably with BuildProvisioningState, + * Defines values for DevToolPortalProvisioningState. \ + * {@link KnownDevToolPortalProvisioningState} can be used interchangeably with DevToolPortalProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Creating** \ * **Updating** \ * **Succeeded** \ * **Failed** \ - * **Deleting** + * **Deleting** \ + * **Canceled** */ -export type BuildProvisioningState = string; +export type DevToolPortalProvisioningState = string; -/** Known values of {@link BindingType} that the service accepts. */ -export enum KnownBindingType { - /** ApplicationInsights */ - ApplicationInsights = "ApplicationInsights", - /** ApacheSkyWalking */ - ApacheSkyWalking = "ApacheSkyWalking", - /** AppDynamics */ - AppDynamics = "AppDynamics", - /** Dynatrace */ - Dynatrace = "Dynatrace", - /** NewRelic */ - NewRelic = "NewRelic", - /** ElasticAPM */ - ElasticAPM = "ElasticAPM" +/** 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. + */ +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; + +/** Known values of {@link BindingType} that the service accepts. */ +export enum KnownBindingType { + /** ApplicationInsights */ + ApplicationInsights = "ApplicationInsights", + /** ApacheSkyWalking */ + ApacheSkyWalking = "ApacheSkyWalking", + /** AppDynamics */ + AppDynamics = "AppDynamics", + /** Dynatrace */ + Dynatrace = "Dynatrace", + /** NewRelic */ + NewRelic = "NewRelic", + /** ElasticAPM */ + ElasticAPM = "ElasticAPM", + /** CACertificates */ + CACertificates = "CACertificates" } /** @@ -2540,7 +3037,8 @@ export enum KnownBindingType { * **AppDynamics** \ * **Dynatrace** \ * **NewRelic** \ - * **ElasticAPM** + * **ElasticAPM** \ + * **CACertificates** */ export type BindingType = string; @@ -3048,6 +3546,33 @@ 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 */ @@ -3093,6 +3618,120 @@ 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 */ @@ -3368,6 +4007,90 @@ 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 {} @@ -4142,6 +4865,13 @@ 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 {} @@ -4338,6 +5068,136 @@ 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 34db47f5e716..848e27cff3a1 100644 --- a/sdk/appplatform/arm-appplatform/src/models/mappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/mappers.ts @@ -1234,10 +1234,10 @@ export const ServiceRegistryResourceCollection: coreClient.CompositeMapper = { } }; -export const BuildServiceCollection: coreClient.CompositeMapper = { +export const ApplicationLiveViewResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildServiceCollection", + className: "ApplicationLiveViewResourceCollection", modelProperties: { value: { serializedName: "value", @@ -1246,7 +1246,7 @@ export const BuildServiceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuildService" + className: "ApplicationLiveViewResource" } } } @@ -1261,39 +1261,75 @@ export const BuildServiceCollection: coreClient.CompositeMapper = { } }; -export const BuildServiceProperties: coreClient.CompositeMapper = { +export const ApplicationLiveViewProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildServiceProperties", + className: "ApplicationLiveViewProperties", modelProperties: { - kPackVersion: { - serializedName: "kPackVersion", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", + components: { + serializedName: "components", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationLiveViewComponent" + } + } + } + } + } + } +}; + +export const ApplicationLiveViewComponent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationLiveViewComponent", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "any" } }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "BuildServicePropertiesResourceRequests" + className: "ApplicationLiveViewResourceRequests" + } + }, + instances: { + serializedName: "instances", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationLiveViewInstance" + } + } } } } } }; -export const BuildServicePropertiesResourceRequests: coreClient.CompositeMapper = { +export const ApplicationLiveViewResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildServicePropertiesResourceRequests", + className: "ApplicationLiveViewResourceRequests", modelProperties: { cpu: { serializedName: "cpu", @@ -1308,15 +1344,45 @@ export const BuildServicePropertiesResourceRequests: coreClient.CompositeMapper type: { name: "String" } + }, + instanceCount: { + serializedName: "instanceCount", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const BuildCollection: coreClient.CompositeMapper = { +export const ApplicationLiveViewInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildCollection", + className: "ApplicationLiveViewInstance", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DevToolPortalResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevToolPortalResourceCollection", modelProperties: { value: { serializedName: "value", @@ -1325,7 +1391,7 @@ export const BuildCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Build" + className: "DevToolPortalResource" } } } @@ -1340,91 +1406,115 @@ export const BuildCollection: coreClient.CompositeMapper = { } }; -export const BuildProperties: coreClient.CompositeMapper = { +export const DevToolPortalProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildProperties", + className: "DevToolPortalProperties", modelProperties: { - relativePath: { - serializedName: "relativePath", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - builder: { - serializedName: "builder", + resourceRequests: { + serializedName: "resourceRequests", type: { - name: "String" + name: "Composite", + className: "DevToolPortalResourceRequests" } }, - agentPool: { - serializedName: "agentPool", + instances: { + serializedName: "instances", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DevToolPortalInstance" + } + } } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + public: { + defaultValue: false, + serializedName: "public", type: { - name: "String" + name: "Boolean" } }, - env: { - serializedName: "env", + url: { + serializedName: "url", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - triggeredBuildResult: { - serializedName: "triggeredBuildResult", + ssoProperties: { + serializedName: "ssoProperties", type: { name: "Composite", - className: "TriggeredBuildResult" + className: "DevToolPortalSsoProperties" } }, - resourceRequests: { - serializedName: "resourceRequests", + features: { + serializedName: "features", type: { name: "Composite", - className: "BuildResourceRequests" + className: "DevToolPortalFeatureSettings" } } } } }; -export const TriggeredBuildResult: coreClient.CompositeMapper = { +export const DevToolPortalResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TriggeredBuildResult", + className: "DevToolPortalResourceRequests", modelProperties: { - id: { - serializedName: "id", + cpu: { + serializedName: "cpu", + readOnly: true, + type: { + name: "String" + } + }, + memory: { + serializedName: "memory", + readOnly: true, type: { name: "String" } + }, + instanceCount: { + serializedName: "instanceCount", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const BuildResourceRequests: coreClient.CompositeMapper = { +export const DevToolPortalInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildResourceRequests", + className: "DevToolPortalInstance", modelProperties: { - cpu: { - defaultValue: "1", - serializedName: "cpu", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - memory: { - defaultValue: "2Gi", - serializedName: "memory", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } @@ -1433,77 +1523,82 @@ export const BuildResourceRequests: coreClient.CompositeMapper = { } }; -export const BuildpackBindingProperties: coreClient.CompositeMapper = { +export const DevToolPortalSsoProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildpackBindingProperties", + className: "DevToolPortalSsoProperties", modelProperties: { - bindingType: { - serializedName: "bindingType", + scopes: { + serializedName: "scopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clientId: { + serializedName: "clientId", type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + clientSecret: { + serializedName: "clientSecret", type: { name: "String" } }, - launchProperties: { - serializedName: "launchProperties", + metadataUrl: { + serializedName: "metadataUrl", type: { - name: "Composite", - className: "BuildpackBindingLaunchProperties" + name: "String" } } } } }; -export const BuildpackBindingLaunchProperties: coreClient.CompositeMapper = { +export const DevToolPortalFeatureSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildpackBindingLaunchProperties", + className: "DevToolPortalFeatureSettings", modelProperties: { - properties: { - serializedName: "properties", + applicationAccelerator: { + serializedName: "applicationAccelerator", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "DevToolPortalFeatureDetail" } }, - secrets: { - serializedName: "secrets", + applicationLiveView: { + serializedName: "applicationLiveView", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "DevToolPortalFeatureDetail" } } } } }; -export const BuildpackBindingResourceCollection: coreClient.CompositeMapper = { +export const DevToolPortalFeatureDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildpackBindingResourceCollection", + className: "DevToolPortalFeatureDetail", modelProperties: { - value: { - serializedName: "value", + state: { + defaultValue: "Enabled", + serializedName: "state", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuildpackBindingResource" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + route: { + serializedName: "route", + readOnly: true, type: { name: "String" } @@ -1512,10 +1607,10 @@ export const BuildpackBindingResourceCollection: coreClient.CompositeMapper = { } }; -export const BuildResultCollection: coreClient.CompositeMapper = { +export const BuildServiceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildResultCollection", + className: "BuildServiceCollection", modelProperties: { value: { serializedName: "value", @@ -1524,7 +1619,7 @@ export const BuildResultCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuildResult" + className: "BuildService" } } } @@ -1539,13 +1634,13 @@ export const BuildResultCollection: coreClient.CompositeMapper = { } }; -export const BuildResultProperties: coreClient.CompositeMapper = { +export const BuildServiceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildResultProperties", + className: "BuildServiceProperties", modelProperties: { - name: { - serializedName: "name", + kPackVersion: { + serializedName: "kPackVersion", type: { name: "String" } @@ -1557,43 +1652,31 @@ export const BuildResultProperties: coreClient.CompositeMapper = { name: "String" } }, - buildPodName: { - serializedName: "buildPodName", - type: { - name: "String" - } - }, - buildStages: { - serializedName: "buildStages", - readOnly: true, + resourceRequests: { + serializedName: "resourceRequests", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuildStageProperties" - } - } + name: "Composite", + className: "BuildServicePropertiesResourceRequests" } } } } }; -export const BuildStageProperties: coreClient.CompositeMapper = { +export const BuildServicePropertiesResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildStageProperties", + className: "BuildServicePropertiesResourceRequests", modelProperties: { - name: { - serializedName: "name", + cpu: { + serializedName: "cpu", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + memory: { + serializedName: "memory", readOnly: true, type: { name: "String" @@ -1603,13 +1686,25 @@ export const BuildStageProperties: coreClient.CompositeMapper = { } }; -export const BuildResultLog: coreClient.CompositeMapper = { +export const BuildCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildResultLog", + className: "BuildCollection", modelProperties: { - blobUrl: { - serializedName: "blobUrl", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Build" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1618,11 +1713,29 @@ export const BuildResultLog: coreClient.CompositeMapper = { } }; -export const BuilderProperties: coreClient.CompositeMapper = { +export const BuildProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuilderProperties", + className: "BuildProperties", modelProperties: { + relativePath: { + serializedName: "relativePath", + type: { + name: "String" + } + }, + builder: { + serializedName: "builder", + type: { + name: "String" + } + }, + agentPool: { + serializedName: "agentPool", + type: { + name: "String" + } + }, provisioningState: { serializedName: "provisioningState", readOnly: true, @@ -1630,144 +1743,125 @@ export const BuilderProperties: coreClient.CompositeMapper = { name: "String" } }, - stack: { - serializedName: "stack", + env: { + serializedName: "env", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + triggeredBuildResult: { + serializedName: "triggeredBuildResult", type: { name: "Composite", - className: "StackProperties" + className: "TriggeredBuildResult" } }, - buildpackGroups: { - serializedName: "buildpackGroups", + resourceRequests: { + serializedName: "resourceRequests", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuildpacksGroupProperties" - } - } + name: "Composite", + className: "BuildResourceRequests" } } } } }; -export const StackProperties: coreClient.CompositeMapper = { +export const TriggeredBuildResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StackProperties", + className: "TriggeredBuildResult", modelProperties: { id: { serializedName: "id", type: { name: "String" } - }, - version: { - serializedName: "version", - type: { - name: "String" - } } } } }; -export const BuildpacksGroupProperties: coreClient.CompositeMapper = { +export const BuildResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildpacksGroupProperties", + className: "BuildResourceRequests", modelProperties: { - name: { - serializedName: "name", + cpu: { + defaultValue: "1", + serializedName: "cpu", type: { name: "String" } }, - buildpacks: { - serializedName: "buildpacks", + memory: { + defaultValue: "2Gi", + serializedName: "memory", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuildpackProperties" - } - } + name: "String" } } } } }; -export const BuildpackProperties: coreClient.CompositeMapper = { +export const BuildpackBindingProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildpackProperties", + className: "BuildpackBindingProperties", modelProperties: { - id: { - serializedName: "id", + bindingType: { + serializedName: "bindingType", type: { name: "String" } - } - } - } -}; - -export const BuilderResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BuilderResourceCollection", - modelProperties: { - value: { - serializedName: "value", + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuilderResource" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + launchProperties: { + serializedName: "launchProperties", type: { - name: "String" + name: "Composite", + className: "BuildpackBindingLaunchProperties" } } } } }; -export const ResourceUploadDefinition: coreClient.CompositeMapper = { +export const BuildpackBindingLaunchProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUploadDefinition", + className: "BuildpackBindingLaunchProperties", modelProperties: { - relativePath: { - serializedName: "relativePath", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - uploadUrl: { - serializedName: "uploadUrl", + secrets: { + serializedName: "secrets", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const SupportedBuildpacksCollection: coreClient.CompositeMapper = { +export const BuildpackBindingResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedBuildpacksCollection", + className: "BuildpackBindingResourceCollection", modelProperties: { value: { serializedName: "value", @@ -1776,7 +1870,7 @@ export const SupportedBuildpacksCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedBuildpackResource" + className: "BuildpackBindingResource" } } } @@ -1791,25 +1885,10 @@ export const SupportedBuildpacksCollection: coreClient.CompositeMapper = { } }; -export const SupportedBuildpackResourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SupportedBuildpackResourceProperties", - modelProperties: { - buildpackId: { - serializedName: "buildpackId", - type: { - name: "String" - } - } - } - } -}; - -export const SupportedStacksCollection: coreClient.CompositeMapper = { +export const BuildResultCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedStacksCollection", + className: "BuildResultCollection", modelProperties: { value: { serializedName: "value", @@ -1818,7 +1897,7 @@ export const SupportedStacksCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedStackResource" + className: "BuildResult" } } } @@ -1833,98 +1912,98 @@ export const SupportedStacksCollection: coreClient.CompositeMapper = { } }; -export const SupportedStackResourceProperties: coreClient.CompositeMapper = { +export const BuildResultProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedStackResourceProperties", + className: "BuildResultProperties", modelProperties: { - stackId: { - serializedName: "stackId", + name: { + serializedName: "name", type: { name: "String" } }, - version: { - serializedName: "version", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const BuildServiceAgentPoolResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BuildServiceAgentPoolResourceCollection", - modelProperties: { - value: { - serializedName: "value", + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorModel" + } + }, + buildPodName: { + serializedName: "buildPodName", + type: { + name: "String" + } + }, + buildStages: { + serializedName: "buildStages", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "BuildServiceAgentPoolResource" + className: "BuildStageProperties" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const BuildServiceAgentPoolProperties: coreClient.CompositeMapper = { +export const BuildStageProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildServiceAgentPoolProperties", + className: "BuildStageProperties", modelProperties: { - provisioningState: { - serializedName: "provisioningState", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - poolSize: { - serializedName: "poolSize", + status: { + serializedName: "status", + readOnly: true, type: { - name: "Composite", - className: "BuildServiceAgentPoolSizeProperties" + name: "String" } - } - } - } -}; - -export const BuildServiceAgentPoolSizeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BuildServiceAgentPoolSizeProperties", - modelProperties: { - name: { - serializedName: "name", + }, + exitCode: { + serializedName: "exitCode", + readOnly: true, type: { name: "String" } }, - cpu: { - serializedName: "cpu", + reason: { + serializedName: "reason", readOnly: true, type: { name: "String" } - }, - memory: { - serializedName: "memory", - readOnly: true, + } + } + } +}; + +export const BuildResultLog: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuildResultLog", + modelProperties: { + blobUrl: { + serializedName: "blobUrl", type: { name: "String" } @@ -1933,10 +2012,10 @@ export const BuildServiceAgentPoolSizeProperties: coreClient.CompositeMapper = { } }; -export const MonitoringSettingProperties: coreClient.CompositeMapper = { +export const BuilderProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MonitoringSettingProperties", + className: "BuilderProperties", modelProperties: { provisioningState: { serializedName: "provisioningState", @@ -1945,54 +2024,42 @@ export const MonitoringSettingProperties: coreClient.CompositeMapper = { name: "String" } }, - error: { - serializedName: "error", + stack: { + serializedName: "stack", type: { name: "Composite", - className: "ErrorModel" - } - }, - traceEnabled: { - serializedName: "traceEnabled", - type: { - name: "Boolean" - } - }, - appInsightsInstrumentationKey: { - serializedName: "appInsightsInstrumentationKey", - type: { - name: "String" - } - }, - appInsightsSamplingRate: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0 - }, - serializedName: "appInsightsSamplingRate", - type: { - name: "Number" + className: "StackProperties" } }, - appInsightsAgentVersions: { - serializedName: "appInsightsAgentVersions", + buildpackGroups: { + serializedName: "buildpackGroups", type: { - name: "Composite", - className: "ApplicationInsightsAgentVersions" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuildpacksGroupProperties" + } + } } } } } }; -export const ApplicationInsightsAgentVersions: coreClient.CompositeMapper = { +export const StackProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsAgentVersions", + className: "StackProperties", modelProperties: { - java: { - serializedName: "java", - readOnly: true, + id: { + serializedName: "id", + type: { + name: "String" + } + }, + version: { + serializedName: "version", type: { name: "String" } @@ -2001,140 +2068,88 @@ export const ApplicationInsightsAgentVersions: coreClient.CompositeMapper = { } }; -export const AppResourceProperties: coreClient.CompositeMapper = { +export const BuildpacksGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AppResourceProperties", + className: "BuildpacksGroupProperties", modelProperties: { - public: { - serializedName: "public", - type: { - name: "Boolean" - } - }, - url: { - serializedName: "url", - readOnly: true, - type: { - name: "String" - } - }, - addonConfigs: { - serializedName: "addonConfigs", - type: { - name: "Dictionary", - value: { - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - } - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - fqdn: { - serializedName: "fqdn", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - httpsOnly: { - defaultValue: false, - serializedName: "httpsOnly", - type: { - name: "Boolean" - } - }, - temporaryDisk: { - serializedName: "temporaryDisk", - type: { - name: "Composite", - className: "TemporaryDisk" - } - }, - persistentDisk: { - serializedName: "persistentDisk", - type: { - name: "Composite", - className: "PersistentDisk" - } - }, - customPersistentDisks: { - serializedName: "customPersistentDisks", + buildpacks: { + serializedName: "buildpacks", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CustomPersistentDiskResource" + className: "BuildpackProperties" } } } - }, - enableEndToEndTLS: { - defaultValue: false, - serializedName: "enableEndToEndTLS", + } + } + } +}; + +export const BuildpackProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuildpackProperties", + modelProperties: { + id: { + serializedName: "id", type: { - name: "Boolean" + name: "String" } - }, - loadedCertificates: { - serializedName: "loadedCertificates", + } + } + } +}; + +export const BuilderResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuilderResourceCollection", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "LoadedCertificate" + className: "BuilderResource" } } } }, - vnetAddons: { - serializedName: "vnetAddons", - type: { - name: "Composite", - className: "AppVNetAddons" - } - }, - ingressSettings: { - serializedName: "ingressSettings", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "IngressSettings" + name: "String" } } } } }; -export const TemporaryDisk: coreClient.CompositeMapper = { +export const ResourceUploadDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TemporaryDisk", + className: "ResourceUploadDefinition", modelProperties: { - sizeInGB: { - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 0 - }, - serializedName: "sizeInGB", + relativePath: { + serializedName: "relativePath", type: { - name: "Number" + name: "String" } }, - mountPath: { - defaultValue: "/tmp", - serializedName: "mountPath", + uploadUrl: { + serializedName: "uploadUrl", type: { name: "String" } @@ -2143,34 +2158,40 @@ export const TemporaryDisk: coreClient.CompositeMapper = { } }; -export const PersistentDisk: coreClient.CompositeMapper = { +export const SupportedBuildpacksCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PersistentDisk", + className: "SupportedBuildpacksCollection", modelProperties: { - sizeInGB: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: "sizeInGB", + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SupportedBuildpackResource" + } + } } }, - usedInGB: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: "usedInGB", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" } - }, - mountPath: { - serializedName: "mountPath", + } + } + } +}; + +export const SupportedBuildpackResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedBuildpackResourceProperties", + modelProperties: { + buildpackId: { + serializedName: "buildpackId", type: { name: "String" } @@ -2179,21 +2200,25 @@ export const PersistentDisk: coreClient.CompositeMapper = { } }; -export const CustomPersistentDiskResource: coreClient.CompositeMapper = { +export const SupportedStacksCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomPersistentDiskResource", + className: "SupportedStacksCollection", modelProperties: { - customPersistentDiskProperties: { - serializedName: "customPersistentDiskProperties", + value: { + serializedName: "value", type: { - name: "Composite", - className: "CustomPersistentDiskProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SupportedStackResource" + } + } } }, - storageId: { - serializedName: "storageId", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -2202,88 +2227,97 @@ export const CustomPersistentDiskResource: coreClient.CompositeMapper = { } }; -export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { +export const SupportedStackResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomPersistentDiskProperties", - uberParent: "CustomPersistentDiskProperties", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, + className: "SupportedStackResourceProperties", modelProperties: { - type: { - serializedName: "type", - required: true, + stackId: { + serializedName: "stackId", type: { name: "String" } }, - mountPath: { - serializedName: "mountPath", - required: true, + version: { + serializedName: "version", type: { name: "String" } - }, - readOnly: { - serializedName: "readOnly", - type: { - name: "Boolean" - } - }, - mountOptions: { - serializedName: "mountOptions", + } + } + } +}; + +export const BuildServiceAgentPoolResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuildServiceAgentPoolResourceCollection", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "BuildServiceAgentPoolResource" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const LoadedCertificate: coreClient.CompositeMapper = { +export const BuildServiceAgentPoolProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadedCertificate", + className: "BuildServiceAgentPoolProperties", modelProperties: { - resourceId: { - serializedName: "resourceId", - required: true, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - loadTrustStore: { - defaultValue: false, - serializedName: "loadTrustStore", + poolSize: { + serializedName: "poolSize", type: { - name: "Boolean" + name: "Composite", + className: "BuildServiceAgentPoolSizeProperties" } } } } }; -export const AppVNetAddons: coreClient.CompositeMapper = { +export const BuildServiceAgentPoolSizeProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AppVNetAddons", + className: "BuildServiceAgentPoolSizeProperties", modelProperties: { - publicEndpoint: { - defaultValue: false, - serializedName: "publicEndpoint", + name: { + serializedName: "name", type: { - name: "Boolean" + name: "String" } }, - publicEndpointUrl: { - serializedName: "publicEndpointUrl", + cpu: { + serializedName: "cpu", + readOnly: true, + type: { + name: "String" + } + }, + memory: { + serializedName: "memory", readOnly: true, type: { name: "String" @@ -2293,147 +2327,619 @@ export const AppVNetAddons: coreClient.CompositeMapper = { } }; -export const IngressSettings: coreClient.CompositeMapper = { +export const MonitoringSettingProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IngressSettings", + className: "MonitoringSettingProperties", modelProperties: { - readTimeoutInSeconds: { - serializedName: "readTimeoutInSeconds", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } }, - sendTimeoutInSeconds: { - serializedName: "sendTimeoutInSeconds", + error: { + serializedName: "error", type: { - name: "Number" + name: "Composite", + className: "ErrorModel" } }, - sessionAffinity: { - serializedName: "sessionAffinity", + traceEnabled: { + serializedName: "traceEnabled", type: { - name: "String" + name: "Boolean" } }, - sessionCookieMaxAge: { - serializedName: "sessionCookieMaxAge", + appInsightsInstrumentationKey: { + serializedName: "appInsightsInstrumentationKey", type: { - name: "Number" + name: "String" } }, - backendProtocol: { - serializedName: "backendProtocol", + appInsightsSamplingRate: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "appInsightsSamplingRate", type: { - name: "String" + name: "Number" } }, - clientAuth: { - serializedName: "clientAuth", + appInsightsAgentVersions: { + serializedName: "appInsightsAgentVersions", type: { name: "Composite", - className: "IngressSettingsClientAuth" + className: "ApplicationInsightsAgentVersions" } } } } }; -export const IngressSettingsClientAuth: coreClient.CompositeMapper = { +export const ApplicationInsightsAgentVersions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IngressSettingsClientAuth", + className: "ApplicationInsightsAgentVersions", modelProperties: { - certificates: { - serializedName: "certificates", + java: { + serializedName: "java", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const ManagedIdentityProperties: coreClient.CompositeMapper = { +export const AppResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIdentityProperties", + className: "AppResourceProperties", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - principalId: { - serializedName: "principalId", + public: { + serializedName: "public", type: { - name: "String" + name: "Boolean" } }, - tenantId: { - serializedName: "tenantId", + url: { + serializedName: "url", + readOnly: true, type: { name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + addonConfigs: { + serializedName: "addonConfigs", type: { name: "Dictionary", value: { type: { - name: "Composite", - className: "UserAssignedManagedIdentity" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } - } - } - } -}; - -export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserAssignedManagedIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", + }, + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" } }, - clientId: { - serializedName: "clientId", + fqdn: { + serializedName: "fqdn", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const AppResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AppResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { + }, + httpsOnly: { + defaultValue: false, + serializedName: "httpsOnly", + type: { + name: "Boolean" + } + }, + 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: "CustomPersistentDiskResource" + } + } + } + }, + enableEndToEndTLS: { + defaultValue: false, + serializedName: "enableEndToEndTLS", + type: { + name: "Boolean" + } + }, + loadedCertificates: { + serializedName: "loadedCertificates", + type: { + 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 TemporaryDisk: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TemporaryDisk", + modelProperties: { + sizeInGB: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 0 + }, + serializedName: "sizeInGB", + type: { + name: "Number" + } + }, + mountPath: { + defaultValue: "/tmp", + serializedName: "mountPath", + type: { + name: "String" + } + } + } + } +}; + +export const PersistentDisk: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PersistentDisk", + 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", + type: { + name: "String" + } + } + } + } +}; + +export const CustomPersistentDiskResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomPersistentDiskResource", + modelProperties: { + customPersistentDiskProperties: { + serializedName: "customPersistentDiskProperties", + type: { + name: "Composite", + className: "CustomPersistentDiskProperties" + } + }, + storageId: { + serializedName: "storageId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomPersistentDiskProperties", + uberParent: "CustomPersistentDiskProperties", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + }, + mountPath: { + serializedName: "mountPath", + required: 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, + 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", + 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", + type: { + name: "String" + } + }, + sessionCookieMaxAge: { + serializedName: "sessionCookieMaxAge", + type: { + name: "Number" + } + }, + backendProtocol: { + serializedName: "backendProtocol", + 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", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +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", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AppResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AppResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + 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" + } + } + } + } + } + } +}; + +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: "AppResource" + className: "BindingResource" } } } @@ -2448,82 +2954,239 @@ export const AppResourceCollection: coreClient.CompositeMapper = { } }; -export const ActiveDeploymentCollection: coreClient.CompositeMapper = { +export const StorageProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActiveDeploymentCollection", + className: "StorageProperties", + uberParent: "StorageProperties", + polymorphicDiscriminator: { + serializedName: "storageType", + clientName: "storageType" + }, modelProperties: { - activeDeploymentNames: { - serializedName: "activeDeploymentNames", + 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: "String" + name: "Composite", + className: "StorageResource" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const BindingResourceProperties: coreClient.CompositeMapper = { +export const CertificateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BindingResourceProperties", + className: "CertificateProperties", + uberParent: "CertificateProperties", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - resourceName: { - serializedName: "resourceName", + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "thumbprint", readOnly: true, type: { name: "String" } }, - resourceType: { - serializedName: "resourceType", + issuer: { + serializedName: "issuer", readOnly: true, type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", + issuedDate: { + serializedName: "issuedDate", + readOnly: true, type: { name: "String" } }, - key: { - serializedName: "key", + expirationDate: { + serializedName: "expirationDate", + readOnly: true, type: { name: "String" } }, - bindingParameters: { - serializedName: "bindingParameters", + activateDate: { + serializedName: "activateDate", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } + name: "String" + } + }, + subjectName: { + serializedName: "subjectName", + readOnly: true, + type: { + name: "String" + } + }, + dnsNames: { + serializedName: "dnsNames", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } } } }, - generatedProperties: { - serializedName: "generatedProperties", + 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" + } }, - createdAt: { - serializedName: "createdAt", + 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" } }, - updatedAt: { - serializedName: "updatedAt", + certName: { + serializedName: "certName", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" @@ -2533,10 +3196,10 @@ export const BindingResourceProperties: coreClient.CompositeMapper = { } }; -export const BindingResourceCollection: coreClient.CompositeMapper = { +export const CustomDomainResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BindingResourceCollection", + className: "CustomDomainResourceCollection", modelProperties: { value: { serializedName: "value", @@ -2545,7 +3208,7 @@ export const BindingResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BindingResource" + className: "CustomDomainResource" } } } @@ -2560,18 +3223,13 @@ export const BindingResourceCollection: coreClient.CompositeMapper = { } }; -export const StorageProperties: coreClient.CompositeMapper = { +export const CustomDomainValidatePayload: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageProperties", - uberParent: "StorageProperties", - polymorphicDiscriminator: { - serializedName: "storageType", - clientName: "storageType" - }, + className: "CustomDomainValidatePayload", modelProperties: { - storageType: { - serializedName: "storageType", + name: { + serializedName: "name", required: true, type: { name: "String" @@ -2581,38 +3239,88 @@ export const StorageProperties: coreClient.CompositeMapper = { } }; -export const StorageResourceCollection: coreClient.CompositeMapper = { +export const CustomDomainValidateResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageResourceCollection", + className: "CustomDomainValidateResult", modelProperties: { - value: { - serializedName: "value", + 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: "StorageResource" + className: "DeploymentInstance" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const CertificateProperties: coreClient.CompositeMapper = { +export const UserSourceInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateProperties", - uberParent: "CertificateProperties", + className: "UserSourceInfo", + uberParent: "UserSourceInfo", polymorphicDiscriminator: { serializedName: "type", clientName: "type" @@ -2625,90 +3333,101 @@ export const CertificateProperties: coreClient.CompositeMapper = { name: "String" } }, - thumbprint: { - serializedName: "thumbprint", - readOnly: true, + 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" + } }, - issuer: { - serializedName: "issuer", - readOnly: true, + environmentVariables: { + serializedName: "environmentVariables", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - issuedDate: { - serializedName: "issuedDate", - readOnly: true, + addonConfigs: { + serializedName: "addonConfigs", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + } } }, - expirationDate: { - serializedName: "expirationDate", - readOnly: true, + livenessProbe: { + serializedName: "livenessProbe", type: { - name: "String" + name: "Composite", + className: "Probe" } }, - activateDate: { - serializedName: "activateDate", - readOnly: true, + readinessProbe: { + serializedName: "readinessProbe", type: { - name: "String" + name: "Composite", + className: "Probe" } }, - subjectName: { - serializedName: "subjectName", - readOnly: true, + startupProbe: { + serializedName: "startupProbe", type: { - name: "String" + name: "Composite", + className: "Probe" } }, - dnsNames: { - serializedName: "dnsNames", - readOnly: true, + terminationGracePeriodSeconds: { + defaultValue: 90, + serializedName: "terminationGracePeriodSeconds", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + containerProbeSettings: { + serializedName: "containerProbeSettings", type: { - name: "String" + name: "Composite", + className: "ContainerProbeSettings" } } } } }; -export const CertificateResourceCollection: coreClient.CompositeMapper = { +export const ResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateResourceCollection", + className: "ResourceRequests", modelProperties: { - value: { - serializedName: "value", + cpu: { + serializedName: "cpu", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateResource" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + memory: { + serializedName: "memory", type: { name: "String" } @@ -2717,10 +3436,69 @@ export const CertificateResourceCollection: coreClient.CompositeMapper = { } }; -export const NameAvailabilityParameters: coreClient.CompositeMapper = { +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: "NameAvailabilityParameters", + className: "ProbeAction", + uberParent: "ProbeAction", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { type: { serializedName: "type", @@ -2728,71 +3506,68 @@ export const NameAvailabilityParameters: coreClient.CompositeMapper = { type: { name: "String" } - }, - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } } } } }; -export const NameAvailability: coreClient.CompositeMapper = { +export const ContainerProbeSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NameAvailability", + className: "ContainerProbeSettings", modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", + disableProbe: { + serializedName: "disableProbe", type: { name: "Boolean" } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } } } } }; -export const CustomDomainProperties: coreClient.CompositeMapper = { +export const DeploymentInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomainProperties", + className: "DeploymentInstance", modelProperties: { - thumbprint: { - serializedName: "thumbprint", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - appName: { - serializedName: "appName", + status: { + serializedName: "status", readOnly: true, type: { name: "String" } }, - certName: { - serializedName: "certName", + reason: { + serializedName: "reason", + readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", + discoveryStatus: { + serializedName: "discoveryStatus", + readOnly: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + readOnly: true, + type: { + name: "String" + } + }, + zone: { + serializedName: "zone", readOnly: true, type: { name: "String" @@ -2802,10 +3577,10 @@ export const CustomDomainProperties: coreClient.CompositeMapper = { } }; -export const CustomDomainResourceCollection: coreClient.CompositeMapper = { +export const DeploymentResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomainResourceCollection", + className: "DeploymentResourceCollection", modelProperties: { value: { serializedName: "value", @@ -2814,7 +3589,7 @@ export const CustomDomainResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomDomainResource" + className: "DeploymentResource" } } } @@ -2829,118 +3604,151 @@ export const CustomDomainResourceCollection: coreClient.CompositeMapper = { } }; -export const CustomDomainValidatePayload: coreClient.CompositeMapper = { +export const DeploymentList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomainValidatePayload", + className: "DeploymentList", modelProperties: { - name: { - serializedName: "name", - required: true, + deployments: { + serializedName: "deployments", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const CustomDomainValidateResult: coreClient.CompositeMapper = { +export const RemoteDebuggingPayload: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomainValidateResult", + className: "RemoteDebuggingPayload", modelProperties: { - isValid: { - serializedName: "isValid", - type: { - name: "Boolean" - } - }, - message: { - serializedName: "message", + port: { + serializedName: "port", type: { - name: "String" + name: "Number" } } } } }; -export const DeploymentResourceProperties: coreClient.CompositeMapper = { +export const RemoteDebugging: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentResourceProperties", + className: "RemoteDebugging", modelProperties: { - source: { - serializedName: "source", + port: { + serializedName: "port", type: { - name: "Composite", - className: "UserSourceInfo" + name: "Number" } }, - deploymentSettings: { - serializedName: "deploymentSettings", + enabled: { + serializedName: "enabled", type: { - name: "Composite", - className: "DeploymentSettings" + name: "Boolean" } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + } + } + } +}; + +export const LogFileUrlResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogFileUrlResponse", + modelProperties: { + url: { + serializedName: "url", + required: true, type: { name: "String" } - }, - status: { - serializedName: "status", - readOnly: true, + } + } + } +}; + +export const DiagnosticParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiagnosticParameters", + modelProperties: { + appInstance: { + serializedName: "appInstance", type: { name: "String" } }, - active: { - serializedName: "active", + filePath: { + serializedName: "filePath", type: { - name: "Boolean" + name: "String" } }, - instances: { - serializedName: "instances", - readOnly: true, + duration: { + serializedName: "duration", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceResourceList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceResourceList", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeploymentInstance" + className: "ServiceResource" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const UserSourceInfo: coreClient.CompositeMapper = { +export const AvailableOperations: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserSourceInfo", - uberParent: "UserSourceInfo", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, + className: "AvailableOperations", modelProperties: { - type: { - serializedName: "type", - required: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationDetail" + } + } } }, - version: { - serializedName: "version", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -2949,91 +3757,79 @@ export const UserSourceInfo: coreClient.CompositeMapper = { } }; -export const DeploymentSettings: coreClient.CompositeMapper = { +export const OperationDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentSettings", + className: "OperationDetail", modelProperties: { - resourceRequests: { - serializedName: "resourceRequests", - type: { - name: "Composite", - className: "ResourceRequests" - } - }, - environmentVariables: { - serializedName: "environmentVariables", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - addonConfigs: { - serializedName: "addonConfigs", + name: { + serializedName: "name", type: { - name: "Dictionary", - value: { - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - } + name: "String" } }, - livenessProbe: { - serializedName: "livenessProbe", + isDataAction: { + serializedName: "isDataAction", type: { - name: "Composite", - className: "Probe" + name: "Boolean" } }, - readinessProbe: { - serializedName: "readinessProbe", + display: { + serializedName: "display", type: { name: "Composite", - className: "Probe" + className: "OperationDisplay" } }, - startupProbe: { - serializedName: "startupProbe", + actionType: { + serializedName: "actionType", + readOnly: true, type: { - name: "Composite", - className: "Probe" + name: "String" } }, - terminationGracePeriodSeconds: { - defaultValue: 90, - serializedName: "terminationGracePeriodSeconds", + origin: { + serializedName: "origin", type: { - name: "Number" + name: "String" } }, - containerProbeSettings: { - serializedName: "containerProbeSettings", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ContainerProbeSettings" + className: "OperationProperties" } } } } }; -export const ResourceRequests: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceRequests", + className: "OperationDisplay", modelProperties: { - cpu: { - serializedName: "cpu", + provider: { + serializedName: "provider", type: { name: "String" } }, - memory: { - serializedName: "memory", + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", type: { name: "String" } @@ -3042,222 +3838,192 @@ export const ResourceRequests: coreClient.CompositeMapper = { } }; -export const Probe: coreClient.CompositeMapper = { +export const OperationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Probe", + className: "OperationProperties", modelProperties: { - probeAction: { - serializedName: "probeAction", + serviceSpecification: { + serializedName: "serviceSpecification", 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" + className: "ServiceSpecification" } } } } }; -export const ProbeAction: coreClient.CompositeMapper = { +export const ServiceSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProbeAction", - uberParent: "ProbeAction", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, + className: "ServiceSpecification", modelProperties: { - type: { - serializedName: "type", - required: true, + logSpecifications: { + serializedName: "logSpecifications", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + }, + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } } } } } }; -export const ContainerProbeSettings: coreClient.CompositeMapper = { +export const LogSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerProbeSettings", + className: "LogSpecification", modelProperties: { - disableProbe: { - serializedName: "disableProbe", + name: { + serializedName: "name", type: { - name: "Boolean" + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" } } } } }; -export const DeploymentInstance: coreClient.CompositeMapper = { +export const MetricSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentInstance", + className: "MetricSpecification", modelProperties: { name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + displayName: { + serializedName: "displayName", type: { name: "String" } }, - reason: { - serializedName: "reason", - readOnly: true, + displayDescription: { + serializedName: "displayDescription", type: { name: "String" } }, - discoveryStatus: { - serializedName: "discoveryStatus", - readOnly: true, + unit: { + serializedName: "unit", type: { name: "String" } }, - startTime: { - serializedName: "startTime", - readOnly: true, + category: { + serializedName: "category", type: { name: "String" } }, - zone: { - serializedName: "zone", - readOnly: true, + aggregationType: { + serializedName: "aggregationType", type: { name: "String" } - } - } - } -}; - -export const DeploymentResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentResourceCollection", - modelProperties: { - value: { - serializedName: "value", + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DeploymentResource" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const DeploymentList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentList", - modelProperties: { - deployments: { - serializedName: "deployments", + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + dimensions: { + serializedName: "dimensions", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MetricDimension" } } } - } - } - } -}; - -export const RemoteDebuggingPayload: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RemoteDebuggingPayload", - modelProperties: { - port: { - serializedName: "port", + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", type: { - name: "Number" + name: "String" } } } } }; -export const RemoteDebugging: coreClient.CompositeMapper = { +export const MetricDimension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RemoteDebugging", + className: "MetricDimension", modelProperties: { - port: { - serializedName: "port", + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - enabled: { - serializedName: "enabled", + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", type: { name: "Boolean" } @@ -3266,41 +4032,47 @@ export const RemoteDebugging: coreClient.CompositeMapper = { } }; -export const LogFileUrlResponse: coreClient.CompositeMapper = { +export const AvailableRuntimeVersions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogFileUrlResponse", + className: "AvailableRuntimeVersions", modelProperties: { - url: { - serializedName: "url", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SupportedRuntimeVersion" + } + } } } } } }; -export const DiagnosticParameters: coreClient.CompositeMapper = { +export const SupportedRuntimeVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnosticParameters", + className: "SupportedRuntimeVersion", modelProperties: { - appInstance: { - serializedName: "appInstance", + value: { + serializedName: "value", type: { name: "String" } }, - filePath: { - serializedName: "filePath", + platform: { + serializedName: "platform", type: { name: "String" } }, - duration: { - serializedName: "duration", + version: { + serializedName: "version", type: { name: "String" } @@ -3309,10 +4081,10 @@ export const DiagnosticParameters: coreClient.CompositeMapper = { } }; -export const ServiceResourceList: coreClient.CompositeMapper = { +export const ResourceSkuCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceResourceList", + className: "ResourceSkuCollection", modelProperties: { value: { serializedName: "value", @@ -3321,7 +4093,7 @@ export const ServiceResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServiceResource" + className: "ResourceSku" } } } @@ -3336,106 +4108,192 @@ export const ServiceResourceList: coreClient.CompositeMapper = { } }; -export const AvailableOperations: coreClient.CompositeMapper = { +export const ResourceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableOperations", + className: "ResourceSku", modelProperties: { - value: { - serializedName: "value", + 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", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OperationDetail" + className: "ResourceSkuLocationInfo" } } } }, - nextLink: { - serializedName: "nextLink", + restrictions: { + serializedName: "restrictions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuRestrictions" + } + } } } } } }; -export const OperationDetail: coreClient.CompositeMapper = { +export const SkuCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDetail", + className: "SkuCapacity", modelProperties: { - name: { - serializedName: "name", + minimum: { + serializedName: "minimum", + required: true, type: { - name: "String" + name: "Number" } }, - isDataAction: { - serializedName: "isDataAction", + maximum: { + serializedName: "maximum", type: { - name: "Boolean" + name: "Number" } }, - display: { - serializedName: "display", + default: { + serializedName: "default", type: { - name: "Composite", - className: "OperationDisplay" + name: "Number" } }, - actionType: { - serializedName: "actionType", - readOnly: true, + scaleType: { + serializedName: "scaleType", type: { name: "String" } - }, - origin: { - serializedName: "origin", + } + } + } +}; + +export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } }, - properties: { - serializedName: "properties", + zones: { + serializedName: "zones", type: { - name: "Composite", - className: "OperationProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zoneDetails: { + serializedName: "zoneDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails" + } + } } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "ResourceSkuZoneDetails", modelProperties: { - provider: { - serializedName: "provider", + name: { + serializedName: "name", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - resource: { - serializedName: "resource", + capabilities: { + serializedName: "capabilities", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuCapabilities" + } + } } - }, - operation: { - serializedName: "operation", + } + } + } +}; + +export const ResourceSkuCapabilities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuCapabilities", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - description: { - serializedName: "description", + value: { + serializedName: "value", type: { name: "String" } @@ -3444,47 +4302,68 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const OperationProperties: coreClient.CompositeMapper = { +export const ResourceSkuRestrictions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationProperties", + className: "ResourceSkuRestrictions", modelProperties: { - serviceSpecification: { - serializedName: "serviceSpecification", + type: { + serializedName: "type", + type: { + name: "String" + } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + restrictionInfo: { + serializedName: "restrictionInfo", type: { name: "Composite", - className: "ServiceSpecification" + className: "ResourceSkuRestrictionInfo" + } + }, + reasonCode: { + serializedName: "reasonCode", + type: { + name: "String" } } } } }; -export const ServiceSpecification: coreClient.CompositeMapper = { +export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceSpecification", + className: "ResourceSkuRestrictionInfo", modelProperties: { - logSpecifications: { - serializedName: "logSpecifications", + locations: { + serializedName: "locations", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "LogSpecification" + name: "String" } } } }, - metricSpecifications: { - serializedName: "metricSpecifications", + zones: { + serializedName: "zones", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MetricSpecification" + name: "String" } } } @@ -3493,76 +4372,65 @@ export const ServiceSpecification: coreClient.CompositeMapper = { } }; -export const LogSpecification: coreClient.CompositeMapper = { +export const GatewayProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogSpecification", + className: "GatewayProperties", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - blobDuration: { - serializedName: "blobDuration", - type: { - name: "String" - } - } - } - } -}; - -export const MetricSpecification: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MetricSpecification", - modelProperties: { - name: { - serializedName: "name", + public: { + defaultValue: false, + serializedName: "public", type: { - name: "String" + name: "Boolean" } }, - displayName: { - serializedName: "displayName", + url: { + serializedName: "url", + readOnly: true, type: { name: "String" } }, - displayDescription: { - serializedName: "displayDescription", + httpsOnly: { + defaultValue: false, + serializedName: "httpsOnly", type: { - name: "String" + name: "Boolean" } }, - unit: { - serializedName: "unit", + ssoProperties: { + serializedName: "ssoProperties", type: { - name: "String" + name: "Composite", + className: "SsoProperties" } }, - category: { - serializedName: "category", + apiMetadataProperties: { + serializedName: "apiMetadataProperties", type: { - name: "String" + name: "Composite", + className: "GatewayApiMetadataProperties" } }, - aggregationType: { - serializedName: "aggregationType", + corsProperties: { + serializedName: "corsProperties", type: { - name: "String" + name: "Composite", + className: "GatewayCorsProperties" } }, - supportedAggregationTypes: { - serializedName: "supportedAggregationTypes", + apmTypes: { + constraints: { + UniqueItems: true + }, + serializedName: "apmTypes", type: { name: "Sequence", element: { @@ -3572,107 +4440,101 @@ export const MetricSpecification: coreClient.CompositeMapper = { } } }, - supportedTimeGrainTypes: { - serializedName: "supportedTimeGrainTypes", + environmentVariables: { + serializedName: "environmentVariables", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "GatewayPropertiesEnvironmentVariables" } }, - fillGapWithZero: { - serializedName: "fillGapWithZero", + resourceRequests: { + serializedName: "resourceRequests", type: { - name: "Boolean" + name: "Composite", + className: "GatewayResourceRequests" } }, - dimensions: { - serializedName: "dimensions", + instances: { + serializedName: "instances", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricDimension" + className: "GatewayInstance" } } } }, - sourceMdmNamespace: { - serializedName: "sourceMdmNamespace", + operatorProperties: { + serializedName: "operatorProperties", type: { - name: "String" + name: "Composite", + className: "GatewayOperatorProperties" } } } } }; -export const MetricDimension: coreClient.CompositeMapper = { +export const SsoProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDimension", + className: "SsoProperties", modelProperties: { - name: { - serializedName: "name", + scope: { + serializedName: "scope", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clientId: { + serializedName: "clientId", type: { name: "String" } }, - displayName: { - serializedName: "displayName", + clientSecret: { + serializedName: "clientSecret", type: { name: "String" } }, - toBeExportedForShoebox: { - serializedName: "toBeExportedForShoebox", + issuerUri: { + serializedName: "issuerUri", type: { - name: "Boolean" + name: "String" } } } } }; -export const AvailableRuntimeVersions: coreClient.CompositeMapper = { +export const GatewayApiMetadataProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableRuntimeVersions", + className: "GatewayApiMetadataProperties", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + title: { + serializedName: "title", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SupportedRuntimeVersion" - } - } + name: "String" } - } - } - } -}; - -export const SupportedRuntimeVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SupportedRuntimeVersion", - modelProperties: { - value: { - serializedName: "value", + }, + description: { + serializedName: "description", type: { name: "String" } }, - platform: { - serializedName: "platform", + documentation: { + serializedName: "documentation", type: { name: "String" } @@ -3682,30 +4544,9 @@ export const SupportedRuntimeVersion: 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" - } - } - } }, - nextLink: { - serializedName: "nextLink", + serverUrl: { + serializedName: "serverUrl", type: { name: "String" } @@ -3714,38 +4555,13 @@ export const ResourceSkuCollection: coreClient.CompositeMapper = { } }; -export const ResourceSku: coreClient.CompositeMapper = { +export const GatewayCorsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSku", - 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", + className: "GatewayCorsProperties", + modelProperties: { + allowedOrigins: { + serializedName: "allowedOrigins", type: { name: "Sequence", element: { @@ -3755,151 +4571,116 @@ export const ResourceSku: coreClient.CompositeMapper = { } } }, - locationInfo: { - serializedName: "locationInfo", + allowedMethods: { + serializedName: "allowedMethods", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ResourceSkuLocationInfo" + name: "String" } } } }, - restrictions: { - serializedName: "restrictions", + allowedHeaders: { + serializedName: "allowedHeaders", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ResourceSkuRestrictions" + name: "String" } } } - } - } - } -}; - -export const SkuCapacity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SkuCapacity", - modelProperties: { - minimum: { - serializedName: "minimum", - required: true, - type: { - name: "Number" - } }, - maximum: { - serializedName: "maximum", + maxAge: { + serializedName: "maxAge", type: { name: "Number" } }, - default: { - serializedName: "default", + allowCredentials: { + serializedName: "allowCredentials", type: { - name: "Number" + name: "Boolean" } }, - scaleType: { - serializedName: "scaleType", + exposedHeaders: { + serializedName: "exposedHeaders", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { +export const GatewayPropertiesEnvironmentVariables: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuLocationInfo", + className: "GatewayPropertiesEnvironmentVariables", modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - zones: { - serializedName: "zones", + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - zoneDetails: { - serializedName: "zoneDetails", + secrets: { + serializedName: "secrets", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuZoneDetails" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { +export const GatewayResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuZoneDetails", + className: "GatewayResourceRequests", modelProperties: { - name: { - serializedName: "name", + cpu: { + defaultValue: "1", + serializedName: "cpu", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - capabilities: { - serializedName: "capabilities", + memory: { + defaultValue: "2Gi", + serializedName: "memory", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCapabilities" - } - } + name: "String" } } } } }; -export const ResourceSkuCapabilities: coreClient.CompositeMapper = { +export const GatewayInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuCapabilities", + className: "GatewayInstance", modelProperties: { name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, - value: { - serializedName: "value", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } @@ -3908,80 +4689,96 @@ export const ResourceSkuCapabilities: coreClient.CompositeMapper = { } }; -export const ResourceSkuRestrictions: coreClient.CompositeMapper = { +export const GatewayOperatorProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuRestrictions", + className: "GatewayOperatorProperties", modelProperties: { - type: { - serializedName: "type", + resourceRequests: { + serializedName: "resourceRequests", type: { - name: "String" + name: "Composite", + className: "GatewayOperatorResourceRequests" } }, - values: { - serializedName: "values", + instances: { + serializedName: "instances", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "GatewayInstance" } } } - }, - restrictionInfo: { - serializedName: "restrictionInfo", + } + } + } +}; + +export const GatewayOperatorResourceRequests: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayOperatorResourceRequests", + modelProperties: { + cpu: { + serializedName: "cpu", + readOnly: true, type: { - name: "Composite", - className: "ResourceSkuRestrictionInfo" + name: "String" } }, - reasonCode: { - serializedName: "reasonCode", + memory: { + serializedName: "memory", + readOnly: true, type: { name: "String" } + }, + instanceCount: { + serializedName: "instanceCount", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { +export const GatewayResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuRestrictionInfo", + className: "GatewayResourceCollection", modelProperties: { - locations: { - serializedName: "locations", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "GatewayResource" } } } }, - zones: { - serializedName: "zones", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const GatewayProperties: coreClient.CompositeMapper = { +export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayProperties", + className: "GatewayRouteConfigProperties", modelProperties: { provisioningState: { serializedName: "provisioningState", @@ -3990,109 +4787,77 @@ export const GatewayProperties: coreClient.CompositeMapper = { name: "String" } }, - public: { - defaultValue: false, - serializedName: "public", - type: { - name: "Boolean" - } - }, - url: { - serializedName: "url", - readOnly: true, + appResourceId: { + serializedName: "appResourceId", type: { name: "String" } }, - httpsOnly: { - defaultValue: false, - serializedName: "httpsOnly", - type: { - name: "Boolean" - } - }, - ssoProperties: { - serializedName: "ssoProperties", + openApi: { + serializedName: "openApi", type: { name: "Composite", - className: "SsoProperties" + className: "GatewayRouteConfigOpenApiProperties" } }, - apiMetadataProperties: { - serializedName: "apiMetadataProperties", + protocol: { + defaultValue: "HTTP", + serializedName: "protocol", type: { - name: "Composite", - className: "GatewayApiMetadataProperties" + name: "String" } }, - corsProperties: { - serializedName: "corsProperties", + routes: { + serializedName: "routes", type: { - name: "Composite", - className: "GatewayCorsProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayApiRoute" + } + } } }, - resourceRequests: { - serializedName: "resourceRequests", + ssoEnabled: { + serializedName: "ssoEnabled", type: { - name: "Composite", - className: "GatewayResourceRequests" + name: "Boolean" } }, - instances: { - serializedName: "instances", - readOnly: true, + predicates: { + serializedName: "predicates", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "GatewayInstance" + name: "String" } } } }, - operatorProperties: { - serializedName: "operatorProperties", + filters: { + serializedName: "filters", type: { - name: "Composite", - className: "GatewayOperatorProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const SsoProperties: coreClient.CompositeMapper = { +export const GatewayRouteConfigOpenApiProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SsoProperties", + className: "GatewayRouteConfigOpenApiProperties", modelProperties: { - 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", + uri: { + serializedName: "uri", type: { name: "String" } @@ -4101,10 +4866,10 @@ export const SsoProperties: coreClient.CompositeMapper = { } }; -export const GatewayApiMetadataProperties: coreClient.CompositeMapper = { +export const GatewayApiRoute: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayApiMetadataProperties", + className: "GatewayApiRoute", modelProperties: { title: { serializedName: "title", @@ -4118,46 +4883,26 @@ export const GatewayApiMetadataProperties: coreClient.CompositeMapper = { name: "String" } }, - documentation: { - serializedName: "documentation", + uri: { + serializedName: "uri", type: { name: "String" } }, - version: { - serializedName: "version", + ssoEnabled: { + serializedName: "ssoEnabled", type: { - name: "String" + name: "Boolean" } }, - serverUrl: { - serializedName: "serverUrl", - type: { - name: "String" - } - } - } - } -}; - -export const GatewayCorsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayCorsProperties", - modelProperties: { - allowedOrigins: { - serializedName: "allowedOrigins", + tokenRelay: { + serializedName: "tokenRelay", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - allowedMethods: { - serializedName: "allowedMethods", + predicates: { + serializedName: "predicates", type: { name: "Sequence", element: { @@ -4167,8 +4912,8 @@ export const GatewayCorsProperties: coreClient.CompositeMapper = { } } }, - allowedHeaders: { - serializedName: "allowedHeaders", + filters: { + serializedName: "filters", type: { name: "Sequence", element: { @@ -4178,20 +4923,14 @@ export const GatewayCorsProperties: coreClient.CompositeMapper = { } } }, - maxAge: { - serializedName: "maxAge", + order: { + serializedName: "order", type: { name: "Number" } }, - allowCredentials: { - serializedName: "allowCredentials", - type: { - name: "Boolean" - } - }, - exposedHeaders: { - serializedName: "exposedHeaders", + tags: { + serializedName: "tags", type: { name: "Sequence", element: { @@ -4205,21 +4944,25 @@ export const GatewayCorsProperties: coreClient.CompositeMapper = { } }; -export const GatewayResourceRequests: coreClient.CompositeMapper = { +export const GatewayRouteConfigResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayResourceRequests", + className: "GatewayRouteConfigResourceCollection", modelProperties: { - cpu: { - defaultValue: "1", - serializedName: "cpu", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayRouteConfigResource" + } + } } }, - memory: { - defaultValue: "2Gi", - serializedName: "memory", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -4228,21 +4971,40 @@ export const GatewayResourceRequests: coreClient.CompositeMapper = { } }; -export const GatewayInstance: coreClient.CompositeMapper = { +export const GatewayCustomDomainProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayInstance", + className: "GatewayCustomDomainProperties", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + thumbprint: { + serializedName: "thumbprint", 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" + } + } + } }, - status: { - serializedName: "status", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -4251,16 +5013,73 @@ export const GatewayInstance: coreClient.CompositeMapper = { } }; -export const GatewayOperatorProperties: coreClient.CompositeMapper = { +export const ApiPortalProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayOperatorProperties", + className: "ApiPortalProperties", 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: "GatewayOperatorResourceRequests" + className: "ApiPortalResourceRequests" } }, instances: { @@ -4271,7 +5090,7 @@ export const GatewayOperatorProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GatewayInstance" + className: "ApiPortalInstance" } } } @@ -4280,40 +5099,56 @@ export const GatewayOperatorProperties: coreClient.CompositeMapper = { } }; -export const GatewayOperatorResourceRequests: coreClient.CompositeMapper = { +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" + } + } + } + } +}; + +export const ApiPortalInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayOperatorResourceRequests", + className: "ApiPortalInstance", modelProperties: { - cpu: { - serializedName: "cpu", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - memory: { - serializedName: "memory", + status: { + serializedName: "status", readOnly: true, type: { name: "String" } - }, - instanceCount: { - serializedName: "instanceCount", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const GatewayResourceCollection: coreClient.CompositeMapper = { +export const ApiPortalResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayResourceCollection", + className: "ApiPortalResourceCollection", modelProperties: { value: { serializedName: "value", @@ -4322,7 +5157,7 @@ export const GatewayResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GatewayResource" + className: "ApiPortalResource" } } } @@ -4337,61 +5172,67 @@ export const GatewayResourceCollection: coreClient.CompositeMapper = { } }; -export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { +export const ApiPortalCustomDomainProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayRouteConfigProperties", + className: "ApiPortalCustomDomainProperties", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - appResourceId: { - serializedName: "appResourceId", - type: { - name: "String" - } - }, - openApi: { - serializedName: "openApi", - type: { - name: "Composite", - className: "GatewayRouteConfigOpenApiProperties" - } - }, - protocol: { - defaultValue: "HTTP", - serializedName: "protocol", + thumbprint: { + serializedName: "thumbprint", type: { name: "String" } - }, - routes: { - serializedName: "routes", + } + } + } +}; + +export const ApiPortalCustomDomainResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiPortalCustomDomainResourceCollection", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "GatewayApiRoute" + className: "ApiPortalCustomDomainResource" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const GatewayRouteConfigOpenApiProperties: coreClient.CompositeMapper = { +export const ApplicationAcceleratorResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayRouteConfigOpenApiProperties", + className: "ApplicationAcceleratorResourceCollection", modelProperties: { - uri: { - serializedName: "uri", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationAcceleratorResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -4400,76 +5241,63 @@ export const GatewayRouteConfigOpenApiProperties: coreClient.CompositeMapper = { } }; -export const GatewayApiRoute: coreClient.CompositeMapper = { +export const ApplicationAcceleratorProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayApiRoute", + className: "ApplicationAcceleratorProperties", modelProperties: { - title: { - serializedName: "title", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - ssoEnabled: { - serializedName: "ssoEnabled", - type: { - name: "Boolean" - } - }, - tokenRelay: { - serializedName: "tokenRelay", - type: { - name: "Boolean" - } - }, - predicates: { - serializedName: "predicates", + components: { + serializedName: "components", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ApplicationAcceleratorComponent" } } } - }, - filters: { - serializedName: "filters", + } + } + } +}; + +export const ApplicationAcceleratorComponent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationAcceleratorComponent", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - order: { - serializedName: "order", + resourceRequests: { + serializedName: "resourceRequests", type: { - name: "Number" + name: "Composite", + className: "ApplicationAcceleratorResourceRequests" } }, - tags: { - serializedName: "tags", + instances: { + serializedName: "instances", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ApplicationAcceleratorInstance" } } } @@ -4478,40 +5306,51 @@ export const GatewayApiRoute: coreClient.CompositeMapper = { } }; -export const GatewayRouteConfigResourceCollection: coreClient.CompositeMapper = { +export const ApplicationAcceleratorResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayRouteConfigResourceCollection", + className: "ApplicationAcceleratorResourceRequests", modelProperties: { - value: { - serializedName: "value", + cpu: { + serializedName: "cpu", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayRouteConfigResource" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + memory: { + serializedName: "memory", + readOnly: true, type: { name: "String" } + }, + instanceCount: { + serializedName: "instanceCount", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const GatewayCustomDomainProperties: coreClient.CompositeMapper = { +export const ApplicationAcceleratorInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayCustomDomainProperties", + className: "ApplicationAcceleratorInstance", modelProperties: { - thumbprint: { - serializedName: "thumbprint", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } @@ -4520,10 +5359,10 @@ export const GatewayCustomDomainProperties: coreClient.CompositeMapper = { } }; -export const GatewayCustomDomainResourceCollection: coreClient.CompositeMapper = { +export const CustomizedAcceleratorResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayCustomDomainResourceCollection", + className: "CustomizedAcceleratorResourceCollection", modelProperties: { value: { serializedName: "value", @@ -4532,7 +5371,7 @@ export const GatewayCustomDomainResourceCollection: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "GatewayCustomDomainResource" + className: "CustomizedAcceleratorResource" } } } @@ -4547,10 +5386,10 @@ export const GatewayCustomDomainResourceCollection: coreClient.CompositeMapper = } }; -export const ApiPortalProperties: coreClient.CompositeMapper = { +export const CustomizedAcceleratorProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiPortalProperties", + className: "CustomizedAcceleratorProperties", modelProperties: { provisioningState: { serializedName: "provisioningState", @@ -4559,95 +5398,106 @@ export const ApiPortalProperties: coreClient.CompositeMapper = { name: "String" } }, - public: { - defaultValue: false, - serializedName: "public", + displayName: { + serializedName: "displayName", type: { - name: "Boolean" + name: "String" } }, - url: { - serializedName: "url", - readOnly: true, + description: { + serializedName: "description", type: { name: "String" } }, - httpsOnly: { - defaultValue: false, - serializedName: "httpsOnly", + iconUrl: { + serializedName: "iconUrl", type: { - name: "Boolean" + 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, + type: { + name: "String" } }, - gatewayIds: { - serializedName: "gatewayIds", + intervalInSeconds: { + serializedName: "intervalInSeconds", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - sourceUrls: { - serializedName: "sourceUrls", + branch: { + serializedName: "branch", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - ssoProperties: { - serializedName: "ssoProperties", + commit: { + serializedName: "commit", type: { - name: "Composite", - className: "SsoProperties" + name: "String" } }, - resourceRequests: { - serializedName: "resourceRequests", + gitTag: { + serializedName: "gitTag", type: { - name: "Composite", - className: "ApiPortalResourceRequests" + name: "String" } }, - instances: { - serializedName: "instances", - readOnly: true, + authSetting: { + serializedName: "authSetting", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiPortalInstance" - } - } + name: "Composite", + className: "AcceleratorAuthSetting" } } } } }; -export const ApiPortalResourceRequests: coreClient.CompositeMapper = { +export const AcceleratorAuthSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiPortalResourceRequests", + className: "AcceleratorAuthSetting", + uberParent: "AcceleratorAuthSetting", + polymorphicDiscriminator: { + serializedName: "authType", + clientName: "authType" + }, modelProperties: { - cpu: { - serializedName: "cpu", - readOnly: true, - type: { - name: "String" - } - }, - memory: { - serializedName: "memory", - readOnly: true, + authType: { + serializedName: "authType", + required: true, type: { name: "String" } @@ -4656,21 +5506,20 @@ export const ApiPortalResourceRequests: coreClient.CompositeMapper = { } }; -export const ApiPortalInstance: coreClient.CompositeMapper = { +export const CustomizedAcceleratorValidateResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiPortalInstance", + className: "CustomizedAcceleratorValidateResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + state: { + defaultValue: "Valid", + serializedName: "state", type: { name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + errorMessage: { + serializedName: "errorMessage", type: { name: "String" } @@ -4679,10 +5528,10 @@ export const ApiPortalInstance: coreClient.CompositeMapper = { } }; -export const ApiPortalResourceCollection: coreClient.CompositeMapper = { +export const PredefinedAcceleratorResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiPortalResourceCollection", + className: "PredefinedAcceleratorResourceCollection", modelProperties: { value: { serializedName: "value", @@ -4691,7 +5540,7 @@ export const ApiPortalResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiPortalResource" + className: "PredefinedAcceleratorResource" } } } @@ -4706,40 +5555,54 @@ export const ApiPortalResourceCollection: coreClient.CompositeMapper = { } }; -export const ApiPortalCustomDomainProperties: coreClient.CompositeMapper = { +export const PredefinedAcceleratorProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiPortalCustomDomainProperties", + className: "PredefinedAcceleratorProperties", 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", + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + }, + iconUrl: { + serializedName: "iconUrl", + readOnly: true, + type: { + name: "String" + } + }, + acceleratorTags: { + serializedName: "acceleratorTags", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ApiPortalCustomDomainResource" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + state: { + defaultValue: "Enabled", + serializedName: "state", type: { name: "String" } @@ -5090,6 +5953,79 @@ 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", @@ -5165,6 +6101,40 @@ 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", @@ -5539,6 +6509,78 @@ 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: { @@ -5623,6 +6665,7 @@ export let discriminators = { CertificateProperties: CertificateProperties, UserSourceInfo: UserSourceInfo, ProbeAction: ProbeAction, + AcceleratorAuthSetting: AcceleratorAuthSetting, "CustomPersistentDiskProperties.AzureFileVolume": AzureFileVolume, "StorageProperties.StorageAccount": StorageAccount, "CertificateProperties.KeyVaultCertificate": KeyVaultCertificateProperties, @@ -5633,6 +6676,9 @@ 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 3dee45f96d67..c87db12761d4 100644 --- a/sdk/appplatform/arm-appplatform/src/models/parameters.ts +++ b/sdk/appplatform/arm-appplatform/src/models/parameters.ts @@ -19,6 +19,8 @@ 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, @@ -38,7 +40,10 @@ import { GatewayRouteConfigResource as GatewayRouteConfigResourceMapper, GatewayCustomDomainResource as GatewayCustomDomainResourceMapper, ApiPortalResource as ApiPortalResourceMapper, - ApiPortalCustomDomainResource as ApiPortalCustomDomainResourceMapper + ApiPortalCustomDomainResource as ApiPortalCustomDomainResourceMapper, + ApplicationAcceleratorResource as ApplicationAcceleratorResourceMapper, + CustomizedAcceleratorResource as CustomizedAcceleratorResourceMapper, + CustomizedAcceleratorProperties as CustomizedAcceleratorPropertiesMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -68,7 +73,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-09-01-preview", + defaultValue: "2022-11-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -202,6 +207,38 @@ 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: { @@ -514,3 +551,51 @@ 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 new file mode 100644 index 000000000000..be86e541acc3 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts @@ -0,0 +1,482 @@ +/* + * 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 { 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: () => { + return this.listPagingPage(resourceGroupName, serviceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + options?: ApplicationAcceleratorsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, serviceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + 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 + } + }, + queryParameters: [Parameters.apiVersion], + 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 new file mode 100644 index 000000000000..947ee25c4b53 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts @@ -0,0 +1,482 @@ +/* + * 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 { 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: () => { + return this.listPagingPage(resourceGroupName, serviceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + options?: ApplicationLiveViewsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, serviceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + 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 + } + }, + queryParameters: [Parameters.apiVersion], + 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 new file mode 100644 index 000000000000..0cbd7c2edaa7 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts @@ -0,0 +1,604 @@ +/* + * 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 { 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: () => { + return this.listPagingPage( + resourceGroupName, + serviceName, + applicationAcceleratorName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + applicationAcceleratorName: string, + options?: CustomizedAcceleratorsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + serviceName, + applicationAcceleratorName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + applicationAcceleratorName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + 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 + } + }, + queryParameters: [Parameters.apiVersion], + 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 new file mode 100644 index 000000000000..352b9935d874 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts @@ -0,0 +1,482 @@ +/* + * 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 { 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: () => { + return this.listPagingPage(resourceGroupName, serviceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + options?: DevToolPortalsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, serviceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + 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 + } + }, + queryParameters: [Parameters.apiVersion], + 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 8f178b9cc36a..e5111746be65 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts @@ -23,6 +23,8 @@ import { GatewaysCreateOrUpdateOptionalParams, GatewaysCreateOrUpdateResponse, GatewaysDeleteOptionalParams, + GatewaysListEnvSecretsOptionalParams, + GatewaysListEnvSecretsResponse, GatewaysListResponse, CustomDomainValidatePayload, GatewaysValidateDomainOptionalParams, @@ -311,6 +313,26 @@ 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 @@ -455,6 +477,31 @@ 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 74a7d0c1f6fa..c9b971fc027b 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/index.ts @@ -10,6 +10,8 @@ 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"; @@ -29,3 +31,6 @@ 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 new file mode 100644 index 000000000000..091759d64fdc --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts @@ -0,0 +1,521 @@ +/* + * 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 { 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: () => { + return this.listPagingPage( + resourceGroupName, + serviceName, + applicationAcceleratorName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + applicationAcceleratorName: string, + options?: PredefinedAcceleratorsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + serviceName, + applicationAcceleratorName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + applicationAcceleratorName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + 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 + } + }, + queryParameters: [Parameters.apiVersion], + 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 new file mode 100644 index 000000000000..e214f09c687b --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts @@ -0,0 +1,115 @@ +/* + * 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 new file mode 100644 index 000000000000..65a8cbcfcaac --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts @@ -0,0 +1,115 @@ +/* + * 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 new file mode 100644 index 000000000000..d69cbc5a74b6 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts @@ -0,0 +1,148 @@ +/* + * 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 new file mode 100644 index 000000000000..2864c8609244 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts @@ -0,0 +1,115 @@ +/* + * 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 9f95eea1bc7a..977cdb00f61b 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts @@ -16,6 +16,8 @@ import { GatewaysCreateOrUpdateOptionalParams, GatewaysCreateOrUpdateResponse, GatewaysDeleteOptionalParams, + GatewaysListEnvSecretsOptionalParams, + GatewaysListEnvSecretsResponse, CustomDomainValidatePayload, GatewaysValidateDomainOptionalParams, GatewaysValidateDomainResponse @@ -115,6 +117,20 @@ 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 74a7d0c1f6fa..c9b971fc027b 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts @@ -10,6 +10,8 @@ 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"; @@ -29,3 +31,6 @@ 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 new file mode 100644 index 000000000000..3a287e95feb1 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts @@ -0,0 +1,117 @@ +/* + * 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"