diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 9f3fbacf7584..3b198fbc5f82 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10567,7 +10567,7 @@ packages: dev: false file:projects/arm-appplatform.tgz: - resolution: {integrity: sha512-Yi+mt51sh8fmOKAR5sKV2YuuvmKkx46Rm/+C1MYcc5K8G/vgMc1ot2RxqjQxcmqCYXKrKU6QIid9dDMbQm8iFA==, tarball: file:projects/arm-appplatform.tgz} + resolution: {integrity: sha512-3D9Wbh/fT78nRerX8kwHk9ocuu9e4bGH3C8XmKuPNVZhIHPVpANASJ2ZShW4cCfvbdq5JnsiePPlRLZaJ7AFOQ==, tarball: file:projects/arm-appplatform.tgz} name: '@rush-temp/arm-appplatform' version: 0.0.0 dependencies: @@ -10575,13 +10575,15 @@ packages: '@azure/identity': 3.4.1 '@microsoft/api-extractor': 7.38.3(@types/node@18.19.2) '@types/chai': 4.3.11 + '@types/mocha': 10.0.6 '@types/node': 18.19.2 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.3.1 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.2.0 - rimraf: 3.0.2 + rimraf: 5.0.5 ts-node: 10.9.1(@types/node@18.19.2)(typescript@5.2.2) tslib: 2.6.2 typescript: 5.2.2 @@ -17252,7 +17254,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-qQLlASe7L1wkWCK0onmD56p8UV+w6TvtdOH+MkMPugjrUMQAgbyCUZLm6eKlnjEYGLwwjmRuv034XG8PbRc9Ww==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-gFQKfmG3QlSOg3UWSdUHqF0HxP2esDhV+uGXU3Xf8qltBnMYowGEPdVi91jg//H3HKl2CRA1mn6bjEZ2w76Ppg==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: diff --git a/sdk/appplatform/arm-appplatform/CHANGELOG.md b/sdk/appplatform/arm-appplatform/CHANGELOG.md index e30d91afca01..7a5ddbc220e4 100644 --- a/sdk/appplatform/arm-appplatform/CHANGELOG.md +++ b/sdk/appplatform/arm-appplatform/CHANGELOG.md @@ -1,26 +1,18 @@ # Release History - -## 3.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 3.0.0-beta.1 (2023-03-28) + +## 3.0.0-beta.2 (2023-12-08) **Features** - Added operation group ApiPortalCustomDomains - Added operation group ApiPortals + - Added operation group Apms - Added operation group ApplicationAccelerators - Added operation group ApplicationLiveViews - Added operation group ContainerRegistries - Added operation group CustomizedAccelerators - Added operation group DevToolPortals + - Added operation group EurekaServers - Added operation group GatewayCustomDomains - Added operation group GatewayRouteConfigs - Added operation group Gateways @@ -32,15 +24,26 @@ - Added operation BuildServiceOperations.beginCreateOrUpdateAndWait - Added operation BuildServiceOperations.beginDeleteBuild - Added operation BuildServiceOperations.beginDeleteBuildAndWait + - Added operation ConfigurationServices.beginValidateResource + - Added operation ConfigurationServices.beginValidateResourceAndWait - Added operation Deployments.beginDisableRemoteDebugging - Added operation Deployments.beginDisableRemoteDebuggingAndWait - Added operation Deployments.beginEnableRemoteDebugging - Added operation Deployments.beginEnableRemoteDebuggingAndWait - Added operation Deployments.getRemoteDebuggingConfig + - Added operation Services.beginDisableApmGlobally + - Added operation Services.beginDisableApmGloballyAndWait + - Added operation Services.beginEnableApmGlobally + - Added operation Services.beginEnableApmGloballyAndWait + - Added operation Services.beginFlushVnetDnsSetting + - Added operation Services.beginFlushVnetDnsSettingAndWait - Added operation Services.beginStart - Added operation Services.beginStartAndWait - Added operation Services.beginStop - Added operation Services.beginStopAndWait + - Added operation Services.listGloballyEnabledApms + - Added operation Services.listSupportedApmTypes + - Added operation Services.listSupportedServerVersions - Added Interface AcceleratorAuthSetting - Added Interface AcceleratorBasicAuthSetting - Added Interface AcceleratorGitRepository @@ -65,6 +68,18 @@ - Added Interface ApiPortalsListNextOptionalParams - Added Interface ApiPortalsListOptionalParams - Added Interface ApiPortalsValidateDomainOptionalParams + - Added Interface ApmProperties + - Added Interface ApmReference + - Added Interface ApmResource + - Added Interface ApmResourceCollection + - Added Interface ApmsCreateOrUpdateOptionalParams + - Added Interface ApmsDeleteHeaders + - Added Interface ApmsDeleteOptionalParams + - Added Interface ApmSecretKeys + - Added Interface ApmsGetOptionalParams + - Added Interface ApmsListNextOptionalParams + - Added Interface ApmsListOptionalParams + - Added Interface ApmsListSecretKeysOptionalParams - Added Interface ApplicationAcceleratorComponent - Added Interface ApplicationAcceleratorInstance - Added Interface ApplicationAcceleratorProperties @@ -105,19 +120,27 @@ - Added Interface BuildServiceCreateOrUpdateOptionalParams - Added Interface BuildServiceDeleteBuildHeaders - Added Interface BuildServiceDeleteBuildOptionalParams + - Added Interface CertificateReference - Added Interface CertificateResource - Added Interface ConfigServerResource - Added Interface ConfigurationServiceResource + - Added Interface ConfigurationServicesValidateResourceHeaders + - Added Interface ConfigurationServicesValidateResourceOptionalParams - Added Interface ContainerProbeSettings - Added Interface ContainerRegistriesCreateOrUpdateOptionalParams + - Added Interface ContainerRegistriesDeleteHeaders + - Added Interface ContainerRegistriesDeleteOptionalParams - Added Interface ContainerRegistriesGetOptionalParams - Added Interface ContainerRegistriesListNextOptionalParams - Added Interface ContainerRegistriesListOptionalParams + - Added Interface ContainerRegistriesValidateHeaders + - Added Interface ContainerRegistriesValidateOptionalParams - Added Interface ContainerRegistryBasicCredentials - Added Interface ContainerRegistryCredentials - Added Interface ContainerRegistryProperties - Added Interface ContainerRegistryResource - Added Interface ContainerRegistryResourceCollection + - Added Interface ContainerRegistryValidateResult - Added Interface ContentCertificateProperties - Added Interface CustomContainer - Added Interface CustomContainerUserSourceInfo @@ -140,6 +163,7 @@ - Added Interface DeploymentsDisableRemoteDebuggingOptionalParams - Added Interface DeploymentsEnableRemoteDebuggingOptionalParams - Added Interface DeploymentsGetRemoteDebuggingConfigOptionalParams + - Added Interface DevToolPortalComponent - Added Interface DevToolPortalFeatureDetail - Added Interface DevToolPortalFeatureSettings - Added Interface DevToolPortalInstance @@ -153,6 +177,15 @@ - Added Interface DevToolPortalsListNextOptionalParams - Added Interface DevToolPortalsListOptionalParams - Added Interface DevToolPortalSsoProperties + - Added Interface EurekaServerProperties + - Added Interface EurekaServerResource + - Added Interface EurekaServerResourceCollection + - Added Interface EurekaServersGetOptionalParams + - Added Interface EurekaServersListOptionalParams + - Added Interface EurekaServersUpdatePatchHeaders + - Added Interface EurekaServersUpdatePatchOptionalParams + - Added Interface EurekaServersUpdatePutHeaders + - Added Interface EurekaServersUpdatePutOptionalParams - Added Interface ExecAction - Added Interface GatewayApiMetadataProperties - Added Interface GatewayApiRoute @@ -166,6 +199,8 @@ - Added Interface GatewayCustomDomainsListNextOptionalParams - Added Interface GatewayCustomDomainsListOptionalParams - Added Interface GatewayInstance + - Added Interface GatewayLocalResponseCachePerInstanceProperties + - Added Interface GatewayLocalResponseCachePerRouteProperties - Added Interface GatewayOperatorProperties - Added Interface GatewayOperatorResourceRequests - Added Interface GatewayProperties @@ -174,6 +209,7 @@ - Added Interface GatewayResource - Added Interface GatewayResourceCollection - Added Interface GatewayResourceRequests + - Added Interface GatewayResponseCacheProperties - Added Interface GatewayRouteConfigOpenApiProperties - Added Interface GatewayRouteConfigProperties - Added Interface GatewayRouteConfigResource @@ -194,6 +230,7 @@ - Added Interface GatewaysUpdateCapacityHeaders - Added Interface GatewaysUpdateCapacityOptionalParams - Added Interface GatewaysValidateDomainOptionalParams + - Added Interface GloballyEnabledApms - Added Interface HttpGetAction - Added Interface HttpScaleRule - Added Interface ImageRegistryCredential @@ -202,6 +239,7 @@ - Added Interface IngressSettingsClientAuth - Added Interface JarUploadedUserSourceInfo - Added Interface KeyVaultCertificateProperties + - Added Interface MaintenanceScheduleConfiguration - Added Interface MarketplaceResource - Added Interface MonitoringSettingResource - Added Interface NetCoreZipUploadedUserSourceInfo @@ -225,6 +263,17 @@ - Added Interface Secret - Added Interface ServiceRegistryResource - Added Interface ServiceResource + - Added Interface ServicesDisableApmGloballyHeaders + - Added Interface ServicesDisableApmGloballyOptionalParams + - Added Interface ServicesEnableApmGloballyHeaders + - Added Interface ServicesEnableApmGloballyOptionalParams + - Added Interface ServicesFlushVnetDnsSettingHeaders + - Added Interface ServicesFlushVnetDnsSettingOptionalParams + - Added Interface ServicesListGloballyEnabledApmsOptionalParams + - Added Interface ServicesListSupportedApmTypesNextOptionalParams + - Added Interface ServicesListSupportedApmTypesOptionalParams + - Added Interface ServicesListSupportedServerVersionsNextOptionalParams + - Added Interface ServicesListSupportedServerVersionsOptionalParams - Added Interface ServicesStartOptionalParams - Added Interface ServicesStopOptionalParams - Added Interface ServiceVNetAddons @@ -240,14 +289,21 @@ - Added Interface StoragesGetOptionalParams - Added Interface StoragesListNextOptionalParams - Added Interface StoragesListOptionalParams + - Added Interface SupportedApmType + - Added Interface SupportedApmTypes - Added Interface SupportedBuildpackResource + - Added Interface SupportedServerVersion + - Added Interface SupportedServerVersions - Added Interface SupportedStackResource - Added Interface TcpScaleRule - Added Interface TCPSocketAction - Added Interface TrackedResource - Added Interface UploadedUserSourceInfo - Added Interface UserAssignedManagedIdentity + - Added Interface WarUploadedUserSourceInfo + - Added Interface WeeklyMaintenanceScheduleConfiguration - Added Type Alias AcceleratorAuthSettingUnion + - Added Type Alias ApiPortalApiTryOutEnabledState - Added Type Alias ApiPortalCustomDomainsCreateOrUpdateResponse - Added Type Alias ApiPortalCustomDomainsGetResponse - Added Type Alias ApiPortalCustomDomainsListNextResponse @@ -258,6 +314,12 @@ - Added Type Alias ApiPortalsListNextResponse - Added Type Alias ApiPortalsListResponse - Added Type Alias ApiPortalsValidateDomainResponse + - Added Type Alias ApmProvisioningState + - Added Type Alias ApmsCreateOrUpdateResponse + - Added Type Alias ApmsGetResponse + - Added Type Alias ApmsListNextResponse + - Added Type Alias ApmsListResponse + - Added Type Alias ApmsListSecretKeysResponse - Added Type Alias ApmType - Added Type Alias ApplicationAcceleratorProvisioningState - Added Type Alias ApplicationAcceleratorsCreateOrUpdateResponse @@ -275,10 +337,14 @@ - Added Type Alias BuildServiceBuilderListDeploymentsResponse - Added Type Alias BuildServiceCreateOrUpdateResponse - Added Type Alias CertificateResourceProvisioningState + - Added Type Alias ConfigServerEnabledState + - Added Type Alias ConfigurationServiceGeneration + - Added Type Alias ConfigurationServicesValidateResourceResponse - Added Type Alias ContainerRegistriesCreateOrUpdateResponse - Added Type Alias ContainerRegistriesGetResponse - Added Type Alias ContainerRegistriesListNextResponse - Added Type Alias ContainerRegistriesListResponse + - Added Type Alias ContainerRegistriesValidateResponse - Added Type Alias ContainerRegistryCredentialsUnion - Added Type Alias ContainerRegistryProvisioningState - Added Type Alias CustomDomainResourceProvisioningState @@ -288,6 +354,7 @@ - Added Type Alias CustomizedAcceleratorsListNextResponse - Added Type Alias CustomizedAcceleratorsListResponse - Added Type Alias CustomizedAcceleratorsValidateResponse + - Added Type Alias CustomizedAcceleratorType - Added Type Alias CustomizedAcceleratorValidateResultState - Added Type Alias CustomPersistentDiskPropertiesUnion - Added Type Alias DeploymentsDisableRemoteDebuggingResponse @@ -299,12 +366,20 @@ - Added Type Alias DevToolPortalsGetResponse - Added Type Alias DevToolPortalsListNextResponse - Added Type Alias DevToolPortalsListResponse + - Added Type Alias EurekaServerEnabledState + - Added Type Alias EurekaServersGetResponse + - Added Type Alias EurekaServersListResponse + - Added Type Alias EurekaServerState + - Added Type Alias EurekaServersUpdatePatchResponse + - Added Type Alias EurekaServersUpdatePutResponse + - Added Type Alias Frequency - Added Type Alias GatewayCertificateVerification - Added Type Alias GatewayCustomDomainsCreateOrUpdateResponse - Added Type Alias GatewayCustomDomainsGetResponse - Added Type Alias GatewayCustomDomainsListNextResponse - Added Type Alias GatewayCustomDomainsListResponse - Added Type Alias GatewayProvisioningState + - Added Type Alias GatewayResponseCachePropertiesUnion - Added Type Alias GatewayRouteConfigProtocol - Added Type Alias GatewayRouteConfigsCreateOrUpdateResponse - Added Type Alias GatewayRouteConfigsGetResponse @@ -317,7 +392,10 @@ - Added Type Alias GatewaysListResponse - Added Type Alias GatewaysUpdateCapacityResponse - Added Type Alias GatewaysValidateDomainResponse + - Added Type Alias GitImplementation - Added Type Alias HttpSchemeType + - Added Type Alias KeyVaultCertificateAutoSync + - Added Type Alias MaintenanceScheduleConfigurationUnion - Added Type Alias PowerState - Added Type Alias PredefinedAcceleratorProvisioningState - Added Type Alias PredefinedAcceleratorsGetResponse @@ -326,6 +404,11 @@ - Added Type Alias PredefinedAcceleratorState - Added Type Alias ProbeActionType - Added Type Alias ProbeActionUnion + - Added Type Alias ServicesListGloballyEnabledApmsResponse + - Added Type Alias ServicesListSupportedApmTypesNextResponse + - Added Type Alias ServicesListSupportedApmTypesResponse + - Added Type Alias ServicesListSupportedServerVersionsNextResponse + - Added Type Alias ServicesListSupportedServerVersionsResponse - Added Type Alias SessionAffinity - Added Type Alias StoragePropertiesUnion - Added Type Alias StoragesCreateOrUpdateResponse @@ -333,11 +416,17 @@ - Added Type Alias StoragesListNextResponse - Added Type Alias StoragesListResponse - Added Type Alias StorageType + - Added Type Alias TriggeredBuildResultProvisioningState - Added Type Alias Type + - Added Type Alias WeekDay - Interface AppResourceProperties has a new optional parameter customPersistentDisks + - Interface AppResourceProperties has a new optional parameter disableTestEndpointAuth - Interface AppResourceProperties has a new optional parameter ingressSettings - Interface AppResourceProperties has a new optional parameter secrets - Interface AppResourceProperties has a new optional parameter vnetAddons + - Interface AppResourceProperties has a new optional parameter workloadProfileName + - Interface BuildProperties has a new optional parameter apms + - Interface BuildProperties has a new optional parameter certificates - Interface BuildProperties has a new optional parameter resourceRequests - Interface BuildResultProperties has a new optional parameter error - Interface BuildResultProperties has a new optional parameter image @@ -346,51 +435,79 @@ - Interface BuildStageProperties has a new optional parameter reason - Interface CertificateProperties has a new optional parameter provisioningState - Interface ClusterResourceProperties has a new optional parameter infraResourceGroup + - Interface ClusterResourceProperties has a new optional parameter maintenanceScheduleConfiguration - Interface ClusterResourceProperties has a new optional parameter managedEnvironmentId - Interface ClusterResourceProperties has a new optional parameter marketplaceResource - Interface ClusterResourceProperties has a new optional parameter powerState - Interface ClusterResourceProperties has a new optional parameter vnetAddons + - Interface ConfigServerProperties has a new optional parameter enabledState + - Interface ConfigurationServiceGitRepository has a new optional parameter caCertResourceId + - Interface ConfigurationServiceGitRepository has a new optional parameter gitImplementation + - Interface ConfigurationServiceProperties has a new optional parameter generation + - Interface ConfigurationServiceSettings has a new optional parameter refreshIntervalInSeconds - Interface CustomDomainProperties has a new optional parameter provisioningState + - Interface DeploymentSettings has a new optional parameter apms - Interface DeploymentSettings has a new optional parameter containerProbeSettings - Interface DeploymentSettings has a new optional parameter livenessProbe - Interface DeploymentSettings has a new optional parameter readinessProbe - Interface DeploymentSettings has a new optional parameter scale - Interface DeploymentSettings has a new optional parameter startupProbe - Interface DeploymentSettings has a new optional parameter terminationGracePeriodSeconds + - Interface DeploymentsListForClusterOptionalParams has a new optional parameter expand + - Interface DeploymentsListOptionalParams has a new optional parameter expand - Interface ManagedIdentityProperties has a new optional parameter userAssignedIdentities - Interface NetworkProfile has a new optional parameter ingressConfig - Interface NetworkProfile has a new optional parameter outboundType - - Type of parameter type of interface UserSourceInfo is changed from "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" to "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" | "Container" + - Interface TriggeredBuildResult has a new optional parameter image + - Interface TriggeredBuildResult has a new optional parameter lastTransitionReason + - Interface TriggeredBuildResult has a new optional parameter lastTransitionStatus + - Interface TriggeredBuildResult has a new optional parameter lastTransitionTime + - Interface TriggeredBuildResult has a new optional parameter provisioningState + - Type of parameter type of interface UserSourceInfo is changed from "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" to "UploadedUserSourceInfo" | "Jar" | "War" | "Source" | "NetCoreZip" | "BuildResult" | "Container" + - Added Enum KnownApiPortalApiTryOutEnabledState - Added Enum KnownApiPortalProvisioningState + - Added Enum KnownApmProvisioningState - Added Enum KnownApmType - Added Enum KnownApplicationAcceleratorProvisioningState - Added Enum KnownApplicationLiveViewProvisioningState - Added Enum KnownBackendProtocol - Added Enum KnownCertificateResourceProvisioningState + - Added Enum KnownConfigServerEnabledState + - Added Enum KnownConfigurationServiceGeneration - Added Enum KnownContainerRegistryProvisioningState - Added Enum KnownCustomDomainResourceProvisioningState - Added Enum KnownCustomizedAcceleratorProvisioningState + - Added Enum KnownCustomizedAcceleratorType - Added Enum KnownCustomizedAcceleratorValidateResultState - Added Enum KnownDevToolPortalFeatureState - Added Enum KnownDevToolPortalProvisioningState + - Added Enum KnownEurekaServerEnabledState + - Added Enum KnownEurekaServerState + - Added Enum KnownFrequency - Added Enum KnownGatewayCertificateVerification - Added Enum KnownGatewayProvisioningState - Added Enum KnownGatewayRouteConfigProtocol + - Added Enum KnownGitImplementation - Added Enum KnownHttpSchemeType + - Added Enum KnownKeyVaultCertificateAutoSync - Added Enum KnownPowerState - Added Enum KnownPredefinedAcceleratorProvisioningState - Added Enum KnownPredefinedAcceleratorState - Added Enum KnownProbeActionType - Added Enum KnownSessionAffinity - Added Enum KnownStorageType + - Added Enum KnownTriggeredBuildResultProvisioningState - Added Enum KnownType + - Added Enum KnownWeekDay - Enum KnownBindingType has a new value CACertificates + - Enum KnownSupportedRuntimeValue has a new value Java21 - Added function getContinuationToken - - Interface DeploymentsListForClusterNextOptionalParams no longer has parameter version - - Interface DeploymentsListNextOptionalParams no longer has parameter version **Breaking Changes** + - Class AppPlatformManagementClient has a new signature + - Interface DeploymentsListForClusterNextOptionalParams no longer has parameter version + - Interface DeploymentsListNextOptionalParams no longer has parameter version - Type of parameter addonConfigs of interface AppResourceProperties is changed from { [propertyName: string]: { [propertyName: string]: Record; @@ -420,4 +537,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/appplatform/arm-appplatform/_meta.json b/sdk/appplatform/arm-appplatform/_meta.json index 6fd032db7c33..e2d7f31166eb 100644 --- a/sdk/appplatform/arm-appplatform/_meta.json +++ b/sdk/appplatform/arm-appplatform/_meta.json @@ -1,8 +1,8 @@ { - "commit": "7dc97858c4e1becc2a5d6517495c37b2bbc606df", + "commit": "4ba336aa1c0487877e2a8c1fbe932d361d16ba1b", "readme": "specification/appplatform/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appplatform\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.10" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json index afab9a875633..eea982a1bb60 100644 --- a/sdk/appplatform/arm-appplatform/package.json +++ b/sdk/appplatform/arm-appplatform/package.json @@ -8,12 +8,12 @@ "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -32,17 +32,19 @@ "mkdirp": "^2.1.2", "typescript": "~5.2.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^3.3.0", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", "ts-node": "^10.0.0" }, "repository": { @@ -77,7 +79,7 @@ "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -105,13 +107,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform" +} \ 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 e6d4f151e6aa..10914d68f135 100644 --- a/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md +++ b/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md @@ -33,6 +33,7 @@ export interface AcceleratorGitRepository { commit?: string; gitTag?: string; intervalInSeconds?: number; + subPath?: string; url: string; } @@ -58,6 +59,9 @@ export interface ActiveDeploymentCollection { activeDeploymentNames?: string[]; } +// @public +export type ApiPortalApiTryOutEnabledState = string; + // @public export interface ApiPortalCustomDomainProperties { thumbprint?: string; @@ -128,6 +132,7 @@ export interface ApiPortalInstance { // @public export interface ApiPortalProperties { + apiTryOutEnabledState?: ApiPortalApiTryOutEnabledState; gatewayIds?: string[]; httpsOnly?: boolean; readonly instances?: ApiPortalInstance[]; @@ -214,6 +219,102 @@ export interface ApiPortalsValidateDomainOptionalParams extends coreClient.Opera // @public export type ApiPortalsValidateDomainResponse = CustomDomainValidateResult; +// @public +export interface ApmProperties { + properties?: { + [propertyName: string]: string; + }; + readonly provisioningState?: ApmProvisioningState; + secrets?: { + [propertyName: string]: string; + }; + type: string; +} + +// @public +export type ApmProvisioningState = string; + +// @public +export interface ApmReference { + resourceId: string; +} + +// @public +export interface ApmResource extends ProxyResource { + properties?: ApmProperties; +} + +// @public +export interface ApmResourceCollection { + nextLink?: string; + value?: ApmResource[]; +} + +// @public +export interface Apms { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apmName: string, apmResource: ApmResource, options?: ApmsCreateOrUpdateOptionalParams): Promise, ApmsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apmName: string, apmResource: ApmResource, options?: ApmsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, apmName: string, options?: ApmsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, apmName: string, options?: ApmsDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apmName: string, options?: ApmsGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, options?: ApmsListOptionalParams): PagedAsyncIterableIterator; + listSecretKeys(resourceGroupName: string, serviceName: string, apmName: string, options?: ApmsListSecretKeysOptionalParams): Promise; +} + +// @public +export interface ApmsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApmsCreateOrUpdateResponse = ApmResource; + +// @public +export interface ApmsDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ApmsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ApmSecretKeys { + value?: string[]; +} + +// @public +export interface ApmsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApmsGetResponse = ApmResource; + +// @public +export interface ApmsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApmsListNextResponse = ApmResourceCollection; + +// @public +export interface ApmsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApmsListResponse = ApmResourceCollection; + +// @public +export interface ApmsListSecretKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApmsListSecretKeysResponse = ApmSecretKeys; + // @public export type ApmType = string; @@ -401,6 +502,7 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AppPlatformManagementClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: AppPlatformManagementClientOptionalParams); // (undocumented) apiPortalCustomDomains: ApiPortalCustomDomains; // (undocumented) @@ -408,6 +510,8 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) + apms: Apms; + // (undocumented) applicationAccelerators: ApplicationAccelerators; // (undocumented) applicationLiveViews: ApplicationLiveViews; @@ -440,6 +544,8 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) devToolPortals: DevToolPortals; // (undocumented) + eurekaServers: EurekaServers; + // (undocumented) gatewayCustomDomains: GatewayCustomDomains; // (undocumented) gatewayRouteConfigs: GatewayRouteConfigs; @@ -462,7 +568,7 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) storages: Storages; // (undocumented) - subscriptionId: string; + subscriptionId?: string; } // @public @@ -491,6 +597,7 @@ export interface AppResourceProperties { [propertyName: string]: Record; }; customPersistentDisks?: CustomPersistentDiskResource[]; + disableTestEndpointAuth?: boolean; enableEndToEndTLS?: boolean; readonly fqdn?: string; httpsOnly?: boolean; @@ -503,6 +610,7 @@ export interface AppResourceProperties { temporaryDisk?: TemporaryDisk; readonly url?: string; vnetAddons?: AppVNetAddons; + workloadProfileName?: string; } // @public @@ -842,7 +950,9 @@ export interface BuildpacksGroupProperties { // @public export interface BuildProperties { agentPool?: string; + apms?: ApmReference[]; builder?: string; + certificates?: CertificateReference[]; env?: { [propertyName: string]: string; }; @@ -1218,6 +1328,11 @@ export interface CertificateProperties { // @public (undocumented) export type CertificatePropertiesUnion = CertificateProperties | KeyVaultCertificateProperties | ContentCertificateProperties; +// @public +export interface CertificateReference { + resourceId: string; +} + // @public export interface CertificateResource extends ProxyResource { properties?: CertificatePropertiesUnion; @@ -1295,6 +1410,7 @@ export interface CloudErrorBody { export interface ClusterResourceProperties { readonly fqdn?: string; infraResourceGroup?: string; + maintenanceScheduleConfiguration?: MaintenanceScheduleConfigurationUnion; managedEnvironmentId?: string; marketplaceResource?: MarketplaceResource; networkProfile?: NetworkProfile; @@ -1307,6 +1423,9 @@ export interface ClusterResourceProperties { zoneRedundant?: boolean; } +// @public +export type ConfigServerEnabledState = string; + // @public export interface ConfigServerGitProperty { hostKey?: string; @@ -1324,6 +1443,7 @@ export interface ConfigServerGitProperty { // @public export interface ConfigServerProperties { configServer?: ConfigServerSettings; + enabledState?: ConfigServerEnabledState; error?: ErrorModel; readonly provisioningState?: ConfigServerState; } @@ -1399,6 +1519,9 @@ export interface ConfigServersValidateOptionalParams extends coreClient.Operatio // @public export type ConfigServersValidateResponse = ConfigServerSettingsValidateResult; +// @public +export type ConfigurationServiceGeneration = string; + // @public export interface ConfigurationServiceGitProperty { repositories?: ConfigurationServiceGitRepository[]; @@ -1412,6 +1535,8 @@ export interface ConfigurationServiceGitPropertyValidateResult { // @public export interface ConfigurationServiceGitRepository { + caCertResourceId?: string; + gitImplementation?: GitImplementation; hostKey?: string; hostKeyAlgorithm?: string; label: string; @@ -1433,6 +1558,7 @@ export interface ConfigurationServiceInstance { // @public export interface ConfigurationServiceProperties { + generation?: ConfigurationServiceGeneration; readonly instances?: ConfigurationServiceInstance[]; readonly provisioningState?: ConfigurationServiceProvisioningState; readonly resourceRequests?: ConfigurationServiceResourceRequests; @@ -1468,6 +1594,8 @@ export interface ConfigurationServices { beginDeleteAndWait(resourceGroupName: string, serviceName: string, configurationServiceName: string, options?: ConfigurationServicesDeleteOptionalParams): Promise; beginValidate(resourceGroupName: string, serviceName: string, configurationServiceName: string, settings: ConfigurationServiceSettings, options?: ConfigurationServicesValidateOptionalParams): Promise, ConfigurationServicesValidateResponse>>; beginValidateAndWait(resourceGroupName: string, serviceName: string, configurationServiceName: string, settings: ConfigurationServiceSettings, options?: ConfigurationServicesValidateOptionalParams): Promise; + beginValidateResource(resourceGroupName: string, serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, options?: ConfigurationServicesValidateResourceOptionalParams): Promise, ConfigurationServicesValidateResourceResponse>>; + beginValidateResourceAndWait(resourceGroupName: string, serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, options?: ConfigurationServicesValidateResourceOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, configurationServiceName: string, options?: ConfigurationServicesGetOptionalParams): Promise; list(resourceGroupName: string, serviceName: string, options?: ConfigurationServicesListOptionalParams): PagedAsyncIterableIterator; } @@ -1490,6 +1618,7 @@ export interface ConfigurationServicesDeleteOptionalParams extends coreClient.Op // @public export interface ConfigurationServiceSettings { gitProperty?: ConfigurationServiceGitProperty; + refreshIntervalInSeconds?: number; } // @public @@ -1524,6 +1653,21 @@ export interface ConfigurationServicesValidateOptionalParams extends coreClient. updateIntervalInMs?: number; } +// @public +export interface ConfigurationServicesValidateResourceHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ConfigurationServicesValidateResourceOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ConfigurationServicesValidateResourceResponse = ConfigurationServiceSettingsValidateResult; + // @public export type ConfigurationServicesValidateResponse = ConfigurationServiceSettingsValidateResult; @@ -1536,6 +1680,10 @@ export interface ContainerProbeSettings { export interface ContainerRegistries { beginCreateOrUpdate(resourceGroupName: string, serviceName: string, containerRegistryName: string, containerRegistryResource: ContainerRegistryResource, options?: ContainerRegistriesCreateOrUpdateOptionalParams): Promise, ContainerRegistriesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, containerRegistryName: string, containerRegistryResource: ContainerRegistryResource, options?: ContainerRegistriesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, containerRegistryName: string, options?: ContainerRegistriesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, containerRegistryName: string, options?: ContainerRegistriesDeleteOptionalParams): Promise; + beginValidate(resourceGroupName: string, serviceName: string, containerRegistryName: string, containerRegistryProperties: ContainerRegistryProperties, options?: ContainerRegistriesValidateOptionalParams): Promise, ContainerRegistriesValidateResponse>>; + beginValidateAndWait(resourceGroupName: string, serviceName: string, containerRegistryName: string, containerRegistryProperties: ContainerRegistryProperties, options?: ContainerRegistriesValidateOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, containerRegistryName: string, options?: ContainerRegistriesGetOptionalParams): Promise; list(resourceGroupName: string, serviceName: string, options?: ContainerRegistriesListOptionalParams): PagedAsyncIterableIterator; } @@ -1549,6 +1697,18 @@ export interface ContainerRegistriesCreateOrUpdateOptionalParams extends coreCli // @public export type ContainerRegistriesCreateOrUpdateResponse = ContainerRegistryResource; +// @public +export interface ContainerRegistriesDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ContainerRegistriesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface ContainerRegistriesGetOptionalParams extends coreClient.OperationOptions { } @@ -1570,6 +1730,21 @@ export interface ContainerRegistriesListOptionalParams extends coreClient.Operat // @public export type ContainerRegistriesListResponse = ContainerRegistryResourceCollection; +// @public +export interface ContainerRegistriesValidateHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ContainerRegistriesValidateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ContainerRegistriesValidateResponse = ContainerRegistryValidateResult; + // @public export interface ContainerRegistryBasicCredentials extends ContainerRegistryCredentials { password: string; @@ -1606,6 +1781,12 @@ export interface ContainerRegistryResourceCollection { value?: ContainerRegistryResource[]; } +// @public +export interface ContainerRegistryValidateResult { + isValid?: boolean; + message?: string; +} + // @public export interface ContentCertificateProperties extends CertificateProperties { content?: string; @@ -1725,6 +1906,7 @@ export interface CustomDomainValidateResult { export interface CustomizedAcceleratorProperties { // (undocumented) acceleratorTags?: string[]; + acceleratorType?: CustomizedAcceleratorType; // (undocumented) description?: string; // (undocumented) @@ -1733,6 +1915,7 @@ export interface CustomizedAcceleratorProperties { gitRepository: AcceleratorGitRepository; // (undocumented) iconUrl?: string; + readonly imports?: string[]; readonly provisioningState?: CustomizedAcceleratorProvisioningState; } @@ -1807,6 +1990,9 @@ export interface CustomizedAcceleratorsValidateOptionalParams extends coreClient // @public export type CustomizedAcceleratorsValidateResponse = CustomizedAcceleratorValidateResult; +// @public +export type CustomizedAcceleratorType = string; + // @public export interface CustomizedAcceleratorValidateResult { errorMessage?: string; @@ -1956,6 +2142,7 @@ export interface DeploymentSettings { addonConfigs?: { [propertyName: string]: Record; }; + apms?: ApmReference[]; containerProbeSettings?: ContainerProbeSettings; environmentVariables?: { [propertyName: string]: string; @@ -2010,6 +2197,7 @@ export type DeploymentsListForClusterNextResponse = DeploymentResourceCollection // @public export interface DeploymentsListForClusterOptionalParams extends coreClient.OperationOptions { + expand?: string; version?: string[]; } @@ -2025,6 +2213,7 @@ export type DeploymentsListNextResponse = DeploymentResourceCollection; // @public export interface DeploymentsListOptionalParams extends coreClient.OperationOptions { + expand?: string; version?: string[]; } @@ -2064,6 +2253,13 @@ export interface DeploymentsUpdateOptionalParams extends coreClient.OperationOpt // @public export type DeploymentsUpdateResponse = DeploymentResource; +// @public (undocumented) +export interface DevToolPortalComponent { + readonly instances?: DevToolPortalInstance[]; + readonly name?: string; + readonly resourceRequests?: DevToolPortalResourceRequests; +} + // @public export interface DevToolPortalFeatureDetail { readonly route?: string; @@ -2087,11 +2283,10 @@ export interface DevToolPortalInstance { // @public export interface DevToolPortalProperties { + readonly components?: DevToolPortalComponent[]; features?: DevToolPortalFeatureSettings; - readonly instances?: DevToolPortalInstance[]; readonly provisioningState?: DevToolPortalProvisioningState; public?: boolean; - readonly resourceRequests?: DevToolPortalResourceRequests; ssoProperties?: DevToolPortalSsoProperties; readonly url?: string; } @@ -2184,12 +2379,93 @@ export interface ErrorModel { message?: string; } +// @public +export type EurekaServerEnabledState = string; + +// @public +export interface EurekaServerProperties { + enabledState?: EurekaServerEnabledState; + error?: ErrorModel; + readonly provisioningState?: EurekaServerState; +} + +// @public +export interface EurekaServerResource extends ProxyResource { + properties?: EurekaServerProperties; +} + +// @public +export interface EurekaServerResourceCollection { + nextLink?: string; + value?: EurekaServerResource[]; +} + +// @public +export interface EurekaServers { + beginUpdatePatch(resourceGroupName: string, serviceName: string, eurekaServerResource: EurekaServerResource, options?: EurekaServersUpdatePatchOptionalParams): Promise, EurekaServersUpdatePatchResponse>>; + beginUpdatePatchAndWait(resourceGroupName: string, serviceName: string, eurekaServerResource: EurekaServerResource, options?: EurekaServersUpdatePatchOptionalParams): Promise; + beginUpdatePut(resourceGroupName: string, serviceName: string, eurekaServerResource: EurekaServerResource, options?: EurekaServersUpdatePutOptionalParams): Promise, EurekaServersUpdatePutResponse>>; + beginUpdatePutAndWait(resourceGroupName: string, serviceName: string, eurekaServerResource: EurekaServerResource, options?: EurekaServersUpdatePutOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, options?: EurekaServersGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, options?: EurekaServersListOptionalParams): Promise; +} + +// @public +export interface EurekaServersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EurekaServersGetResponse = EurekaServerResource; + +// @public +export interface EurekaServersListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EurekaServersListResponse = EurekaServerResourceCollection; + +// @public +export type EurekaServerState = string; + +// @public +export interface EurekaServersUpdatePatchHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface EurekaServersUpdatePatchOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type EurekaServersUpdatePatchResponse = EurekaServerResource; + +// @public +export interface EurekaServersUpdatePutHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface EurekaServersUpdatePutOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type EurekaServersUpdatePutResponse = EurekaServerResource; + // @public export interface ExecAction extends ProbeAction { command?: string[]; type: "ExecAction"; } +// @public +export type Frequency = string; + // @public export interface GatewayApiMetadataProperties { description?: string; @@ -2220,6 +2496,7 @@ export interface GatewayCorsProperties { allowCredentials?: boolean; allowedHeaders?: string[]; allowedMethods?: string[]; + allowedOriginPatterns?: string[]; allowedOrigins?: string[]; exposedHeaders?: string[]; maxAge?: number; @@ -2293,6 +2570,20 @@ export interface GatewayInstance { readonly status?: string; } +// @public +export interface GatewayLocalResponseCachePerInstanceProperties extends GatewayResponseCacheProperties { + responseCacheType: "LocalCachePerInstance"; + size?: string; + timeToLive?: string; +} + +// @public +export interface GatewayLocalResponseCachePerRouteProperties extends GatewayResponseCacheProperties { + responseCacheType: "LocalCachePerRoute"; + size?: string; + timeToLive?: string; +} + // @public export interface GatewayOperatorProperties { readonly instances?: GatewayInstance[]; @@ -2308,7 +2599,11 @@ export interface GatewayOperatorResourceRequests { // @public export interface GatewayProperties { + addonConfigs?: { + [propertyName: string]: Record; + }; apiMetadataProperties?: GatewayApiMetadataProperties; + apms?: ApmReference[]; apmTypes?: ApmType[]; clientAuth?: GatewayPropertiesClientAuth; corsProperties?: GatewayCorsProperties; @@ -2319,6 +2614,7 @@ export interface GatewayProperties { readonly provisioningState?: GatewayProvisioningState; public?: boolean; resourceRequests?: GatewayResourceRequests; + responseCacheProperties?: GatewayResponseCachePropertiesUnion; ssoProperties?: SsoProperties; readonly url?: string; } @@ -2360,6 +2656,14 @@ export interface GatewayResourceRequests { memory?: string; } +// @public +export interface GatewayResponseCacheProperties { + responseCacheType: "LocalCachePerRoute" | "LocalCachePerInstance"; +} + +// @public (undocumented) +export type GatewayResponseCachePropertiesUnion = GatewayResponseCacheProperties | GatewayLocalResponseCachePerRouteProperties | GatewayLocalResponseCachePerInstanceProperties; + // @public export interface GatewayRouteConfigOpenApiProperties { uri?: string; @@ -2535,6 +2839,9 @@ export type GatewaysValidateDomainResponse = CustomDomainValidateResult; // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export type GitImplementation = string; + // @public export interface GitPatternRepository { hostKey?: string; @@ -2550,6 +2857,11 @@ export interface GitPatternRepository { username?: string; } +// @public +export interface GloballyEnabledApms { + value?: string[]; +} + // @public export interface HttpGetAction extends ProbeAction { path?: string; @@ -2601,8 +2913,12 @@ export interface JarUploadedUserSourceInfo extends UploadedUserSourceInfo { type: "Jar"; } +// @public +export type KeyVaultCertificateAutoSync = string; + // @public export interface KeyVaultCertificateProperties extends CertificateProperties { + autoSync?: KeyVaultCertificateAutoSync; certVersion?: string; excludePrivateKey?: boolean; keyVaultCertName: string; @@ -2615,6 +2931,12 @@ export enum KnownActionType { Internal = "Internal" } +// @public +export enum KnownApiPortalApiTryOutEnabledState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownApiPortalProvisioningState { Creating = "Creating", @@ -2624,6 +2946,16 @@ export enum KnownApiPortalProvisioningState { Updating = "Updating" } +// @public +export enum KnownApmProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + // @public export enum KnownApmType { AppDynamics = "AppDynamics", @@ -2732,6 +3064,12 @@ export enum KnownCertificateResourceProvisioningState { Updating = "Updating" } +// @public +export enum KnownConfigServerEnabledState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownConfigServerState { Deleted = "Deleted", @@ -2741,6 +3079,12 @@ export enum KnownConfigServerState { Updating = "Updating" } +// @public +export enum KnownConfigurationServiceGeneration { + Gen1 = "Gen1", + Gen2 = "Gen2" +} + // @public export enum KnownConfigurationServiceProvisioningState { Creating = "Creating", @@ -2754,6 +3098,7 @@ export enum KnownConfigurationServiceProvisioningState { export enum KnownContainerRegistryProvisioningState { Canceled = "Canceled", Creating = "Creating", + Deleting = "Deleting", Failed = "Failed", Succeeded = "Succeeded", Updating = "Updating" @@ -2785,6 +3130,12 @@ export enum KnownCustomizedAcceleratorProvisioningState { Updating = "Updating" } +// @public +export enum KnownCustomizedAcceleratorType { + Accelerator = "Accelerator", + Fragment = "Fragment" +} + // @public export enum KnownCustomizedAcceleratorValidateResultState { Invalid = "Invalid", @@ -2821,6 +3172,25 @@ export enum KnownDevToolPortalProvisioningState { Updating = "Updating" } +// @public +export enum KnownEurekaServerEnabledState { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownEurekaServerState { + Canceled = "Canceled", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownFrequency { + Weekly = "Weekly" +} + // @public export enum KnownGatewayCertificateVerification { Disabled = "Disabled", @@ -2842,12 +3212,24 @@ export enum KnownGatewayRouteConfigProtocol { Https = "HTTPS" } +// @public +export enum KnownGitImplementation { + GoGit = "go-git", + Libgit2 = "libgit2" +} + // @public export enum KnownHttpSchemeType { Http = "HTTP", Https = "HTTPS" } +// @public +export enum KnownKeyVaultCertificateAutoSync { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownKPackBuildStageProvisioningState { Failed = "Failed", @@ -2971,6 +3353,7 @@ export enum KnownSupportedRuntimePlatform { export enum KnownSupportedRuntimeValue { Java11 = "Java_11", Java17 = "Java_17", + Java21 = "Java_21", Java8 = "Java_8", NetCore31 = "NetCore_31" } @@ -2987,11 +3370,32 @@ export enum KnownTrafficDirection { Outbound = "Outbound" } +// @public +export enum KnownTriggeredBuildResultProvisioningState { + Building = "Building", + Canceled = "Canceled", + Deleting = "Deleting", + Failed = "Failed", + Queuing = "Queuing", + Succeeded = "Succeeded" +} + // @public export enum KnownType { AzureFileVolume = "AzureFileVolume" } +// @public +export enum KnownWeekDay { + Friday = "Friday", + Monday = "Monday", + Saturday = "Saturday", + Sunday = "Sunday", + Thursday = "Thursday", + Tuesday = "Tuesday", + Wednesday = "Wednesday" +} + // @public export type KPackBuildStageProvisioningState = string; @@ -3016,6 +3420,14 @@ export interface LogSpecification { name?: string; } +// @public +export interface MaintenanceScheduleConfiguration { + frequency: "Weekly"; +} + +// @public (undocumented) +export type MaintenanceScheduleConfigurationUnion = MaintenanceScheduleConfiguration | WeeklyMaintenanceScheduleConfiguration; + // @public export interface ManagedIdentityProperties { principalId?: string; @@ -3548,6 +3960,12 @@ export interface Services { beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, resource: ServiceResource, options?: ServicesCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise; + beginDisableApmGlobally(resourceGroupName: string, serviceName: string, apm: ApmReference, options?: ServicesDisableApmGloballyOptionalParams): Promise, void>>; + beginDisableApmGloballyAndWait(resourceGroupName: string, serviceName: string, apm: ApmReference, options?: ServicesDisableApmGloballyOptionalParams): Promise; + beginEnableApmGlobally(resourceGroupName: string, serviceName: string, apm: ApmReference, options?: ServicesEnableApmGloballyOptionalParams): Promise, void>>; + beginEnableApmGloballyAndWait(resourceGroupName: string, serviceName: string, apm: ApmReference, options?: ServicesEnableApmGloballyOptionalParams): Promise; + beginFlushVnetDnsSetting(resourceGroupName: string, serviceName: string, options?: ServicesFlushVnetDnsSettingOptionalParams): Promise, void>>; + beginFlushVnetDnsSettingAndWait(resourceGroupName: string, serviceName: string, options?: ServicesFlushVnetDnsSettingOptionalParams): Promise; beginStart(resourceGroupName: string, serviceName: string, options?: ServicesStartOptionalParams): Promise, void>>; beginStartAndWait(resourceGroupName: string, serviceName: string, options?: ServicesStartOptionalParams): Promise; beginStop(resourceGroupName: string, serviceName: string, options?: ServicesStopOptionalParams): Promise, void>>; @@ -3560,6 +3978,9 @@ export interface Services { get(resourceGroupName: string, serviceName: string, options?: ServicesGetOptionalParams): Promise; list(resourceGroupName: string, options?: ServicesListOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: ServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + listGloballyEnabledApms(resourceGroupName: string, serviceName: string, options?: ServicesListGloballyEnabledApmsOptionalParams): Promise; + listSupportedApmTypes(resourceGroupName: string, serviceName: string, options?: ServicesListSupportedApmTypesOptionalParams): PagedAsyncIterableIterator; + listSupportedServerVersions(resourceGroupName: string, serviceName: string, options?: ServicesListSupportedServerVersionsOptionalParams): PagedAsyncIterableIterator; listTestKeys(resourceGroupName: string, serviceName: string, options?: ServicesListTestKeysOptionalParams): Promise; regenerateTestKey(resourceGroupName: string, serviceName: string, regenerateTestKeyRequest: RegenerateTestKeyRequestPayload, options?: ServicesRegenerateTestKeyOptionalParams): Promise; } @@ -3586,10 +4007,34 @@ export interface ServicesDeleteOptionalParams extends coreClient.OperationOption updateIntervalInMs?: number; } +// @public +export interface ServicesDisableApmGloballyHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ServicesDisableApmGloballyOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface ServicesDisableTestEndpointOptionalParams extends coreClient.OperationOptions { } +// @public +export interface ServicesEnableApmGloballyHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ServicesEnableApmGloballyOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface ServicesEnableTestEndpointOptionalParams extends coreClient.OperationOptions { } @@ -3597,6 +4042,18 @@ export interface ServicesEnableTestEndpointOptionalParams extends coreClient.Ope // @public export type ServicesEnableTestEndpointResponse = TestKeys; +// @public +export interface ServicesFlushVnetDnsSettingHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ServicesFlushVnetDnsSettingOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface ServicesGetOptionalParams extends coreClient.OperationOptions { } @@ -3618,6 +4075,13 @@ export interface ServicesListBySubscriptionOptionalParams extends coreClient.Ope // @public export type ServicesListBySubscriptionResponse = ServiceResourceList; +// @public +export interface ServicesListGloballyEnabledApmsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServicesListGloballyEnabledApmsResponse = GloballyEnabledApms; + // @public export interface ServicesListNextOptionalParams extends coreClient.OperationOptions { } @@ -3632,6 +4096,34 @@ export interface ServicesListOptionalParams extends coreClient.OperationOptions // @public export type ServicesListResponse = ServiceResourceList; +// @public +export interface ServicesListSupportedApmTypesNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServicesListSupportedApmTypesNextResponse = SupportedApmTypes; + +// @public +export interface ServicesListSupportedApmTypesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServicesListSupportedApmTypesResponse = SupportedApmTypes; + +// @public +export interface ServicesListSupportedServerVersionsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServicesListSupportedServerVersionsNextResponse = SupportedServerVersions; + +// @public +export interface ServicesListSupportedServerVersionsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServicesListSupportedServerVersionsResponse = SupportedServerVersions; + // @public export interface ServicesListTestKeysOptionalParams extends coreClient.OperationOptions { } @@ -3820,6 +4312,17 @@ export type StoragesListResponse = StorageResourceCollection; // @public export type StorageType = string; +// @public +export interface SupportedApmType { + name?: string; +} + +// @public +export interface SupportedApmTypes { + nextLink?: string; + value?: SupportedApmType[]; +} + // @public export interface SupportedBuildpackResource extends ProxyResource { properties?: SupportedBuildpackResourceProperties; @@ -3849,6 +4352,19 @@ export interface SupportedRuntimeVersion { version?: string; } +// @public +export interface SupportedServerVersion { + server?: string; + value?: string; + version?: string; +} + +// @public +export interface SupportedServerVersions { + nextLink?: string; + value?: SupportedServerVersion[]; +} + // @public export interface SupportedStackResource extends ProxyResource { properties?: SupportedStackResourceProperties; @@ -3921,19 +4437,27 @@ export type TrafficDirection = string; // @public export interface TriggeredBuildResult { id?: string; + image?: string; + lastTransitionReason?: string; + lastTransitionStatus?: string; + lastTransitionTime?: Date; + readonly provisioningState?: TriggeredBuildResultProvisioningState; } +// @public +export type TriggeredBuildResultProvisioningState = string; + // @public export type Type = string; // @public export interface UploadedUserSourceInfo extends UserSourceInfo { relativePath?: string; - type: "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip"; + type: "UploadedUserSourceInfo" | "Jar" | "War" | "Source" | "NetCoreZip"; } // @public (undocumented) -export type UploadedUserSourceInfoUnion = UploadedUserSourceInfo | JarUploadedUserSourceInfo | SourceUploadedUserSourceInfo | NetCoreZipUploadedUserSourceInfo; +export type UploadedUserSourceInfoUnion = UploadedUserSourceInfo | JarUploadedUserSourceInfo | WarUploadedUserSourceInfo | SourceUploadedUserSourceInfo | NetCoreZipUploadedUserSourceInfo; // @public export interface UserAssignedManagedIdentity { @@ -3943,7 +4467,7 @@ export interface UserAssignedManagedIdentity { // @public export interface UserSourceInfo { - type: "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" | "Container"; + type: "UploadedUserSourceInfo" | "Jar" | "War" | "Source" | "NetCoreZip" | "BuildResult" | "Container"; version?: string; } @@ -3956,6 +4480,25 @@ export interface ValidationMessages { name?: string; } +// @public +export interface WarUploadedUserSourceInfo extends UploadedUserSourceInfo { + jvmOptions?: string; + runtimeVersion?: string; + serverVersion?: string; + type: "War"; +} + +// @public +export type WeekDay = string; + +// @public +export interface WeeklyMaintenanceScheduleConfiguration extends MaintenanceScheduleConfiguration { + day: WeekDay; + readonly duration?: string; + frequency: "Weekly"; + hour: number; +} + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts index 5ac25e4aa9fb..d07a71d55bdc 100644 --- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts @@ -16,6 +16,8 @@ import { import * as coreAuth from "@azure/core-auth"; import { ServicesImpl, + ApmsImpl, + EurekaServersImpl, ConfigServersImpl, ConfigurationServicesImpl, ServiceRegistriesImpl, @@ -47,6 +49,8 @@ import { } from "./operations"; import { Services, + Apms, + EurekaServers, ConfigServers, ConfigurationServices, ServiceRegistries, @@ -81,7 +85,7 @@ import { AppPlatformManagementClientOptionalParams } from "./models"; export class AppPlatformManagementClient extends coreClient.ServiceClient { $host: string; apiVersion: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the AppPlatformManagementClient class. @@ -94,12 +98,28 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AppPlatformManagementClientOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: AppPlatformManagementClientOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: + | AppPlatformManagementClientOptionalParams + | string, + options?: AppPlatformManagementClientOptionalParams ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -164,8 +184,10 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-03-01-preview"; + this.apiVersion = options.apiVersion || "2024-01-01-preview"; this.services = new ServicesImpl(this); + this.apms = new ApmsImpl(this); + this.eurekaServers = new EurekaServersImpl(this); this.configServers = new ConfigServersImpl(this); this.configurationServices = new ConfigurationServicesImpl(this); this.serviceRegistries = new ServiceRegistriesImpl(this); @@ -226,6 +248,8 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { } services: Services; + apms: Apms; + eurekaServers: EurekaServers; configServers: ConfigServers; configurationServices: ConfigurationServices; serviceRegistries: ServiceRegistries; diff --git a/sdk/appplatform/arm-appplatform/src/models/index.ts b/sdk/appplatform/arm-appplatform/src/models/index.ts index 2986ad5bb630..b02fabe21916 100644 --- a/sdk/appplatform/arm-appplatform/src/models/index.ts +++ b/sdk/appplatform/arm-appplatform/src/models/index.ts @@ -8,6 +8,9 @@ import * as coreClient from "@azure/core-client"; +export type MaintenanceScheduleConfigurationUnion = + | MaintenanceScheduleConfiguration + | WeeklyMaintenanceScheduleConfiguration; export type ContainerRegistryCredentialsUnion = | ContainerRegistryCredentials | ContainerRegistryBasicCredentials; @@ -29,6 +32,10 @@ export type ProbeActionUnion = | HttpGetAction | ExecAction | TCPSocketAction; +export type GatewayResponseCachePropertiesUnion = + | GatewayResponseCacheProperties + | GatewayLocalResponseCachePerRouteProperties + | GatewayLocalResponseCachePerInstanceProperties; export type AcceleratorAuthSettingUnion = | AcceleratorAuthSetting | AcceleratorPublicSetting @@ -37,6 +44,7 @@ export type AcceleratorAuthSettingUnion = export type UploadedUserSourceInfoUnion = | UploadedUserSourceInfo | JarUploadedUserSourceInfo + | WarUploadedUserSourceInfo | SourceUploadedUserSourceInfo | NetCoreZipUploadedUserSourceInfo; @@ -51,13 +59,15 @@ export interface ClusterResourceProperties { networkProfile?: NetworkProfile; /** Additional Service settings in vnet injection instance */ vnetAddons?: ServiceVNetAddons; + /** Additional Service settings for planned maintenance */ + maintenanceScheduleConfiguration?: MaintenanceScheduleConfigurationUnion; /** * Version of the Service * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly version?: number; /** - * ServiceInstanceEntity GUID which uniquely identifies a created resource + * ServiceInstanceEntity Id which uniquely identifies a created resource * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serviceId?: string; @@ -160,6 +170,12 @@ export interface ServiceVNetAddons { dataPlanePublicEndpoint?: boolean; } +/** Configuration for the planned maintenance */ +export interface MaintenanceScheduleConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + frequency: "Weekly"; +} + /** Purchasing 3rd Party product for one Azure Spring Apps instance */ export interface MarketplaceResource { /** The plan id of the 3rd Party Artifact that is being procured. */ @@ -258,17 +274,89 @@ export interface RegenerateTestKeyRequestPayload { keyType: TestKeyType; } -/** Config server git properties payload */ -export interface ConfigServerProperties { +/** Supported APM types payload */ +export interface SupportedApmTypes { + /** Collection of the supported APM type */ + value?: SupportedApmType[]; /** - * State of the config server. + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** Supported APM type */ +export interface SupportedApmType { + /** The name of the supported APM type */ + name?: string; +} + +/** Globally enabled APMs payload */ +export interface GloballyEnabledApms { + /** Collection of the globally enabled APMs */ + value?: string[]; +} + +/** A reference to the APM */ +export interface ApmReference { + /** Resource Id of the APM */ + resourceId: string; +} + +/** Object that includes an array of APM resources and a possible link for next set */ +export interface ApmResourceCollection { + /** Collection of APM resources */ + value?: ApmResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** Properties of an APM */ +export interface ApmProperties { + /** APM Type */ + type: string; + /** + * State of the APM. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ConfigServerState; - /** Error when apply config server settings. */ + readonly provisioningState?: ApmProvisioningState; + /** Non-sensitive properties for the APM */ + properties?: { [propertyName: string]: string }; + /** Sensitive properties for the APM */ + secrets?: { [propertyName: string]: string }; +} + +/** Keys of APM sensitive properties */ +export interface ApmSecretKeys { + /** Collection of the keys for the APM sensitive properties */ + value?: string[]; +} + +/** Object that includes an array of Eureka server resources and a possible link for next set */ +export interface EurekaServerResourceCollection { + /** Collection of Eureka server resources */ + value?: EurekaServerResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** Eureka server properties payload */ +export interface EurekaServerProperties { + /** + * State of the eureka server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: EurekaServerState; + /** Enabled state of the eureka server. This is only used in Consumption tier. */ + enabledState?: EurekaServerEnabledState; + /** Error when applying eureka server settings. */ error?: ErrorModel; - /** Settings of config server. */ - configServer?: ConfigServerSettings; } /** The error code compose of code and message. */ @@ -279,6 +367,21 @@ export interface ErrorModel { message?: string; } +/** Config server git properties payload */ +export interface ConfigServerProperties { + /** + * State of the config server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ConfigServerState; + /** Error when apply config server settings. */ + error?: ErrorModel; + /** Enabled state of the config server. This is only used in Consumption tier. */ + enabledState?: ConfigServerEnabledState; + /** Settings of config server. */ + configServer?: ConfigServerSettings; +} + /** The settings of config server. */ export interface ConfigServerSettings { /** Property of git environment. */ @@ -360,6 +463,8 @@ export interface ConfigurationServiceProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ConfigurationServiceProvisioningState; + /** The generation of the Application Configuration Service. */ + generation?: ConfigurationServiceGeneration; /** * The requested resource quantity for required CPU and Memory. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -411,6 +516,8 @@ export interface ConfigurationServiceInstance { export interface ConfigurationServiceSettings { /** Property of git environment. */ gitProperty?: ConfigurationServiceGitProperty; + /** How often (in seconds) to check repository updates. Minimum value is 0. */ + refreshIntervalInSeconds?: number; } /** Property of git environment. */ @@ -443,6 +550,10 @@ export interface ConfigurationServiceGitRepository { privateKey?: string; /** Strict host key checking or not. */ strictHostKeyChecking?: boolean; + /** Git libraries used to support various repository providers */ + gitImplementation?: GitImplementation; + /** Resource Id of CA certificate for https URL of Git repository. */ + caCertResourceId?: string; } /** Object that includes an array of configuration service resources and a possible link for next set */ @@ -637,15 +748,10 @@ export interface DevToolPortalProperties { */ 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. + * Collection of components belong to Dev Tool Portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instances?: DevToolPortalInstance[]; + readonly components?: DevToolPortalComponent[]; /** Indicates whether the resource exposes public endpoint */ public?: boolean; /** @@ -659,6 +765,21 @@ export interface DevToolPortalProperties { features?: DevToolPortalFeatureSettings; } +export interface DevToolPortalComponent { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly name?: string; + /** + * 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[]; +} + /** The resource quantity for required CPU and Memory of Dev Tool Portal */ export interface DevToolPortalResourceRequests { /** @@ -748,6 +869,14 @@ export interface ContainerRegistryCredentials { type: "BasicAuth"; } +/** Validation result for container registry properties */ +export interface ContainerRegistryValidateResult { + /** Indicate if the container registry properties are valid */ + isValid?: boolean; + /** Detailed validation messages. */ + message?: 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 */ @@ -817,6 +946,10 @@ export interface BuildProperties { readonly provisioningState?: BuildProvisioningState; /** The environment variables for this build */ env?: { [propertyName: string]: string }; + /** The APMs for this build */ + apms?: ApmReference[]; + /** The CA Certificates for this build */ + certificates?: CertificateReference[]; /** * The build result triggered by this build * NOTE: This property will not be serialized. It can only be populated by the server. @@ -826,10 +959,29 @@ export interface BuildProperties { resourceRequests?: BuildResourceRequests; } +/** A reference to the certificate */ +export interface CertificateReference { + /** Resource Id of the certificate */ + resourceId: string; +} + /** The build result triggered by a build */ export interface TriggeredBuildResult { /** The unique build id of this build result */ id?: string; + /** + * The provisioning state of this build result + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: TriggeredBuildResultProvisioningState; + /** The container image of this build result */ + image?: string; + /** The last transition time of this build result */ + lastTransitionTime?: Date; + /** The last transition reason of this build result */ + lastTransitionReason?: string; + /** The last transition status of this build result */ + lastTransitionStatus?: string; } /** Resource request payload of Build Resource. */ @@ -1139,6 +1291,10 @@ export interface AppResourceProperties { ingressSettings?: IngressSettings; /** Collection of auth secrets */ secrets?: Secret[]; + /** The workload profile used for this app. Supported for Consumption + Dedicated plan. */ + workloadProfileName?: string; + /** Indicate if test endpoint auth is disabled. */ + disableTestEndpointAuth?: boolean; } /** Temporary disk payload */ @@ -1481,6 +1637,7 @@ export interface UserSourceInfo { type: | "UploadedUserSourceInfo" | "Jar" + | "War" | "Source" | "NetCoreZip" | "BuildResult" @@ -1495,6 +1652,8 @@ export interface DeploymentSettings { resourceRequests?: ResourceRequests; /** Collection of environment variables */ environmentVariables?: { [propertyName: string]: string }; + /** Collection of ApmReferences */ + apms?: ApmReference[]; /** Collection of addons */ addonConfigs?: { [propertyName: string]: Record }; /** Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes */ @@ -1930,6 +2089,27 @@ export interface ResourceSkuRestrictionInfo { zones?: string[]; } +/** Supported server versions. */ +export interface SupportedServerVersions { + /** Collection of the supported server versions. */ + value?: SupportedServerVersion[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** Supported server version. */ +export interface SupportedServerVersion { + /** The raw server version value which could be passed to deployment CRUD operations. */ + value?: string; + /** The server name. */ + server?: string; + /** The Server version. */ + version?: string; +} + /** Spring Cloud Gateway properties payload */ export interface GatewayProperties { /** @@ -1956,10 +2136,14 @@ export interface GatewayProperties { clientAuth?: GatewayPropertiesClientAuth; /** Collection of APM type used in Spring Cloud Gateway */ apmTypes?: ApmType[]; + /** Collection of ApmReferences in service level */ + apms?: ApmReference[]; /** Environment variables of Spring Cloud Gateway */ environmentVariables?: GatewayPropertiesEnvironmentVariables; /** The requested resource quantity for required CPU and Memory. */ resourceRequests?: GatewayResourceRequests; + /** Collection of addons for Spring Cloud Gateway */ + addonConfigs?: { [propertyName: string]: Record }; /** * Collection of instances belong to Spring Cloud Gateway. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1970,6 +2154,8 @@ export interface GatewayProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operatorProperties?: GatewayOperatorProperties; + /** The properties to configure different types of response cache for Spring Cloud Gateway. */ + responseCacheProperties?: GatewayResponseCachePropertiesUnion; } /** Single sign-on related configuration */ @@ -2002,6 +2188,8 @@ export interface GatewayApiMetadataProperties { export interface GatewayCorsProperties { /** Allowed origins to make cross-site requests. The special value `*` allows all domains. */ allowedOrigins?: string[]; + /** Allowed origin patterns to make cross-site requests. */ + allowedOriginPatterns?: string[]; /** Allowed HTTP methods on cross-site requests. The special value `*` allows all methods. If not set, `GET` and `HEAD` are allowed by default. */ allowedMethods?: string[]; /** Allowed headers in cross-site requests. The special value `*` allows actual requests to send any header. */ @@ -2085,6 +2273,12 @@ export interface GatewayOperatorResourceRequests { readonly instanceCount?: number; } +/** Spring Cloud Gateway response cache properties. */ +export interface GatewayResponseCacheProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + responseCacheType: "LocalCachePerRoute" | "LocalCachePerInstance"; +} + /** Resource Sku object used for scaling out and scaling in. */ export interface SkuObject { /** Sku of the Spring Cloud Gateway resource */ @@ -2213,6 +2407,8 @@ export interface ApiPortalProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instances?: ApiPortalInstance[]; + /** Indicates whether the API try-out feature is enabled or disabled. When enabled, users can try out the API by sending requests and viewing responses in API portal. When disabled, users cannot try out the API. */ + apiTryOutEnabledState?: ApiPortalApiTryOutEnabledState; } /** Resource requests of the API portal */ @@ -2347,10 +2543,17 @@ export interface CustomizedAcceleratorProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: CustomizedAcceleratorProvisioningState; + /** Type of the customized accelerator. */ + acceleratorType?: CustomizedAcceleratorType; displayName?: string; description?: string; iconUrl?: string; acceleratorTags?: string[]; + /** + * Imports references all imports that this accelerator/fragment depends upon. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly imports?: string[]; gitRepository: AcceleratorGitRepository; } @@ -2367,6 +2570,8 @@ export interface AcceleratorGitRepository { gitTag?: string; /** Properties of the auth setting payload. */ authSetting: AcceleratorAuthSettingUnion; + /** Folder path inside the git repository to consider as the root of the accelerator or fragment. */ + subPath?: string; } /** Auth setting payload. */ @@ -2419,7 +2624,7 @@ export interface CustomContainer { args?: string[]; /** Credential of the image registry */ imageRegistryCredential?: ImageRegistryCredential; - /** Language framework of the container image uploaded */ + /** Language framework of the container image uploaded. Supported values: "springboot", "", null. */ languageFramework?: string; } @@ -2431,6 +2636,22 @@ export interface ImageRegistryCredential { password?: string; } +/** Weekly planned maintenance */ +export interface WeeklyMaintenanceScheduleConfiguration + extends MaintenanceScheduleConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + frequency: "Weekly"; + /** The hour to run the maintenance job */ + hour: number; + /** + * The duration time to run the maintenance job, specified in ISO8601 format, e.g. PT8H + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly duration?: string; + /** The day to run the maintenance job */ + day: WeekDay; +} + /** The resource model definition for a ARM tracked top level resource. */ export interface TrackedResource extends Resource { /** The GEO location of the resource. */ @@ -2485,6 +2706,8 @@ export interface KeyVaultCertificateProperties extends CertificateProperties { certVersion?: string; /** Optional. If set to true, it will not import private key from key vault. */ excludePrivateKey?: boolean; + /** Indicates whether to automatically synchronize certificate from key vault or not. */ + autoSync?: KeyVaultCertificateAutoSync; } /** Properties of certificate imported from key vault. */ @@ -2498,7 +2721,7 @@ export interface ContentCertificateProperties extends CertificateProperties { /** Source with uploaded location */ export interface UploadedUserSourceInfo extends UserSourceInfo { /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip"; + type: "UploadedUserSourceInfo" | "Jar" | "War" | "Source" | "NetCoreZip"; /** Relative path of the storage which stores the source */ relativePath?: string; } @@ -2549,6 +2772,28 @@ export interface TCPSocketAction extends ProbeAction { type: "TCPSocketAction"; } +/** Spring Cloud Gateway local response cache per route properties. */ +export interface GatewayLocalResponseCachePerRouteProperties + extends GatewayResponseCacheProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + responseCacheType: "LocalCachePerRoute"; + /** Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries. */ + size?: string; + /** Time before a cached entry is expired (300s, 5m, 1h...) */ + timeToLive?: string; +} + +/** Spring Cloud Gateway local response cache per instance properties. */ +export interface GatewayLocalResponseCachePerInstanceProperties + extends GatewayResponseCacheProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + responseCacheType: "LocalCachePerInstance"; + /** Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries */ + size?: string; + /** Time before a cached entry is expired (300s, 5m, 1h...) */ + timeToLive?: string; +} + /** Auth setting for public url. */ export interface AcceleratorPublicSetting extends AcceleratorAuthSetting { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2589,6 +2834,18 @@ export interface ServiceResource extends TrackedResource { sku?: Sku; } +/** APM Resource object */ +export interface ApmResource extends ProxyResource { + /** Properties of an APM */ + properties?: ApmProperties; +} + +/** Eureka server resource */ +export interface EurekaServerResource extends ProxyResource { + /** Properties of the eureka server resource */ + properties?: EurekaServerProperties; +} + /** Config Server resource */ export interface ConfigServerResource extends ProxyResource { /** Properties of the Config Server resource */ @@ -2789,6 +3046,18 @@ export interface JarUploadedUserSourceInfo extends UploadedUserSourceInfo { jvmOptions?: string; } +/** Uploaded War binary for a deployment */ +export interface WarUploadedUserSourceInfo extends UploadedUserSourceInfo { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "War"; + /** Runtime version of the war file */ + runtimeVersion?: string; + /** JVM parameter */ + jvmOptions?: string; + /** Server version, currently only Apache Tomcat is supported */ + serverVersion?: string; +} + /** Uploaded Java source code binary for a deployment */ export interface SourceUploadedUserSourceInfo extends UploadedUserSourceInfo { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2813,6 +3082,51 @@ export interface NetCoreZipUploadedUserSourceInfo runtimeVersion?: string; } +/** Defines headers for Services_flushVnetDnsSetting operation. */ +export interface ServicesFlushVnetDnsSettingHeaders { + location?: string; +} + +/** Defines headers for Services_enableApmGlobally operation. */ +export interface ServicesEnableApmGloballyHeaders { + location?: string; +} + +/** Defines headers for Services_disableApmGlobally operation. */ +export interface ServicesDisableApmGloballyHeaders { + location?: string; +} + +/** Defines headers for Apms_delete operation. */ +export interface ApmsDeleteHeaders { + location?: string; +} + +/** Defines headers for EurekaServers_updatePut operation. */ +export interface EurekaServersUpdatePutHeaders { + location?: string; +} + +/** Defines headers for EurekaServers_updatePatch operation. */ +export interface EurekaServersUpdatePatchHeaders { + location?: string; +} + +/** Defines headers for ConfigurationServices_validateResource operation. */ +export interface ConfigurationServicesValidateResourceHeaders { + location?: string; +} + +/** Defines headers for ContainerRegistries_delete operation. */ +export interface ContainerRegistriesDeleteHeaders { + location?: string; +} + +/** Defines headers for ContainerRegistries_validate operation. */ +export interface ContainerRegistriesValidateHeaders { + location?: string; +} + /** Defines headers for BuildService_deleteBuild operation. */ export interface BuildServiceDeleteBuildHeaders { location?: string; @@ -2891,6 +3205,21 @@ export enum KnownTrafficDirection { */ export type TrafficDirection = string; +/** Known values of {@link Frequency} that the service accepts. */ +export enum KnownFrequency { + /** Weekly */ + Weekly = "Weekly" +} + +/** + * Defines values for Frequency. \ + * {@link KnownFrequency} can be used interchangeably with Frequency, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Weekly** + */ +export type Frequency = string; + /** Known values of {@link PowerState} that the service accepts. */ export enum KnownPowerState { /** Running */ @@ -2975,6 +3304,78 @@ export enum KnownTestKeyType { */ export type TestKeyType = string; +/** Known values of {@link ApmProvisioningState} that the service accepts. */ +export enum KnownApmProvisioningState { + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Deleting */ + Deleting = "Deleting", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for ApmProvisioningState. \ + * {@link KnownApmProvisioningState} can be used interchangeably with ApmProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** \ + * **Canceled** + */ +export type ApmProvisioningState = string; + +/** Known values of {@link EurekaServerState} that the service accepts. */ +export enum KnownEurekaServerState { + /** Failed */ + Failed = "Failed", + /** Succeeded */ + Succeeded = "Succeeded", + /** Updating */ + Updating = "Updating", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for EurekaServerState. \ + * {@link KnownEurekaServerState} can be used interchangeably with EurekaServerState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Failed** \ + * **Succeeded** \ + * **Updating** \ + * **Canceled** + */ +export type EurekaServerState = string; + +/** Known values of {@link EurekaServerEnabledState} that the service accepts. */ +export enum KnownEurekaServerEnabledState { + /** Enable the eureka server. */ + Enabled = "Enabled", + /** Disable the eureka server. */ + Disabled = "Disabled" +} + +/** + * Defines values for EurekaServerEnabledState. \ + * {@link KnownEurekaServerEnabledState} can be used interchangeably with EurekaServerEnabledState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Enable the eureka server. \ + * **Disabled**: Disable the eureka server. + */ +export type EurekaServerEnabledState = string; + /** Known values of {@link ConfigServerState} that the service accepts. */ export enum KnownConfigServerState { /** NotAvailable */ @@ -3002,6 +3403,24 @@ export enum KnownConfigServerState { */ export type ConfigServerState = string; +/** Known values of {@link ConfigServerEnabledState} that the service accepts. */ +export enum KnownConfigServerEnabledState { + /** Enable the config server. */ + Enabled = "Enabled", + /** Disable the config server. */ + Disabled = "Disabled" +} + +/** + * Defines values for ConfigServerEnabledState. \ + * {@link KnownConfigServerEnabledState} can be used interchangeably with ConfigServerEnabledState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Enable the config server. \ + * **Disabled**: Disable the config server. + */ +export type ConfigServerEnabledState = string; + /** Known values of {@link ConfigurationServiceProvisioningState} that the service accepts. */ export enum KnownConfigurationServiceProvisioningState { /** Creating */ @@ -3029,6 +3448,42 @@ export enum KnownConfigurationServiceProvisioningState { */ export type ConfigurationServiceProvisioningState = string; +/** Known values of {@link ConfigurationServiceGeneration} that the service accepts. */ +export enum KnownConfigurationServiceGeneration { + /** Gen1 */ + Gen1 = "Gen1", + /** Gen2 */ + Gen2 = "Gen2" +} + +/** + * Defines values for ConfigurationServiceGeneration. \ + * {@link KnownConfigurationServiceGeneration} can be used interchangeably with ConfigurationServiceGeneration, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Gen1** \ + * **Gen2** + */ +export type ConfigurationServiceGeneration = string; + +/** Known values of {@link GitImplementation} that the service accepts. */ +export enum KnownGitImplementation { + /** GoGit */ + GoGit = "go-git", + /** Libgit2 */ + Libgit2 = "libgit2" +} + +/** + * Defines values for GitImplementation. \ + * {@link KnownGitImplementation} can be used interchangeably with GitImplementation, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **go-git** \ + * **libgit2** + */ +export type GitImplementation = string; + /** Known values of {@link ServiceRegistryProvisioningState} that the service accepts. */ export enum KnownServiceRegistryProvisioningState { /** Creating */ @@ -3144,6 +3599,8 @@ export enum KnownContainerRegistryProvisioningState { Succeeded = "Succeeded", /** Failed */ Failed = "Failed", + /** Deleting */ + Deleting = "Deleting", /** Canceled */ Canceled = "Canceled" } @@ -3157,6 +3614,7 @@ export enum KnownContainerRegistryProvisioningState { * **Updating** \ * **Succeeded** \ * **Failed** \ + * **Deleting** \ * **Canceled** */ export type ContainerRegistryProvisioningState = string; @@ -3215,6 +3673,36 @@ export enum KnownBuildProvisioningState { */ export type BuildProvisioningState = string; +/** Known values of {@link TriggeredBuildResultProvisioningState} that the service accepts. */ +export enum KnownTriggeredBuildResultProvisioningState { + /** Queuing */ + Queuing = "Queuing", + /** Building */ + Building = "Building", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Deleting */ + Deleting = "Deleting", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for TriggeredBuildResultProvisioningState. \ + * {@link KnownTriggeredBuildResultProvisioningState} can be used interchangeably with TriggeredBuildResultProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Queuing** \ + * **Building** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** \ + * **Canceled** + */ +export type TriggeredBuildResultProvisioningState = string; + /** Known values of {@link BindingType} that the service accepts. */ export enum KnownBindingType { /** ApplicationInsights */ @@ -3634,6 +4122,8 @@ export enum KnownSupportedRuntimeValue { Java11 = "Java_11", /** Java17 */ Java17 = "Java_17", + /** Java21 */ + Java21 = "Java_21", /** NetCore31 */ NetCore31 = "NetCore_31" } @@ -3646,6 +4136,7 @@ export enum KnownSupportedRuntimeValue { * **Java_8** \ * **Java_11** \ * **Java_17** \ + * **Java_21** \ * **NetCore_31** */ export type SupportedRuntimeValue = string; @@ -3842,6 +4333,24 @@ export enum KnownApiPortalProvisioningState { */ export type ApiPortalProvisioningState = string; +/** Known values of {@link ApiPortalApiTryOutEnabledState} that the service accepts. */ +export enum KnownApiPortalApiTryOutEnabledState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for ApiPortalApiTryOutEnabledState. \ + * {@link KnownApiPortalApiTryOutEnabledState} can be used interchangeably with ApiPortalApiTryOutEnabledState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type ApiPortalApiTryOutEnabledState = string; + /** Known values of {@link ApplicationAcceleratorProvisioningState} that the service accepts. */ export enum KnownApplicationAcceleratorProvisioningState { /** Creating */ @@ -3896,6 +4405,24 @@ export enum KnownCustomizedAcceleratorProvisioningState { */ export type CustomizedAcceleratorProvisioningState = string; +/** Known values of {@link CustomizedAcceleratorType} that the service accepts. */ +export enum KnownCustomizedAcceleratorType { + /** Accelerator */ + Accelerator = "Accelerator", + /** Fragment */ + Fragment = "Fragment" +} + +/** + * Defines values for CustomizedAcceleratorType. \ + * {@link KnownCustomizedAcceleratorType} can be used interchangeably with CustomizedAcceleratorType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Accelerator** \ + * **Fragment** + */ +export type CustomizedAcceleratorType = string; + /** Known values of {@link CustomizedAcceleratorValidateResultState} that the service accepts. */ export enum KnownCustomizedAcceleratorValidateResultState { /** Customized accelerator properties are valid. */ @@ -3956,6 +4483,57 @@ export enum KnownPredefinedAcceleratorState { */ export type PredefinedAcceleratorState = string; +/** Known values of {@link WeekDay} that the service accepts. */ +export enum KnownWeekDay { + /** Monday */ + Monday = "Monday", + /** Tuesday */ + Tuesday = "Tuesday", + /** Wednesday */ + Wednesday = "Wednesday", + /** Thursday */ + Thursday = "Thursday", + /** Friday */ + Friday = "Friday", + /** Saturday */ + Saturday = "Saturday", + /** Sunday */ + Sunday = "Sunday" +} + +/** + * Defines values for WeekDay. \ + * {@link KnownWeekDay} can be used interchangeably with WeekDay, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** \ + * **Sunday** + */ +export type WeekDay = string; + +/** Known values of {@link KeyVaultCertificateAutoSync} that the service accepts. */ +export enum KnownKeyVaultCertificateAutoSync { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" +} + +/** + * Defines values for KeyVaultCertificateAutoSync. \ + * {@link KnownKeyVaultCertificateAutoSync} can be used interchangeably with KeyVaultCertificateAutoSync, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type KeyVaultCertificateAutoSync = string; + /** Known values of {@link HttpSchemeType} that the service accepts. */ export enum KnownHttpSchemeType { /** Http */ @@ -4057,6 +4635,47 @@ export interface ServicesStartOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface ServicesFlushVnetDnsSettingOptionalParams + 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 ServicesListSupportedApmTypesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSupportedApmTypes operation. */ +export type ServicesListSupportedApmTypesResponse = SupportedApmTypes; + +/** Optional parameters. */ +export interface ServicesListGloballyEnabledApmsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listGloballyEnabledApms operation. */ +export type ServicesListGloballyEnabledApmsResponse = GloballyEnabledApms; + +/** Optional parameters. */ +export interface ServicesEnableApmGloballyOptionalParams + 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 ServicesDisableApmGloballyOptionalParams + 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 ServicesCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} @@ -4078,6 +4697,20 @@ export interface ServicesListOptionalParams /** Contains response data for the list operation. */ export type ServicesListResponse = ServiceResourceList; +/** Optional parameters. */ +export interface ServicesListSupportedServerVersionsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSupportedServerVersions operation. */ +export type ServicesListSupportedServerVersionsResponse = SupportedServerVersions; + +/** Optional parameters. */ +export interface ServicesListSupportedApmTypesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSupportedApmTypesNext operation. */ +export type ServicesListSupportedApmTypesNextResponse = SupportedApmTypes; + /** Optional parameters. */ export interface ServicesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} @@ -4092,6 +4725,97 @@ export interface ServicesListNextOptionalParams /** Contains response data for the listNext operation. */ export type ServicesListNextResponse = ServiceResourceList; +/** Optional parameters. */ +export interface ServicesListSupportedServerVersionsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSupportedServerVersionsNext operation. */ +export type ServicesListSupportedServerVersionsNextResponse = SupportedServerVersions; + +/** Optional parameters. */ +export interface ApmsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApmsListResponse = ApmResourceCollection; + +/** Optional parameters. */ +export interface ApmsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApmsGetResponse = ApmResource; + +/** Optional parameters. */ +export interface ApmsCreateOrUpdateOptionalParams + 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 ApmsCreateOrUpdateResponse = ApmResource; + +/** Optional parameters. */ +export interface ApmsDeleteOptionalParams 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 ApmsListSecretKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecretKeys operation. */ +export type ApmsListSecretKeysResponse = ApmSecretKeys; + +/** Optional parameters. */ +export interface ApmsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApmsListNextResponse = ApmResourceCollection; + +/** Optional parameters. */ +export interface EurekaServersListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type EurekaServersListResponse = EurekaServerResourceCollection; + +/** Optional parameters. */ +export interface EurekaServersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type EurekaServersGetResponse = EurekaServerResource; + +/** Optional parameters. */ +export interface EurekaServersUpdatePutOptionalParams + 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 updatePut operation. */ +export type EurekaServersUpdatePutResponse = EurekaServerResource; + +/** Optional parameters. */ +export interface EurekaServersUpdatePatchOptionalParams + 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 updatePatch operation. */ +export type EurekaServersUpdatePatchResponse = EurekaServerResource; + /** Optional parameters. */ export interface ConfigServersGetOptionalParams extends coreClient.OperationOptions {} @@ -4182,6 +4906,18 @@ export interface ConfigurationServicesValidateOptionalParams /** Contains response data for the validate operation. */ export type ConfigurationServicesValidateResponse = ConfigurationServiceSettingsValidateResult; +/** Optional parameters. */ +export interface ConfigurationServicesValidateResourceOptionalParams + 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 validateResource operation. */ +export type ConfigurationServicesValidateResourceResponse = ConfigurationServiceSettingsValidateResult; + /** Optional parameters. */ export interface ConfigurationServicesListNextOptionalParams extends coreClient.OperationOptions {} @@ -4341,6 +5077,27 @@ export interface ContainerRegistriesCreateOrUpdateOptionalParams /** Contains response data for the createOrUpdate operation. */ export type ContainerRegistriesCreateOrUpdateResponse = ContainerRegistryResource; +/** Optional parameters. */ +export interface ContainerRegistriesDeleteOptionalParams + 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 ContainerRegistriesValidateOptionalParams + 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 validate operation. */ +export type ContainerRegistriesValidateResponse = ContainerRegistryValidateResult; + /** Optional parameters. */ export interface ContainerRegistriesListNextOptionalParams extends coreClient.OperationOptions {} @@ -4966,6 +5723,8 @@ export interface DeploymentsListOptionalParams extends coreClient.OperationOptions { /** Version of the deployments to be listed */ version?: string[]; + /** The expand expression to apply on the operation. */ + expand?: string; } /** Contains response data for the list operation. */ @@ -4976,6 +5735,8 @@ export interface DeploymentsListForClusterOptionalParams extends coreClient.OperationOptions { /** Version of the deployments to be listed */ version?: string[]; + /** The expand expression to apply on the operation. */ + expand?: string; } /** Contains response data for the listForCluster operation. */ diff --git a/sdk/appplatform/arm-appplatform/src/models/mappers.ts b/sdk/appplatform/arm-appplatform/src/models/mappers.ts index 5ad9365a3060..f3948f051852 100644 --- a/sdk/appplatform/arm-appplatform/src/models/mappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/mappers.ts @@ -34,6 +34,13 @@ export const ClusterResourceProperties: coreClient.CompositeMapper = { className: "ServiceVNetAddons" } }, + maintenanceScheduleConfiguration: { + serializedName: "maintenanceScheduleConfiguration", + type: { + name: "Composite", + className: "MaintenanceScheduleConfiguration" + } + }, version: { serializedName: "version", readOnly: true, @@ -277,6 +284,27 @@ export const ServiceVNetAddons: coreClient.CompositeMapper = { } }; +export const MaintenanceScheduleConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MaintenanceScheduleConfiguration", + uberParent: "MaintenanceScheduleConfiguration", + polymorphicDiscriminator: { + serializedName: "frequency", + clientName: "frequency" + }, + modelProperties: { + frequency: { + serializedName: "frequency", + required: true, + type: { + name: "String" + } + } + } + } +}; + export const MarketplaceResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -525,11 +553,123 @@ export const RegenerateTestKeyRequestPayload: coreClient.CompositeMapper = { } }; -export const ConfigServerProperties: coreClient.CompositeMapper = { +export const SupportedApmTypes: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConfigServerProperties", + className: "SupportedApmTypes", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SupportedApmType" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SupportedApmType: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedApmType", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const GloballyEnabledApms: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GloballyEnabledApms", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ApmReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApmReference", + modelProperties: { + resourceId: { + serializedName: "resourceId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApmResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApmResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApmResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ApmProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApmProperties", modelProperties: { + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + }, provisioningState: { serializedName: "provisioningState", readOnly: true, @@ -537,18 +677,94 @@ export const ConfigServerProperties: coreClient.CompositeMapper = { name: "String" } }, - error: { - serializedName: "error", + properties: { + serializedName: "properties", type: { - name: "Composite", - className: "ErrorModel" + name: "Dictionary", + value: { type: { name: "String" } } } }, - configServer: { - serializedName: "configServer", + secrets: { + serializedName: "secrets", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const ApmSecretKeys: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApmSecretKeys", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const EurekaServerResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EurekaServerResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EurekaServerResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const EurekaServerProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EurekaServerProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + enabledState: { + serializedName: "enabledState", + type: { + name: "String" + } + }, + error: { + serializedName: "error", type: { name: "Composite", - className: "ConfigServerSettings" + className: "ErrorModel" } } } @@ -576,6 +792,42 @@ export const ErrorModel: coreClient.CompositeMapper = { } }; +export const ConfigServerProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConfigServerProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorModel" + } + }, + enabledState: { + serializedName: "enabledState", + type: { + name: "String" + } + }, + configServer: { + serializedName: "configServer", + type: { + name: "Composite", + className: "ConfigServerSettings" + } + } + } + } +}; + export const ConfigServerSettings: coreClient.CompositeMapper = { type: { name: "Composite", @@ -831,6 +1083,13 @@ export const ConfigurationServiceProperties: coreClient.CompositeMapper = { name: "String" } }, + generation: { + defaultValue: "Gen1", + serializedName: "generation", + type: { + name: "String" + } + }, resourceRequests: { serializedName: "resourceRequests", type: { @@ -926,6 +1185,12 @@ export const ConfigurationServiceSettings: coreClient.CompositeMapper = { name: "Composite", className: "ConfigurationServiceGitProperty" } + }, + refreshIntervalInSeconds: { + serializedName: "refreshIntervalInSeconds", + type: { + name: "Number" + } } } } @@ -1036,6 +1301,18 @@ export const ConfigurationServiceGitRepository: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + gitImplementation: { + serializedName: "gitImplementation", + type: { + name: "String" + } + }, + caCertResourceId: { + serializedName: "caCertResourceId", + type: { + name: "String" + } } } } @@ -1437,22 +1714,15 @@ export const DevToolPortalProperties: coreClient.CompositeMapper = { name: "String" } }, - resourceRequests: { - serializedName: "resourceRequests", - type: { - name: "Composite", - className: "DevToolPortalResourceRequests" - } - }, - instances: { - serializedName: "instances", + components: { + serializedName: "components", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DevToolPortalInstance" + className: "DevToolPortalComponent" } } } @@ -1489,6 +1759,42 @@ export const DevToolPortalProperties: coreClient.CompositeMapper = { } }; +export const DevToolPortalComponent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevToolPortalComponent", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + resourceRequests: { + serializedName: "resourceRequests", + type: { + name: "Composite", + className: "DevToolPortalResourceRequests" + } + }, + instances: { + serializedName: "instances", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DevToolPortalInstance" + } + } + } + } + } + } +}; + export const DevToolPortalResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1697,6 +2003,27 @@ export const ContainerRegistryCredentials: coreClient.CompositeMapper = { } }; +export const ContainerRegistryValidateResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerRegistryValidateResult", + modelProperties: { + isValid: { + serializedName: "isValid", + type: { + name: "Boolean" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + export const BuildServiceCollection: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1847,6 +2174,30 @@ export const BuildProperties: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, + apms: { + serializedName: "apms", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApmReference" + } + } + } + }, + certificates: { + serializedName: "certificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateReference" + } + } + } + }, triggeredBuildResult: { serializedName: "triggeredBuildResult", type: { @@ -1865,6 +2216,22 @@ export const BuildProperties: coreClient.CompositeMapper = { } }; +export const CertificateReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CertificateReference", + modelProperties: { + resourceId: { + serializedName: "resourceId", + required: true, + type: { + name: "String" + } + } + } + } +}; + export const TriggeredBuildResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1875,6 +2242,37 @@ export const TriggeredBuildResult: coreClient.CompositeMapper = { type: { name: "String" } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + image: { + serializedName: "image", + type: { + name: "String" + } + }, + lastTransitionTime: { + serializedName: "lastTransitionTime", + type: { + name: "DateTime" + } + }, + lastTransitionReason: { + serializedName: "lastTransitionReason", + type: { + name: "String" + } + }, + lastTransitionStatus: { + serializedName: "lastTransitionStatus", + type: { + name: "String" + } } } } @@ -2617,6 +3015,19 @@ export const AppResourceProperties: coreClient.CompositeMapper = { } } } + }, + workloadProfileName: { + serializedName: "workloadProfileName", + type: { + name: "String" + } + }, + disableTestEndpointAuth: { + defaultValue: false, + serializedName: "disableTestEndpointAuth", + type: { + name: "Boolean" + } } } } @@ -3499,6 +3910,18 @@ export const DeploymentSettings: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, + apms: { + serializedName: "apms", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApmReference" + } + } + } + }, addonConfigs: { serializedName: "addonConfigs", type: { @@ -4732,6 +5155,60 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { } }; +export const SupportedServerVersions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedServerVersions", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SupportedServerVersion" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SupportedServerVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedServerVersion", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String" + } + }, + server: { + serializedName: "server", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + export const GatewayProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4807,6 +5284,18 @@ export const GatewayProperties: coreClient.CompositeMapper = { } } }, + apms: { + serializedName: "apms", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApmReference" + } + } + } + }, environmentVariables: { serializedName: "environmentVariables", type: { @@ -4821,6 +5310,15 @@ export const GatewayProperties: coreClient.CompositeMapper = { className: "GatewayResourceRequests" } }, + addonConfigs: { + serializedName: "addonConfigs", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, instances: { serializedName: "instances", readOnly: true, @@ -4840,6 +5338,13 @@ export const GatewayProperties: coreClient.CompositeMapper = { name: "Composite", className: "GatewayOperatorProperties" } + }, + responseCacheProperties: { + serializedName: "responseCacheProperties", + type: { + name: "Composite", + className: "GatewayResponseCacheProperties" + } } } } @@ -4938,6 +5443,17 @@ export const GatewayCorsProperties: coreClient.CompositeMapper = { } } }, + allowedOriginPatterns: { + serializedName: "allowedOriginPatterns", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, allowedMethods: { serializedName: "allowedMethods", type: { @@ -5145,6 +5661,27 @@ export const GatewayOperatorResourceRequests: coreClient.CompositeMapper = { } }; +export const GatewayResponseCacheProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayResponseCacheProperties", + uberParent: "GatewayResponseCacheProperties", + polymorphicDiscriminator: { + serializedName: "responseCacheType", + clientName: "responseCacheType" + }, + modelProperties: { + responseCacheType: { + serializedName: "responseCacheType", + required: true, + type: { + name: "String" + } + } + } + } +}; + export const SkuObject: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5507,6 +6044,13 @@ export const ApiPortalProperties: coreClient.CompositeMapper = { } } } + }, + apiTryOutEnabledState: { + defaultValue: "Enabled", + serializedName: "apiTryOutEnabledState", + type: { + name: "String" + } } } } @@ -5811,6 +6355,12 @@ export const CustomizedAcceleratorProperties: coreClient.CompositeMapper = { name: "String" } }, + acceleratorType: { + serializedName: "acceleratorType", + type: { + name: "String" + } + }, displayName: { serializedName: "displayName", type: { @@ -5840,6 +6390,18 @@ export const CustomizedAcceleratorProperties: coreClient.CompositeMapper = { } } }, + imports: { + serializedName: "imports", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, gitRepository: { serializedName: "gitRepository", type: { @@ -5893,6 +6455,12 @@ export const AcceleratorGitRepository: coreClient.CompositeMapper = { name: "Composite", className: "AcceleratorAuthSetting" } + }, + subPath: { + serializedName: "subPath", + type: { + name: "String" + } } } } @@ -6101,6 +6669,45 @@ export const ImageRegistryCredential: coreClient.CompositeMapper = { } }; +export const WeeklyMaintenanceScheduleConfiguration: coreClient.CompositeMapper = { + serializedName: "Weekly", + type: { + name: "Composite", + className: "WeeklyMaintenanceScheduleConfiguration", + uberParent: "MaintenanceScheduleConfiguration", + polymorphicDiscriminator: + MaintenanceScheduleConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...MaintenanceScheduleConfiguration.type.modelProperties, + hour: { + constraints: { + InclusiveMaximum: 23, + InclusiveMinimum: 0 + }, + serializedName: "hour", + required: true, + type: { + name: "Number" + } + }, + duration: { + serializedName: "duration", + readOnly: true, + type: { + name: "String" + } + }, + day: { + serializedName: "day", + required: true, + type: { + name: "String" + } + } + } + } +}; + export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6252,6 +6859,13 @@ export const KeyVaultCertificateProperties: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + autoSync: { + defaultValue: "Disabled", + serializedName: "autoSync", + type: { + name: "String" + } } } } @@ -6400,6 +7014,58 @@ export const TCPSocketAction: coreClient.CompositeMapper = { } }; +export const GatewayLocalResponseCachePerRouteProperties: coreClient.CompositeMapper = { + serializedName: "LocalCachePerRoute", + type: { + name: "Composite", + className: "GatewayLocalResponseCachePerRouteProperties", + uberParent: "GatewayResponseCacheProperties", + polymorphicDiscriminator: + GatewayResponseCacheProperties.type.polymorphicDiscriminator, + modelProperties: { + ...GatewayResponseCacheProperties.type.modelProperties, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + timeToLive: { + serializedName: "timeToLive", + type: { + name: "String" + } + } + } + } +}; + +export const GatewayLocalResponseCachePerInstanceProperties: coreClient.CompositeMapper = { + serializedName: "LocalCachePerInstance", + type: { + name: "Composite", + className: "GatewayLocalResponseCachePerInstanceProperties", + uberParent: "GatewayResponseCacheProperties", + polymorphicDiscriminator: + GatewayResponseCacheProperties.type.polymorphicDiscriminator, + modelProperties: { + ...GatewayResponseCacheProperties.type.modelProperties, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + timeToLive: { + serializedName: "timeToLive", + type: { + name: "String" + } + } + } + } +}; + export const AcceleratorPublicSetting: coreClient.CompositeMapper = { serializedName: "Public", type: { @@ -6509,6 +7175,40 @@ export const ServiceResource: coreClient.CompositeMapper = { } }; +export const ApmResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApmResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ApmProperties" + } + } + } + } +}; + +export const EurekaServerResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EurekaServerResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EurekaServerProperties" + } + } + } + } +}; + export const ConfigServerResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7083,6 +7783,38 @@ export const JarUploadedUserSourceInfo: coreClient.CompositeMapper = { } }; +export const WarUploadedUserSourceInfo: coreClient.CompositeMapper = { + serializedName: "War", + type: { + name: "Composite", + className: "WarUploadedUserSourceInfo", + uberParent: "UploadedUserSourceInfo", + polymorphicDiscriminator: + UploadedUserSourceInfo.type.polymorphicDiscriminator, + modelProperties: { + ...UploadedUserSourceInfo.type.modelProperties, + runtimeVersion: { + serializedName: "runtimeVersion", + type: { + name: "String" + } + }, + jvmOptions: { + serializedName: "jvmOptions", + type: { + name: "String" + } + }, + serverVersion: { + serializedName: "serverVersion", + type: { + name: "String" + } + } + } + } +}; + export const SourceUploadedUserSourceInfo: coreClient.CompositeMapper = { serializedName: "Source", type: { @@ -7135,6 +7867,141 @@ export const NetCoreZipUploadedUserSourceInfo: coreClient.CompositeMapper = { } }; +export const ServicesFlushVnetDnsSettingHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServicesFlushVnetDnsSettingHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ServicesEnableApmGloballyHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServicesEnableApmGloballyHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ServicesDisableApmGloballyHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServicesDisableApmGloballyHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ApmsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApmsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const EurekaServersUpdatePutHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EurekaServersUpdatePutHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const EurekaServersUpdatePatchHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EurekaServersUpdatePatchHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ConfigurationServicesValidateResourceHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConfigurationServicesValidateResourceHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerRegistriesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerRegistriesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerRegistriesValidateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerRegistriesValidateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export const BuildServiceDeleteBuildHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7181,13 +8048,16 @@ export const GatewaysRestartHeaders: coreClient.CompositeMapper = { }; export let discriminators = { + MaintenanceScheduleConfiguration: MaintenanceScheduleConfiguration, ContainerRegistryCredentials: ContainerRegistryCredentials, CustomPersistentDiskProperties: CustomPersistentDiskProperties, StorageProperties: StorageProperties, CertificateProperties: CertificateProperties, UserSourceInfo: UserSourceInfo, ProbeAction: ProbeAction, + GatewayResponseCacheProperties: GatewayResponseCacheProperties, AcceleratorAuthSetting: AcceleratorAuthSetting, + "MaintenanceScheduleConfiguration.Weekly": WeeklyMaintenanceScheduleConfiguration, "ContainerRegistryCredentials.BasicAuth": ContainerRegistryBasicCredentials, "CustomPersistentDiskProperties.AzureFileVolume": AzureFileVolume, "StorageProperties.StorageAccount": StorageAccount, @@ -7199,10 +8069,13 @@ export let discriminators = { "ProbeAction.HTTPGetAction": HttpGetAction, "ProbeAction.ExecAction": ExecAction, "ProbeAction.TCPSocketAction": TCPSocketAction, + "GatewayResponseCacheProperties.LocalCachePerRoute": GatewayLocalResponseCachePerRouteProperties, + "GatewayResponseCacheProperties.LocalCachePerInstance": GatewayLocalResponseCachePerInstanceProperties, "AcceleratorAuthSetting.Public": AcceleratorPublicSetting, "AcceleratorAuthSetting.BasicAuth": AcceleratorBasicAuthSetting, "AcceleratorAuthSetting.SSH": AcceleratorSshSetting, "UploadedUserSourceInfo.Jar": JarUploadedUserSourceInfo, + "UploadedUserSourceInfo.War": WarUploadedUserSourceInfo, "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 e5c87eb59e9c..0c9127cd1726 100644 --- a/sdk/appplatform/arm-appplatform/src/models/parameters.ts +++ b/sdk/appplatform/arm-appplatform/src/models/parameters.ts @@ -14,7 +14,10 @@ import { import { ServiceResource as ServiceResourceMapper, RegenerateTestKeyRequestPayload as RegenerateTestKeyRequestPayloadMapper, + ApmReference as ApmReferenceMapper, NameAvailabilityParameters as NameAvailabilityParametersMapper, + ApmResource as ApmResourceMapper, + EurekaServerResource as EurekaServerResourceMapper, ConfigServerResource as ConfigServerResourceMapper, ConfigServerSettings as ConfigServerSettingsMapper, ConfigurationServiceResource as ConfigurationServiceResourceMapper, @@ -22,6 +25,7 @@ import { ApplicationLiveViewResource as ApplicationLiveViewResourceMapper, DevToolPortalResource as DevToolPortalResourceMapper, ContainerRegistryResource as ContainerRegistryResourceMapper, + ContainerRegistryProperties as ContainerRegistryPropertiesMapper, BuildService as BuildServiceMapper, Build as BuildMapper, BuildpackBindingResource as BuildpackBindingResourceMapper, @@ -76,7 +80,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-03-01-preview", + defaultValue: "2024-01-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -143,6 +147,11 @@ export const regenerateTestKeyRequest: OperationParameter = { mapper: RegenerateTestKeyRequestPayloadMapper }; +export const apm: OperationParameter = { + parameterPath: "apm", + mapper: ApmReferenceMapper +}; + export const availabilityParameters: OperationParameter = { parameterPath: "availabilityParameters", mapper: NameAvailabilityParametersMapper @@ -171,6 +180,30 @@ export const nextLink: OperationURLParameter = { skipEncoding: true }; +export const apmName: OperationURLParameter = { + parameterPath: "apmName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9-]*[a-z0-9]$") + }, + serializedName: "apmName", + required: true, + type: { + name: "String" + } + } +}; + +export const apmResource: OperationParameter = { + parameterPath: "apmResource", + mapper: ApmResourceMapper +}; + +export const eurekaServerResource: OperationParameter = { + parameterPath: "eurekaServerResource", + mapper: EurekaServerResourceMapper +}; + export const configServerResource: OperationParameter = { parameterPath: "configServerResource", mapper: ConfigServerResourceMapper @@ -184,6 +217,9 @@ export const configServerSettings: OperationParameter = { export const configurationServiceName: OperationURLParameter = { parameterPath: "configurationServiceName", mapper: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9]*$") + }, serializedName: "configurationServiceName", required: true, type: { @@ -264,6 +300,11 @@ export const containerRegistryResource: OperationParameter = { mapper: ContainerRegistryResourceMapper }; +export const containerRegistryProperties: OperationParameter = { + parameterPath: "containerRegistryProperties", + mapper: ContainerRegistryPropertiesMapper +}; + export const buildServiceName: OperationURLParameter = { parameterPath: "buildServiceName", mapper: { @@ -514,6 +555,16 @@ export const version: OperationQueryParameter = { collectionFormat: "Multi" }; +export const expand: OperationQueryParameter = { + parameterPath: ["options", "expand"], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; + export const remoteDebuggingPayload: OperationParameter = { parameterPath: ["options", "remoteDebuggingPayload"], mapper: RemoteDebuggingPayloadMapper diff --git a/sdk/appplatform/arm-appplatform/src/operations/apms.ts b/sdk/appplatform/arm-appplatform/src/operations/apms.ts new file mode 100644 index 000000000000..61e6aa70859e --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/apms.ts @@ -0,0 +1,546 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Apms } 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 { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ApmResource, + ApmsListNextOptionalParams, + ApmsListOptionalParams, + ApmsListResponse, + ApmsGetOptionalParams, + ApmsGetResponse, + ApmsCreateOrUpdateOptionalParams, + ApmsCreateOrUpdateResponse, + ApmsDeleteOptionalParams, + ApmsListSecretKeysOptionalParams, + ApmsListSecretKeysResponse, + ApmsListNextResponse +} from "../models"; + +/// +/** Class containing Apms operations. */ +export class ApmsImpl implements Apms { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class Apms class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * Get collection of APMs. + * @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?: ApmsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, serviceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + options?: ApmsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ApmsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, serviceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + options?: ApmsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Get collection of APMs. + * @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?: ApmsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listOperationSpec + ); + } + + /** + * Get the APM by name. + * @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 apmName The name of the APM + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apmName: string, + options?: ApmsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apmName, options }, + getOperationSpec + ); + } + + /** + * Create or update an APM. + * @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 apmName The name of the APM + * @param apmResource Parameters for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + apmName: string, + apmResource: ApmResource, + options?: ApmsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ApmsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, apmName, apmResource, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ApmsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Create or update an APM. + * @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 apmName The name of the APM + * @param apmResource Parameters for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + apmName: string, + apmResource: ApmResource, + options?: ApmsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + apmName, + apmResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Operation to delete an APM + * @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 apmName The name of the APM + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serviceName: string, + apmName: string, + options?: ApmsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, apmName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Operation to delete an APM + * @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 apmName The name of the APM + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apmName: string, + options?: ApmsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + apmName, + options + ); + return poller.pollUntilDone(); + } + + /** + * List keys of APM sensitive 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 apmName The name of the APM + * @param options The options parameters. + */ + listSecretKeys( + resourceGroupName: string, + serviceName: string, + apmName: string, + options?: ApmsListSecretKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apmName, options }, + listSecretKeysOperationSpec + ); + } + + /** + * 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?: ApmsListNextOptionalParams + ): 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}/apms", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApmResourceCollection + }, + 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}/apms/{apmName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApmResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apmName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApmResource + }, + 201: { + bodyMapper: Mappers.ApmResource + }, + 202: { + bodyMapper: Mappers.ApmResource + }, + 204: { + bodyMapper: Mappers.ApmResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.apmResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apmName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apmName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSecretKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}/listSecretKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ApmSecretKeys + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apmName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApmResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts index 6d84f7ecfa52..87bda48d017f 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts @@ -32,6 +32,8 @@ import { ConfigurationServiceSettings, ConfigurationServicesValidateOptionalParams, ConfigurationServicesValidateResponse, + ConfigurationServicesValidateResourceOptionalParams, + ConfigurationServicesValidateResourceResponse, ConfigurationServicesListNextResponse } from "../models"; @@ -476,6 +478,115 @@ export class ConfigurationServicesImpl implements ConfigurationServices { return poller.pollUntilDone(); } + /** + * Check if the Application Configuration Service resource is 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 configurationServiceName The name of Application Configuration Service. + * @param configurationServiceResource Application Configuration Service resource to be validated + * @param options The options parameters. + */ + async beginValidateResource( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + configurationServiceResource: ConfigurationServiceResource, + options?: ConfigurationServicesValidateResourceOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ConfigurationServicesValidateResourceResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + configurationServiceName, + configurationServiceResource, + options + }, + spec: validateResourceOperationSpec + }); + const poller = await createHttpPoller< + ConfigurationServicesValidateResourceResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Check if the Application Configuration Service resource is 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 configurationServiceName The name of Application Configuration Service. + * @param configurationServiceResource Application Configuration Service resource to be validated + * @param options The options parameters. + */ + async beginValidateResourceAndWait( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + configurationServiceResource: ConfigurationServiceResource, + options?: ConfigurationServicesValidateResourceOptionalParams + ): Promise { + const poller = await this.beginValidateResource( + resourceGroupName, + serviceName, + configurationServiceName, + configurationServiceResource, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -636,6 +747,40 @@ const validateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const validateResourceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validateResource", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + }, + 201: { + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + }, + 202: { + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + }, + 204: { + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.configurationServiceResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.configurationServiceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts b/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts index 002170e1704a..e17f7181b5e4 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts @@ -28,6 +28,10 @@ import { ContainerRegistriesGetResponse, ContainerRegistriesCreateOrUpdateOptionalParams, ContainerRegistriesCreateOrUpdateResponse, + ContainerRegistriesDeleteOptionalParams, + ContainerRegistryProperties, + ContainerRegistriesValidateOptionalParams, + ContainerRegistriesValidateResponse, ContainerRegistriesListNextResponse } from "../models"; @@ -268,6 +272,205 @@ export class ContainerRegistriesImpl implements ContainerRegistries { return poller.pollUntilDone(); } + /** + * Delete a container registry resource. + * @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 containerRegistryName The name of the container registry. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serviceName: string, + containerRegistryName: string, + options?: ContainerRegistriesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, containerRegistryName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete a container registry resource. + * @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 containerRegistryName The name of the container registry. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + containerRegistryName: string, + options?: ContainerRegistriesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + containerRegistryName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Check if the container registry properties 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 containerRegistryName The name of the container registry. + * @param containerRegistryProperties Parameters for the validate operation + * @param options The options parameters. + */ + async beginValidate( + resourceGroupName: string, + serviceName: string, + containerRegistryName: string, + containerRegistryProperties: ContainerRegistryProperties, + options?: ContainerRegistriesValidateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ContainerRegistriesValidateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + containerRegistryName, + containerRegistryProperties, + options + }, + spec: validateOperationSpec + }); + const poller = await createHttpPoller< + ContainerRegistriesValidateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Check if the container registry properties 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 containerRegistryName The name of the container registry. + * @param containerRegistryProperties Parameters for the validate operation + * @param options The options parameters. + */ + async beginValidateAndWait( + resourceGroupName: string, + serviceName: string, + containerRegistryName: string, + containerRegistryProperties: ContainerRegistryProperties, + options?: ContainerRegistriesValidateOptionalParams + ): Promise { + const poller = await this.beginValidate( + resourceGroupName, + serviceName, + containerRegistryName, + containerRegistryProperties, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -370,6 +573,64 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.containerRegistryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const validateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}/validate", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ContainerRegistryValidateResult + }, + 201: { + bodyMapper: Mappers.ContainerRegistryValidateResult + }, + 202: { + bodyMapper: Mappers.ContainerRegistryValidateResult + }, + 204: { + bodyMapper: Mappers.ContainerRegistryValidateResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.containerRegistryProperties, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.containerRegistryName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts index 36ec2d9dc9c8..9a7629615d1b 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts @@ -1687,7 +1687,11 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.version], + queryParameters: [ + Parameters.apiVersion, + Parameters.version, + Parameters.expand + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1710,7 +1714,11 @@ const listForClusterOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.version], + queryParameters: [ + Parameters.apiVersion, + Parameters.version, + Parameters.expand + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/eurekaServers.ts b/sdk/appplatform/arm-appplatform/src/operations/eurekaServers.ts new file mode 100644 index 000000000000..3771a47a39f9 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/eurekaServers.ts @@ -0,0 +1,388 @@ +/* + * 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 { EurekaServers } 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 { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + EurekaServersListOptionalParams, + EurekaServersListResponse, + EurekaServersGetOptionalParams, + EurekaServersGetResponse, + EurekaServerResource, + EurekaServersUpdatePutOptionalParams, + EurekaServersUpdatePutResponse, + EurekaServersUpdatePatchOptionalParams, + EurekaServersUpdatePatchResponse +} from "../models"; + +/** Class containing EurekaServers operations. */ +export class EurekaServersImpl implements EurekaServers { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class EurekaServers class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * List the eureka server settings. + * @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?: EurekaServersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listOperationSpec + ); + } + + /** + * Get the eureka server settings. + * @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. + */ + get( + resourceGroupName: string, + serviceName: string, + options?: EurekaServersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + getOperationSpec + ); + } + + /** + * Update the eureka server settings. + * @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 eurekaServerResource Parameters for the update operation + * @param options The options parameters. + */ + async beginUpdatePut( + resourceGroupName: string, + serviceName: string, + eurekaServerResource: EurekaServerResource, + options?: EurekaServersUpdatePutOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + EurekaServersUpdatePutResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, eurekaServerResource, options }, + spec: updatePutOperationSpec + }); + const poller = await createHttpPoller< + EurekaServersUpdatePutResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Update the eureka server settings. + * @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 eurekaServerResource Parameters for the update operation + * @param options The options parameters. + */ + async beginUpdatePutAndWait( + resourceGroupName: string, + serviceName: string, + eurekaServerResource: EurekaServerResource, + options?: EurekaServersUpdatePutOptionalParams + ): Promise { + const poller = await this.beginUpdatePut( + resourceGroupName, + serviceName, + eurekaServerResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Update the eureka server settings. + * @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 eurekaServerResource Parameters for the update operation + * @param options The options parameters. + */ + async beginUpdatePatch( + resourceGroupName: string, + serviceName: string, + eurekaServerResource: EurekaServerResource, + options?: EurekaServersUpdatePatchOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + EurekaServersUpdatePatchResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, eurekaServerResource, options }, + spec: updatePatchOperationSpec + }); + const poller = await createHttpPoller< + EurekaServersUpdatePatchResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Update the eureka server settings. + * @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 eurekaServerResource Parameters for the update operation + * @param options The options parameters. + */ + async beginUpdatePatchAndWait( + resourceGroupName: string, + serviceName: string, + eurekaServerResource: EurekaServerResource, + options?: EurekaServersUpdatePatchOptionalParams + ): Promise { + const poller = await this.beginUpdatePatch( + resourceGroupName, + serviceName, + eurekaServerResource, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EurekaServerResourceCollection + }, + 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}/eurekaServers/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EurekaServerResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updatePutOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.EurekaServerResource + }, + 201: { + bodyMapper: Mappers.EurekaServerResource + }, + 202: { + bodyMapper: Mappers.EurekaServerResource + }, + 204: { + bodyMapper: Mappers.EurekaServerResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.eurekaServerResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updatePatchOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.EurekaServerResource + }, + 201: { + bodyMapper: Mappers.EurekaServerResource + }, + 202: { + bodyMapper: Mappers.EurekaServerResource + }, + 204: { + bodyMapper: Mappers.EurekaServerResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.eurekaServerResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/index.ts b/sdk/appplatform/arm-appplatform/src/operations/index.ts index 5ad18dc2229d..bfa157c0b919 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/index.ts @@ -7,6 +7,8 @@ */ export * from "./services"; +export * from "./apms"; +export * from "./eurekaServers"; export * from "./configServers"; export * from "./configurationServices"; export * from "./serviceRegistries"; diff --git a/sdk/appplatform/arm-appplatform/src/operations/services.ts b/sdk/appplatform/arm-appplatform/src/operations/services.ts index 3334218c70c8..b776dbef0bd9 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/services.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/services.ts @@ -20,6 +20,10 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { + SupportedApmType, + ServicesListSupportedApmTypesNextOptionalParams, + ServicesListSupportedApmTypesOptionalParams, + ServicesListSupportedApmTypesResponse, ServiceResource, ServicesListBySubscriptionNextOptionalParams, ServicesListBySubscriptionOptionalParams, @@ -27,6 +31,10 @@ import { ServicesListNextOptionalParams, ServicesListOptionalParams, ServicesListResponse, + SupportedServerVersion, + ServicesListSupportedServerVersionsNextOptionalParams, + ServicesListSupportedServerVersionsOptionalParams, + ServicesListSupportedServerVersionsResponse, ServicesGetOptionalParams, ServicesGetResponse, ServicesCreateOrUpdateOptionalParams, @@ -44,11 +52,19 @@ import { ServicesEnableTestEndpointResponse, ServicesStopOptionalParams, ServicesStartOptionalParams, + ServicesFlushVnetDnsSettingOptionalParams, + ServicesListGloballyEnabledApmsOptionalParams, + ServicesListGloballyEnabledApmsResponse, + ApmReference, + ServicesEnableApmGloballyOptionalParams, + ServicesDisableApmGloballyOptionalParams, NameAvailabilityParameters, ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse, + ServicesListSupportedApmTypesNextResponse, ServicesListBySubscriptionNextResponse, - ServicesListNextResponse + ServicesListNextResponse, + ServicesListSupportedServerVersionsNextResponse } from "../models"; /// @@ -64,6 +80,91 @@ export class ServicesImpl implements Services { this.client = client; } + /** + * List supported APM types for 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 listSupportedApmTypes( + resourceGroupName: string, + serviceName: string, + options?: ServicesListSupportedApmTypesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSupportedApmTypesPagingAll( + resourceGroupName, + serviceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listSupportedApmTypesPagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listSupportedApmTypesPagingPage( + resourceGroupName: string, + serviceName: string, + options?: ServicesListSupportedApmTypesOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ServicesListSupportedApmTypesResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listSupportedApmTypes( + resourceGroupName, + serviceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listSupportedApmTypesNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listSupportedApmTypesPagingAll( + resourceGroupName: string, + serviceName: string, + options?: ServicesListSupportedApmTypesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSupportedApmTypesPagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + /** * Handles requests to list all resources in a subscription. * @param options The options parameters. @@ -181,6 +282,91 @@ export class ServicesImpl implements Services { } } + /** + * Lists all of the available server versions supported by Microsoft.AppPlatform provider. + * @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 listSupportedServerVersions( + resourceGroupName: string, + serviceName: string, + options?: ServicesListSupportedServerVersionsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSupportedServerVersionsPagingAll( + resourceGroupName, + serviceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listSupportedServerVersionsPagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listSupportedServerVersionsPagingPage( + resourceGroupName: string, + serviceName: string, + options?: ServicesListSupportedServerVersionsOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ServicesListSupportedServerVersionsResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listSupportedServerVersions( + resourceGroupName, + serviceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listSupportedServerVersionsNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listSupportedServerVersionsPagingAll( + resourceGroupName: string, + serviceName: string, + options?: ServicesListSupportedServerVersionsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSupportedServerVersionsPagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + /** * Get a Service and its properties. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -720,99 +906,459 @@ export class ServicesImpl implements Services { } /** - * Checks that the resource name is valid and is not already in use. - * @param location the region - * @param availabilityParameters Parameters supplied to the operation. + * Flush Virtual Network DNS settings for a VNET injected 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. */ - checkNameAvailability( - location: string, - availabilityParameters: NameAvailabilityParameters, - options?: ServicesCheckNameAvailabilityOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, availabilityParameters, options }, - checkNameAvailabilityOperationSpec - ); + async beginFlushVnetDnsSetting( + resourceGroupName: string, + serviceName: string, + options?: ServicesFlushVnetDnsSettingOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, options }, + spec: flushVnetDnsSettingOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; } /** - * Handles requests to list all resources in a subscription. + * Flush Virtual Network DNS settings for a VNET injected 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 _listBySubscription( - options?: ServicesListBySubscriptionOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec + async beginFlushVnetDnsSettingAndWait( + resourceGroupName: string, + serviceName: string, + options?: ServicesFlushVnetDnsSettingOptionalParams + ): Promise { + const poller = await this.beginFlushVnetDnsSetting( + resourceGroupName, + serviceName, + options ); + return poller.pollUntilDone(); } /** - * Handles requests to list all resources in a resource group. + * List supported APM types for 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( + private _listSupportedApmTypes( resourceGroupName: string, - options?: ServicesListOptionalParams - ): Promise { + serviceName: string, + options?: ServicesListSupportedApmTypesOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, options }, - listOperationSpec + { resourceGroupName, serviceName, options }, + listSupportedApmTypesOperationSpec ); } /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * List globally enabled APMs for 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 _listBySubscriptionNext( - nextLink: string, - options?: ServicesListBySubscriptionNextOptionalParams - ): Promise { + listGloballyEnabledApms( + resourceGroupName: string, + serviceName: string, + options?: ServicesListGloballyEnabledApmsOptionalParams + ): Promise { return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec + { resourceGroupName, serviceName, options }, + listGloballyEnabledApmsOperationSpec ); } /** - * ListNext + * Enable an APM globally. * @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 nextLink The nextLink from the previous successful call to the List method. + * @param serviceName The name of the Service resource. + * @param apm The target APM for the enable operation * @param options The options parameters. */ - private _listNext( + async beginEnableApmGlobally( resourceGroupName: string, - nextLink: string, - options?: ServicesListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServiceResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + serviceName: string, + apm: ApmReference, + options?: ServicesEnableApmGloballyOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, apm, options }, + spec: enableApmGloballyOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Enable an APM globally. + * @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 apm The target APM for the enable operation + * @param options The options parameters. + */ + async beginEnableApmGloballyAndWait( + resourceGroupName: string, + serviceName: string, + apm: ApmReference, + options?: ServicesEnableApmGloballyOptionalParams + ): Promise { + const poller = await this.beginEnableApmGlobally( + resourceGroupName, + serviceName, + apm, + options + ); + return poller.pollUntilDone(); + } + + /** + * Disable an APM globally. + * @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 apm The target APM for the disable operation + * @param options The options parameters. + */ + async beginDisableApmGlobally( + resourceGroupName: string, + serviceName: string, + apm: ApmReference, + options?: ServicesDisableApmGloballyOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, apm, options }, + spec: disableApmGloballyOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Disable an APM globally. + * @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 apm The target APM for the disable operation + * @param options The options parameters. + */ + async beginDisableApmGloballyAndWait( + resourceGroupName: string, + serviceName: string, + apm: ApmReference, + options?: ServicesDisableApmGloballyOptionalParams + ): Promise { + const poller = await this.beginDisableApmGlobally( + resourceGroupName, + serviceName, + apm, + options + ); + return poller.pollUntilDone(); + } + + /** + * Checks that the resource name is valid and is not already in use. + * @param location the region + * @param availabilityParameters Parameters supplied to the operation. + * @param options The options parameters. + */ + checkNameAvailability( + location: string, + availabilityParameters: NameAvailabilityParameters, + options?: ServicesCheckNameAvailabilityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, availabilityParameters, options }, + checkNameAvailabilityOperationSpec + ); + } + + /** + * Handles requests to list all resources in a subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: ServicesListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * Handles requests to list all resources in a resource group. + * @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 options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: ServicesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec + ); + } + + /** + * Lists all of the available server versions supported by Microsoft.AppPlatform provider. + * @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 _listSupportedServerVersions( + resourceGroupName: string, + serviceName: string, + options?: ServicesListSupportedServerVersionsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listSupportedServerVersionsOperationSpec + ); + } + + /** + * ListSupportedApmTypesNext + * @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 ListSupportedApmTypes method. + * @param options The options parameters. + */ + private _listSupportedApmTypesNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: ServicesListSupportedApmTypesNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listSupportedApmTypesNextOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: ServicesListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } + + /** + * 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 nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: ServicesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec + ); + } + + /** + * ListSupportedServerVersionsNext + * @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 ListSupportedServerVersions + * method. + * @param options The options parameters. + */ + private _listSupportedServerVersionsNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: ServicesListSupportedServerVersionsNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listSupportedServerVersionsNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServiceResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1058,6 +1604,123 @@ const startOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const flushVnetDnsSettingOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/flushVirtualNetworkDnsSettings", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSupportedApmTypesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedApmTypes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedApmTypes + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listGloballyEnabledApmsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listGloballyEnabledApms", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GloballyEnabledApms + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const enableApmGloballyOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableApmGlobally", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.apm, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const disableApmGloballyOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableApmGlobally", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.apm, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", @@ -1119,6 +1782,49 @@ const listOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listSupportedServerVersionsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedServerVersions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedServerVersions + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSupportedApmTypesNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedApmTypes + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -1158,3 +1864,24 @@ const listNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listSupportedServerVersionsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedServerVersions + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apms.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apms.ts new file mode 100644 index 000000000000..8f81aeed06f9 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apms.ts @@ -0,0 +1,131 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ApmResource, + ApmsListOptionalParams, + ApmsGetOptionalParams, + ApmsGetResponse, + ApmsCreateOrUpdateOptionalParams, + ApmsCreateOrUpdateResponse, + ApmsDeleteOptionalParams, + ApmsListSecretKeysOptionalParams, + ApmsListSecretKeysResponse +} from "../models"; + +/// +/** Interface representing a Apms. */ +export interface Apms { + /** + * Get collection of APMs. + * @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?: ApmsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the APM by name. + * @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 apmName The name of the APM + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apmName: string, + options?: ApmsGetOptionalParams + ): Promise; + /** + * Create or update an APM. + * @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 apmName The name of the APM + * @param apmResource Parameters for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + apmName: string, + apmResource: ApmResource, + options?: ApmsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ApmsCreateOrUpdateResponse + > + >; + /** + * Create or update an APM. + * @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 apmName The name of the APM + * @param apmResource Parameters for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + apmName: string, + apmResource: ApmResource, + options?: ApmsCreateOrUpdateOptionalParams + ): Promise; + /** + * Operation to delete an APM + * @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 apmName The name of the APM + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serviceName: string, + apmName: string, + options?: ApmsDeleteOptionalParams + ): Promise, void>>; + /** + * Operation to delete an APM + * @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 apmName The name of the APM + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apmName: string, + options?: ApmsDeleteOptionalParams + ): Promise; + /** + * List keys of APM sensitive 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 apmName The name of the APM + * @param options The options parameters. + */ + listSecretKeys( + resourceGroupName: string, + serviceName: string, + apmName: string, + options?: ApmsListSecretKeysOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts index 1d03c4aebc44..daa754e97998 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts @@ -18,7 +18,9 @@ import { ConfigurationServicesDeleteOptionalParams, ConfigurationServiceSettings, ConfigurationServicesValidateOptionalParams, - ConfigurationServicesValidateResponse + ConfigurationServicesValidateResponse, + ConfigurationServicesValidateResourceOptionalParams, + ConfigurationServicesValidateResourceResponse } from "../models"; /// @@ -154,4 +156,41 @@ export interface ConfigurationServices { settings: ConfigurationServiceSettings, options?: ConfigurationServicesValidateOptionalParams ): Promise; + /** + * Check if the Application Configuration Service resource is 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 configurationServiceName The name of Application Configuration Service. + * @param configurationServiceResource Application Configuration Service resource to be validated + * @param options The options parameters. + */ + beginValidateResource( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + configurationServiceResource: ConfigurationServiceResource, + options?: ConfigurationServicesValidateResourceOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ConfigurationServicesValidateResourceResponse + > + >; + /** + * Check if the Application Configuration Service resource is 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 configurationServiceName The name of Application Configuration Service. + * @param configurationServiceResource Application Configuration Service resource to be validated + * @param options The options parameters. + */ + beginValidateResourceAndWait( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + configurationServiceResource: ConfigurationServiceResource, + options?: ConfigurationServicesValidateResourceOptionalParams + ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts index eb0dda4b840e..f003339f0028 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts @@ -14,7 +14,11 @@ import { ContainerRegistriesGetOptionalParams, ContainerRegistriesGetResponse, ContainerRegistriesCreateOrUpdateOptionalParams, - ContainerRegistriesCreateOrUpdateResponse + ContainerRegistriesCreateOrUpdateResponse, + ContainerRegistriesDeleteOptionalParams, + ContainerRegistryProperties, + ContainerRegistriesValidateOptionalParams, + ContainerRegistriesValidateResponse } from "../models"; /// @@ -83,4 +87,69 @@ export interface ContainerRegistries { containerRegistryResource: ContainerRegistryResource, options?: ContainerRegistriesCreateOrUpdateOptionalParams ): Promise; + /** + * Delete a container registry resource. + * @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 containerRegistryName The name of the container registry. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serviceName: string, + containerRegistryName: string, + options?: ContainerRegistriesDeleteOptionalParams + ): Promise, void>>; + /** + * Delete a container registry resource. + * @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 containerRegistryName The name of the container registry. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + containerRegistryName: string, + options?: ContainerRegistriesDeleteOptionalParams + ): Promise; + /** + * Check if the container registry properties 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 containerRegistryName The name of the container registry. + * @param containerRegistryProperties Parameters for the validate operation + * @param options The options parameters. + */ + beginValidate( + resourceGroupName: string, + serviceName: string, + containerRegistryName: string, + containerRegistryProperties: ContainerRegistryProperties, + options?: ContainerRegistriesValidateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ContainerRegistriesValidateResponse + > + >; + /** + * Check if the container registry properties 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 containerRegistryName The name of the container registry. + * @param containerRegistryProperties Parameters for the validate operation + * @param options The options parameters. + */ + beginValidateAndWait( + resourceGroupName: string, + serviceName: string, + containerRegistryName: string, + containerRegistryProperties: ContainerRegistryProperties, + options?: ContainerRegistriesValidateOptionalParams + ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/eurekaServers.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/eurekaServers.ts new file mode 100644 index 000000000000..2bc5bae3c39c --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/eurekaServers.ts @@ -0,0 +1,114 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + EurekaServersListOptionalParams, + EurekaServersListResponse, + EurekaServersGetOptionalParams, + EurekaServersGetResponse, + EurekaServerResource, + EurekaServersUpdatePutOptionalParams, + EurekaServersUpdatePutResponse, + EurekaServersUpdatePatchOptionalParams, + EurekaServersUpdatePatchResponse +} from "../models"; + +/** Interface representing a EurekaServers. */ +export interface EurekaServers { + /** + * List the eureka server settings. + * @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?: EurekaServersListOptionalParams + ): Promise; + /** + * Get the eureka server settings. + * @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. + */ + get( + resourceGroupName: string, + serviceName: string, + options?: EurekaServersGetOptionalParams + ): Promise; + /** + * Update the eureka server settings. + * @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 eurekaServerResource Parameters for the update operation + * @param options The options parameters. + */ + beginUpdatePut( + resourceGroupName: string, + serviceName: string, + eurekaServerResource: EurekaServerResource, + options?: EurekaServersUpdatePutOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + EurekaServersUpdatePutResponse + > + >; + /** + * Update the eureka server settings. + * @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 eurekaServerResource Parameters for the update operation + * @param options The options parameters. + */ + beginUpdatePutAndWait( + resourceGroupName: string, + serviceName: string, + eurekaServerResource: EurekaServerResource, + options?: EurekaServersUpdatePutOptionalParams + ): Promise; + /** + * Update the eureka server settings. + * @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 eurekaServerResource Parameters for the update operation + * @param options The options parameters. + */ + beginUpdatePatch( + resourceGroupName: string, + serviceName: string, + eurekaServerResource: EurekaServerResource, + options?: EurekaServersUpdatePatchOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + EurekaServersUpdatePatchResponse + > + >; + /** + * Update the eureka server settings. + * @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 eurekaServerResource Parameters for the update operation + * @param options The options parameters. + */ + beginUpdatePatchAndWait( + resourceGroupName: string, + serviceName: string, + eurekaServerResource: EurekaServerResource, + options?: EurekaServersUpdatePatchOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts index 5ad18dc2229d..bfa157c0b919 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts @@ -7,6 +7,8 @@ */ export * from "./services"; +export * from "./apms"; +export * from "./eurekaServers"; export * from "./configServers"; export * from "./configurationServices"; export * from "./serviceRegistries"; diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts index 8f9afaa61dfa..b9f24777d0a5 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts @@ -9,9 +9,13 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { + SupportedApmType, + ServicesListSupportedApmTypesOptionalParams, ServiceResource, ServicesListBySubscriptionOptionalParams, ServicesListOptionalParams, + SupportedServerVersion, + ServicesListSupportedServerVersionsOptionalParams, ServicesGetOptionalParams, ServicesGetResponse, ServicesCreateOrUpdateOptionalParams, @@ -29,6 +33,12 @@ import { ServicesEnableTestEndpointResponse, ServicesStopOptionalParams, ServicesStartOptionalParams, + ServicesFlushVnetDnsSettingOptionalParams, + ServicesListGloballyEnabledApmsOptionalParams, + ServicesListGloballyEnabledApmsResponse, + ApmReference, + ServicesEnableApmGloballyOptionalParams, + ServicesDisableApmGloballyOptionalParams, NameAvailabilityParameters, ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse @@ -37,6 +47,18 @@ import { /// /** Interface representing a Services. */ export interface Services { + /** + * List supported APM types for 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. + */ + listSupportedApmTypes( + resourceGroupName: string, + serviceName: string, + options?: ServicesListSupportedApmTypesOptionalParams + ): PagedAsyncIterableIterator; /** * Handles requests to list all resources in a subscription. * @param options The options parameters. @@ -54,6 +76,18 @@ export interface Services { resourceGroupName: string, options?: ServicesListOptionalParams ): PagedAsyncIterableIterator; + /** + * Lists all of the available server versions supported by Microsoft.AppPlatform provider. + * @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. + */ + listSupportedServerVersions( + resourceGroupName: string, + serviceName: string, + options?: ServicesListSupportedServerVersionsOptionalParams + ): PagedAsyncIterableIterator; /** * Get a Service and its properties. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -254,6 +288,98 @@ export interface Services { serviceName: string, options?: ServicesStartOptionalParams ): Promise; + /** + * Flush Virtual Network DNS settings for a VNET injected 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. + */ + beginFlushVnetDnsSetting( + resourceGroupName: string, + serviceName: string, + options?: ServicesFlushVnetDnsSettingOptionalParams + ): Promise, void>>; + /** + * Flush Virtual Network DNS settings for a VNET injected 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. + */ + beginFlushVnetDnsSettingAndWait( + resourceGroupName: string, + serviceName: string, + options?: ServicesFlushVnetDnsSettingOptionalParams + ): Promise; + /** + * List globally enabled APMs for 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. + */ + listGloballyEnabledApms( + resourceGroupName: string, + serviceName: string, + options?: ServicesListGloballyEnabledApmsOptionalParams + ): Promise; + /** + * Enable an APM globally. + * @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 apm The target APM for the enable operation + * @param options The options parameters. + */ + beginEnableApmGlobally( + resourceGroupName: string, + serviceName: string, + apm: ApmReference, + options?: ServicesEnableApmGloballyOptionalParams + ): Promise, void>>; + /** + * Enable an APM globally. + * @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 apm The target APM for the enable operation + * @param options The options parameters. + */ + beginEnableApmGloballyAndWait( + resourceGroupName: string, + serviceName: string, + apm: ApmReference, + options?: ServicesEnableApmGloballyOptionalParams + ): Promise; + /** + * Disable an APM globally. + * @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 apm The target APM for the disable operation + * @param options The options parameters. + */ + beginDisableApmGlobally( + resourceGroupName: string, + serviceName: string, + apm: ApmReference, + options?: ServicesDisableApmGloballyOptionalParams + ): Promise, void>>; + /** + * Disable an APM globally. + * @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 apm The target APM for the disable operation + * @param options The options parameters. + */ + beginDisableApmGloballyAndWait( + resourceGroupName: string, + serviceName: string, + apm: ApmReference, + options?: ServicesDisableApmGloballyOptionalParams + ): Promise; /** * Checks that the resource name is valid and is not already in use. * @param location the region 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"