diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 54f1a1847991..ee9d2a2f4f8c 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -4132,7 +4132,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20230811 + typescript: 5.3.0-dev.20230816 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8717,8 +8717,8 @@ packages: hasBin: true dev: false - /typescript/5.3.0-dev.20230811: - resolution: {integrity: sha512-C4bwx7ZpBwX7bKxrrNl+M1j8yNGmwQ5M58X0mT4VYI1+FHqRvb/uJ4F1uJsVJ+X7iy22iXSICR/Vxnpc1gNk7w==} + /typescript/5.3.0-dev.20230816: + resolution: {integrity: sha512-iEOudrx61DsbJn+z2bVX+/FldF7ILAuGwQYO2EvF4F33Q8DUV0KSkiikxUB83VVH8ExkwQHVNdtkr16wd2V71w==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -10098,7 +10098,7 @@ packages: dev: false file:projects/arm-appplatform.tgz: - resolution: {integrity: sha512-vZeF9feXrhfwhJG32Sr/1aMGIzV41yHs5HMcEPkWjiAJaBh6qG0LNEPoTyWICdzB1+PAtdwCNUxb0CXdpCboiQ==, tarball: file:projects/arm-appplatform.tgz} + resolution: {integrity: sha512-j7qvGGNxSd9ldS/kHQdEOIMNrD+zL71tD8SB7bWloN8henciBQbLYFWToxRxU3KU7SGCOWzdlbdtIwwNooulgw==, tarball: file:projects/arm-appplatform.tgz} name: '@rush-temp/arm-appplatform' version: 0.0.0 dependencies: @@ -10118,10 +10118,13 @@ packages: rimraf: 3.0.2 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_dmbj5memikchm63lpeyt6ukdau + ts-node: 10.9.1_n7tz6hmpirns3flqdptizaxofa tslib: 2.6.1 typescript: 5.0.4 uglify-js: 3.17.4 transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' - supports-color dev: false diff --git a/sdk/appplatform/arm-appplatform/CHANGELOG.md b/sdk/appplatform/arm-appplatform/CHANGELOG.md index 5306383c4334..fa019092eee7 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-08-16) **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,25 @@ - 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 Interface AcceleratorAuthSetting - Added Interface AcceleratorBasicAuthSetting - Added Interface AcceleratorGitRepository @@ -65,6 +67,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 +119,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 +162,7 @@ - Added Interface DeploymentsDisableRemoteDebuggingOptionalParams - Added Interface DeploymentsEnableRemoteDebuggingOptionalParams - Added Interface DeploymentsGetRemoteDebuggingConfigOptionalParams + - Added Interface DevToolPortalComponent - Added Interface DevToolPortalFeatureDetail - Added Interface DevToolPortalFeatureSettings - Added Interface DevToolPortalInstance @@ -153,6 +176,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 @@ -194,6 +226,7 @@ - Added Interface GatewaysUpdateCapacityHeaders - Added Interface GatewaysUpdateCapacityOptionalParams - Added Interface GatewaysValidateDomainOptionalParams + - Added Interface GloballyEnabledApms - Added Interface HttpGetAction - Added Interface HttpScaleRule - Added Interface ImageRegistryCredential @@ -202,6 +235,7 @@ - Added Interface IngressSettingsClientAuth - Added Interface JarUploadedUserSourceInfo - Added Interface KeyVaultCertificateProperties + - Added Interface MaintenanceScheduleConfiguration - Added Interface MarketplaceResource - Added Interface MonitoringSettingResource - Added Interface NetCoreZipUploadedUserSourceInfo @@ -225,6 +259,15 @@ - 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 ServicesStartOptionalParams - Added Interface ServicesStopOptionalParams - Added Interface ServiceVNetAddons @@ -240,6 +283,8 @@ - Added Interface StoragesGetOptionalParams - Added Interface StoragesListNextOptionalParams - Added Interface StoragesListOptionalParams + - Added Interface SupportedApmType + - Added Interface SupportedApmTypes - Added Interface SupportedBuildpackResource - Added Interface SupportedStackResource - Added Interface TcpScaleRule @@ -247,7 +292,9 @@ - Added Interface TrackedResource - Added Interface UploadedUserSourceInfo - Added Interface UserAssignedManagedIdentity + - 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 +305,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 +328,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 +345,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,6 +357,13 @@ - 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 @@ -317,7 +382,9 @@ - Added Type Alias GatewaysListResponse - Added Type Alias GatewaysUpdateCapacityResponse - Added Type Alias GatewaysValidateDomainResponse + - Added Type Alias GitImplementation - Added Type Alias HttpSchemeType + - Added Type Alias MaintenanceScheduleConfigurationUnion - Added Type Alias PowerState - Added Type Alias PredefinedAcceleratorProvisioningState - Added Type Alias PredefinedAcceleratorsGetResponse @@ -326,6 +393,9 @@ - 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 SessionAffinity - Added Type Alias StoragePropertiesUnion - Added Type Alias StoragesCreateOrUpdateResponse @@ -334,10 +404,14 @@ - Added Type Alias StoragesListResponse - Added Type Alias StorageType - Added Type Alias Type + - Added Type Alias WeekDay - Interface AppResourceProperties has a new optional parameter customPersistentDisks - 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,11 +420,17 @@ - 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 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 @@ -361,21 +441,30 @@ - Interface NetworkProfile has a new optional parameter ingressConfig - Interface NetworkProfile has a new optional parameter outboundType - Type of parameter type of interface UserSourceInfo is changed from "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" to "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" | "Container" + - Added Enum 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 KnownPowerState - Added Enum KnownPredefinedAcceleratorProvisioningState @@ -384,13 +473,15 @@ - Added Enum KnownSessionAffinity - Added Enum KnownStorageType - Added Enum KnownType + - Added Enum KnownWeekDay - Enum KnownBindingType has a new value CACertificates - 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; diff --git a/sdk/appplatform/arm-appplatform/_meta.json b/sdk/appplatform/arm-appplatform/_meta.json index 6fd032db7c33..626839f0d728 100644 --- a/sdk/appplatform/arm-appplatform/_meta.json +++ b/sdk/appplatform/arm-appplatform/_meta.json @@ -1,8 +1,8 @@ { - "commit": "7dc97858c4e1becc2a5d6517495c37b2bbc606df", + "commit": "2c7e7f7a03b27a08936271f5737e394599bf935e", "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.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/appplatform/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "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.1", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json index 781319eca191..8710acdd3111 100644 --- a/sdk/appplatform/arm-appplatform/package.json +++ b/sdk/appplatform/arm-appplatform/package.json @@ -8,12 +8,12 @@ "node": ">=14.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": [ @@ -48,6 +48,7 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", + "ts-node": "^10.0.0", "@azure/dev-tool": "^1.0.0" }, "repository": { @@ -111,13 +112,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..3ace07d0be49 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 @@ -503,6 +609,7 @@ export interface AppResourceProperties { temporaryDisk?: TemporaryDisk; readonly url?: string; vnetAddons?: AppVNetAddons; + workloadProfileName?: string; } // @public @@ -842,7 +949,9 @@ export interface BuildpacksGroupProperties { // @public export interface BuildProperties { agentPool?: string; + apms?: ApmReference[]; builder?: string; + certificates?: CertificateReference[]; env?: { [propertyName: string]: string; }; @@ -1218,6 +1327,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 +1409,7 @@ export interface CloudErrorBody { export interface ClusterResourceProperties { readonly fqdn?: string; infraResourceGroup?: string; + maintenanceScheduleConfiguration?: MaintenanceScheduleConfigurationUnion; managedEnvironmentId?: string; marketplaceResource?: MarketplaceResource; networkProfile?: NetworkProfile; @@ -1307,6 +1422,9 @@ export interface ClusterResourceProperties { zoneRedundant?: boolean; } +// @public +export type ConfigServerEnabledState = string; + // @public export interface ConfigServerGitProperty { hostKey?: string; @@ -1324,6 +1442,7 @@ export interface ConfigServerGitProperty { // @public export interface ConfigServerProperties { configServer?: ConfigServerSettings; + enabledState?: ConfigServerEnabledState; error?: ErrorModel; readonly provisioningState?: ConfigServerState; } @@ -1399,6 +1518,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 +1534,8 @@ export interface ConfigurationServiceGitPropertyValidateResult { // @public export interface ConfigurationServiceGitRepository { + caCertResourceId?: string; + gitImplementation?: GitImplementation; hostKey?: string; hostKeyAlgorithm?: string; label: string; @@ -1433,6 +1557,7 @@ export interface ConfigurationServiceInstance { // @public export interface ConfigurationServiceProperties { + generation?: ConfigurationServiceGeneration; readonly instances?: ConfigurationServiceInstance[]; readonly provisioningState?: ConfigurationServiceProvisioningState; readonly resourceRequests?: ConfigurationServiceResourceRequests; @@ -1468,6 +1593,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; } @@ -1524,6 +1651,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 +1678,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 +1695,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 +1728,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 +1779,12 @@ export interface ContainerRegistryResourceCollection { value?: ContainerRegistryResource[]; } +// @public +export interface ContainerRegistryValidateResult { + isValid?: boolean; + message?: string; +} + // @public export interface ContentCertificateProperties extends CertificateProperties { content?: string; @@ -1733,7 +1912,9 @@ export interface CustomizedAcceleratorProperties { gitRepository: AcceleratorGitRepository; // (undocumented) iconUrl?: string; + readonly imports?: string[]; readonly provisioningState?: CustomizedAcceleratorProvisioningState; + type?: CustomizedAcceleratorType; } // @public @@ -1807,6 +1988,9 @@ export interface CustomizedAcceleratorsValidateOptionalParams extends coreClient // @public export type CustomizedAcceleratorsValidateResponse = CustomizedAcceleratorValidateResult; +// @public +export type CustomizedAcceleratorType = string; + // @public export interface CustomizedAcceleratorValidateResult { errorMessage?: string; @@ -1956,6 +2140,7 @@ export interface DeploymentSettings { addonConfigs?: { [propertyName: string]: Record; }; + apms?: ApmReference[]; containerProbeSettings?: ContainerProbeSettings; environmentVariables?: { [propertyName: string]: string; @@ -2064,6 +2249,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 +2279,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 +2375,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 +2492,7 @@ export interface GatewayCorsProperties { allowCredentials?: boolean; allowedHeaders?: string[]; allowedMethods?: string[]; + allowedOriginPatterns?: string[]; allowedOrigins?: string[]; exposedHeaders?: string[]; maxAge?: number; @@ -2308,6 +2581,9 @@ export interface GatewayOperatorResourceRequests { // @public export interface GatewayProperties { + addonConfigs?: { + [propertyName: string]: Record; + }; apiMetadataProperties?: GatewayApiMetadataProperties; apmTypes?: ApmType[]; clientAuth?: GatewayPropertiesClientAuth; @@ -2535,6 +2811,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 +2829,11 @@ export interface GitPatternRepository { username?: string; } +// @public +export interface GloballyEnabledApms { + value?: string[]; +} + // @public export interface HttpGetAction extends ProbeAction { path?: string; @@ -2615,6 +2899,12 @@ export enum KnownActionType { Internal = "Internal" } +// @public +export enum KnownApiPortalApiTryOutEnabledState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownApiPortalProvisioningState { Creating = "Creating", @@ -2624,6 +2914,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 +3032,12 @@ export enum KnownCertificateResourceProvisioningState { Updating = "Updating" } +// @public +export enum KnownConfigServerEnabledState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownConfigServerState { Deleted = "Deleted", @@ -2741,6 +3047,12 @@ export enum KnownConfigServerState { Updating = "Updating" } +// @public +export enum KnownConfigurationServiceGeneration { + Gen1 = "Gen1", + Gen2 = "Gen2" +} + // @public export enum KnownConfigurationServiceProvisioningState { Creating = "Creating", @@ -2754,6 +3066,7 @@ export enum KnownConfigurationServiceProvisioningState { export enum KnownContainerRegistryProvisioningState { Canceled = "Canceled", Creating = "Creating", + Deleting = "Deleting", Failed = "Failed", Succeeded = "Succeeded", Updating = "Updating" @@ -2785,6 +3098,12 @@ export enum KnownCustomizedAcceleratorProvisioningState { Updating = "Updating" } +// @public +export enum KnownCustomizedAcceleratorType { + Accelerator = "Accelerator", + Fragment = "Fragment" +} + // @public export enum KnownCustomizedAcceleratorValidateResultState { Invalid = "Invalid", @@ -2821,6 +3140,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,6 +3180,12 @@ export enum KnownGatewayRouteConfigProtocol { Https = "HTTPS" } +// @public +export enum KnownGitImplementation { + GoGit = "go-git", + Libgit2 = "libgit2" +} + // @public export enum KnownHttpSchemeType { Http = "HTTP", @@ -2992,6 +3336,17 @@ 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 +3371,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 +3911,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 +3929,8 @@ 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; listTestKeys(resourceGroupName: string, serviceName: string, options?: ServicesListTestKeysOptionalParams): Promise; regenerateTestKey(resourceGroupName: string, serviceName: string, regenerateTestKeyRequest: RegenerateTestKeyRequestPayload, options?: ServicesRegenerateTestKeyOptionalParams): Promise; } @@ -3586,10 +3957,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 +3992,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 +4025,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 +4046,20 @@ 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 ServicesListTestKeysOptionalParams extends coreClient.OperationOptions { } @@ -3820,6 +4248,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; @@ -3956,6 +4395,17 @@ export interface ValidationMessages { name?: string; } +// @public +export type WeekDay = string; + +// @public +export interface WeeklyMaintenanceScheduleConfiguration extends MaintenanceScheduleConfiguration { + day: WeekDay; + readonly durationHours?: number; + 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..e2fc9aacf5e7 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 || "2023-09-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..524e80d812d9 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; @@ -51,13 +54,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 +165,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 +269,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 +362,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 +458,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. @@ -443,6 +543,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 +741,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 +758,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 +862,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 +939,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,6 +952,12 @@ 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 */ @@ -1139,6 +1271,8 @@ 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; } /** Temporary disk payload */ @@ -1495,6 +1629,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 */ @@ -1960,6 +2096,8 @@ export interface GatewayProperties { 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. @@ -2002,6 +2140,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. */ @@ -2213,6 +2353,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 +2489,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. */ + type?: 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 +2516,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 +2570,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 +2582,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 + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly durationHours?: number; + /** 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. */ @@ -2589,6 +2756,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 */ @@ -2813,6 +2992,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 +3115,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 +3214,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 +3313,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 +3358,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 +3509,8 @@ export enum KnownContainerRegistryProvisioningState { Succeeded = "Succeeded", /** Failed */ Failed = "Failed", + /** Deleting */ + Deleting = "Deleting", /** Canceled */ Canceled = "Canceled" } @@ -3157,6 +3524,7 @@ export enum KnownContainerRegistryProvisioningState { * **Updating** \ * **Succeeded** \ * **Failed** \ + * **Deleting** \ * **Canceled** */ export type ContainerRegistryProvisioningState = string; @@ -3842,6 +4210,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 +4282,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 +4360,39 @@ 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 HttpSchemeType} that the service accepts. */ export enum KnownHttpSchemeType { /** Http */ @@ -4057,6 +4494,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 +4556,13 @@ export interface ServicesListOptionalParams /** Contains response data for the list operation. */ export type ServicesListResponse = ServiceResourceList; +/** 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 +4577,90 @@ export interface ServicesListNextOptionalParams /** Contains response data for the listNext operation. */ export type ServicesListNextResponse = ServiceResourceList; +/** 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 +4751,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 +4922,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 {} diff --git a/sdk/appplatform/arm-appplatform/src/models/mappers.ts b/sdk/appplatform/arm-appplatform/src/models/mappers.ts index 5ad9365a3060..16ce7d8094fe 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: { @@ -1036,6 +1295,18 @@ export const ConfigurationServiceGitRepository: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + gitImplementation: { + serializedName: "gitImplementation", + type: { + name: "String" + } + }, + caCertResourceId: { + serializedName: "caCertResourceId", + type: { + name: "String" + } } } } @@ -1437,22 +1708,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 +1753,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 +1997,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", @@ -1840,11 +2161,35 @@ export const BuildProperties: coreClient.CompositeMapper = { name: "String" } }, - env: { - serializedName: "env", + env: { + serializedName: "env", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + apms: { + serializedName: "apms", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApmReference" + } + } + } + }, + certificates: { + serializedName: "certificates", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateReference" + } + } } }, triggeredBuildResult: { @@ -1865,6 +2210,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", @@ -2617,6 +2978,12 @@ export const AppResourceProperties: coreClient.CompositeMapper = { } } } + }, + workloadProfileName: { + serializedName: "workloadProfileName", + type: { + name: "String" + } } } } @@ -3499,6 +3866,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: { @@ -4821,6 +5200,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, @@ -4938,6 +5326,17 @@ export const GatewayCorsProperties: coreClient.CompositeMapper = { } } }, + allowedOriginPatterns: { + serializedName: "allowedOriginPatterns", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, allowedMethods: { serializedName: "allowedMethods", type: { @@ -5507,6 +5906,13 @@ export const ApiPortalProperties: coreClient.CompositeMapper = { } } } + }, + apiTryOutEnabledState: { + defaultValue: "Enabled", + serializedName: "apiTryOutEnabledState", + type: { + name: "String" + } } } } @@ -5811,6 +6217,12 @@ export const CustomizedAcceleratorProperties: coreClient.CompositeMapper = { name: "String" } }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, displayName: { serializedName: "displayName", type: { @@ -5840,6 +6252,18 @@ export const CustomizedAcceleratorProperties: coreClient.CompositeMapper = { } } }, + imports: { + serializedName: "imports", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, gitRepository: { serializedName: "gitRepository", type: { @@ -5893,6 +6317,12 @@ export const AcceleratorGitRepository: coreClient.CompositeMapper = { name: "Composite", className: "AcceleratorAuthSetting" } + }, + subPath: { + serializedName: "subPath", + type: { + name: "String" + } } } } @@ -6101,6 +6531,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" + } + }, + durationHours: { + serializedName: "durationHours", + readOnly: true, + type: { + name: "Number" + } + }, + day: { + serializedName: "day", + required: true, + type: { + name: "String" + } + } + } + } +}; + export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6509,6 +6978,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", @@ -7135,6 +7638,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,6 +7819,7 @@ export const GatewaysRestartHeaders: coreClient.CompositeMapper = { }; export let discriminators = { + MaintenanceScheduleConfiguration: MaintenanceScheduleConfiguration, ContainerRegistryCredentials: ContainerRegistryCredentials, CustomPersistentDiskProperties: CustomPersistentDiskProperties, StorageProperties: StorageProperties, @@ -7188,6 +7827,7 @@ export let discriminators = { UserSourceInfo: UserSourceInfo, ProbeAction: ProbeAction, AcceleratorAuthSetting: AcceleratorAuthSetting, + "MaintenanceScheduleConfiguration.Weekly": WeeklyMaintenanceScheduleConfiguration, "ContainerRegistryCredentials.BasicAuth": ContainerRegistryBasicCredentials, "CustomPersistentDiskProperties.AzureFileVolume": AzureFileVolume, "StorageProperties.StorageAccount": StorageAccount, diff --git a/sdk/appplatform/arm-appplatform/src/models/parameters.ts b/sdk/appplatform/arm-appplatform/src/models/parameters.ts index e5c87eb59e9c..6597fe3bdc55 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: "2023-09-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: { 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/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..a1a3989f5975 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, @@ -44,9 +48,16 @@ import { ServicesEnableTestEndpointResponse, ServicesStopOptionalParams, ServicesStartOptionalParams, + ServicesFlushVnetDnsSettingOptionalParams, + ServicesListGloballyEnabledApmsOptionalParams, + ServicesListGloballyEnabledApmsResponse, + ApmReference, + ServicesEnableApmGloballyOptionalParams, + ServicesDisableApmGloballyOptionalParams, NameAvailabilityParameters, ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse, + ServicesListSupportedApmTypesNextResponse, ServicesListBySubscriptionNextResponse, ServicesListNextResponse } from "../models"; @@ -64,6 +75,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. @@ -719,6 +815,307 @@ export class ServicesImpl implements Services { return poller.pollUntilDone(); } + /** + * 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. + */ + 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; + } + + /** + * 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. + */ + async beginFlushVnetDnsSettingAndWait( + resourceGroupName: string, + serviceName: string, + options?: ServicesFlushVnetDnsSettingOptionalParams + ): Promise { + const poller = await this.beginFlushVnetDnsSetting( + resourceGroupName, + serviceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * 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 _listSupportedApmTypes( + resourceGroupName: string, + serviceName: string, + options?: ServicesListSupportedApmTypesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listSupportedApmTypesOperationSpec + ); + } + + /** + * 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 { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listGloballyEnabledApmsOperationSpec + ); + } + + /** + * 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 beginEnableApmGlobally( + resourceGroupName: string, + 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 @@ -765,6 +1162,26 @@ export class ServicesImpl implements Services { ); } + /** + * 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. @@ -1058,6 +1475,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 +1653,27 @@ const listOperationSpec: coreClient.OperationSpec = { 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", 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..b0a35d0d0659 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts @@ -9,6 +9,8 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { + SupportedApmType, + ServicesListSupportedApmTypesOptionalParams, ServiceResource, ServicesListBySubscriptionOptionalParams, ServicesListOptionalParams, @@ -29,6 +31,12 @@ import { ServicesEnableTestEndpointResponse, ServicesStopOptionalParams, ServicesStartOptionalParams, + ServicesFlushVnetDnsSettingOptionalParams, + ServicesListGloballyEnabledApmsOptionalParams, + ServicesListGloballyEnabledApmsResponse, + ApmReference, + ServicesEnableApmGloballyOptionalParams, + ServicesDisableApmGloballyOptionalParams, NameAvailabilityParameters, ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse @@ -37,6 +45,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. @@ -254,6 +274,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"