diff --git a/sdk/appplatform/arm-appplatform/CHANGELOG.md b/sdk/appplatform/arm-appplatform/CHANGELOG.md index b8aef587c2a0..f810736b5116 100644 --- a/sdk/appplatform/arm-appplatform/CHANGELOG.md +++ b/sdk/appplatform/arm-appplatform/CHANGELOG.md @@ -1,15 +1,84 @@ # Release History + +## 3.1.0-beta.1 (2024-03-12) + +**Features** -## 3.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added operation group EurekaServers + - Added operation Gateways.beginUpdateCapacity + - Added operation Gateways.beginUpdateCapacityAndWait + - Added Interface CustomScaleRule + - 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 GatewayLocalResponseCachePerInstanceProperties + - Added Interface GatewayLocalResponseCachePerRouteProperties + - Added Interface GatewayResponseCacheProperties + - Added Interface GatewaysUpdateCapacityHeaders + - Added Interface GatewaysUpdateCapacityOptionalParams + - Added Interface HttpScaleRule + - Added Interface MaintenanceScheduleConfiguration + - Added Interface QueueScaleRule + - Added Interface Scale + - Added Interface ScaleRule + - Added Interface ScaleRuleAuth + - Added Interface Secret + - Added Interface SystemAssignedServiceIdentity + - Added Interface TcpScaleRule + - Added Interface WeeklyMaintenanceScheduleConfiguration + - Added Type Alias ApmType + - Added Type Alias ConfigServerEnabledState + - 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 GatewayResponseCachePropertiesUnion + - Added Type Alias GatewaysUpdateCapacityResponse + - Added Type Alias MaintenanceScheduleConfigurationUnion + - Added Type Alias PrivateLinkState + - Added Type Alias SystemAssignedServiceIdentityType + - Added Type Alias TestEndpointAuthState + - Added Type Alias WeekDay + - Interface AppResourceProperties has a new optional parameter secrets + - Interface AppResourceProperties has a new optional parameter testEndpointAuthState + - Interface AppResourceProperties has a new optional parameter workloadProfileName + - Interface BuildpackProperties has a new optional parameter version + - 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 ConfigServerProperties has a new optional parameter enabledState + - Interface ConfigurationServiceSettings has a new optional parameter refreshIntervalInSeconds + - Interface DeploymentSettings has a new optional parameter scale + - Interface DeploymentsListOptionalParams has a new optional parameter expand + - Interface GatewayProperties has a new optional parameter addonConfigs + - Interface GatewayProperties has a new optional parameter apmTypes + - Interface GatewayProperties has a new optional parameter responseCacheProperties + - Interface ServiceResource has a new optional parameter identity + - Interface ServiceVNetAddons has a new optional parameter privateDnsZoneId + - Interface ServiceVNetAddons has a new optional parameter privateLinkState + - Interface SupportedBuildpackResourceProperties has a new optional parameter version + - Added Enum KnownApmType + - Added Enum KnownConfigServerEnabledState + - Added Enum KnownEurekaServerEnabledState + - Added Enum KnownEurekaServerState + - Added Enum KnownFrequency + - Added Enum KnownPrivateLinkState + - Added Enum KnownSystemAssignedServiceIdentityType + - Added Enum KnownTestEndpointAuthState + - Added Enum KnownWeekDay + - Enum KnownBindingType has a new value CACertificates + - Enum KnownSupportedRuntimeValue has a new value Java21 + + ## 3.0.0 (2024-01-10) **Features** diff --git a/sdk/appplatform/arm-appplatform/README.md b/sdk/appplatform/arm-appplatform/README.md index edfddbbcc142..22becae73dbd 100644 --- a/sdk/appplatform/arm-appplatform/README.md +++ b/sdk/appplatform/arm-appplatform/README.md @@ -6,7 +6,7 @@ REST API for Azure Spring Apps [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-appplatform) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-appplatform) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/appplatform/arm-appplatform/_meta.json b/sdk/appplatform/arm-appplatform/_meta.json index edac8a59ccce..0beb0b3117d3 100644 --- a/sdk/appplatform/arm-appplatform/_meta.json +++ b/sdk/appplatform/arm-appplatform/_meta.json @@ -1,8 +1,8 @@ { - "commit": "2f74f79b243484837a6d7b6dfa78b3e16274d006", + "commit": "e9e2a5aa86c70e77b452e3b864c1c2b57abc8207", "readme": "specification/appplatform/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appplatform\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/appplatform/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json index e6a55433c8a9..bcdd01f5d902 100644 --- a/sdk/appplatform/arm-appplatform/package.json +++ b/sdk/appplatform/arm-appplatform/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AppPlatformManagementClient.", - "version": "3.0.1", + "version": "3.1.0-beta.1", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@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.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -78,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -107,13 +106,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 dd6cc070fd66..4757174860d7 100644 --- a/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md +++ b/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md @@ -318,6 +318,9 @@ export interface ApmsListSecretKeysOptionalParams extends coreClient.OperationOp // @public export type ApmsListSecretKeysResponse = ApmSecretKeys; +// @public +export type ApmType = string; + // @public (undocumented) export interface ApplicationAcceleratorComponent { readonly instances?: ApplicationAcceleratorInstance[]; @@ -562,6 +565,8 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) devToolPortals: DevToolPortals; // (undocumented) + eurekaServers: EurekaServers; + // (undocumented) gatewayCustomDomains: GatewayCustomDomains; // (undocumented) gatewayRouteConfigs: GatewayRouteConfigs; @@ -621,9 +626,12 @@ export interface AppResourceProperties { persistentDisk?: PersistentDisk; readonly provisioningState?: AppResourceProvisioningState; public?: boolean; + secrets?: Secret[]; temporaryDisk?: TemporaryDisk; + testEndpointAuthState?: TestEndpointAuthState; readonly url?: string; vnetAddons?: AppVNetAddons; + workloadProfileName?: string; } // @public @@ -952,6 +960,7 @@ export interface BuildpackBindingResourceCollection { // @public export interface BuildpackProperties { id?: string; + readonly version?: string; } // @public @@ -1425,6 +1434,9 @@ export interface CloudErrorBody { // @public export interface ClusterResourceProperties { readonly fqdn?: string; + infraResourceGroup?: string; + maintenanceScheduleConfiguration?: MaintenanceScheduleConfigurationUnion; + managedEnvironmentId?: string; marketplaceResource?: MarketplaceResource; networkProfile?: NetworkProfile; readonly powerState?: PowerState; @@ -1436,6 +1448,9 @@ export interface ClusterResourceProperties { zoneRedundant?: boolean; } +// @public +export type ConfigServerEnabledState = string; + // @public export interface ConfigServerGitProperty { hostKey?: string; @@ -1453,6 +1468,7 @@ export interface ConfigServerGitProperty { // @public export interface ConfigServerProperties { configServer?: ConfigServerSettings; + enabledState?: ConfigServerEnabledState; error?: ErrorModel; readonly provisioningState?: ConfigServerState; } @@ -1627,6 +1643,7 @@ export interface ConfigurationServicesDeleteOptionalParams extends coreClient.Op // @public export interface ConfigurationServiceSettings { gitProperty?: ConfigurationServiceGitProperty; + refreshIntervalInSeconds?: number; } // @public @@ -2049,6 +2066,15 @@ export interface CustomPersistentDiskResource { storageId: string; } +// @public +export interface CustomScaleRule { + auth?: ScaleRuleAuth[]; + metadata?: { + [propertyName: string]: string; + }; + type?: string; +} + // @public export interface DeploymentInstance { readonly discoveryStatus?: string; @@ -2170,6 +2196,7 @@ export interface DeploymentSettings { livenessProbe?: Probe; readinessProbe?: Probe; resourceRequests?: ResourceRequests; + scale?: Scale; startupProbe?: Probe; terminationGracePeriodSeconds?: number; } @@ -2232,6 +2259,7 @@ export type DeploymentsListNextResponse = DeploymentResourceCollection; // @public export interface DeploymentsListOptionalParams extends coreClient.OperationOptions { + expand?: string; version?: string[]; } @@ -2406,12 +2434,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; @@ -2516,6 +2625,20 @@ export interface GatewayInstance { readonly status?: string; } +// @public +export interface GatewayLocalResponseCachePerInstanceProperties extends GatewayResponseCacheProperties { + responseCacheType: "LocalCachePerInstance"; + size?: string; + timeToLive?: string; +} + +// @public +export interface GatewayLocalResponseCachePerRouteProperties extends GatewayResponseCacheProperties { + responseCacheType: "LocalCachePerRoute"; + size?: string; + timeToLive?: string; +} + // @public export interface GatewayOperatorProperties { readonly instances?: GatewayInstance[]; @@ -2531,8 +2654,12 @@ export interface GatewayOperatorResourceRequests { // @public export interface GatewayProperties { + addonConfigs?: { + [propertyName: string]: Record; + }; apiMetadataProperties?: GatewayApiMetadataProperties; apms?: ApmReference[]; + apmTypes?: ApmType[]; clientAuth?: GatewayPropertiesClientAuth; corsProperties?: GatewayCorsProperties; environmentVariables?: GatewayPropertiesEnvironmentVariables; @@ -2542,6 +2669,7 @@ export interface GatewayProperties { readonly provisioningState?: GatewayProvisioningState; public?: boolean; resourceRequests?: GatewayResourceRequests; + responseCacheProperties?: GatewayResponseCachePropertiesUnion; ssoProperties?: SsoProperties; readonly url?: string; } @@ -2583,6 +2711,14 @@ export interface GatewayResourceRequests { memory?: string; } +// @public +export interface GatewayResponseCacheProperties { + responseCacheType: "LocalCachePerRoute" | "LocalCachePerInstance"; +} + +// @public (undocumented) +export type GatewayResponseCachePropertiesUnion = GatewayResponseCacheProperties | GatewayLocalResponseCachePerRouteProperties | GatewayLocalResponseCachePerInstanceProperties; + // @public export interface GatewayRouteConfigOpenApiProperties { uri?: string; @@ -2668,6 +2804,8 @@ export interface Gateways { beginDeleteAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysDeleteOptionalParams): Promise; beginRestart(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysRestartOptionalParams): Promise, void>>; beginRestartAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysRestartOptionalParams): Promise; + beginUpdateCapacity(resourceGroupName: string, serviceName: string, gatewayName: string, gatewayCapacityResource: SkuObject, options?: GatewaysUpdateCapacityOptionalParams): Promise, GatewaysUpdateCapacityResponse>>; + beginUpdateCapacityAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, gatewayCapacityResource: SkuObject, options?: GatewaysUpdateCapacityOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysGetOptionalParams): Promise; list(resourceGroupName: string, serviceName: string, options?: GatewaysListOptionalParams): PagedAsyncIterableIterator; listEnvSecrets(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysListEnvSecretsOptionalParams): Promise; @@ -2731,6 +2869,21 @@ export interface GatewaysRestartOptionalParams extends coreClient.OperationOptio updateIntervalInMs?: number; } +// @public +export interface GatewaysUpdateCapacityHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface GatewaysUpdateCapacityOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GatewaysUpdateCapacityResponse = GatewayResource; + // @public export interface GatewaysValidateDomainOptionalParams extends coreClient.OperationOptions { } @@ -2771,6 +2924,14 @@ export interface HttpGetAction extends ProbeAction { type: "HTTPGetAction"; } +// @public +export interface HttpScaleRule { + auth?: ScaleRuleAuth[]; + metadata?: { + [propertyName: string]: string; + }; +} + // @public export type HttpSchemeType = string; @@ -2850,6 +3011,15 @@ export enum KnownApmProvisioningState { Updating = "Updating" } +// @public +export enum KnownApmType { + AppDynamics = "AppDynamics", + ApplicationInsights = "ApplicationInsights", + Dynatrace = "Dynatrace", + ElasticAPM = "ElasticAPM", + NewRelic = "NewRelic" +} + // @public export enum KnownApplicationAcceleratorProvisioningState { Canceled = "Canceled", @@ -2890,6 +3060,7 @@ export enum KnownBindingType { ApacheSkyWalking = "ApacheSkyWalking", AppDynamics = "AppDynamics", ApplicationInsights = "ApplicationInsights", + CACertificates = "CACertificates", Dynatrace = "Dynatrace", ElasticAPM = "ElasticAPM", NewRelic = "NewRelic" @@ -2949,6 +3120,12 @@ export enum KnownCertificateResourceProvisioningState { Updating = "Updating" } +// @public +export enum KnownConfigServerEnabledState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownConfigServerState { Deleted = "Deleted", @@ -3052,6 +3229,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", @@ -3144,6 +3340,12 @@ export enum KnownPredefinedAcceleratorState { Enabled = "Enabled" } +// @public +export enum KnownPrivateLinkState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownProbeActionType { ExecAction = "ExecAction", @@ -3215,10 +3417,23 @@ export enum KnownSupportedRuntimePlatform { export enum KnownSupportedRuntimeValue { Java11 = "Java_11", Java17 = "Java_17", + Java21 = "Java_21", Java8 = "Java_8", NetCore31 = "NetCore_31" } +// @public +export enum KnownSystemAssignedServiceIdentityType { + None = "None", + SystemAssigned = "SystemAssigned" +} + +// @public +export enum KnownTestEndpointAuthState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownTestKeyType { Primary = "Primary", @@ -3246,6 +3461,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; @@ -3270,6 +3496,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; @@ -3539,6 +3773,9 @@ export type PredefinedAcceleratorsListResponse = PredefinedAcceleratorResourceCo // @public export type PredefinedAcceleratorState = string; +// @public +export type PrivateLinkState = string; + // @public export interface Probe { disableProbe: boolean; @@ -3568,6 +3805,13 @@ export type ProvisioningState = string; export interface ProxyResource extends Resource { } +// @public +export interface QueueScaleRule { + auth?: ScaleRuleAuth[]; + queueLength?: number; + queueName?: string; +} + // @public export interface RegenerateTestKeyRequestPayload { keyType: TestKeyType; @@ -3681,6 +3925,34 @@ export interface RuntimeVersionsListRuntimeVersionsOptionalParams extends coreCl // @public export type RuntimeVersionsListRuntimeVersionsResponse = AvailableRuntimeVersions; +// @public +export interface Scale { + maxReplicas?: number; + minReplicas?: number; + rules?: ScaleRule[]; +} + +// @public +export interface ScaleRule { + azureQueue?: QueueScaleRule; + custom?: CustomScaleRule; + http?: HttpScaleRule; + name?: string; + tcp?: TcpScaleRule; +} + +// @public +export interface ScaleRuleAuth { + secretRef?: string; + triggerParameter?: string; +} + +// @public +export interface Secret { + name?: string; + value?: string; +} + // @public export interface ServiceRegistries { beginCreateOrUpdate(resourceGroupName: string, serviceName: string, serviceRegistryName: string, options?: ServiceRegistriesCreateOrUpdateOptionalParams): Promise, ServiceRegistriesCreateOrUpdateResponse>>; @@ -3763,6 +4035,7 @@ export interface ServiceRegistryResourceRequests { // @public export interface ServiceResource extends TrackedResource { + identity?: SystemAssignedServiceIdentity; properties?: ClusterResourceProperties; sku?: Sku; } @@ -3991,6 +4264,8 @@ export type ServicesUpdateResponse = ServiceResource; export interface ServiceVNetAddons { dataPlanePublicEndpoint?: boolean; logStreamPublicEndpoint?: boolean; + privateDnsZoneId?: string; + privateLinkState?: PrivateLinkState; } // @public @@ -4153,6 +4428,7 @@ export interface SupportedBuildpackResource extends ProxyResource { // @public export interface SupportedBuildpackResourceProperties { buildpackId?: string; + version?: string; } // @public @@ -4204,6 +4480,16 @@ export interface SupportedStacksCollection { value?: SupportedStackResource[]; } +// @public +export interface SystemAssignedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type: SystemAssignedServiceIdentityType; +} + +// @public +export type SystemAssignedServiceIdentityType = string; + // @public export interface SystemData { createdAt?: Date; @@ -4214,6 +4500,14 @@ export interface SystemData { lastModifiedByType?: LastModifiedByType; } +// @public +export interface TcpScaleRule { + auth?: ScaleRuleAuth[]; + metadata?: { + [propertyName: string]: string; + }; +} + // @public export interface TCPSocketAction extends ProbeAction { type: "TCPSocketAction"; @@ -4225,6 +4519,9 @@ export interface TemporaryDisk { sizeInGB?: number; } +// @public +export type TestEndpointAuthState = string; + // @public export interface TestKeys { enabled?: boolean; @@ -4302,6 +4599,17 @@ export interface WarUploadedUserSourceInfo extends UploadedUserSourceInfo { type: "War"; } +// @public +export type WeekDay = string; + +// @public +export interface WeeklyMaintenanceScheduleConfiguration extends MaintenanceScheduleConfiguration { + day: WeekDay; + readonly duration?: string; + frequency: "Weekly"; + hour: number; +} + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts index 8f5181f8f292..24fc082fc2c5 100644 --- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts @@ -11,12 +11,13 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { ServicesImpl, ApmsImpl, + EurekaServersImpl, ConfigServersImpl, ConfigurationServicesImpl, ServiceRegistriesImpl, @@ -44,11 +45,12 @@ import { ApiPortalCustomDomainsImpl, ApplicationAcceleratorsImpl, CustomizedAcceleratorsImpl, - PredefinedAcceleratorsImpl + PredefinedAcceleratorsImpl, } from "./operations"; import { Services, Apms, + EurekaServers, ConfigServers, ConfigurationServices, ServiceRegistries, @@ -76,7 +78,7 @@ import { ApiPortalCustomDomains, ApplicationAccelerators, CustomizedAccelerators, - PredefinedAccelerators + PredefinedAccelerators, } from "./operationsInterfaces"; import { AppPlatformManagementClientOptionalParams } from "./models"; @@ -95,18 +97,18 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: AppPlatformManagementClientOptionalParams + options?: AppPlatformManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: AppPlatformManagementClientOptionalParams + options?: AppPlatformManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: | AppPlatformManagementClientOptionalParams | string, - options?: AppPlatformManagementClientOptionalParams + options?: AppPlatformManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -126,10 +128,10 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { } const defaults: AppPlatformManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-appplatform/3.0.1`; + const packageDetails = `azsdk-js-arm-appplatform/3.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -139,20 +141,21 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -162,7 +165,7 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -172,9 +175,9 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -182,9 +185,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-12-01"; + this.apiVersion = options.apiVersion || "2024-05-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); @@ -225,7 +229,7 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -239,13 +243,14 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } services: Services; apms: Apms; + eurekaServers: EurekaServers; configServers: ConfigServers; configurationServices: ConfigurationServices; serviceRegistries: ServiceRegistries; diff --git a/sdk/appplatform/arm-appplatform/src/lroImpl.ts b/sdk/appplatform/arm-appplatform/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/appplatform/arm-appplatform/src/lroImpl.ts +++ b/sdk/appplatform/arm-appplatform/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/appplatform/arm-appplatform/src/models/index.ts b/sdk/appplatform/arm-appplatform/src/models/index.ts index 3a61dff8089d..dd3f8d722264 100644 --- a/sdk/appplatform/arm-appplatform/src/models/index.ts +++ b/sdk/appplatform/arm-appplatform/src/models/index.ts @@ -8,6 +8,9 @@ import * as coreClient from "@azure/core-client"; +export type MaintenanceScheduleConfigurationUnion = + | MaintenanceScheduleConfiguration + | WeeklyMaintenanceScheduleConfiguration; export type ContainerRegistryCredentialsUnion = | ContainerRegistryCredentials | ContainerRegistryBasicCredentials; @@ -29,6 +32,10 @@ export type ProbeActionUnion = | HttpGetAction | ExecAction | TCPSocketAction; +export type GatewayResponseCachePropertiesUnion = + | GatewayResponseCacheProperties + | GatewayLocalResponseCachePerRouteProperties + | GatewayLocalResponseCachePerInstanceProperties; export type AcceleratorAuthSettingUnion = | AcceleratorAuthSetting | AcceleratorPublicSetting @@ -52,6 +59,8 @@ 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. @@ -62,6 +71,10 @@ export interface ClusterResourceProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serviceId?: string; + /** The resource Id of the Managed Environment that the Spring Apps instance builds on */ + managedEnvironmentId?: string; + /** The name of the resource group that contains the infrastructure resources */ + infraResourceGroup?: string; /** * Power state of the Service * NOTE: This property will not be serialized. It can only be populated by the server. @@ -155,6 +168,16 @@ export interface ServiceVNetAddons { logStreamPublicEndpoint?: boolean; /** Indicates whether the data plane components(log stream, app connect, remote debugging) in vnet injection instance could be accessed from internet. */ dataPlanePublicEndpoint?: boolean; + /** Indicates whether the vnet injection service enables private links for backend storage account and container registry. */ + privateLinkState?: PrivateLinkState; + /** Fully qualified resource Id of the Private DNS zone to link with the customer virtual network. */ + privateDnsZoneId?: string; +} + +/** 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 */ @@ -167,6 +190,22 @@ export interface MarketplaceResource { product?: string; } +/** Managed service identity (either system assigned, or none) */ +export interface SystemAssignedServiceIdentity { + /** + * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Type of managed service identity (either system assigned, or none). */ + type: SystemAssignedServiceIdentityType; +} + /** Sku of Azure Spring Apps */ export interface Sku { /** Name of the Sku */ @@ -316,17 +355,28 @@ export interface ApmSecretKeys { value?: string[]; } -/** Config server git properties payload */ -export interface ConfigServerProperties { +/** 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[]; /** - * 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; +} + +/** 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?: ConfigServerState; - /** Error when apply config server settings. */ + 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. */ @@ -337,6 +387,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. */ @@ -471,6 +536,8 @@ export interface ConfigurationServiceInstance { export interface ConfigurationServiceSettings { /** Property of git environment. */ gitProperty?: ConfigurationServiceGitProperty; + /** How often (in seconds) to check repository updates. Minimum value is 0. */ + refreshIntervalInSeconds?: number; } /** Property of git environment. */ @@ -1082,6 +1149,11 @@ export interface BuildpacksGroupProperties { export interface BuildpackProperties { /** Id of the buildpack */ id?: string; + /** + * Version of the buildpack + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly version?: string; } /** Object that includes an array of Builder resources and a possible link for next set */ @@ -1118,6 +1190,8 @@ export interface SupportedBuildpacksCollection { export interface SupportedBuildpackResourceProperties { /** The id of supported buildpack */ buildpackId?: string; + /** The version of supported buildpack */ + version?: string; } /** Object that includes an array of supported stacks resources and a possible link for next set */ @@ -1242,6 +1316,12 @@ export interface AppResourceProperties { vnetAddons?: AppVNetAddons; /** App ingress settings payload. */ ingressSettings?: IngressSettings; + /** Collection of auth secrets */ + secrets?: Secret[]; + /** The workload profile used for this app. Supported for Consumption + Dedicated plan. */ + workloadProfileName?: string; + /** State of test endpoint auth. */ + testEndpointAuthState?: TestEndpointAuthState; } /** Temporary disk payload */ @@ -1328,6 +1408,14 @@ export interface IngressSettingsClientAuth { certificates?: string[]; } +/** Secret definition. */ +export interface Secret { + /** Secret Name. */ + name?: string; + /** Secret Value. */ + value?: string; +} + /** Managed identity properties retrieved from ARM request headers. */ export interface ManagedIdentityProperties { /** Type of the managed identity */ @@ -1603,6 +1691,8 @@ export interface DeploymentSettings { startupProbe?: Probe; /** Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the App Instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 90 seconds. */ terminationGracePeriodSeconds?: number; + /** Scaling properties for the Azure Spring Apps App Instance. */ + scale?: Scale; /** Container liveness and readiness probe settings */ containerProbeSettings?: ContainerProbeSettings; } @@ -1639,6 +1729,77 @@ export interface ProbeAction { type: "HTTPGetAction" | "ExecAction" | "TCPSocketAction"; } +/** Azure Spring Apps scaling configurations. */ +export interface Scale { + /** Optional. Minimum number of container replicas. */ + minReplicas?: number; + /** Optional. Maximum number of container replicas. Defaults to 10 if not set. */ + maxReplicas?: number; + /** Scaling rules. */ + rules?: ScaleRule[]; +} + +/** Azure Spring Apps App Instance scaling rule. */ +export interface ScaleRule { + /** Scale Rule Name */ + name?: string; + /** Azure Queue based scaling. */ + azureQueue?: QueueScaleRule; + /** Custom scale rule. */ + custom?: CustomScaleRule; + /** HTTP requests based scaling. */ + http?: HttpScaleRule; + /** Tcp requests based scaling. */ + tcp?: TcpScaleRule; +} + +/** Azure Spring Apps App Instance Azure Queue based scaling rule. */ +export interface QueueScaleRule { + /** Queue name. */ + queueName?: string; + /** Queue length. */ + queueLength?: number; + /** Authentication secrets for the queue scale rule. */ + auth?: ScaleRuleAuth[]; +} + +/** Auth Secrets for Azure Spring Apps App Instance Scale Rule */ +export interface ScaleRuleAuth { + /** Name of the Azure Spring Apps App Instance secret from which to pull the auth params. */ + secretRef?: string; + /** Trigger Parameter that uses the secret */ + triggerParameter?: string; +} + +/** Azure Spring Apps App Instance Custom scaling rule. */ +export interface CustomScaleRule { + /** + * Type of the custom scale rule + * eg: azure-servicebus, redis etc. + */ + type?: string; + /** Metadata properties to describe custom scale rule. */ + metadata?: { [propertyName: string]: string }; + /** Authentication secrets for the custom scale rule. */ + auth?: ScaleRuleAuth[]; +} + +/** Azure Spring Apps App Instance Http scaling rule. */ +export interface HttpScaleRule { + /** Metadata properties to describe http scale rule. */ + metadata?: { [propertyName: string]: string }; + /** Authentication secrets for the custom scale rule. */ + auth?: ScaleRuleAuth[]; +} + +/** Azure Spring Apps App Instance Tcp scaling rule. */ +export interface TcpScaleRule { + /** Metadata properties to describe tcp scale rule. */ + metadata?: { [propertyName: string]: string }; + /** Authentication secrets for the tcp scale rule. */ + auth?: ScaleRuleAuth[]; +} + /** Container liveness and readiness probe settings */ export interface ContainerProbeSettings { /** Indicates whether disable the liveness and readiness probe */ @@ -2000,12 +2161,16 @@ export interface GatewayProperties { corsProperties?: GatewayCorsProperties; /** Client-Certification Authentication. */ clientAuth?: GatewayPropertiesClientAuth; + /** Collection of APM type used in Spring Cloud Gateway */ + apmTypes?: ApmType[]; /** Collection of ApmReferences in service level */ apms?: ApmReference[]; /** Environment variables of Spring Cloud Gateway */ environmentVariables?: GatewayPropertiesEnvironmentVariables; /** The requested resource quantity for required CPU and Memory. */ resourceRequests?: GatewayResourceRequests; + /** Collection of addons for Spring Cloud Gateway */ + addonConfigs?: { [propertyName: string]: Record }; /** * Collection of instances belong to Spring Cloud Gateway. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2016,6 +2181,8 @@ export interface GatewayProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operatorProperties?: GatewayOperatorProperties; + /** The properties to configure different types of response cache for Spring Cloud Gateway. */ + responseCacheProperties?: GatewayResponseCachePropertiesUnion; } /** Single sign-on related configuration */ @@ -2133,6 +2300,18 @@ export interface GatewayOperatorResourceRequests { readonly instanceCount?: number; } +/** Spring Cloud Gateway response cache properties. */ +export interface GatewayResponseCacheProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + responseCacheType: "LocalCachePerRoute" | "LocalCachePerInstance"; +} + +/** Resource Sku object used for scaling out and scaling in. */ +export interface SkuObject { + /** Sku of the Spring Cloud Gateway resource */ + sku?: Sku; +} + /** Object that includes an array of gateway resources and a possible link for next set */ export interface GatewayResourceCollection { /** Collection of gateway resources */ @@ -2484,10 +2663,20 @@ export interface ImageRegistryCredential { password?: string; } -/** Resource Sku object used for scaling out and scaling in. */ -export interface SkuObject { - /** Sku of the Spring Cloud Gateway resource */ - sku?: Sku; +/** Weekly planned maintenance */ +export interface WeeklyMaintenanceScheduleConfiguration + extends MaintenanceScheduleConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + frequency: "Weekly"; + /** The hour to run the maintenance job */ + hour: number; + /** + * The duration time to run the maintenance job, specified in ISO8601 format, e.g. PT8H + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly duration?: string; + /** The day to run the maintenance job */ + day: WeekDay; } /** The resource model definition for a ARM tracked top level resource. */ @@ -2610,6 +2799,28 @@ export interface TCPSocketAction extends ProbeAction { type: "TCPSocketAction"; } +/** Spring Cloud Gateway local response cache per route properties. */ +export interface GatewayLocalResponseCachePerRouteProperties + extends GatewayResponseCacheProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + responseCacheType: "LocalCachePerRoute"; + /** Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries. */ + size?: string; + /** Time before a cached entry is expired (300s, 5m, 1h...) */ + timeToLive?: string; +} + +/** Spring Cloud Gateway local response cache per instance properties. */ +export interface GatewayLocalResponseCachePerInstanceProperties + extends GatewayResponseCacheProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + responseCacheType: "LocalCachePerInstance"; + /** Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries */ + size?: string; + /** Time before a cached entry is expired (300s, 5m, 1h...) */ + timeToLive?: string; +} + /** Auth setting for public url. */ export interface AcceleratorPublicSetting extends AcceleratorAuthSetting { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2646,6 +2857,8 @@ export interface AcceleratorSshSetting extends AcceleratorAuthSetting { export interface ServiceResource extends TrackedResource { /** Properties of the Service resource */ properties?: ClusterResourceProperties; + /** Managed Identity of the Service resource */ + identity?: SystemAssignedServiceIdentity; /** Sku of the Service resource */ sku?: Sku; } @@ -2656,6 +2869,12 @@ export interface ApmResource extends ProxyResource { 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 */ @@ -2912,6 +3131,16 @@ 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; @@ -2942,6 +3171,11 @@ export interface BuildServiceDeleteBuildHeaders { location?: string; } +/** Defines headers for Gateways_updateCapacity operation. */ +export interface GatewaysUpdateCapacityHeaders { + location?: string; +} + /** Defines headers for Gateways_restart operation. */ export interface GatewaysRestartHeaders { location?: string; @@ -2995,7 +3229,7 @@ export enum KnownProvisioningState { /** Moved */ Moved = "Moved", /** MoveFailed */ - MoveFailed = "MoveFailed" + MoveFailed = "MoveFailed", } /** @@ -3022,7 +3256,7 @@ export enum KnownTrafficDirection { /** Inbound */ Inbound = "Inbound", /** Outbound */ - Outbound = "Outbound" + Outbound = "Outbound", } /** @@ -3035,12 +3269,45 @@ export enum KnownTrafficDirection { */ export type TrafficDirection = string; +/** Known values of {@link PrivateLinkState} that the service accepts. */ +export enum KnownPrivateLinkState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", +} + +/** + * Defines values for PrivateLinkState. \ + * {@link KnownPrivateLinkState} can be used interchangeably with PrivateLinkState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type PrivateLinkState = 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 */ Running = "Running", /** Stopped */ - Stopped = "Stopped" + Stopped = "Stopped", } /** @@ -3053,6 +3320,24 @@ export enum KnownPowerState { */ export type PowerState = string; +/** Known values of {@link SystemAssignedServiceIdentityType} that the service accepts. */ +export enum KnownSystemAssignedServiceIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", +} + +/** + * Defines values for SystemAssignedServiceIdentityType. \ + * {@link KnownSystemAssignedServiceIdentityType} can be used interchangeably with SystemAssignedServiceIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **SystemAssigned** + */ +export type SystemAssignedServiceIdentityType = string; + /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { /** User */ @@ -3062,7 +3347,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -3086,7 +3371,7 @@ export enum KnownLastModifiedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -3106,7 +3391,7 @@ export enum KnownTestKeyType { /** Primary */ Primary = "Primary", /** Secondary */ - Secondary = "Secondary" + Secondary = "Secondary", } /** @@ -3132,7 +3417,7 @@ export enum KnownApmProvisioningState { /** Deleting */ Deleting = "Deleting", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -3149,6 +3434,48 @@ export enum KnownApmProvisioningState { */ 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 */ @@ -3160,7 +3487,7 @@ export enum KnownConfigServerState { /** Succeeded */ Succeeded = "Succeeded", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -3176,6 +3503,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 */ @@ -3187,7 +3532,7 @@ export enum KnownConfigurationServiceProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3208,7 +3553,7 @@ export enum KnownConfigurationServiceGeneration { /** Gen1 */ Gen1 = "Gen1", /** Gen2 */ - Gen2 = "Gen2" + Gen2 = "Gen2", } /** @@ -3226,7 +3571,7 @@ export enum KnownGitImplementation { /** GoGit */ GoGit = "go-git", /** Libgit2 */ - Libgit2 = "libgit2" + Libgit2 = "libgit2", } /** @@ -3250,7 +3595,7 @@ export enum KnownServiceRegistryProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3279,7 +3624,7 @@ export enum KnownApplicationLiveViewProvisioningState { /** Deleting */ Deleting = "Deleting", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -3309,7 +3654,7 @@ export enum KnownDevToolPortalProvisioningState { /** Deleting */ Deleting = "Deleting", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -3331,7 +3676,7 @@ export enum KnownDevToolPortalFeatureState { /** Enable the plugin in Dev Tool Portal. */ Enabled = "Enabled", /** Disable the plugin in Dev Tool Portal. */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -3357,7 +3702,7 @@ export enum KnownContainerRegistryProvisioningState { /** Deleting */ Deleting = "Deleting", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -3385,7 +3730,7 @@ export enum KnownBuildServiceProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3412,7 +3757,7 @@ export enum KnownBuildProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3441,7 +3786,7 @@ export enum KnownTriggeredBuildResultProvisioningState { /** Deleting */ Deleting = "Deleting", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -3471,7 +3816,9 @@ export enum KnownBindingType { /** NewRelic */ NewRelic = "NewRelic", /** ElasticAPM */ - ElasticAPM = "ElasticAPM" + ElasticAPM = "ElasticAPM", + /** CACertificates */ + CACertificates = "CACertificates", } /** @@ -3484,7 +3831,8 @@ export enum KnownBindingType { * **AppDynamics** \ * **Dynatrace** \ * **NewRelic** \ - * **ElasticAPM** + * **ElasticAPM** \ + * **CACertificates** */ export type BindingType = string; @@ -3499,7 +3847,7 @@ export enum KnownBuildpackBindingProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3526,7 +3874,7 @@ export enum KnownBuildResultProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3551,7 +3899,7 @@ export enum KnownKPackBuildStageProvisioningState { /** Succeeded */ Succeeded = "Succeeded", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -3577,7 +3925,7 @@ export enum KnownBuilderProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3602,7 +3950,7 @@ export enum KnownMonitoringSettingState { /** Succeeded */ Succeeded = "Succeeded", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -3628,7 +3976,7 @@ export enum KnownAppResourceProvisioningState { /** Updating */ Updating = "Updating", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3647,7 +3995,7 @@ export type AppResourceProvisioningState = string; /** Known values of {@link Type} that the service accepts. */ export enum KnownType { /** AzureFileVolume */ - AzureFileVolume = "AzureFileVolume" + AzureFileVolume = "AzureFileVolume", } /** @@ -3664,7 +4012,7 @@ export enum KnownSessionAffinity { /** Cookie */ Cookie = "Cookie", /** None */ - None = "None" + None = "None", } /** @@ -3682,7 +4030,7 @@ export enum KnownBackendProtocol { /** Grpc */ Grpc = "GRPC", /** Default */ - Default = "Default" + Default = "Default", } /** @@ -3695,6 +4043,24 @@ export enum KnownBackendProtocol { */ export type BackendProtocol = string; +/** Known values of {@link TestEndpointAuthState} that the service accepts. */ +export enum KnownTestEndpointAuthState { + /** Enable test endpoint auth. */ + Enabled = "Enabled", + /** Disable test endpoint auth */ + Disabled = "Disabled", +} + +/** + * Defines values for TestEndpointAuthState. \ + * {@link KnownTestEndpointAuthState} can be used interchangeably with TestEndpointAuthState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Enable test endpoint auth. \ + * **Disabled**: Disable test endpoint auth + */ +export type TestEndpointAuthState = string; + /** Known values of {@link ManagedIdentityType} that the service accepts. */ export enum KnownManagedIdentityType { /** None */ @@ -3704,7 +4070,7 @@ export enum KnownManagedIdentityType { /** UserAssigned */ UserAssigned = "UserAssigned", /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", } /** @@ -3722,7 +4088,7 @@ export type ManagedIdentityType = string; /** Known values of {@link StorageType} that the service accepts. */ export enum KnownStorageType { /** StorageAccount */ - StorageAccount = "StorageAccount" + StorageAccount = "StorageAccount", } /** @@ -3745,7 +4111,7 @@ export enum KnownCertificateResourceProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3772,7 +4138,7 @@ export enum KnownCustomDomainResourceProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3795,7 +4161,7 @@ export enum KnownProbeActionType { /** TCPSocketAction */ TCPSocketAction = "TCPSocketAction", /** ExecAction */ - ExecAction = "ExecAction" + ExecAction = "ExecAction", } /** @@ -3818,7 +4184,7 @@ export enum KnownDeploymentResourceProvisioningState { /** Succeeded */ Succeeded = "Succeeded", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -3838,7 +4204,7 @@ export enum KnownDeploymentResourceStatus { /** Stopped */ Stopped = "Stopped", /** Running */ - Running = "Running" + Running = "Running", } /** @@ -3854,7 +4220,7 @@ export type DeploymentResourceStatus = string; /** Known values of {@link ActionType} that the service accepts. */ export enum KnownActionType { /** Internal */ - Internal = "Internal" + Internal = "Internal", } /** @@ -3874,8 +4240,10 @@ export enum KnownSupportedRuntimeValue { Java11 = "Java_11", /** Java17 */ Java17 = "Java_17", + /** Java21 */ + Java21 = "Java_21", /** NetCore31 */ - NetCore31 = "NetCore_31" + NetCore31 = "NetCore_31", } /** @@ -3886,6 +4254,7 @@ export enum KnownSupportedRuntimeValue { * **Java_8** \ * **Java_11** \ * **Java_17** \ + * **Java_21** \ * **NetCore_31** */ export type SupportedRuntimeValue = string; @@ -3895,7 +4264,7 @@ export enum KnownSupportedRuntimePlatform { /** Java */ Java = "Java", /** NETCore */ - NETCore = ".NET Core" + NETCore = ".NET Core", } /** @@ -3915,7 +4284,7 @@ export enum KnownSkuScaleType { /** Manual */ Manual = "Manual", /** Automatic */ - Automatic = "Automatic" + Automatic = "Automatic", } /** @@ -3934,7 +4303,7 @@ export enum KnownResourceSkuRestrictionsType { /** Location */ Location = "Location", /** Zone */ - Zone = "Zone" + Zone = "Zone", } /** @@ -3952,7 +4321,7 @@ export enum KnownResourceSkuRestrictionsReasonCode { /** QuotaId */ QuotaId = "QuotaId", /** NotAvailableForSubscription */ - NotAvailableForSubscription = "NotAvailableForSubscription" + NotAvailableForSubscription = "NotAvailableForSubscription", } /** @@ -3976,7 +4345,7 @@ export enum KnownGatewayProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3997,7 +4366,7 @@ export enum KnownGatewayCertificateVerification { /** Enable certificate verification in Spring Cloud Gateway. */ Enabled = "Enabled", /** Disable certificate verification in Spring Cloud Gateway. */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -4010,12 +4379,39 @@ export enum KnownGatewayCertificateVerification { */ export type GatewayCertificateVerification = string; +/** Known values of {@link ApmType} that the service accepts. */ +export enum KnownApmType { + /** ApplicationInsights */ + ApplicationInsights = "ApplicationInsights", + /** AppDynamics */ + AppDynamics = "AppDynamics", + /** Dynatrace */ + Dynatrace = "Dynatrace", + /** NewRelic */ + NewRelic = "NewRelic", + /** ElasticAPM */ + ElasticAPM = "ElasticAPM", +} + +/** + * Defines values for ApmType. \ + * {@link KnownApmType} can be used interchangeably with ApmType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ApplicationInsights** \ + * **AppDynamics** \ + * **Dynatrace** \ + * **NewRelic** \ + * **ElasticAPM** + */ +export type ApmType = string; + /** Known values of {@link GatewayRouteConfigProtocol} that the service accepts. */ export enum KnownGatewayRouteConfigProtocol { /** Http */ Http = "HTTP", /** Https */ - Https = "HTTPS" + Https = "HTTPS", } /** @@ -4039,7 +4435,7 @@ export enum KnownApiPortalProvisioningState { /** Failed */ Failed = "Failed", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -4060,7 +4456,7 @@ export enum KnownApiPortalApiTryOutEnabledState { /** Enabled */ Enabled = "Enabled", /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -4086,7 +4482,7 @@ export enum KnownApplicationAcceleratorProvisioningState { /** Deleting */ Deleting = "Deleting", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -4116,7 +4512,7 @@ export enum KnownCustomizedAcceleratorProvisioningState { /** Deleting */ Deleting = "Deleting", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -4138,7 +4534,7 @@ export enum KnownCustomizedAcceleratorType { /** Accelerator */ Accelerator = "Accelerator", /** Fragment */ - Fragment = "Fragment" + Fragment = "Fragment", } /** @@ -4156,7 +4552,7 @@ export enum KnownCustomizedAcceleratorValidateResultState { /** Customized accelerator properties are valid. */ Valid = "Valid", /** Customized accelerator properties are invalid. */ - Invalid = "Invalid" + Invalid = "Invalid", } /** @@ -4180,7 +4576,7 @@ export enum KnownPredefinedAcceleratorProvisioningState { /** Failed */ Failed = "Failed", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -4201,7 +4597,7 @@ export enum KnownPredefinedAcceleratorState { /** Enable the predefined accelerator. */ Enabled = "Enabled", /** Disable the predefined accelerator. */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -4214,12 +4610,45 @@ export enum KnownPredefinedAcceleratorState { */ export type PredefinedAcceleratorState = string; +/** Known values of {@link WeekDay} that the service accepts. */ +export enum KnownWeekDay { + /** Monday */ + Monday = "Monday", + /** Tuesday */ + Tuesday = "Tuesday", + /** Wednesday */ + Wednesday = "Wednesday", + /** Thursday */ + Thursday = "Thursday", + /** Friday */ + Friday = "Friday", + /** Saturday */ + Saturday = "Saturday", + /** Sunday */ + Sunday = "Sunday", +} + +/** + * Defines values for WeekDay. \ + * {@link KnownWeekDay} can be used interchangeably with WeekDay, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** \ + * **Sunday** + */ +export type WeekDay = string; + /** Known values of {@link KeyVaultCertificateAutoSync} that the service accepts. */ export enum KnownKeyVaultCertificateAutoSync { /** Disabled */ Disabled = "Disabled", /** Enabled */ - Enabled = "Enabled" + Enabled = "Enabled", } /** @@ -4237,7 +4666,7 @@ export enum KnownHttpSchemeType { /** Http */ Http = "HTTP", /** Https */ - Https = "HTTPS" + Https = "HTTPS", } /** @@ -4343,7 +4772,8 @@ export interface ServicesFlushVnetDnsSettingOptionalParams } /** Contains response data for the flushVnetDnsSetting operation. */ -export type ServicesFlushVnetDnsSettingResponse = ServicesFlushVnetDnsSettingHeaders; +export type ServicesFlushVnetDnsSettingResponse = + ServicesFlushVnetDnsSettingHeaders; /** Optional parameters. */ export interface ServicesListSupportedApmTypesOptionalParams @@ -4403,7 +4833,8 @@ export interface ServicesListSupportedServerVersionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSupportedServerVersions operation. */ -export type ServicesListSupportedServerVersionsResponse = SupportedServerVersions; +export type ServicesListSupportedServerVersionsResponse = + SupportedServerVersions; /** Optional parameters. */ export interface ServicesListSupportedApmTypesNextOptionalParams @@ -4431,7 +4862,8 @@ export interface ServicesListSupportedServerVersionsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSupportedServerVersionsNext operation. */ -export type ServicesListSupportedServerVersionsNextResponse = SupportedServerVersions; +export type ServicesListSupportedServerVersionsNextResponse = + SupportedServerVersions; /** Optional parameters. */ export interface ApmsListOptionalParams extends coreClient.OperationOptions {} @@ -4482,6 +4914,44 @@ export interface ApmsListNextOptionalParams /** 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 {} @@ -4542,7 +5012,8 @@ export interface ConfigurationServicesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ConfigurationServicesCreateOrUpdateResponse = ConfigurationServiceResource; +export type ConfigurationServicesCreateOrUpdateResponse = + ConfigurationServiceResource; /** Optional parameters. */ export interface ConfigurationServicesDeleteOptionalParams @@ -4558,7 +5029,8 @@ export interface ConfigurationServicesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ConfigurationServicesListResponse = ConfigurationServiceResourceCollection; +export type ConfigurationServicesListResponse = + ConfigurationServiceResourceCollection; /** Optional parameters. */ export interface ConfigurationServicesValidateOptionalParams @@ -4570,7 +5042,8 @@ export interface ConfigurationServicesValidateOptionalParams } /** Contains response data for the validate operation. */ -export type ConfigurationServicesValidateResponse = ConfigurationServiceSettingsValidateResult; +export type ConfigurationServicesValidateResponse = + ConfigurationServiceSettingsValidateResult; /** Optional parameters. */ export interface ConfigurationServicesValidateResourceOptionalParams @@ -4582,14 +5055,16 @@ export interface ConfigurationServicesValidateResourceOptionalParams } /** Contains response data for the validateResource operation. */ -export type ConfigurationServicesValidateResourceResponse = ConfigurationServiceSettingsValidateResult; +export type ConfigurationServicesValidateResourceResponse = + ConfigurationServiceSettingsValidateResult; /** Optional parameters. */ export interface ConfigurationServicesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ConfigurationServicesListNextResponse = ConfigurationServiceResourceCollection; +export type ConfigurationServicesListNextResponse = + ConfigurationServiceResourceCollection; /** Optional parameters. */ export interface ServiceRegistriesGetOptionalParams @@ -4631,14 +5106,16 @@ export interface ServiceRegistriesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ServiceRegistriesListNextResponse = ServiceRegistryResourceCollection; +export type ServiceRegistriesListNextResponse = + ServiceRegistryResourceCollection; /** Optional parameters. */ export interface ApplicationLiveViewsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ApplicationLiveViewsListResponse = ApplicationLiveViewResourceCollection; +export type ApplicationLiveViewsListResponse = + ApplicationLiveViewResourceCollection; /** Optional parameters. */ export interface ApplicationLiveViewsGetOptionalParams @@ -4657,7 +5134,8 @@ export interface ApplicationLiveViewsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ApplicationLiveViewsCreateOrUpdateResponse = ApplicationLiveViewResource; +export type ApplicationLiveViewsCreateOrUpdateResponse = + ApplicationLiveViewResource; /** Optional parameters. */ export interface ApplicationLiveViewsDeleteOptionalParams @@ -4669,14 +5147,16 @@ export interface ApplicationLiveViewsDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type ApplicationLiveViewsDeleteResponse = ApplicationLiveViewsDeleteHeaders; +export type ApplicationLiveViewsDeleteResponse = + ApplicationLiveViewsDeleteHeaders; /** Optional parameters. */ export interface ApplicationLiveViewsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ApplicationLiveViewsListNextResponse = ApplicationLiveViewResourceCollection; +export type ApplicationLiveViewsListNextResponse = + ApplicationLiveViewResourceCollection; /** Optional parameters. */ export interface DevToolPortalsListOptionalParams @@ -4728,7 +5208,8 @@ export interface ContainerRegistriesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ContainerRegistriesListResponse = ContainerRegistryResourceCollection; +export type ContainerRegistriesListResponse = + ContainerRegistryResourceCollection; /** Optional parameters. */ export interface ContainerRegistriesGetOptionalParams @@ -4747,7 +5228,8 @@ export interface ContainerRegistriesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ContainerRegistriesCreateOrUpdateResponse = ContainerRegistryResource; +export type ContainerRegistriesCreateOrUpdateResponse = + ContainerRegistryResource; /** Optional parameters. */ export interface ContainerRegistriesDeleteOptionalParams @@ -4759,7 +5241,8 @@ export interface ContainerRegistriesDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type ContainerRegistriesDeleteResponse = ContainerRegistriesDeleteHeaders; +export type ContainerRegistriesDeleteResponse = + ContainerRegistriesDeleteHeaders; /** Optional parameters. */ export interface ContainerRegistriesValidateOptionalParams @@ -4771,14 +5254,16 @@ export interface ContainerRegistriesValidateOptionalParams } /** Contains response data for the validate operation. */ -export type ContainerRegistriesValidateResponse = ContainerRegistryValidateResult; +export type ContainerRegistriesValidateResponse = + ContainerRegistryValidateResult; /** Optional parameters. */ export interface ContainerRegistriesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ContainerRegistriesListNextResponse = ContainerRegistryResourceCollection; +export type ContainerRegistriesListNextResponse = + ContainerRegistryResourceCollection; /** Optional parameters. */ export interface BuildServiceListBuildServicesOptionalParams @@ -4872,14 +5357,16 @@ export interface BuildServiceListSupportedBuildpacksOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSupportedBuildpacks operation. */ -export type BuildServiceListSupportedBuildpacksResponse = SupportedBuildpacksCollection; +export type BuildServiceListSupportedBuildpacksResponse = + SupportedBuildpacksCollection; /** Optional parameters. */ export interface BuildServiceGetSupportedBuildpackOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getSupportedBuildpack operation. */ -export type BuildServiceGetSupportedBuildpackResponse = SupportedBuildpackResource; +export type BuildServiceGetSupportedBuildpackResponse = + SupportedBuildpackResource; /** Optional parameters. */ export interface BuildServiceListSupportedStacksOptionalParams @@ -4921,7 +5408,8 @@ export interface BuildpackBindingListForClusterOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForCluster operation. */ -export type BuildpackBindingListForClusterResponse = BuildpackBindingResourceCollection; +export type BuildpackBindingListForClusterResponse = + BuildpackBindingResourceCollection; /** Optional parameters. */ export interface BuildpackBindingGetOptionalParams @@ -4963,14 +5451,16 @@ export interface BuildpackBindingListForClusterNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForClusterNext operation. */ -export type BuildpackBindingListForClusterNextResponse = BuildpackBindingResourceCollection; +export type BuildpackBindingListForClusterNextResponse = + BuildpackBindingResourceCollection; /** Optional parameters. */ export interface BuildpackBindingListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type BuildpackBindingListNextResponse = BuildpackBindingResourceCollection; +export type BuildpackBindingListNextResponse = + BuildpackBindingResourceCollection; /** Optional parameters. */ export interface BuildServiceBuilderGetOptionalParams @@ -5026,7 +5516,8 @@ export interface BuildServiceAgentPoolListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type BuildServiceAgentPoolListResponse = BuildServiceAgentPoolResourceCollection; +export type BuildServiceAgentPoolListResponse = + BuildServiceAgentPoolResourceCollection; /** Optional parameters. */ export interface BuildServiceAgentPoolGetOptionalParams @@ -5045,14 +5536,16 @@ export interface BuildServiceAgentPoolUpdatePutOptionalParams } /** Contains response data for the updatePut operation. */ -export type BuildServiceAgentPoolUpdatePutResponse = BuildServiceAgentPoolResource; +export type BuildServiceAgentPoolUpdatePutResponse = + BuildServiceAgentPoolResource; /** Optional parameters. */ export interface BuildServiceAgentPoolListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type BuildServiceAgentPoolListNextResponse = BuildServiceAgentPoolResourceCollection; +export type BuildServiceAgentPoolListNextResponse = + BuildServiceAgentPoolResourceCollection; /** Optional parameters. */ export interface MonitoringSettingsGetOptionalParams @@ -5401,6 +5894,8 @@ export interface DeploymentsListOptionalParams extends coreClient.OperationOptions { /** Version of the deployments to be listed */ version?: string[]; + /** The expand expression to apply on the operation. */ + expand?: string; } /** Contains response data for the list operation. */ @@ -5524,7 +6019,8 @@ export interface DeploymentsListForClusterNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForClusterNext operation. */ -export type DeploymentsListForClusterNextResponse = DeploymentResourceCollection; +export type DeploymentsListForClusterNextResponse = + DeploymentResourceCollection; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -5545,7 +6041,8 @@ export interface RuntimeVersionsListRuntimeVersionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listRuntimeVersions operation. */ -export type RuntimeVersionsListRuntimeVersionsResponse = AvailableRuntimeVersions; +export type RuntimeVersionsListRuntimeVersionsResponse = + AvailableRuntimeVersions; /** Optional parameters. */ export interface SkusListOptionalParams extends coreClient.OperationOptions {} @@ -5579,6 +6076,18 @@ export interface GatewaysCreateOrUpdateOptionalParams /** Contains response data for the createOrUpdate operation. */ export type GatewaysCreateOrUpdateResponse = GatewayResource; +/** Optional parameters. */ +export interface GatewaysUpdateCapacityOptionalParams + 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 updateCapacity operation. */ +export type GatewaysUpdateCapacityResponse = GatewayResource; + /** Optional parameters. */ export interface GatewaysDeleteOptionalParams extends coreClient.OperationOptions { @@ -5642,7 +6151,8 @@ export interface GatewayRouteConfigsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type GatewayRouteConfigsCreateOrUpdateResponse = GatewayRouteConfigResource; +export type GatewayRouteConfigsCreateOrUpdateResponse = + GatewayRouteConfigResource; /** Optional parameters. */ export interface GatewayRouteConfigsDeleteOptionalParams @@ -5658,14 +6168,16 @@ export interface GatewayRouteConfigsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type GatewayRouteConfigsListResponse = GatewayRouteConfigResourceCollection; +export type GatewayRouteConfigsListResponse = + GatewayRouteConfigResourceCollection; /** Optional parameters. */ export interface GatewayRouteConfigsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type GatewayRouteConfigsListNextResponse = GatewayRouteConfigResourceCollection; +export type GatewayRouteConfigsListNextResponse = + GatewayRouteConfigResourceCollection; /** Optional parameters. */ export interface GatewayCustomDomainsGetOptionalParams @@ -5684,7 +6196,8 @@ export interface GatewayCustomDomainsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type GatewayCustomDomainsCreateOrUpdateResponse = GatewayCustomDomainResource; +export type GatewayCustomDomainsCreateOrUpdateResponse = + GatewayCustomDomainResource; /** Optional parameters. */ export interface GatewayCustomDomainsDeleteOptionalParams @@ -5700,14 +6213,16 @@ export interface GatewayCustomDomainsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type GatewayCustomDomainsListResponse = GatewayCustomDomainResourceCollection; +export type GatewayCustomDomainsListResponse = + GatewayCustomDomainResourceCollection; /** Optional parameters. */ export interface GatewayCustomDomainsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type GatewayCustomDomainsListNextResponse = GatewayCustomDomainResourceCollection; +export type GatewayCustomDomainsListNextResponse = + GatewayCustomDomainResourceCollection; /** Optional parameters. */ export interface ApiPortalsGetOptionalParams @@ -5775,7 +6290,8 @@ export interface ApiPortalCustomDomainsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ApiPortalCustomDomainsCreateOrUpdateResponse = ApiPortalCustomDomainResource; +export type ApiPortalCustomDomainsCreateOrUpdateResponse = + ApiPortalCustomDomainResource; /** Optional parameters. */ export interface ApiPortalCustomDomainsDeleteOptionalParams @@ -5791,21 +6307,24 @@ export interface ApiPortalCustomDomainsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ApiPortalCustomDomainsListResponse = ApiPortalCustomDomainResourceCollection; +export type ApiPortalCustomDomainsListResponse = + ApiPortalCustomDomainResourceCollection; /** Optional parameters. */ export interface ApiPortalCustomDomainsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ApiPortalCustomDomainsListNextResponse = ApiPortalCustomDomainResourceCollection; +export type ApiPortalCustomDomainsListNextResponse = + ApiPortalCustomDomainResourceCollection; /** Optional parameters. */ export interface ApplicationAcceleratorsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ApplicationAcceleratorsListResponse = ApplicationAcceleratorResourceCollection; +export type ApplicationAcceleratorsListResponse = + ApplicationAcceleratorResourceCollection; /** Optional parameters. */ export interface ApplicationAcceleratorsGetOptionalParams @@ -5824,7 +6343,8 @@ export interface ApplicationAcceleratorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ApplicationAcceleratorsCreateOrUpdateResponse = ApplicationAcceleratorResource; +export type ApplicationAcceleratorsCreateOrUpdateResponse = + ApplicationAcceleratorResource; /** Optional parameters. */ export interface ApplicationAcceleratorsDeleteOptionalParams @@ -5836,21 +6356,24 @@ export interface ApplicationAcceleratorsDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type ApplicationAcceleratorsDeleteResponse = ApplicationAcceleratorsDeleteHeaders; +export type ApplicationAcceleratorsDeleteResponse = + ApplicationAcceleratorsDeleteHeaders; /** Optional parameters. */ export interface ApplicationAcceleratorsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ApplicationAcceleratorsListNextResponse = ApplicationAcceleratorResourceCollection; +export type ApplicationAcceleratorsListNextResponse = + ApplicationAcceleratorResourceCollection; /** Optional parameters. */ export interface CustomizedAcceleratorsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type CustomizedAcceleratorsListResponse = CustomizedAcceleratorResourceCollection; +export type CustomizedAcceleratorsListResponse = + CustomizedAcceleratorResourceCollection; /** Optional parameters. */ export interface CustomizedAcceleratorsGetOptionalParams @@ -5869,7 +6392,8 @@ export interface CustomizedAcceleratorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type CustomizedAcceleratorsCreateOrUpdateResponse = CustomizedAcceleratorResource; +export type CustomizedAcceleratorsCreateOrUpdateResponse = + CustomizedAcceleratorResource; /** Optional parameters. */ export interface CustomizedAcceleratorsDeleteOptionalParams @@ -5881,7 +6405,8 @@ export interface CustomizedAcceleratorsDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type CustomizedAcceleratorsDeleteResponse = CustomizedAcceleratorsDeleteHeaders; +export type CustomizedAcceleratorsDeleteResponse = + CustomizedAcceleratorsDeleteHeaders; /** Optional parameters. */ export interface CustomizedAcceleratorsValidateOptionalParams @@ -5893,21 +6418,24 @@ export interface CustomizedAcceleratorsValidateOptionalParams } /** Contains response data for the validate operation. */ -export type CustomizedAcceleratorsValidateResponse = CustomizedAcceleratorValidateResult; +export type CustomizedAcceleratorsValidateResponse = + CustomizedAcceleratorValidateResult; /** Optional parameters. */ export interface CustomizedAcceleratorsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type CustomizedAcceleratorsListNextResponse = CustomizedAcceleratorResourceCollection; +export type CustomizedAcceleratorsListNextResponse = + CustomizedAcceleratorResourceCollection; /** Optional parameters. */ export interface PredefinedAcceleratorsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PredefinedAcceleratorsListResponse = PredefinedAcceleratorResourceCollection; +export type PredefinedAcceleratorsListResponse = + PredefinedAcceleratorResourceCollection; /** Optional parameters. */ export interface PredefinedAcceleratorsGetOptionalParams @@ -5939,7 +6467,8 @@ export interface PredefinedAcceleratorsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type PredefinedAcceleratorsListNextResponse = PredefinedAcceleratorResourceCollection; +export type PredefinedAcceleratorsListNextResponse = + PredefinedAcceleratorResourceCollection; /** Optional parameters. */ export interface AppPlatformManagementClientOptionalParams diff --git a/sdk/appplatform/arm-appplatform/src/models/mappers.ts b/sdk/appplatform/arm-appplatform/src/models/mappers.ts index a8d6b396fe8a..ef18efb26f8b 100644 --- a/sdk/appplatform/arm-appplatform/src/models/mappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/mappers.ts @@ -17,67 +17,86 @@ export const ClusterResourceProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, networkProfile: { serializedName: "networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, vnetAddons: { serializedName: "vnetAddons", type: { name: "Composite", - className: "ServiceVNetAddons" - } + className: "ServiceVNetAddons", + }, + }, + maintenanceScheduleConfiguration: { + serializedName: "maintenanceScheduleConfiguration", + type: { + name: "Composite", + className: "MaintenanceScheduleConfiguration", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, serviceId: { serializedName: "serviceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + managedEnvironmentId: { + serializedName: "managedEnvironmentId", + type: { + name: "String", + }, + }, + infraResourceGroup: { + serializedName: "infraResourceGroup", + type: { + name: "String", + }, }, powerState: { serializedName: "powerState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, zoneRedundant: { defaultValue: false, serializedName: "zoneRedundant", type: { - name: "Boolean" - } + name: "Boolean", + }, }, fqdn: { serializedName: "fqdn", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, marketplaceResource: { serializedName: "marketplaceResource", type: { name: "Composite", - className: "MarketplaceResource" - } - } - } - } + className: "MarketplaceResource", + }, + }, + }, + }, }; export const NetworkProfile: coreClient.CompositeMapper = { @@ -88,39 +107,39 @@ export const NetworkProfile: coreClient.CompositeMapper = { serviceRuntimeSubnetId: { serializedName: "serviceRuntimeSubnetId", type: { - name: "String" - } + name: "String", + }, }, appSubnetId: { serializedName: "appSubnetId", type: { - name: "String" - } + name: "String", + }, }, serviceCidr: { serializedName: "serviceCidr", type: { - name: "String" - } + name: "String", + }, }, serviceRuntimeNetworkResourceGroup: { serializedName: "serviceRuntimeNetworkResourceGroup", type: { - name: "String" - } + name: "String", + }, }, appNetworkResourceGroup: { serializedName: "appNetworkResourceGroup", type: { - name: "String" - } + name: "String", + }, }, outboundIPs: { serializedName: "outboundIPs", type: { name: "Composite", - className: "NetworkProfileOutboundIPs" - } + className: "NetworkProfileOutboundIPs", + }, }, requiredTraffics: { serializedName: "requiredTraffics", @@ -130,26 +149,26 @@ export const NetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RequiredTraffic" - } - } - } + className: "RequiredTraffic", + }, + }, + }, }, ingressConfig: { serializedName: "ingressConfig", type: { name: "Composite", - className: "IngressConfig" - } + className: "IngressConfig", + }, }, outboundType: { serializedName: "outboundType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkProfileOutboundIPs: coreClient.CompositeMapper = { @@ -164,13 +183,13 @@ export const NetworkProfileOutboundIPs: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const RequiredTraffic: coreClient.CompositeMapper = { @@ -182,15 +201,15 @@ export const RequiredTraffic: coreClient.CompositeMapper = { serializedName: "protocol", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, port: { serializedName: "port", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, ips: { serializedName: "ips", @@ -199,10 +218,10 @@ export const RequiredTraffic: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, fqdns: { serializedName: "fqdns", @@ -211,20 +230,20 @@ export const RequiredTraffic: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, direction: { serializedName: "direction", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IngressConfig: coreClient.CompositeMapper = { @@ -235,11 +254,11 @@ export const IngressConfig: coreClient.CompositeMapper = { readTimeoutInSeconds: { serializedName: "readTimeoutInSeconds", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ServiceVNetAddons: coreClient.CompositeMapper = { @@ -251,18 +270,51 @@ export const ServiceVNetAddons: coreClient.CompositeMapper = { defaultValue: false, serializedName: "logStreamPublicEndpoint", type: { - name: "Boolean" - } + name: "Boolean", + }, }, dataPlanePublicEndpoint: { defaultValue: false, serializedName: "dataPlanePublicEndpoint", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + privateLinkState: { + serializedName: "privateLinkState", + type: { + name: "String", + }, + }, + privateDnsZoneId: { + serializedName: "privateDnsZoneId", + type: { + name: "String", + }, + }, + }, + }, +}; + +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 = { @@ -273,23 +325,53 @@ export const MarketplaceResource: coreClient.CompositeMapper = { plan: { serializedName: "plan", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const SystemAssignedServiceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemAssignedServiceIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -301,24 +383,24 @@ export const Sku: coreClient.CompositeMapper = { defaultValue: "S0", serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { defaultValue: "Standard", serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -330,32 +412,32 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -366,41 +448,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -412,11 +494,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, }; export const CloudErrorBody: coreClient.CompositeMapper = { @@ -427,20 +509,20 @@ export const CloudErrorBody: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -449,13 +531,13 @@ export const CloudErrorBody: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, + }, + }, }; export const TestKeys: coreClient.CompositeMapper = { @@ -466,35 +548,35 @@ export const TestKeys: coreClient.CompositeMapper = { primaryKey: { serializedName: "primaryKey", type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { serializedName: "secondaryKey", type: { - name: "String" - } + name: "String", + }, }, primaryTestEndpoint: { serializedName: "primaryTestEndpoint", type: { - name: "String" - } + name: "String", + }, }, secondaryTestEndpoint: { serializedName: "secondaryTestEndpoint", type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RegenerateTestKeyRequestPayload: coreClient.CompositeMapper = { @@ -506,11 +588,11 @@ export const RegenerateTestKeyRequestPayload: coreClient.CompositeMapper = { serializedName: "keyType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedApmTypes: coreClient.CompositeMapper = { @@ -525,19 +607,19 @@ export const SupportedApmTypes: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedApmType" - } - } - } + className: "SupportedApmType", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedApmType: coreClient.CompositeMapper = { @@ -548,11 +630,11 @@ export const SupportedApmType: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GloballyEnabledApms: coreClient.CompositeMapper = { @@ -566,13 +648,13 @@ export const GloballyEnabledApms: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ApmReference: coreClient.CompositeMapper = { @@ -584,11 +666,11 @@ export const ApmReference: coreClient.CompositeMapper = { serializedName: "resourceId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApmResourceCollection: coreClient.CompositeMapper = { @@ -603,19 +685,19 @@ export const ApmResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApmResource" - } - } - } + className: "ApmResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApmProperties: coreClient.CompositeMapper = { @@ -627,32 +709,32 @@ export const ApmProperties: coreClient.CompositeMapper = { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, secrets: { serializedName: "secrets", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ApmSecretKeys: coreClient.CompositeMapper = { @@ -666,43 +748,69 @@ export const ApmSecretKeys: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + 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 ConfigServerProperties: coreClient.CompositeMapper = { +export const EurekaServerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConfigServerProperties", + className: "EurekaServerProperties", modelProperties: { provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + enabledState: { + serializedName: "enabledState", + type: { + name: "String", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ErrorModel" - } + className: "ErrorModel", + }, }, - configServer: { - serializedName: "configServer", - type: { - name: "Composite", - className: "ConfigServerSettings" - } - } - } - } + }, + }, }; export const ErrorModel: coreClient.CompositeMapper = { @@ -713,17 +821,53 @@ export const ErrorModel: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +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 = { @@ -735,11 +879,11 @@ export const ConfigServerSettings: coreClient.CompositeMapper = { serializedName: "gitProperty", type: { name: "Composite", - className: "ConfigServerGitProperty" - } - } - } - } + className: "ConfigServerGitProperty", + }, + }, + }, + }, }; export const ConfigServerGitProperty: coreClient.CompositeMapper = { @@ -754,23 +898,23 @@ export const ConfigServerGitProperty: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GitPatternRepository" - } - } - } + className: "GitPatternRepository", + }, + }, + }, }, uri: { serializedName: "uri", required: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", type: { - name: "String" - } + name: "String", + }, }, searchPaths: { serializedName: "searchPaths", @@ -778,49 +922,49 @@ export const ConfigServerGitProperty: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, username: { serializedName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, hostKey: { serializedName: "hostKey", type: { - name: "String" - } + name: "String", + }, }, hostKeyAlgorithm: { serializedName: "hostKeyAlgorithm", type: { - name: "String" - } + name: "String", + }, }, privateKey: { serializedName: "privateKey", type: { - name: "String" - } + name: "String", + }, }, strictHostKeyChecking: { serializedName: "strictHostKeyChecking", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const GitPatternRepository: coreClient.CompositeMapper = { @@ -832,8 +976,8 @@ export const GitPatternRepository: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, pattern: { serializedName: "pattern", @@ -841,23 +985,23 @@ export const GitPatternRepository: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, uri: { serializedName: "uri", required: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", type: { - name: "String" - } + name: "String", + }, }, searchPaths: { serializedName: "searchPaths", @@ -865,49 +1009,49 @@ export const GitPatternRepository: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, username: { serializedName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, hostKey: { serializedName: "hostKey", type: { - name: "String" - } + name: "String", + }, }, hostKeyAlgorithm: { serializedName: "hostKeyAlgorithm", type: { - name: "String" - } + name: "String", + }, }, privateKey: { serializedName: "privateKey", type: { - name: "String" - } + name: "String", + }, }, strictHostKeyChecking: { serializedName: "strictHostKeyChecking", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ConfigServerSettingsValidateResult: coreClient.CompositeMapper = { @@ -918,8 +1062,8 @@ export const ConfigServerSettingsValidateResult: coreClient.CompositeMapper = { isValid: { serializedName: "isValid", type: { - name: "Boolean" - } + name: "Boolean", + }, }, details: { serializedName: "details", @@ -928,15 +1072,15 @@ export const ConfigServerSettingsValidateResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConfigServerSettingsErrorRecord" - } - } - } - } - } - } -}; - + className: "ConfigServerSettingsErrorRecord", + }, + }, + }, + }, + }, + }, +}; + export const ConfigServerSettingsErrorRecord: coreClient.CompositeMapper = { type: { name: "Composite", @@ -945,14 +1089,14 @@ export const ConfigServerSettingsErrorRecord: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, uri: { serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, messages: { serializedName: "messages", @@ -960,13 +1104,13 @@ export const ConfigServerSettingsErrorRecord: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ConfigurationServiceProperties: coreClient.CompositeMapper = { @@ -978,22 +1122,22 @@ export const ConfigurationServiceProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, generation: { defaultValue: "Gen1", serializedName: "generation", type: { - name: "String" - } + name: "String", + }, }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "ConfigurationServiceResourceRequests" - } + className: "ConfigurationServiceResourceRequests", + }, }, instances: { serializedName: "instances", @@ -1003,51 +1147,52 @@ export const ConfigurationServiceProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConfigurationServiceInstance" - } - } - } + className: "ConfigurationServiceInstance", + }, + }, + }, }, settings: { serializedName: "settings", type: { name: "Composite", - className: "ConfigurationServiceSettings" - } - } - } - } -}; - -export const ConfigurationServiceResourceRequests: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConfigurationServiceResourceRequests", - modelProperties: { - cpu: { - serializedName: "cpu", - readOnly: true, - type: { - name: "String" - } + className: "ConfigurationServiceSettings", + }, }, - memory: { - serializedName: "memory", - readOnly: true, - type: { - name: "String" - } + }, + }, +}; + +export const ConfigurationServiceResourceRequests: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ConfigurationServiceResourceRequests", + modelProperties: { + cpu: { + serializedName: "cpu", + readOnly: true, + type: { + name: "String", + }, + }, + memory: { + serializedName: "memory", + readOnly: true, + type: { + name: "String", + }, + }, + instanceCount: { + serializedName: "instanceCount", + readOnly: true, + type: { + name: "Number", + }, + }, }, - instanceCount: { - serializedName: "instanceCount", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; + }, + }; export const ConfigurationServiceInstance: coreClient.CompositeMapper = { type: { @@ -1058,18 +1203,18 @@ export const ConfigurationServiceInstance: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConfigurationServiceSettings: coreClient.CompositeMapper = { @@ -1081,11 +1226,17 @@ export const ConfigurationServiceSettings: coreClient.CompositeMapper = { serializedName: "gitProperty", type: { name: "Composite", - className: "ConfigurationServiceGitProperty" - } - } - } - } + className: "ConfigurationServiceGitProperty", + }, + }, + refreshIntervalInSeconds: { + serializedName: "refreshIntervalInSeconds", + type: { + name: "Number", + }, + }, + }, + }, }; export const ConfigurationServiceGitProperty: coreClient.CompositeMapper = { @@ -1100,13 +1251,13 @@ export const ConfigurationServiceGitProperty: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConfigurationServiceGitRepository" - } - } - } - } - } - } + className: "ConfigurationServiceGitRepository", + }, + }, + }, + }, + }, + }, }; export const ConfigurationServiceGitRepository: coreClient.CompositeMapper = { @@ -1118,8 +1269,8 @@ export const ConfigurationServiceGitRepository: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, patterns: { serializedName: "patterns", @@ -1128,24 +1279,24 @@ export const ConfigurationServiceGitRepository: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, uri: { serializedName: "uri", required: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", required: true, type: { - name: "String" - } + name: "String", + }, }, searchPaths: { serializedName: "searchPaths", @@ -1153,132 +1304,135 @@ export const ConfigurationServiceGitRepository: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, username: { serializedName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, hostKey: { serializedName: "hostKey", type: { - name: "String" - } + name: "String", + }, }, hostKeyAlgorithm: { serializedName: "hostKeyAlgorithm", type: { - name: "String" - } + name: "String", + }, }, privateKey: { serializedName: "privateKey", type: { - name: "String" - } + name: "String", + }, }, strictHostKeyChecking: { serializedName: "strictHostKeyChecking", type: { - name: "Boolean" - } + name: "Boolean", + }, }, gitImplementation: { serializedName: "gitImplementation", type: { - name: "String" - } + name: "String", + }, }, caCertResourceId: { serializedName: "caCertResourceId", type: { - name: "String" - } - } - } - } -}; - -export const ConfigurationServiceResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConfigurationServiceResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConfigurationServiceResource" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ConfigurationServiceSettingsValidateResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConfigurationServiceSettingsValidateResult", - modelProperties: { - gitPropertyValidationResult: { - serializedName: "gitPropertyValidationResult", - type: { - name: "Composite", - className: "ConfigurationServiceGitPropertyValidateResult" - } - } - } - } -}; - -export const ConfigurationServiceGitPropertyValidateResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConfigurationServiceGitPropertyValidateResult", - modelProperties: { - isValid: { - serializedName: "isValid", - type: { - name: "Boolean" - } + }, + }, +}; + +export const ConfigurationServiceResourceCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ConfigurationServiceResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfigurationServiceResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - gitReposValidationResult: { - serializedName: "gitReposValidationResult", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ValidationMessages" - } - } - } - } - } - } -}; + }, + }; + +export const ConfigurationServiceSettingsValidateResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ConfigurationServiceSettingsValidateResult", + modelProperties: { + gitPropertyValidationResult: { + serializedName: "gitPropertyValidationResult", + type: { + name: "Composite", + className: "ConfigurationServiceGitPropertyValidateResult", + }, + }, + }, + }, + }; + +export const ConfigurationServiceGitPropertyValidateResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ConfigurationServiceGitPropertyValidateResult", + modelProperties: { + isValid: { + serializedName: "isValid", + type: { + name: "Boolean", + }, + }, + gitReposValidationResult: { + serializedName: "gitReposValidationResult", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ValidationMessages", + }, + }, + }, + }, + }, + }, + }; export const ValidationMessages: coreClient.CompositeMapper = { type: { @@ -1288,8 +1442,8 @@ export const ValidationMessages: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, messages: { serializedName: "messages", @@ -1297,13 +1451,13 @@ export const ValidationMessages: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ServiceRegistryProperties: coreClient.CompositeMapper = { @@ -1315,15 +1469,15 @@ export const ServiceRegistryProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "ServiceRegistryResourceRequests" - } + className: "ServiceRegistryResourceRequests", + }, }, instances: { serializedName: "instances", @@ -1333,13 +1487,13 @@ export const ServiceRegistryProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServiceRegistryInstance" - } - } - } - } - } - } + className: "ServiceRegistryInstance", + }, + }, + }, + }, + }, + }, }; export const ServiceRegistryResourceRequests: coreClient.CompositeMapper = { @@ -1351,25 +1505,25 @@ export const ServiceRegistryResourceRequests: coreClient.CompositeMapper = { serializedName: "cpu", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, memory: { serializedName: "memory", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceCount: { serializedName: "instanceCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ServiceRegistryInstance: coreClient.CompositeMapper = { @@ -1381,18 +1535,18 @@ export const ServiceRegistryInstance: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServiceRegistryResourceCollection: coreClient.CompositeMapper = { @@ -1407,47 +1561,48 @@ export const ServiceRegistryResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServiceRegistryResource" - } - } - } + className: "ServiceRegistryResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const ApplicationLiveViewResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationLiveViewResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationLiveViewResource" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const ApplicationLiveViewResourceCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationLiveViewResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationLiveViewResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const ApplicationLiveViewProperties: coreClient.CompositeMapper = { type: { @@ -1458,8 +1613,8 @@ export const ApplicationLiveViewProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, components: { serializedName: "components", @@ -1469,13 +1624,13 @@ export const ApplicationLiveViewProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationLiveViewComponent" - } - } - } - } - } - } + className: "ApplicationLiveViewComponent", + }, + }, + }, + }, + }, + }, }; export const ApplicationLiveViewComponent: coreClient.CompositeMapper = { @@ -1487,15 +1642,15 @@ export const ApplicationLiveViewComponent: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "any" - } + name: "any", + }, }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "ApplicationLiveViewResourceRequests" - } + className: "ApplicationLiveViewResourceRequests", + }, }, instances: { serializedName: "instances", @@ -1505,13 +1660,13 @@ export const ApplicationLiveViewComponent: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationLiveViewInstance" - } - } - } - } - } - } + className: "ApplicationLiveViewInstance", + }, + }, + }, + }, + }, + }, }; export const ApplicationLiveViewResourceRequests: coreClient.CompositeMapper = { @@ -1523,25 +1678,25 @@ export const ApplicationLiveViewResourceRequests: coreClient.CompositeMapper = { serializedName: "cpu", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, memory: { serializedName: "memory", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceCount: { serializedName: "instanceCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ApplicationLiveViewInstance: coreClient.CompositeMapper = { @@ -1553,18 +1708,18 @@ export const ApplicationLiveViewInstance: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DevToolPortalResourceCollection: coreClient.CompositeMapper = { @@ -1579,19 +1734,19 @@ export const DevToolPortalResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DevToolPortalResource" - } - } - } + className: "DevToolPortalResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DevToolPortalProperties: coreClient.CompositeMapper = { @@ -1603,8 +1758,8 @@ export const DevToolPortalProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, components: { serializedName: "components", @@ -1614,41 +1769,41 @@ export const DevToolPortalProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DevToolPortalComponent" - } - } - } + className: "DevToolPortalComponent", + }, + }, + }, }, public: { defaultValue: false, serializedName: "public", type: { - name: "Boolean" - } + name: "Boolean", + }, }, url: { serializedName: "url", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, ssoProperties: { serializedName: "ssoProperties", type: { name: "Composite", - className: "DevToolPortalSsoProperties" - } + className: "DevToolPortalSsoProperties", + }, }, features: { serializedName: "features", type: { name: "Composite", - className: "DevToolPortalFeatureSettings" - } - } - } - } + className: "DevToolPortalFeatureSettings", + }, + }, + }, + }, }; export const DevToolPortalComponent: coreClient.CompositeMapper = { @@ -1660,15 +1815,15 @@ export const DevToolPortalComponent: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "DevToolPortalResourceRequests" - } + className: "DevToolPortalResourceRequests", + }, }, instances: { serializedName: "instances", @@ -1678,13 +1833,13 @@ export const DevToolPortalComponent: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DevToolPortalInstance" - } - } - } - } - } - } + className: "DevToolPortalInstance", + }, + }, + }, + }, + }, + }, }; export const DevToolPortalResourceRequests: coreClient.CompositeMapper = { @@ -1696,25 +1851,25 @@ export const DevToolPortalResourceRequests: coreClient.CompositeMapper = { serializedName: "cpu", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, memory: { serializedName: "memory", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceCount: { serializedName: "instanceCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DevToolPortalInstance: coreClient.CompositeMapper = { @@ -1726,18 +1881,18 @@ export const DevToolPortalInstance: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DevToolPortalSsoProperties: coreClient.CompositeMapper = { @@ -1751,31 +1906,31 @@ export const DevToolPortalSsoProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clientId: { serializedName: "clientId", type: { - name: "String" - } + name: "String", + }, }, clientSecret: { serializedName: "clientSecret", type: { - name: "String" - } + name: "String", + }, }, metadataUrl: { serializedName: "metadataUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DevToolPortalFeatureSettings: coreClient.CompositeMapper = { @@ -1787,18 +1942,18 @@ export const DevToolPortalFeatureSettings: coreClient.CompositeMapper = { serializedName: "applicationAccelerator", type: { name: "Composite", - className: "DevToolPortalFeatureDetail" - } + className: "DevToolPortalFeatureDetail", + }, }, applicationLiveView: { serializedName: "applicationLiveView", type: { name: "Composite", - className: "DevToolPortalFeatureDetail" - } - } - } - } + className: "DevToolPortalFeatureDetail", + }, + }, + }, + }, }; export const DevToolPortalFeatureDetail: coreClient.CompositeMapper = { @@ -1810,18 +1965,18 @@ export const DevToolPortalFeatureDetail: coreClient.CompositeMapper = { defaultValue: "Enabled", serializedName: "state", type: { - name: "String" - } + name: "String", + }, }, route: { serializedName: "route", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ContainerRegistryResourceCollection: coreClient.CompositeMapper = { @@ -1836,19 +1991,19 @@ export const ContainerRegistryResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ContainerRegistryResource" - } - } - } + className: "ContainerRegistryResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ContainerRegistryProperties: coreClient.CompositeMapper = { @@ -1860,18 +2015,18 @@ export const ContainerRegistryProperties: coreClient.CompositeMapper = { serializedName: "credentials", type: { name: "Composite", - className: "ContainerRegistryCredentials" - } + className: "ContainerRegistryCredentials", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ContainerRegistryCredentials: coreClient.CompositeMapper = { @@ -1881,18 +2036,18 @@ export const ContainerRegistryCredentials: coreClient.CompositeMapper = { uberParent: "ContainerRegistryCredentials", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ContainerRegistryValidateResult: coreClient.CompositeMapper = { @@ -1903,17 +2058,17 @@ export const ContainerRegistryValidateResult: coreClient.CompositeMapper = { isValid: { serializedName: "isValid", type: { - name: "Boolean" - } + name: "Boolean", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildServiceCollection: coreClient.CompositeMapper = { @@ -1928,19 +2083,19 @@ export const BuildServiceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuildService" - } - } - } + className: "BuildService", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildServiceProperties: coreClient.CompositeMapper = { @@ -1951,56 +2106,57 @@ export const BuildServiceProperties: coreClient.CompositeMapper = { containerRegistry: { serializedName: "containerRegistry", type: { - name: "String" - } + name: "String", + }, }, kPackVersion: { serializedName: "kPackVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "BuildServicePropertiesResourceRequests" - } - } - } - } -}; - -export const BuildServicePropertiesResourceRequests: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BuildServicePropertiesResourceRequests", - modelProperties: { - cpu: { - serializedName: "cpu", - readOnly: true, - type: { - name: "String" - } + className: "BuildServicePropertiesResourceRequests", + }, }, - memory: { - serializedName: "memory", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const BuildServicePropertiesResourceRequests: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BuildServicePropertiesResourceRequests", + modelProperties: { + cpu: { + serializedName: "cpu", + readOnly: true, + type: { + name: "String", + }, + }, + memory: { + serializedName: "memory", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const BuildCollection: coreClient.CompositeMapper = { type: { @@ -2014,19 +2170,19 @@ export const BuildCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Build" - } - } - } + className: "Build", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildProperties: coreClient.CompositeMapper = { @@ -2037,34 +2193,34 @@ export const BuildProperties: coreClient.CompositeMapper = { relativePath: { serializedName: "relativePath", type: { - name: "String" - } + name: "String", + }, }, builder: { serializedName: "builder", type: { - name: "String" - } + name: "String", + }, }, agentPool: { serializedName: "agentPool", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, env: { serializedName: "env", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, apms: { serializedName: "apms", @@ -2073,10 +2229,10 @@ export const BuildProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApmReference" - } - } - } + className: "ApmReference", + }, + }, + }, }, certificates: { serializedName: "certificates", @@ -2085,27 +2241,27 @@ export const BuildProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CertificateReference" - } - } - } + className: "CertificateReference", + }, + }, + }, }, triggeredBuildResult: { serializedName: "triggeredBuildResult", type: { name: "Composite", - className: "TriggeredBuildResult" - } + className: "TriggeredBuildResult", + }, }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "BuildResourceRequests" - } - } - } - } + className: "BuildResourceRequests", + }, + }, + }, + }, }; export const CertificateReference: coreClient.CompositeMapper = { @@ -2117,11 +2273,11 @@ export const CertificateReference: coreClient.CompositeMapper = { serializedName: "resourceId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TriggeredBuildResult: coreClient.CompositeMapper = { @@ -2132,42 +2288,42 @@ export const TriggeredBuildResult: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, image: { serializedName: "image", type: { - name: "String" - } + name: "String", + }, }, lastTransitionTime: { serializedName: "lastTransitionTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastTransitionReason: { serializedName: "lastTransitionReason", type: { - name: "String" - } + name: "String", + }, }, lastTransitionStatus: { serializedName: "lastTransitionStatus", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildResourceRequests: coreClient.CompositeMapper = { @@ -2179,18 +2335,18 @@ export const BuildResourceRequests: coreClient.CompositeMapper = { defaultValue: "1", serializedName: "cpu", type: { - name: "String" - } + name: "String", + }, }, memory: { defaultValue: "2Gi", serializedName: "memory", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildpackBindingResourceCollection: coreClient.CompositeMapper = { @@ -2205,19 +2361,19 @@ export const BuildpackBindingResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuildpackBindingResource" - } - } - } + className: "BuildpackBindingResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildpackBindingProperties: coreClient.CompositeMapper = { @@ -2228,25 +2384,25 @@ export const BuildpackBindingProperties: coreClient.CompositeMapper = { bindingType: { serializedName: "bindingType", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, launchProperties: { serializedName: "launchProperties", type: { name: "Composite", - className: "BuildpackBindingLaunchProperties" - } - } - } - } + className: "BuildpackBindingLaunchProperties", + }, + }, + }, + }, }; export const BuildpackBindingLaunchProperties: coreClient.CompositeMapper = { @@ -2258,18 +2414,18 @@ export const BuildpackBindingLaunchProperties: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, secrets: { serializedName: "secrets", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const BuildResultCollection: coreClient.CompositeMapper = { @@ -2284,19 +2440,19 @@ export const BuildResultCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuildResult" - } - } - } + className: "BuildResult", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildResultProperties: coreClient.CompositeMapper = { @@ -2307,28 +2463,28 @@ export const BuildResultProperties: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ErrorModel" - } + className: "ErrorModel", + }, }, buildPodName: { serializedName: "buildPodName", type: { - name: "String" - } + name: "String", + }, }, buildStages: { serializedName: "buildStages", @@ -2338,20 +2494,20 @@ export const BuildResultProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuildStageProperties" - } - } - } + className: "BuildStageProperties", + }, + }, + }, }, image: { serializedName: "image", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildStageProperties: coreClient.CompositeMapper = { @@ -2363,32 +2519,32 @@ export const BuildStageProperties: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, exitCode: { serializedName: "exitCode", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, reason: { serializedName: "reason", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildResultLog: coreClient.CompositeMapper = { @@ -2399,11 +2555,11 @@ export const BuildResultLog: coreClient.CompositeMapper = { blobUrl: { serializedName: "blobUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuilderProperties: coreClient.CompositeMapper = { @@ -2415,15 +2571,15 @@ export const BuilderProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, stack: { serializedName: "stack", type: { name: "Composite", - className: "StackProperties" - } + className: "StackProperties", + }, }, buildpackGroups: { serializedName: "buildpackGroups", @@ -2432,13 +2588,13 @@ export const BuilderProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuildpacksGroupProperties" - } - } - } - } - } - } + className: "BuildpacksGroupProperties", + }, + }, + }, + }, + }, + }, }; export const StackProperties: coreClient.CompositeMapper = { @@ -2449,17 +2605,17 @@ export const StackProperties: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildpacksGroupProperties: coreClient.CompositeMapper = { @@ -2470,8 +2626,8 @@ export const BuildpacksGroupProperties: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, buildpacks: { serializedName: "buildpacks", @@ -2480,13 +2636,13 @@ export const BuildpacksGroupProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuildpackProperties" - } - } - } - } - } - } + className: "BuildpackProperties", + }, + }, + }, + }, + }, + }, }; export const BuildpackProperties: coreClient.CompositeMapper = { @@ -2497,11 +2653,18 @@ export const BuildpackProperties: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + version: { + serializedName: "version", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const BuilderResourceCollection: coreClient.CompositeMapper = { @@ -2516,19 +2679,19 @@ export const BuilderResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BuilderResource" - } - } - } + className: "BuilderResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceUploadDefinition: coreClient.CompositeMapper = { @@ -2539,17 +2702,17 @@ export const ResourceUploadDefinition: coreClient.CompositeMapper = { relativePath: { serializedName: "relativePath", type: { - name: "String" - } + name: "String", + }, }, uploadUrl: { serializedName: "uploadUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedBuildpacksCollection: coreClient.CompositeMapper = { @@ -2564,35 +2727,42 @@ export const SupportedBuildpacksCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedBuildpackResource" - } - } - } + className: "SupportedBuildpackResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const SupportedBuildpackResourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SupportedBuildpackResourceProperties", - modelProperties: { - buildpackId: { - serializedName: "buildpackId", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const SupportedBuildpackResourceProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SupportedBuildpackResourceProperties", + modelProperties: { + buildpackId: { + serializedName: "buildpackId", + type: { + name: "String", + }, + }, + version: { + serializedName: "version", + type: { + name: "String", + }, + }, + }, + }, + }; export const SupportedStacksCollection: coreClient.CompositeMapper = { type: { @@ -2606,19 +2776,19 @@ export const SupportedStacksCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedStackResource" - } - } - } + className: "SupportedStackResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedStackResourceProperties: coreClient.CompositeMapper = { @@ -2629,45 +2799,46 @@ export const SupportedStackResourceProperties: coreClient.CompositeMapper = { stackId: { serializedName: "stackId", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } - } - } - } -}; - -export const BuildServiceAgentPoolResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BuildServiceAgentPoolResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuildServiceAgentPoolResource" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const BuildServiceAgentPoolResourceCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BuildServiceAgentPoolResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuildServiceAgentPoolResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const BuildServiceAgentPoolProperties: coreClient.CompositeMapper = { type: { @@ -2678,18 +2849,18 @@ export const BuildServiceAgentPoolProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, poolSize: { serializedName: "poolSize", type: { name: "Composite", - className: "BuildServiceAgentPoolSizeProperties" - } - } - } - } + className: "BuildServiceAgentPoolSizeProperties", + }, + }, + }, + }, }; export const BuildServiceAgentPoolSizeProperties: coreClient.CompositeMapper = { @@ -2700,25 +2871,25 @@ export const BuildServiceAgentPoolSizeProperties: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, cpu: { serializedName: "cpu", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, memory: { serializedName: "memory", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MonitoringSettingProperties: coreClient.CompositeMapper = { @@ -2730,47 +2901,47 @@ export const MonitoringSettingProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ErrorModel" - } + className: "ErrorModel", + }, }, traceEnabled: { serializedName: "traceEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, appInsightsInstrumentationKey: { serializedName: "appInsightsInstrumentationKey", type: { - name: "String" - } + name: "String", + }, }, appInsightsSamplingRate: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "appInsightsSamplingRate", type: { - name: "Number" - } + name: "Number", + }, }, appInsightsAgentVersions: { serializedName: "appInsightsAgentVersions", type: { name: "Composite", - className: "ApplicationInsightsAgentVersions" - } - } - } - } + className: "ApplicationInsightsAgentVersions", + }, + }, + }, + }, }; export const ApplicationInsightsAgentVersions: coreClient.CompositeMapper = { @@ -2782,11 +2953,11 @@ export const ApplicationInsightsAgentVersions: coreClient.CompositeMapper = { serializedName: "java", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AppResourceProperties: coreClient.CompositeMapper = { @@ -2797,59 +2968,59 @@ export const AppResourceProperties: coreClient.CompositeMapper = { public: { serializedName: "public", type: { - name: "Boolean" - } + name: "Boolean", + }, }, url: { serializedName: "url", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, addonConfigs: { serializedName: "addonConfigs", type: { name: "Dictionary", value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, fqdn: { serializedName: "fqdn", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, httpsOnly: { defaultValue: false, serializedName: "httpsOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, temporaryDisk: { serializedName: "temporaryDisk", type: { name: "Composite", - className: "TemporaryDisk" - } + className: "TemporaryDisk", + }, }, persistentDisk: { serializedName: "persistentDisk", type: { name: "Composite", - className: "PersistentDisk" - } + className: "PersistentDisk", + }, }, customPersistentDisks: { serializedName: "customPersistentDisks", @@ -2858,17 +3029,17 @@ export const AppResourceProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomPersistentDiskResource" - } - } - } + className: "CustomPersistentDiskResource", + }, + }, + }, }, enableEndToEndTLS: { defaultValue: false, serializedName: "enableEndToEndTLS", type: { - name: "Boolean" - } + name: "Boolean", + }, }, loadedCertificates: { serializedName: "loadedCertificates", @@ -2877,27 +3048,52 @@ export const AppResourceProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LoadedCertificate" - } - } - } + className: "LoadedCertificate", + }, + }, + }, }, vnetAddons: { serializedName: "vnetAddons", type: { name: "Composite", - className: "AppVNetAddons" - } + className: "AppVNetAddons", + }, }, ingressSettings: { serializedName: "ingressSettings", type: { name: "Composite", - className: "IngressSettings" - } - } - } - } + className: "IngressSettings", + }, + }, + secrets: { + serializedName: "secrets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Secret", + }, + }, + }, + }, + workloadProfileName: { + serializedName: "workloadProfileName", + type: { + name: "String", + }, + }, + testEndpointAuthState: { + defaultValue: "Enabled", + serializedName: "testEndpointAuthState", + type: { + name: "String", + }, + }, + }, + }, }; export const TemporaryDisk: coreClient.CompositeMapper = { @@ -2908,22 +3104,22 @@ export const TemporaryDisk: coreClient.CompositeMapper = { sizeInGB: { constraints: { InclusiveMaximum: 5, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "sizeInGB", type: { - name: "Number" - } + name: "Number", + }, }, mountPath: { defaultValue: "/tmp", serializedName: "mountPath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PersistentDisk: coreClient.CompositeMapper = { @@ -2934,32 +3130,32 @@ export const PersistentDisk: coreClient.CompositeMapper = { sizeInGB: { constraints: { InclusiveMaximum: 50, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "sizeInGB", type: { - name: "Number" - } + name: "Number", + }, }, usedInGB: { constraints: { InclusiveMaximum: 50, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "usedInGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, mountPath: { serializedName: "mountPath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomPersistentDiskResource: coreClient.CompositeMapper = { @@ -2971,18 +3167,18 @@ export const CustomPersistentDiskResource: coreClient.CompositeMapper = { serializedName: "customPersistentDiskProperties", type: { name: "Composite", - className: "CustomPersistentDiskProperties" - } + className: "CustomPersistentDiskProperties", + }, }, storageId: { serializedName: "storageId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { @@ -2992,35 +3188,35 @@ export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { uberParent: "CustomPersistentDiskProperties", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, mountPath: { serializedName: "mountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, readOnly: { serializedName: "readOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableSubPath: { defaultValue: false, serializedName: "enableSubPath", type: { - name: "Boolean" - } + name: "Boolean", + }, }, mountOptions: { serializedName: "mountOptions", @@ -3028,13 +3224,13 @@ export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const LoadedCertificate: coreClient.CompositeMapper = { @@ -3046,18 +3242,18 @@ export const LoadedCertificate: coreClient.CompositeMapper = { serializedName: "resourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, loadTrustStore: { defaultValue: false, serializedName: "loadTrustStore", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AppVNetAddons: coreClient.CompositeMapper = { @@ -3069,18 +3265,18 @@ export const AppVNetAddons: coreClient.CompositeMapper = { defaultValue: false, serializedName: "publicEndpoint", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicEndpointUrl: { serializedName: "publicEndpointUrl", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IngressSettings: coreClient.CompositeMapper = { @@ -3091,42 +3287,42 @@ export const IngressSettings: coreClient.CompositeMapper = { readTimeoutInSeconds: { serializedName: "readTimeoutInSeconds", type: { - name: "Number" - } + name: "Number", + }, }, sendTimeoutInSeconds: { serializedName: "sendTimeoutInSeconds", type: { - name: "Number" - } + name: "Number", + }, }, sessionAffinity: { serializedName: "sessionAffinity", type: { - name: "String" - } + name: "String", + }, }, sessionCookieMaxAge: { serializedName: "sessionCookieMaxAge", type: { - name: "Number" - } + name: "Number", + }, }, backendProtocol: { serializedName: "backendProtocol", type: { - name: "String" - } + name: "String", + }, }, clientAuth: { serializedName: "clientAuth", type: { name: "Composite", - className: "IngressSettingsClientAuth" - } - } - } - } + className: "IngressSettingsClientAuth", + }, + }, + }, + }, }; export const IngressSettingsClientAuth: coreClient.CompositeMapper = { @@ -3140,13 +3336,34 @@ export const IngressSettingsClientAuth: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const Secret: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Secret", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + }, + }, }; export const ManagedIdentityProperties: coreClient.CompositeMapper = { @@ -3157,20 +3374,20 @@ export const ManagedIdentityProperties: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "principalId", type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -3179,13 +3396,13 @@ export const ManagedIdentityProperties: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedManagedIdentity" - } - } - } - } - } - } + className: "UserAssignedManagedIdentity", + }, + }, + }, + }, + }, + }, }; export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { @@ -3197,18 +3414,18 @@ export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AppResourceCollection: coreClient.CompositeMapper = { @@ -3223,19 +3440,19 @@ export const AppResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AppResource" - } - } - } + className: "AppResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ActiveDeploymentCollection: coreClient.CompositeMapper = { @@ -3249,13 +3466,13 @@ export const ActiveDeploymentCollection: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const BindingResourceProperties: coreClient.CompositeMapper = { @@ -3267,58 +3484,58 @@ export const BindingResourceProperties: coreClient.CompositeMapper = { serializedName: "resourceName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resourceType: { serializedName: "resourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resourceId: { serializedName: "resourceId", type: { - name: "String" - } + name: "String", + }, }, key: { serializedName: "key", type: { - name: "String" - } + name: "String", + }, }, bindingParameters: { serializedName: "bindingParameters", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, generatedProperties: { serializedName: "generatedProperties", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, updatedAt: { serializedName: "updatedAt", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BindingResourceCollection: coreClient.CompositeMapper = { @@ -3333,19 +3550,19 @@ export const BindingResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BindingResource" - } - } - } + className: "BindingResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageProperties: coreClient.CompositeMapper = { @@ -3355,18 +3572,18 @@ export const StorageProperties: coreClient.CompositeMapper = { uberParent: "StorageProperties", polymorphicDiscriminator: { serializedName: "storageType", - clientName: "storageType" + clientName: "storageType", }, modelProperties: { storageType: { serializedName: "storageType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageResourceCollection: coreClient.CompositeMapper = { @@ -3381,19 +3598,19 @@ export const StorageResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StorageResource" - } - } - } + className: "StorageResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateProperties: coreClient.CompositeMapper = { @@ -3403,57 +3620,57 @@ export const CertificateProperties: coreClient.CompositeMapper = { uberParent: "CertificateProperties", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "thumbprint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, issuer: { serializedName: "issuer", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, issuedDate: { serializedName: "issuedDate", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, expirationDate: { serializedName: "expirationDate", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, activateDate: { serializedName: "activateDate", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subjectName: { serializedName: "subjectName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dnsNames: { serializedName: "dnsNames", @@ -3462,20 +3679,20 @@ export const CertificateProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateResourceCollection: coreClient.CompositeMapper = { @@ -3490,19 +3707,19 @@ export const CertificateResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CertificateResource" - } - } - } + className: "CertificateResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NameAvailabilityParameters: coreClient.CompositeMapper = { @@ -3514,18 +3731,18 @@ export const NameAvailabilityParameters: coreClient.CompositeMapper = { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NameAvailability: coreClient.CompositeMapper = { @@ -3536,23 +3753,23 @@ export const NameAvailability: coreClient.CompositeMapper = { nameAvailable: { serializedName: "nameAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomDomainProperties: coreClient.CompositeMapper = { @@ -3563,31 +3780,31 @@ export const CustomDomainProperties: coreClient.CompositeMapper = { thumbprint: { serializedName: "thumbprint", type: { - name: "String" - } + name: "String", + }, }, appName: { serializedName: "appName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, certName: { serializedName: "certName", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomDomainResourceCollection: coreClient.CompositeMapper = { @@ -3602,19 +3819,19 @@ export const CustomDomainResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomDomainResource" - } - } - } + className: "CustomDomainResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomDomainValidatePayload: coreClient.CompositeMapper = { @@ -3626,11 +3843,11 @@ export const CustomDomainValidatePayload: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomDomainValidateResult: coreClient.CompositeMapper = { @@ -3641,17 +3858,17 @@ export const CustomDomainValidateResult: coreClient.CompositeMapper = { isValid: { serializedName: "isValid", type: { - name: "Boolean" - } + name: "Boolean", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentResourceProperties: coreClient.CompositeMapper = { @@ -3663,35 +3880,35 @@ export const DeploymentResourceProperties: coreClient.CompositeMapper = { serializedName: "source", type: { name: "Composite", - className: "UserSourceInfo" - } + className: "UserSourceInfo", + }, }, deploymentSettings: { serializedName: "deploymentSettings", type: { name: "Composite", - className: "DeploymentSettings" - } + className: "DeploymentSettings", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, active: { serializedName: "active", type: { - name: "Boolean" - } + name: "Boolean", + }, }, instances: { serializedName: "instances", @@ -3701,13 +3918,13 @@ export const DeploymentResourceProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeploymentInstance" - } - } - } - } - } - } + className: "DeploymentInstance", + }, + }, + }, + }, + }, + }, }; export const UserSourceInfo: coreClient.CompositeMapper = { @@ -3717,24 +3934,24 @@ export const UserSourceInfo: coreClient.CompositeMapper = { uberParent: "UserSourceInfo", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentSettings: coreClient.CompositeMapper = { @@ -3746,15 +3963,15 @@ export const DeploymentSettings: coreClient.CompositeMapper = { serializedName: "resourceRequests", type: { name: "Composite", - className: "ResourceRequests" - } + className: "ResourceRequests", + }, }, environmentVariables: { serializedName: "environmentVariables", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, apms: { serializedName: "apms", @@ -3763,57 +3980,64 @@ export const DeploymentSettings: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApmReference" - } - } - } + className: "ApmReference", + }, + }, + }, }, addonConfigs: { serializedName: "addonConfigs", type: { name: "Dictionary", value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, + }, }, livenessProbe: { serializedName: "livenessProbe", type: { name: "Composite", - className: "Probe" - } + className: "Probe", + }, }, readinessProbe: { serializedName: "readinessProbe", type: { name: "Composite", - className: "Probe" - } + className: "Probe", + }, }, startupProbe: { serializedName: "startupProbe", type: { name: "Composite", - className: "Probe" - } + className: "Probe", + }, }, terminationGracePeriodSeconds: { defaultValue: 90, serializedName: "terminationGracePeriodSeconds", type: { - name: "Number" - } + name: "Number", + }, + }, + scale: { + serializedName: "scale", + type: { + name: "Composite", + className: "Scale", + }, }, containerProbeSettings: { serializedName: "containerProbeSettings", type: { name: "Composite", - className: "ContainerProbeSettings" - } - } - } - } + className: "ContainerProbeSettings", + }, + }, + }, + }, }; export const ResourceRequests: coreClient.CompositeMapper = { @@ -3824,17 +4048,17 @@ export const ResourceRequests: coreClient.CompositeMapper = { cpu: { serializedName: "cpu", type: { - name: "String" - } + name: "String", + }, }, memory: { serializedName: "memory", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Probe: coreClient.CompositeMapper = { @@ -3846,49 +4070,49 @@ export const Probe: coreClient.CompositeMapper = { serializedName: "probeAction", type: { name: "Composite", - className: "ProbeAction" - } + className: "ProbeAction", + }, }, disableProbe: { defaultValue: false, serializedName: "disableProbe", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, initialDelaySeconds: { serializedName: "initialDelaySeconds", type: { - name: "Number" - } + name: "Number", + }, }, periodSeconds: { serializedName: "periodSeconds", type: { - name: "Number" - } + name: "Number", + }, }, timeoutSeconds: { serializedName: "timeoutSeconds", type: { - name: "Number" - } + name: "Number", + }, }, failureThreshold: { serializedName: "failureThreshold", type: { - name: "Number" - } + name: "Number", + }, }, successThreshold: { serializedName: "successThreshold", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ProbeAction: coreClient.CompositeMapper = { @@ -3898,18 +4122,239 @@ export const ProbeAction: coreClient.CompositeMapper = { uberParent: "ProbeAction", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const Scale: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Scale", + modelProperties: { + minReplicas: { + serializedName: "minReplicas", + type: { + name: "Number", + }, + }, + maxReplicas: { + defaultValue: 10, + serializedName: "maxReplicas", + type: { + name: "Number", + }, + }, + rules: { + serializedName: "rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScaleRule", + }, + }, + }, + }, + }, + }, +}; + +export const ScaleRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleRule", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + azureQueue: { + serializedName: "azureQueue", + type: { + name: "Composite", + className: "QueueScaleRule", + }, + }, + custom: { + serializedName: "custom", + type: { + name: "Composite", + className: "CustomScaleRule", + }, + }, + http: { + serializedName: "http", + type: { + name: "Composite", + className: "HttpScaleRule", + }, + }, + tcp: { + serializedName: "tcp", + type: { + name: "Composite", + className: "TcpScaleRule", + }, + }, + }, + }, +}; + +export const QueueScaleRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QueueScaleRule", + modelProperties: { + queueName: { + serializedName: "queueName", + type: { + name: "String", + }, + }, + queueLength: { + serializedName: "queueLength", + type: { + name: "Number", + }, + }, + auth: { + serializedName: "auth", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScaleRuleAuth", + }, + }, + }, + }, + }, + }, +}; + +export const ScaleRuleAuth: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleRuleAuth", + modelProperties: { + secretRef: { + serializedName: "secretRef", + type: { + name: "String", + }, + }, + triggerParameter: { + serializedName: "triggerParameter", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CustomScaleRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomScaleRule", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + auth: { + serializedName: "auth", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScaleRuleAuth", + }, + }, + }, + }, + }, + }, +}; + +export const HttpScaleRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HttpScaleRule", + modelProperties: { + metadata: { + serializedName: "metadata", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + auth: { + serializedName: "auth", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScaleRuleAuth", + }, + }, + }, + }, + }, + }, +}; + +export const TcpScaleRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TcpScaleRule", + modelProperties: { + metadata: { + serializedName: "metadata", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + auth: { + serializedName: "auth", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScaleRuleAuth", + }, + }, + }, + }, + }, + }, }; export const ContainerProbeSettings: coreClient.CompositeMapper = { @@ -3920,11 +4365,11 @@ export const ContainerProbeSettings: coreClient.CompositeMapper = { disableProbe: { serializedName: "disableProbe", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DeploymentInstance: coreClient.CompositeMapper = { @@ -3936,46 +4381,46 @@ export const DeploymentInstance: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, reason: { serializedName: "reason", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, discoveryStatus: { serializedName: "discoveryStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, zone: { serializedName: "zone", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentResourceCollection: coreClient.CompositeMapper = { @@ -3990,19 +4435,19 @@ export const DeploymentResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeploymentResource" - } - } - } + className: "DeploymentResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentList: coreClient.CompositeMapper = { @@ -4016,13 +4461,13 @@ export const DeploymentList: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const RemoteDebuggingPayload: coreClient.CompositeMapper = { @@ -4033,11 +4478,11 @@ export const RemoteDebuggingPayload: coreClient.CompositeMapper = { port: { serializedName: "port", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RemoteDebugging: coreClient.CompositeMapper = { @@ -4048,17 +4493,17 @@ export const RemoteDebugging: coreClient.CompositeMapper = { port: { serializedName: "port", type: { - name: "Number" - } + name: "Number", + }, }, enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const LogFileUrlResponse: coreClient.CompositeMapper = { @@ -4070,11 +4515,11 @@ export const LogFileUrlResponse: coreClient.CompositeMapper = { serializedName: "url", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiagnosticParameters: coreClient.CompositeMapper = { @@ -4085,23 +4530,23 @@ export const DiagnosticParameters: coreClient.CompositeMapper = { appInstance: { serializedName: "appInstance", type: { - name: "String" - } + name: "String", + }, }, filePath: { serializedName: "filePath", type: { - name: "String" - } + name: "String", + }, }, duration: { serializedName: "duration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServiceResourceList: coreClient.CompositeMapper = { @@ -4116,19 +4561,19 @@ export const ServiceResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServiceResource" - } - } - } + className: "ServiceResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AvailableOperations: coreClient.CompositeMapper = { @@ -4143,19 +4588,19 @@ export const AvailableOperations: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationDetail" - } - } - } + className: "OperationDetail", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationDetail: coreClient.CompositeMapper = { @@ -4166,44 +4611,44 @@ export const OperationDetail: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, actionType: { serializedName: "actionType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "OperationProperties" - } - } - } - } + className: "OperationProperties", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -4214,29 +4659,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationProperties: coreClient.CompositeMapper = { @@ -4248,11 +4693,11 @@ export const OperationProperties: coreClient.CompositeMapper = { serializedName: "serviceSpecification", type: { name: "Composite", - className: "ServiceSpecification" - } - } - } - } + className: "ServiceSpecification", + }, + }, + }, + }, }; export const ServiceSpecification: coreClient.CompositeMapper = { @@ -4267,10 +4712,10 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LogSpecification" - } - } - } + className: "LogSpecification", + }, + }, + }, }, metricSpecifications: { serializedName: "metricSpecifications", @@ -4279,13 +4724,13 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetricSpecification" - } - } - } - } - } - } + className: "MetricSpecification", + }, + }, + }, + }, + }, + }, }; export const LogSpecification: coreClient.CompositeMapper = { @@ -4296,23 +4741,23 @@ export const LogSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, blobDuration: { serializedName: "blobDuration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MetricSpecification: coreClient.CompositeMapper = { @@ -4323,38 +4768,38 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, displayDescription: { serializedName: "displayDescription", type: { - name: "String" - } + name: "String", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, aggregationType: { serializedName: "aggregationType", type: { - name: "String" - } + name: "String", + }, }, supportedAggregationTypes: { serializedName: "supportedAggregationTypes", @@ -4362,10 +4807,10 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, supportedTimeGrainTypes: { serializedName: "supportedTimeGrainTypes", @@ -4373,16 +4818,16 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, fillGapWithZero: { serializedName: "fillGapWithZero", type: { - name: "Boolean" - } + name: "Boolean", + }, }, dimensions: { serializedName: "dimensions", @@ -4391,19 +4836,19 @@ export const MetricSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetricDimension" - } - } - } + className: "MetricDimension", + }, + }, + }, }, sourceMdmNamespace: { serializedName: "sourceMdmNamespace", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MetricDimension: coreClient.CompositeMapper = { @@ -4414,23 +4859,23 @@ export const MetricDimension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, toBeExportedForShoebox: { serializedName: "toBeExportedForShoebox", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AvailableRuntimeVersions: coreClient.CompositeMapper = { @@ -4446,13 +4891,13 @@ export const AvailableRuntimeVersions: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedRuntimeVersion" - } - } - } - } - } - } + className: "SupportedRuntimeVersion", + }, + }, + }, + }, + }, + }, }; export const SupportedRuntimeVersion: coreClient.CompositeMapper = { @@ -4463,23 +4908,23 @@ export const SupportedRuntimeVersion: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, platform: { serializedName: "platform", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuCollection: coreClient.CompositeMapper = { @@ -4494,19 +4939,19 @@ export const ResourceSkuCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSku" - } - } - } + className: "ResourceSku", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSku: coreClient.CompositeMapper = { @@ -4517,27 +4962,27 @@ export const ResourceSku: coreClient.CompositeMapper = { resourceType: { serializedName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { name: "Composite", - className: "SkuCapacity" - } + className: "SkuCapacity", + }, }, locations: { serializedName: "locations", @@ -4545,10 +4990,10 @@ export const ResourceSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, locationInfo: { serializedName: "locationInfo", @@ -4557,10 +5002,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuLocationInfo" - } - } - } + className: "ResourceSkuLocationInfo", + }, + }, + }, }, restrictions: { serializedName: "restrictions", @@ -4569,13 +5014,13 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuRestrictions" - } - } - } - } - } - } + className: "ResourceSkuRestrictions", + }, + }, + }, + }, + }, + }, }; export const SkuCapacity: coreClient.CompositeMapper = { @@ -4587,29 +5032,29 @@ export const SkuCapacity: coreClient.CompositeMapper = { serializedName: "minimum", required: true, type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "default", type: { - name: "Number" - } + name: "Number", + }, }, scaleType: { serializedName: "scaleType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { @@ -4620,8 +5065,8 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -4629,10 +5074,10 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zoneDetails: { serializedName: "zoneDetails", @@ -4641,13 +5086,13 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuZoneDetails" - } - } - } - } - } - } + className: "ResourceSkuZoneDetails", + }, + }, + }, + }, + }, + }, }; export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { @@ -4661,10 +5106,10 @@ export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -4673,13 +5118,13 @@ export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCapabilities" - } - } - } - } - } - } + className: "ResourceSkuCapabilities", + }, + }, + }, + }, + }, + }, }; export const ResourceSkuCapabilities: coreClient.CompositeMapper = { @@ -4690,17 +5135,17 @@ export const ResourceSkuCapabilities: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuRestrictions: coreClient.CompositeMapper = { @@ -4711,8 +5156,8 @@ export const ResourceSkuRestrictions: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, values: { serializedName: "values", @@ -4720,26 +5165,26 @@ export const ResourceSkuRestrictions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, restrictionInfo: { serializedName: "restrictionInfo", type: { name: "Composite", - className: "ResourceSkuRestrictionInfo" - } + className: "ResourceSkuRestrictionInfo", + }, }, reasonCode: { serializedName: "reasonCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { @@ -4753,10 +5198,10 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zones: { serializedName: "zones", @@ -4764,13 +5209,13 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SupportedServerVersions: coreClient.CompositeMapper = { @@ -4785,19 +5230,19 @@ export const SupportedServerVersions: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedServerVersion" - } - } - } + className: "SupportedServerVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedServerVersion: coreClient.CompositeMapper = { @@ -4808,23 +5253,23 @@ export const SupportedServerVersion: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, server: { serializedName: "server", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GatewayProperties: coreClient.CompositeMapper = { @@ -4836,57 +5281,71 @@ export const GatewayProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, public: { defaultValue: false, serializedName: "public", type: { - name: "Boolean" - } + name: "Boolean", + }, }, url: { serializedName: "url", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, httpsOnly: { defaultValue: false, serializedName: "httpsOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, ssoProperties: { serializedName: "ssoProperties", type: { name: "Composite", - className: "SsoProperties" - } + className: "SsoProperties", + }, }, apiMetadataProperties: { serializedName: "apiMetadataProperties", type: { name: "Composite", - className: "GatewayApiMetadataProperties" - } + className: "GatewayApiMetadataProperties", + }, }, corsProperties: { serializedName: "corsProperties", type: { name: "Composite", - className: "GatewayCorsProperties" - } + className: "GatewayCorsProperties", + }, }, clientAuth: { serializedName: "clientAuth", type: { name: "Composite", - className: "GatewayPropertiesClientAuth" - } + className: "GatewayPropertiesClientAuth", + }, + }, + apmTypes: { + constraints: { + UniqueItems: true, + }, + serializedName: "apmTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, apms: { serializedName: "apms", @@ -4895,24 +5354,33 @@ export const GatewayProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApmReference" - } - } - } + className: "ApmReference", + }, + }, + }, }, environmentVariables: { serializedName: "environmentVariables", type: { name: "Composite", - className: "GatewayPropertiesEnvironmentVariables" - } + className: "GatewayPropertiesEnvironmentVariables", + }, }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "GatewayResourceRequests" - } + className: "GatewayResourceRequests", + }, + }, + addonConfigs: { + serializedName: "addonConfigs", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, + }, }, instances: { serializedName: "instances", @@ -4922,20 +5390,27 @@ export const GatewayProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GatewayInstance" - } - } - } + className: "GatewayInstance", + }, + }, + }, }, operatorProperties: { serializedName: "operatorProperties", type: { name: "Composite", - className: "GatewayOperatorProperties" - } - } - } - } + className: "GatewayOperatorProperties", + }, + }, + responseCacheProperties: { + serializedName: "responseCacheProperties", + type: { + name: "Composite", + className: "GatewayResponseCacheProperties", + }, + }, + }, + }, }; export const SsoProperties: coreClient.CompositeMapper = { @@ -4949,31 +5424,31 @@ export const SsoProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clientId: { serializedName: "clientId", type: { - name: "String" - } + name: "String", + }, }, clientSecret: { serializedName: "clientSecret", type: { - name: "String" - } + name: "String", + }, }, issuerUri: { serializedName: "issuerUri", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GatewayApiMetadataProperties: coreClient.CompositeMapper = { @@ -4984,35 +5459,35 @@ export const GatewayApiMetadataProperties: coreClient.CompositeMapper = { title: { serializedName: "title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, documentation: { serializedName: "documentation", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } + name: "String", + }, }, serverUrl: { serializedName: "serverUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GatewayCorsProperties: coreClient.CompositeMapper = { @@ -5026,10 +5501,10 @@ export const GatewayCorsProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, allowedOriginPatterns: { serializedName: "allowedOriginPatterns", @@ -5037,10 +5512,10 @@ export const GatewayCorsProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, allowedMethods: { serializedName: "allowedMethods", @@ -5048,10 +5523,10 @@ export const GatewayCorsProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, allowedHeaders: { serializedName: "allowedHeaders", @@ -5059,22 +5534,22 @@ export const GatewayCorsProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, maxAge: { serializedName: "maxAge", type: { - name: "Number" - } + name: "Number", + }, }, allowCredentials: { serializedName: "allowCredentials", type: { - name: "Boolean" - } + name: "Boolean", + }, }, exposedHeaders: { serializedName: "exposedHeaders", @@ -5082,13 +5557,13 @@ export const GatewayCorsProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const GatewayPropertiesClientAuth: coreClient.CompositeMapper = { @@ -5098,51 +5573,52 @@ export const GatewayPropertiesClientAuth: coreClient.CompositeMapper = { modelProperties: { certificates: { constraints: { - UniqueItems: true + UniqueItems: true, }, serializedName: "certificates", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, certificateVerification: { defaultValue: "Disabled", serializedName: "certificateVerification", type: { - name: "String" - } - } - } - } -}; - -export const GatewayPropertiesEnvironmentVariables: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayPropertiesEnvironmentVariables", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - secrets: { - serializedName: "secrets", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; + }, + }, +}; + +export const GatewayPropertiesEnvironmentVariables: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GatewayPropertiesEnvironmentVariables", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + secrets: { + serializedName: "secrets", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, + }; export const GatewayResourceRequests: coreClient.CompositeMapper = { type: { @@ -5153,18 +5629,18 @@ export const GatewayResourceRequests: coreClient.CompositeMapper = { defaultValue: "1", serializedName: "cpu", type: { - name: "String" - } + name: "String", + }, }, memory: { defaultValue: "2Gi", serializedName: "memory", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GatewayInstance: coreClient.CompositeMapper = { @@ -5176,18 +5652,18 @@ export const GatewayInstance: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GatewayOperatorProperties: coreClient.CompositeMapper = { @@ -5199,8 +5675,8 @@ export const GatewayOperatorProperties: coreClient.CompositeMapper = { serializedName: "resourceRequests", type: { name: "Composite", - className: "GatewayOperatorResourceRequests" - } + className: "GatewayOperatorResourceRequests", + }, }, instances: { serializedName: "instances", @@ -5210,13 +5686,13 @@ export const GatewayOperatorProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GatewayInstance" - } - } - } - } - } - } + className: "GatewayInstance", + }, + }, + }, + }, + }, + }, }; export const GatewayOperatorResourceRequests: coreClient.CompositeMapper = { @@ -5228,25 +5704,62 @@ export const GatewayOperatorResourceRequests: coreClient.CompositeMapper = { serializedName: "cpu", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, memory: { serializedName: "memory", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceCount: { serializedName: "instanceCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, +}; + +export const GatewayResponseCacheProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayResponseCacheProperties", + uberParent: "GatewayResponseCacheProperties", + polymorphicDiscriminator: { + serializedName: "responseCacheType", + clientName: "responseCacheType", + }, + modelProperties: { + responseCacheType: { + serializedName: "responseCacheType", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SkuObject: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuObject", + modelProperties: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku", + }, + }, + }, + }, }; export const GatewayResourceCollection: coreClient.CompositeMapper = { @@ -5261,19 +5774,19 @@ export const GatewayResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GatewayResource" - } - } - } + className: "GatewayResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { @@ -5285,28 +5798,28 @@ export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, appResourceId: { serializedName: "appResourceId", type: { - name: "String" - } + name: "String", + }, }, openApi: { serializedName: "openApi", type: { name: "Composite", - className: "GatewayRouteConfigOpenApiProperties" - } + className: "GatewayRouteConfigOpenApiProperties", + }, }, protocol: { defaultValue: "HTTP", serializedName: "protocol", type: { - name: "String" - } + name: "String", + }, }, routes: { serializedName: "routes", @@ -5315,16 +5828,16 @@ export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GatewayApiRoute" - } - } - } + className: "GatewayApiRoute", + }, + }, + }, }, ssoEnabled: { serializedName: "ssoEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, predicates: { serializedName: "predicates", @@ -5332,10 +5845,10 @@ export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, filters: { serializedName: "filters", @@ -5343,13 +5856,13 @@ export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const GatewayRouteConfigOpenApiProperties: coreClient.CompositeMapper = { @@ -5360,11 +5873,11 @@ export const GatewayRouteConfigOpenApiProperties: coreClient.CompositeMapper = { uri: { serializedName: "uri", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GatewayApiRoute: coreClient.CompositeMapper = { @@ -5375,32 +5888,32 @@ export const GatewayApiRoute: coreClient.CompositeMapper = { title: { serializedName: "title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, uri: { serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, ssoEnabled: { serializedName: "ssoEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, tokenRelay: { serializedName: "tokenRelay", type: { - name: "Boolean" - } + name: "Boolean", + }, }, predicates: { serializedName: "predicates", @@ -5408,10 +5921,10 @@ export const GatewayApiRoute: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, filters: { serializedName: "filters", @@ -5419,16 +5932,16 @@ export const GatewayApiRoute: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, order: { serializedName: "order", type: { - name: "Number" - } + name: "Number", + }, }, tags: { serializedName: "tags", @@ -5436,83 +5949,85 @@ export const GatewayApiRoute: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } -}; - -export const GatewayRouteConfigResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayRouteConfigResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayRouteConfigResource" - } - } - } + name: "String", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const GatewayCustomDomainProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayCustomDomainProperties", - modelProperties: { - thumbprint: { - serializedName: "thumbprint", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const GatewayRouteConfigResourceCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GatewayRouteConfigResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayRouteConfigResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GatewayCustomDomainResourceCollection: coreClient.CompositeMapper = { +export const GatewayCustomDomainProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayCustomDomainResourceCollection", + className: "GatewayCustomDomainProperties", modelProperties: { - value: { - serializedName: "value", + thumbprint: { + serializedName: "thumbprint", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayCustomDomainResource" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const GatewayCustomDomainResourceCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GatewayCustomDomainResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayCustomDomainResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const ApiPortalProperties: coreClient.CompositeMapper = { type: { @@ -5523,29 +6038,29 @@ export const ApiPortalProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, public: { defaultValue: false, serializedName: "public", type: { - name: "Boolean" - } + name: "Boolean", + }, }, url: { serializedName: "url", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, httpsOnly: { defaultValue: false, serializedName: "httpsOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, gatewayIds: { serializedName: "gatewayIds", @@ -5553,10 +6068,10 @@ export const ApiPortalProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, sourceUrls: { serializedName: "sourceUrls", @@ -5564,24 +6079,24 @@ export const ApiPortalProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ssoProperties: { serializedName: "ssoProperties", type: { name: "Composite", - className: "SsoProperties" - } + className: "SsoProperties", + }, }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "ApiPortalResourceRequests" - } + className: "ApiPortalResourceRequests", + }, }, instances: { serializedName: "instances", @@ -5591,20 +6106,20 @@ export const ApiPortalProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiPortalInstance" - } - } - } + className: "ApiPortalInstance", + }, + }, + }, }, apiTryOutEnabledState: { defaultValue: "Enabled", serializedName: "apiTryOutEnabledState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiPortalResourceRequests: coreClient.CompositeMapper = { @@ -5616,18 +6131,18 @@ export const ApiPortalResourceRequests: coreClient.CompositeMapper = { serializedName: "cpu", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, memory: { serializedName: "memory", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiPortalInstance: coreClient.CompositeMapper = { @@ -5639,18 +6154,18 @@ export const ApiPortalInstance: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiPortalResourceCollection: coreClient.CompositeMapper = { @@ -5665,19 +6180,19 @@ export const ApiPortalResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiPortalResource" - } - } - } + className: "ApiPortalResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiPortalCustomDomainProperties: coreClient.CompositeMapper = { @@ -5688,66 +6203,68 @@ export const ApiPortalCustomDomainProperties: coreClient.CompositeMapper = { thumbprint: { serializedName: "thumbprint", type: { - name: "String" - } - } - } - } -}; - -export const ApiPortalCustomDomainResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApiPortalCustomDomainResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiPortalCustomDomainResource" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationAcceleratorResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationAcceleratorResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationAcceleratorResource" - } - } - } + }, + }, +}; + +export const ApiPortalCustomDomainResourceCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApiPortalCustomDomainResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiPortalCustomDomainResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const ApplicationAcceleratorResourceCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationAcceleratorResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationAcceleratorResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const ApplicationAcceleratorProperties: coreClient.CompositeMapper = { type: { @@ -5758,8 +6275,8 @@ export const ApplicationAcceleratorProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, components: { serializedName: "components", @@ -5769,13 +6286,13 @@ export const ApplicationAcceleratorProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationAcceleratorComponent" - } - } - } - } - } - } + className: "ApplicationAcceleratorComponent", + }, + }, + }, + }, + }, + }, }; export const ApplicationAcceleratorComponent: coreClient.CompositeMapper = { @@ -5787,15 +6304,15 @@ export const ApplicationAcceleratorComponent: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resourceRequests: { serializedName: "resourceRequests", type: { name: "Composite", - className: "ApplicationAcceleratorResourceRequests" - } + className: "ApplicationAcceleratorResourceRequests", + }, }, instances: { serializedName: "instances", @@ -5805,44 +6322,45 @@ export const ApplicationAcceleratorComponent: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationAcceleratorInstance" - } - } - } - } - } - } -}; - -export const ApplicationAcceleratorResourceRequests: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationAcceleratorResourceRequests", - modelProperties: { - cpu: { - serializedName: "cpu", - readOnly: true, - type: { - name: "String" - } + className: "ApplicationAcceleratorInstance", + }, + }, + }, }, - memory: { - serializedName: "memory", - readOnly: true, - type: { - name: "String" - } + }, + }, +}; + +export const ApplicationAcceleratorResourceRequests: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationAcceleratorResourceRequests", + modelProperties: { + cpu: { + serializedName: "cpu", + readOnly: true, + type: { + name: "String", + }, + }, + memory: { + serializedName: "memory", + readOnly: true, + type: { + name: "String", + }, + }, + instanceCount: { + serializedName: "instanceCount", + readOnly: true, + type: { + name: "Number", + }, + }, }, - instanceCount: { - serializedName: "instanceCount", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; + }, + }; export const ApplicationAcceleratorInstance: coreClient.CompositeMapper = { type: { @@ -5853,46 +6371,47 @@ export const ApplicationAcceleratorInstance: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const CustomizedAcceleratorResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomizedAcceleratorResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomizedAcceleratorResource" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const CustomizedAcceleratorResourceCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CustomizedAcceleratorResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomizedAcceleratorResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const CustomizedAcceleratorProperties: coreClient.CompositeMapper = { type: { @@ -5903,32 +6422,32 @@ export const CustomizedAcceleratorProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, acceleratorType: { serializedName: "acceleratorType", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, iconUrl: { serializedName: "iconUrl", type: { - name: "String" - } + name: "String", + }, }, acceleratorTags: { serializedName: "acceleratorTags", @@ -5936,10 +6455,10 @@ export const CustomizedAcceleratorProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, imports: { serializedName: "imports", @@ -5948,20 +6467,20 @@ export const CustomizedAcceleratorProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, gitRepository: { serializedName: "gitRepository", type: { name: "Composite", - className: "AcceleratorGitRepository" - } - } - } - } + className: "AcceleratorGitRepository", + }, + }, + }, + }, }; export const AcceleratorGitRepository: coreClient.CompositeMapper = { @@ -5973,48 +6492,48 @@ export const AcceleratorGitRepository: coreClient.CompositeMapper = { serializedName: "url", required: true, type: { - name: "String" - } + name: "String", + }, }, intervalInSeconds: { serializedName: "intervalInSeconds", type: { - name: "Number" - } + name: "Number", + }, }, branch: { serializedName: "branch", type: { - name: "String" - } + name: "String", + }, }, commit: { serializedName: "commit", type: { - name: "String" - } + name: "String", + }, }, gitTag: { serializedName: "gitTag", type: { - name: "String" - } + name: "String", + }, }, authSetting: { serializedName: "authSetting", type: { name: "Composite", - className: "AcceleratorAuthSetting" - } + className: "AcceleratorAuthSetting", + }, }, subPath: { serializedName: "subPath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AcceleratorAuthSetting: coreClient.CompositeMapper = { @@ -6024,18 +6543,18 @@ export const AcceleratorAuthSetting: coreClient.CompositeMapper = { uberParent: "AcceleratorAuthSetting", polymorphicDiscriminator: { serializedName: "authType", - clientName: "authType" + clientName: "authType", }, modelProperties: { authType: { serializedName: "authType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomizedAcceleratorValidateResult: coreClient.CompositeMapper = { @@ -6047,45 +6566,46 @@ export const CustomizedAcceleratorValidateResult: coreClient.CompositeMapper = { defaultValue: "Valid", serializedName: "state", type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", type: { - name: "String" - } - } - } - } -}; - -export const PredefinedAcceleratorResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PredefinedAcceleratorResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PredefinedAcceleratorResource" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const PredefinedAcceleratorResourceCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PredefinedAcceleratorResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PredefinedAcceleratorResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const PredefinedAcceleratorProperties: coreClient.CompositeMapper = { type: { @@ -6096,29 +6616,29 @@ export const PredefinedAcceleratorProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, iconUrl: { serializedName: "iconUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, acceleratorTags: { serializedName: "acceleratorTags", @@ -6127,20 +6647,20 @@ export const PredefinedAcceleratorProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, state: { defaultValue: "Enabled", serializedName: "state", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomContainer: coreClient.CompositeMapper = { @@ -6151,14 +6671,14 @@ export const CustomContainer: coreClient.CompositeMapper = { server: { serializedName: "server", type: { - name: "String" - } + name: "String", + }, }, containerImage: { serializedName: "containerImage", type: { - name: "String" - } + name: "String", + }, }, command: { serializedName: "command", @@ -6166,10 +6686,10 @@ export const CustomContainer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, args: { serializedName: "args", @@ -6177,26 +6697,26 @@ export const CustomContainer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, imageRegistryCredential: { serializedName: "imageRegistryCredential", type: { name: "Composite", - className: "ImageRegistryCredential" - } + className: "ImageRegistryCredential", + }, }, languageFramework: { serializedName: "languageFramework", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageRegistryCredential: coreClient.CompositeMapper = { @@ -6207,34 +6727,58 @@ export const ImageRegistryCredential: coreClient.CompositeMapper = { username: { serializedName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", type: { - name: "String" - } - } - } - } -}; - -export const SkuObject: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SkuObject", - modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WeeklyMaintenanceScheduleConfiguration: coreClient.CompositeMapper = + { + serializedName: "Weekly", + type: { + name: "Composite", + className: "WeeklyMaintenanceScheduleConfiguration", + uberParent: "MaintenanceScheduleConfiguration", + polymorphicDiscriminator: + MaintenanceScheduleConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...MaintenanceScheduleConfiguration.type.modelProperties, + hour: { + constraints: { + InclusiveMaximum: 23, + InclusiveMinimum: 0, + }, + serializedName: "hour", + required: true, + type: { + name: "Number", + }, + }, + duration: { + serializedName: "duration", + readOnly: true, + type: { + name: "String", + }, + }, + day: { + serializedName: "day", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const TrackedResource: coreClient.CompositeMapper = { type: { @@ -6245,18 +6789,18 @@ export const TrackedResource: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -6264,9 +6808,9 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const ContainerRegistryBasicCredentials: coreClient.CompositeMapper = { @@ -6283,25 +6827,25 @@ export const ContainerRegistryBasicCredentials: coreClient.CompositeMapper = { serializedName: "server", required: true, type: { - name: "String" - } + name: "String", + }, }, username: { serializedName: "username", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AzureFileVolume: coreClient.CompositeMapper = { @@ -6317,11 +6861,11 @@ export const AzureFileVolume: coreClient.CompositeMapper = { shareName: { serializedName: "shareName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageAccount: coreClient.CompositeMapper = { @@ -6337,18 +6881,18 @@ export const StorageAccount: coreClient.CompositeMapper = { serializedName: "accountName", required: true, type: { - name: "String" - } + name: "String", + }, }, accountKey: { serializedName: "accountKey", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KeyVaultCertificateProperties: coreClient.CompositeMapper = { @@ -6365,38 +6909,38 @@ export const KeyVaultCertificateProperties: coreClient.CompositeMapper = { serializedName: "vaultUri", required: true, type: { - name: "String" - } + name: "String", + }, }, keyVaultCertName: { serializedName: "keyVaultCertName", required: true, type: { - name: "String" - } + name: "String", + }, }, certVersion: { serializedName: "certVersion", type: { - name: "String" - } + name: "String", + }, }, excludePrivateKey: { defaultValue: false, serializedName: "excludePrivateKey", type: { - name: "Boolean" - } + name: "Boolean", + }, }, autoSync: { defaultValue: "Disabled", serializedName: "autoSync", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ContentCertificateProperties: coreClient.CompositeMapper = { @@ -6412,11 +6956,11 @@ export const ContentCertificateProperties: coreClient.CompositeMapper = { content: { serializedName: "content", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UploadedUserSourceInfo: coreClient.CompositeMapper = { @@ -6427,18 +6971,18 @@ export const UploadedUserSourceInfo: coreClient.CompositeMapper = { uberParent: "UserSourceInfo", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { ...UserSourceInfo.type.modelProperties, relativePath: { serializedName: "relativePath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildResultUserSourceInfo: coreClient.CompositeMapper = { @@ -6453,11 +6997,11 @@ export const BuildResultUserSourceInfo: coreClient.CompositeMapper = { buildResultId: { serializedName: "buildResultId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomContainerUserSourceInfo: coreClient.CompositeMapper = { @@ -6473,11 +7017,11 @@ export const CustomContainerUserSourceInfo: coreClient.CompositeMapper = { serializedName: "customContainer", type: { name: "Composite", - className: "CustomContainer" - } - } - } - } + className: "CustomContainer", + }, + }, + }, + }, }; export const HttpGetAction: coreClient.CompositeMapper = { @@ -6492,17 +7036,17 @@ export const HttpGetAction: coreClient.CompositeMapper = { path: { serializedName: "path", type: { - name: "String" - } + name: "String", + }, }, scheme: { serializedName: "scheme", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ExecAction: coreClient.CompositeMapper = { @@ -6520,13 +7064,13 @@ export const ExecAction: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const TCPSocketAction: coreClient.CompositeMapper = { @@ -6537,10 +7081,64 @@ export const TCPSocketAction: coreClient.CompositeMapper = { uberParent: "ProbeAction", polymorphicDiscriminator: ProbeAction.type.polymorphicDiscriminator, modelProperties: { - ...ProbeAction.type.modelProperties - } - } -}; + ...ProbeAction.type.modelProperties, + }, + }, +}; + +export const GatewayLocalResponseCachePerRouteProperties: coreClient.CompositeMapper = + { + serializedName: "LocalCachePerRoute", + type: { + name: "Composite", + className: "GatewayLocalResponseCachePerRouteProperties", + uberParent: "GatewayResponseCacheProperties", + polymorphicDiscriminator: + GatewayResponseCacheProperties.type.polymorphicDiscriminator, + modelProperties: { + ...GatewayResponseCacheProperties.type.modelProperties, + size: { + serializedName: "size", + type: { + name: "String", + }, + }, + timeToLive: { + serializedName: "timeToLive", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayLocalResponseCachePerInstanceProperties: coreClient.CompositeMapper = + { + serializedName: "LocalCachePerInstance", + type: { + name: "Composite", + className: "GatewayLocalResponseCachePerInstanceProperties", + uberParent: "GatewayResponseCacheProperties", + polymorphicDiscriminator: + GatewayResponseCacheProperties.type.polymorphicDiscriminator, + modelProperties: { + ...GatewayResponseCacheProperties.type.modelProperties, + size: { + serializedName: "size", + type: { + name: "String", + }, + }, + timeToLive: { + serializedName: "timeToLive", + type: { + name: "String", + }, + }, + }, + }, + }; export const AcceleratorPublicSetting: coreClient.CompositeMapper = { serializedName: "Public", @@ -6555,11 +7153,11 @@ export const AcceleratorPublicSetting: coreClient.CompositeMapper = { caCertResourceId: { serializedName: "caCertResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AcceleratorBasicAuthSetting: coreClient.CompositeMapper = { @@ -6575,24 +7173,24 @@ export const AcceleratorBasicAuthSetting: coreClient.CompositeMapper = { caCertResourceId: { serializedName: "caCertResourceId", type: { - name: "String" - } + name: "String", + }, }, username: { serializedName: "username", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AcceleratorSshSetting: coreClient.CompositeMapper = { @@ -6608,23 +7206,23 @@ export const AcceleratorSshSetting: coreClient.CompositeMapper = { hostKey: { serializedName: "hostKey", type: { - name: "String" - } + name: "String", + }, }, hostKeyAlgorithm: { serializedName: "hostKeyAlgorithm", type: { - name: "String" - } + name: "String", + }, }, privateKey: { serializedName: "privateKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServiceResource: coreClient.CompositeMapper = { @@ -6637,18 +7235,25 @@ export const ServiceResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ClusterResourceProperties" - } + className: "ClusterResourceProperties", + }, + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "SystemAssignedServiceIdentity", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } - } - } - } + className: "Sku", + }, + }, + }, + }, }; export const ApmResource: coreClient.CompositeMapper = { @@ -6661,11 +7266,28 @@ export const ApmResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ApmProperties" - } - } - } - } + 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 = { @@ -6678,11 +7300,11 @@ export const ConfigServerResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ConfigServerProperties" - } - } - } - } + className: "ConfigServerProperties", + }, + }, + }, + }, }; export const ConfigurationServiceResource: coreClient.CompositeMapper = { @@ -6695,11 +7317,11 @@ export const ConfigurationServiceResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ConfigurationServiceProperties" - } - } - } - } + className: "ConfigurationServiceProperties", + }, + }, + }, + }, }; export const ServiceRegistryResource: coreClient.CompositeMapper = { @@ -6712,11 +7334,11 @@ export const ServiceRegistryResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ServiceRegistryProperties" - } - } - } - } + className: "ServiceRegistryProperties", + }, + }, + }, + }, }; export const ApplicationLiveViewResource: coreClient.CompositeMapper = { @@ -6729,11 +7351,11 @@ export const ApplicationLiveViewResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ApplicationLiveViewProperties" - } - } - } - } + className: "ApplicationLiveViewProperties", + }, + }, + }, + }, }; export const DevToolPortalResource: coreClient.CompositeMapper = { @@ -6746,11 +7368,11 @@ export const DevToolPortalResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "DevToolPortalProperties" - } - } - } - } + className: "DevToolPortalProperties", + }, + }, + }, + }, }; export const ContainerRegistryResource: coreClient.CompositeMapper = { @@ -6763,11 +7385,11 @@ export const ContainerRegistryResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ContainerRegistryProperties" - } - } - } - } + className: "ContainerRegistryProperties", + }, + }, + }, + }, }; export const BuildService: coreClient.CompositeMapper = { @@ -6780,11 +7402,11 @@ export const BuildService: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "BuildServiceProperties" - } - } - } - } + className: "BuildServiceProperties", + }, + }, + }, + }, }; export const Build: coreClient.CompositeMapper = { @@ -6797,11 +7419,11 @@ export const Build: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "BuildProperties" - } - } - } - } + className: "BuildProperties", + }, + }, + }, + }, }; export const BuildpackBindingResource: coreClient.CompositeMapper = { @@ -6814,11 +7436,11 @@ export const BuildpackBindingResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "BuildpackBindingProperties" - } - } - } - } + className: "BuildpackBindingProperties", + }, + }, + }, + }, }; export const BuildResult: coreClient.CompositeMapper = { @@ -6831,11 +7453,11 @@ export const BuildResult: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "BuildResultProperties" - } - } - } - } + className: "BuildResultProperties", + }, + }, + }, + }, }; export const BuilderResource: coreClient.CompositeMapper = { @@ -6848,11 +7470,11 @@ export const BuilderResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "BuilderProperties" - } - } - } - } + className: "BuilderProperties", + }, + }, + }, + }, }; export const SupportedBuildpackResource: coreClient.CompositeMapper = { @@ -6865,11 +7487,11 @@ export const SupportedBuildpackResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "SupportedBuildpackResourceProperties" - } - } - } - } + className: "SupportedBuildpackResourceProperties", + }, + }, + }, + }, }; export const SupportedStackResource: coreClient.CompositeMapper = { @@ -6882,11 +7504,11 @@ export const SupportedStackResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "SupportedStackResourceProperties" - } - } - } - } + className: "SupportedStackResourceProperties", + }, + }, + }, + }, }; export const BuildServiceAgentPoolResource: coreClient.CompositeMapper = { @@ -6899,11 +7521,11 @@ export const BuildServiceAgentPoolResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "BuildServiceAgentPoolProperties" - } - } - } - } + className: "BuildServiceAgentPoolProperties", + }, + }, + }, + }, }; export const MonitoringSettingResource: coreClient.CompositeMapper = { @@ -6916,11 +7538,11 @@ export const MonitoringSettingResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "MonitoringSettingProperties" - } - } - } - } + className: "MonitoringSettingProperties", + }, + }, + }, + }, }; export const AppResource: coreClient.CompositeMapper = { @@ -6933,24 +7555,24 @@ export const AppResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "AppResourceProperties" - } + className: "AppResourceProperties", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedIdentityProperties" - } + className: "ManagedIdentityProperties", + }, }, location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BindingResource: coreClient.CompositeMapper = { @@ -6963,11 +7585,11 @@ export const BindingResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "BindingResourceProperties" - } - } - } - } + className: "BindingResourceProperties", + }, + }, + }, + }, }; export const StorageResource: coreClient.CompositeMapper = { @@ -6980,11 +7602,11 @@ export const StorageResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "StorageProperties" - } - } - } - } + className: "StorageProperties", + }, + }, + }, + }, }; export const CertificateResource: coreClient.CompositeMapper = { @@ -6997,11 +7619,11 @@ export const CertificateResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "CertificateProperties" - } - } - } - } + className: "CertificateProperties", + }, + }, + }, + }, }; export const CustomDomainResource: coreClient.CompositeMapper = { @@ -7014,11 +7636,11 @@ export const CustomDomainResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "CustomDomainProperties" - } - } - } - } + className: "CustomDomainProperties", + }, + }, + }, + }, }; export const DeploymentResource: coreClient.CompositeMapper = { @@ -7031,18 +7653,18 @@ export const DeploymentResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "DeploymentResourceProperties" - } + className: "DeploymentResourceProperties", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } - } - } - } + className: "Sku", + }, + }, + }, + }, }; export const GatewayResource: coreClient.CompositeMapper = { @@ -7055,18 +7677,18 @@ export const GatewayResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "GatewayProperties" - } + className: "GatewayProperties", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } - } - } - } + className: "Sku", + }, + }, + }, + }, }; export const GatewayRouteConfigResource: coreClient.CompositeMapper = { @@ -7079,11 +7701,11 @@ export const GatewayRouteConfigResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "GatewayRouteConfigProperties" - } - } - } - } + className: "GatewayRouteConfigProperties", + }, + }, + }, + }, }; export const GatewayCustomDomainResource: coreClient.CompositeMapper = { @@ -7096,11 +7718,11 @@ export const GatewayCustomDomainResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "GatewayCustomDomainProperties" - } - } - } - } + className: "GatewayCustomDomainProperties", + }, + }, + }, + }, }; export const ApiPortalResource: coreClient.CompositeMapper = { @@ -7113,18 +7735,18 @@ export const ApiPortalResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ApiPortalProperties" - } + className: "ApiPortalProperties", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } - } - } - } + className: "Sku", + }, + }, + }, + }, }; export const ApiPortalCustomDomainResource: coreClient.CompositeMapper = { @@ -7137,11 +7759,11 @@ export const ApiPortalCustomDomainResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ApiPortalCustomDomainProperties" - } - } - } - } + className: "ApiPortalCustomDomainProperties", + }, + }, + }, + }, }; export const ApplicationAcceleratorResource: coreClient.CompositeMapper = { @@ -7154,18 +7776,18 @@ export const ApplicationAcceleratorResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ApplicationAcceleratorProperties" - } + className: "ApplicationAcceleratorProperties", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } - } - } - } + className: "Sku", + }, + }, + }, + }, }; export const CustomizedAcceleratorResource: coreClient.CompositeMapper = { @@ -7178,18 +7800,18 @@ export const CustomizedAcceleratorResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "CustomizedAcceleratorProperties" - } + className: "CustomizedAcceleratorProperties", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } - } - } - } + className: "Sku", + }, + }, + }, + }, }; export const PredefinedAcceleratorResource: coreClient.CompositeMapper = { @@ -7202,18 +7824,18 @@ export const PredefinedAcceleratorResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "PredefinedAcceleratorProperties" - } + className: "PredefinedAcceleratorProperties", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } - } - } - } + className: "Sku", + }, + }, + }, + }, }; export const JarUploadedUserSourceInfo: coreClient.CompositeMapper = { @@ -7229,17 +7851,17 @@ export const JarUploadedUserSourceInfo: coreClient.CompositeMapper = { runtimeVersion: { serializedName: "runtimeVersion", type: { - name: "String" - } + name: "String", + }, }, jvmOptions: { serializedName: "jvmOptions", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WarUploadedUserSourceInfo: coreClient.CompositeMapper = { @@ -7255,23 +7877,23 @@ export const WarUploadedUserSourceInfo: coreClient.CompositeMapper = { runtimeVersion: { serializedName: "runtimeVersion", type: { - name: "String" - } + name: "String", + }, }, jvmOptions: { serializedName: "jvmOptions", type: { - name: "String" - } + name: "String", + }, }, serverVersion: { serializedName: "serverVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SourceUploadedUserSourceInfo: coreClient.CompositeMapper = { @@ -7287,17 +7909,17 @@ export const SourceUploadedUserSourceInfo: coreClient.CompositeMapper = { artifactSelector: { serializedName: "artifactSelector", type: { - name: "String" - } + name: "String", + }, }, runtimeVersion: { serializedName: "runtimeVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetCoreZipUploadedUserSourceInfo: coreClient.CompositeMapper = { @@ -7313,17 +7935,17 @@ export const NetCoreZipUploadedUserSourceInfo: coreClient.CompositeMapper = { netCoreMainEntryPath: { serializedName: "netCoreMainEntryPath", type: { - name: "String" - } + name: "String", + }, }, runtimeVersion: { serializedName: "runtimeVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServicesFlushVnetDnsSettingHeaders: coreClient.CompositeMapper = { @@ -7334,11 +7956,11 @@ export const ServicesFlushVnetDnsSettingHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServicesEnableApmGloballyHeaders: coreClient.CompositeMapper = { @@ -7349,11 +7971,11 @@ export const ServicesEnableApmGloballyHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServicesDisableApmGloballyHeaders: coreClient.CompositeMapper = { @@ -7364,11 +7986,11 @@ export const ServicesDisableApmGloballyHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApmsDeleteHeaders: coreClient.CompositeMapper = { @@ -7379,28 +8001,59 @@ export const ApmsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ConfigurationServicesValidateResourceHeaders: coreClient.CompositeMapper = { +export const EurekaServersUpdatePutHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConfigurationServicesValidateResourceHeaders", + className: "EurekaServersUpdatePutHeaders", modelProperties: { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + 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 ApplicationLiveViewsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7409,11 +8062,11 @@ export const ApplicationLiveViewsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DevToolPortalsDeleteHeaders: coreClient.CompositeMapper = { @@ -7424,11 +8077,11 @@ export const DevToolPortalsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ContainerRegistriesDeleteHeaders: coreClient.CompositeMapper = { @@ -7439,11 +8092,11 @@ export const ContainerRegistriesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ContainerRegistriesValidateHeaders: coreClient.CompositeMapper = { @@ -7454,11 +8107,11 @@ export const ContainerRegistriesValidateHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BuildServiceDeleteBuildHeaders: coreClient.CompositeMapper = { @@ -7469,42 +8122,58 @@ export const BuildServiceDeleteBuildHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewaysRestartHeaders: coreClient.CompositeMapper = { +export const GatewaysUpdateCapacityHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewaysRestartHeaders", + className: "GatewaysUpdateCapacityHeaders", modelProperties: { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApplicationAcceleratorsDeleteHeaders: coreClient.CompositeMapper = { +export const GatewaysRestartHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationAcceleratorsDeleteHeaders", + className: "GatewaysRestartHeaders", modelProperties: { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApplicationAcceleratorsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationAcceleratorsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const CustomizedAcceleratorsDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -7514,42 +8183,44 @@ export const CustomizedAcceleratorsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const CustomizedAcceleratorsValidateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomizedAcceleratorsValidateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const PredefinedAcceleratorsDisableHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PredefinedAcceleratorsDisableHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const CustomizedAcceleratorsValidateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CustomizedAcceleratorsValidateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PredefinedAcceleratorsDisableHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PredefinedAcceleratorsDisableHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const PredefinedAcceleratorsEnableHeaders: coreClient.CompositeMapper = { type: { @@ -7559,21 +8230,25 @@ export const PredefinedAcceleratorsEnableHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export let discriminators = { + MaintenanceScheduleConfiguration: MaintenanceScheduleConfiguration, ContainerRegistryCredentials: ContainerRegistryCredentials, CustomPersistentDiskProperties: CustomPersistentDiskProperties, StorageProperties: StorageProperties, CertificateProperties: CertificateProperties, UserSourceInfo: UserSourceInfo, ProbeAction: ProbeAction, + GatewayResponseCacheProperties: GatewayResponseCacheProperties, AcceleratorAuthSetting: AcceleratorAuthSetting, + "MaintenanceScheduleConfiguration.Weekly": + WeeklyMaintenanceScheduleConfiguration, "ContainerRegistryCredentials.BasicAuth": ContainerRegistryBasicCredentials, "CustomPersistentDiskProperties.AzureFileVolume": AzureFileVolume, "StorageProperties.StorageAccount": StorageAccount, @@ -7585,11 +8260,15 @@ export let discriminators = { "ProbeAction.HTTPGetAction": HttpGetAction, "ProbeAction.ExecAction": ExecAction, "ProbeAction.TCPSocketAction": TCPSocketAction, + "GatewayResponseCacheProperties.LocalCachePerRoute": + GatewayLocalResponseCachePerRouteProperties, + "GatewayResponseCacheProperties.LocalCachePerInstance": + GatewayLocalResponseCachePerInstanceProperties, "AcceleratorAuthSetting.Public": AcceleratorPublicSetting, "AcceleratorAuthSetting.BasicAuth": AcceleratorBasicAuthSetting, "AcceleratorAuthSetting.SSH": AcceleratorSshSetting, "UploadedUserSourceInfo.Jar": JarUploadedUserSourceInfo, "UploadedUserSourceInfo.War": WarUploadedUserSourceInfo, "UploadedUserSourceInfo.Source": SourceUploadedUserSourceInfo, - "UploadedUserSourceInfo.NetCoreZip": NetCoreZipUploadedUserSourceInfo + "UploadedUserSourceInfo.NetCoreZip": NetCoreZipUploadedUserSourceInfo, }; diff --git a/sdk/appplatform/arm-appplatform/src/models/parameters.ts b/sdk/appplatform/arm-appplatform/src/models/parameters.ts index 42df042a630d..3e8a0396bae8 100644 --- a/sdk/appplatform/arm-appplatform/src/models/parameters.ts +++ b/sdk/appplatform/arm-appplatform/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { ServiceResource as ServiceResourceMapper, @@ -17,6 +17,7 @@ import { ApmReference as ApmReferenceMapper, NameAvailabilityParameters as NameAvailabilityParametersMapper, ApmResource as ApmResourceMapper, + EurekaServerResource as EurekaServerResourceMapper, ConfigServerResource as ConfigServerResourceMapper, ConfigServerSettings as ConfigServerSettingsMapper, ConfigurationServiceResource as ConfigurationServiceResourceMapper, @@ -42,13 +43,14 @@ import { RemoteDebuggingPayload as RemoteDebuggingPayloadMapper, DiagnosticParameters as DiagnosticParametersMapper, GatewayResource as GatewayResourceMapper, + SkuObject as SkuObjectMapper, GatewayRouteConfigResource as GatewayRouteConfigResourceMapper, GatewayCustomDomainResource as GatewayCustomDomainResourceMapper, ApiPortalResource as ApiPortalResourceMapper, ApiPortalCustomDomainResource as ApiPortalCustomDomainResourceMapper, ApplicationAcceleratorResource as ApplicationAcceleratorResourceMapper, CustomizedAcceleratorResource as CustomizedAcceleratorResourceMapper, - CustomizedAcceleratorProperties as CustomizedAcceleratorPropertiesMapper + CustomizedAcceleratorProperties as CustomizedAcceleratorPropertiesMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -58,9 +60,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -69,22 +71,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-12-01", + defaultValue: "2024-05-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -93,9 +95,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -104,23 +106,23 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const serviceName: OperationURLParameter = { parameterPath: "serviceName", mapper: { constraints: { - Pattern: new RegExp("^[a-z][a-z0-9-]*[a-z0-9]$") + Pattern: new RegExp("^[a-z][a-z0-9-]*[a-z0-9]$"), }, serializedName: "serviceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -130,29 +132,29 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resource: OperationParameter = { parameterPath: "resource", - mapper: ServiceResourceMapper + mapper: ServiceResourceMapper, }; export const regenerateTestKeyRequest: OperationParameter = { parameterPath: "regenerateTestKeyRequest", - mapper: RegenerateTestKeyRequestPayloadMapper + mapper: RegenerateTestKeyRequestPayloadMapper, }; export const apm: OperationParameter = { parameterPath: "apm", - mapper: ApmReferenceMapper + mapper: ApmReferenceMapper, }; export const availabilityParameters: OperationParameter = { parameterPath: "availabilityParameters", - mapper: NameAvailabilityParametersMapper + mapper: NameAvailabilityParametersMapper, }; export const location: OperationURLParameter = { @@ -161,9 +163,9 @@ export const location: OperationURLParameter = { serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -172,63 +174,68 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apmName: OperationURLParameter = { parameterPath: "apmName", mapper: { constraints: { - Pattern: new RegExp("^[a-z][a-z0-9-]*[a-z0-9]$") + Pattern: new RegExp("^[a-z][a-z0-9-]*[a-z0-9]$"), }, serializedName: "apmName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apmResource: OperationParameter = { parameterPath: "apmResource", - mapper: ApmResourceMapper + mapper: ApmResourceMapper, +}; + +export const eurekaServerResource: OperationParameter = { + parameterPath: "eurekaServerResource", + mapper: EurekaServerResourceMapper, }; export const configServerResource: OperationParameter = { parameterPath: "configServerResource", - mapper: ConfigServerResourceMapper + mapper: ConfigServerResourceMapper, }; export const configServerSettings: OperationParameter = { parameterPath: "configServerSettings", - mapper: ConfigServerSettingsMapper + mapper: ConfigServerSettingsMapper, }; export const configurationServiceName: OperationURLParameter = { parameterPath: "configurationServiceName", mapper: { constraints: { - Pattern: new RegExp("^[a-z][a-z0-9]*$") + Pattern: new RegExp("^[a-z][a-z0-9]*$"), }, serializedName: "configurationServiceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const configurationServiceResource: OperationParameter = { parameterPath: "configurationServiceResource", - mapper: ConfigurationServiceResourceMapper + mapper: ConfigurationServiceResourceMapper, }; export const settings: OperationParameter = { parameterPath: "settings", - mapper: ConfigurationServiceSettingsMapper + mapper: ConfigurationServiceSettingsMapper, }; export const serviceRegistryName: OperationURLParameter = { @@ -237,71 +244,71 @@ export const serviceRegistryName: OperationURLParameter = { serializedName: "serviceRegistryName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const applicationLiveViewName: OperationURLParameter = { parameterPath: "applicationLiveViewName", mapper: { constraints: { - Pattern: new RegExp("^[a-z][a-z0-9]*$") + Pattern: new RegExp("^[a-z][a-z0-9]*$"), }, serializedName: "applicationLiveViewName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const applicationLiveViewResource: OperationParameter = { parameterPath: "applicationLiveViewResource", - mapper: ApplicationLiveViewResourceMapper + mapper: ApplicationLiveViewResourceMapper, }; export const devToolPortalName: OperationURLParameter = { parameterPath: "devToolPortalName", mapper: { constraints: { - Pattern: new RegExp("^[a-z][a-z0-9]*$") + Pattern: new RegExp("^[a-z][a-z0-9]*$"), }, serializedName: "devToolPortalName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const devToolPortalResource: OperationParameter = { parameterPath: "devToolPortalResource", - mapper: DevToolPortalResourceMapper + mapper: DevToolPortalResourceMapper, }; export const containerRegistryName: OperationURLParameter = { parameterPath: "containerRegistryName", mapper: { constraints: { - Pattern: new RegExp("^[a-z][a-z0-9-]*[a-z0-9]$") + Pattern: new RegExp("^[a-z][a-z0-9-]*[a-z0-9]$"), }, serializedName: "containerRegistryName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const containerRegistryResource: OperationParameter = { parameterPath: "containerRegistryResource", - mapper: ContainerRegistryResourceMapper + mapper: ContainerRegistryResourceMapper, }; export const containerRegistryProperties: OperationParameter = { parameterPath: "containerRegistryProperties", - mapper: ContainerRegistryPropertiesMapper + mapper: ContainerRegistryPropertiesMapper, }; export const buildServiceName: OperationURLParameter = { @@ -310,14 +317,14 @@ export const buildServiceName: OperationURLParameter = { serializedName: "buildServiceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const buildService: OperationParameter = { parameterPath: "buildService", - mapper: BuildServiceMapper + mapper: BuildServiceMapper, }; export const buildName: OperationURLParameter = { @@ -326,14 +333,14 @@ export const buildName: OperationURLParameter = { serializedName: "buildName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const build: OperationParameter = { parameterPath: "build", - mapper: BuildMapper + mapper: BuildMapper, }; export const buildResultName: OperationURLParameter = { @@ -342,9 +349,9 @@ export const buildResultName: OperationURLParameter = { serializedName: "buildResultName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const buildpackName: OperationURLParameter = { @@ -353,9 +360,9 @@ export const buildpackName: OperationURLParameter = { serializedName: "buildpackName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const stackName: OperationURLParameter = { @@ -364,9 +371,9 @@ export const stackName: OperationURLParameter = { serializedName: "stackName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const builderName: OperationURLParameter = { @@ -375,9 +382,9 @@ export const builderName: OperationURLParameter = { serializedName: "builderName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const buildpackBindingName: OperationURLParameter = { @@ -386,19 +393,19 @@ export const buildpackBindingName: OperationURLParameter = { serializedName: "buildpackBindingName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const buildpackBinding: OperationParameter = { parameterPath: "buildpackBinding", - mapper: BuildpackBindingResourceMapper + mapper: BuildpackBindingResourceMapper, }; export const builderResource: OperationParameter = { parameterPath: "builderResource", - mapper: BuilderResourceMapper + mapper: BuilderResourceMapper, }; export const agentPoolName: OperationURLParameter = { @@ -407,19 +414,19 @@ export const agentPoolName: OperationURLParameter = { serializedName: "agentPoolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const agentPoolResource: OperationParameter = { parameterPath: "agentPoolResource", - mapper: BuildServiceAgentPoolResourceMapper + mapper: BuildServiceAgentPoolResourceMapper, }; export const monitoringSettingResource: OperationParameter = { parameterPath: "monitoringSettingResource", - mapper: MonitoringSettingResourceMapper + mapper: MonitoringSettingResourceMapper, }; export const appName: OperationURLParameter = { @@ -428,9 +435,9 @@ export const appName: OperationURLParameter = { serializedName: "appName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const syncStatus: OperationQueryParameter = { @@ -438,24 +445,24 @@ export const syncStatus: OperationQueryParameter = { mapper: { serializedName: "syncStatus", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const appResource: OperationParameter = { parameterPath: "appResource", - mapper: AppResourceMapper + mapper: AppResourceMapper, }; export const activeDeploymentCollection: OperationParameter = { parameterPath: "activeDeploymentCollection", - mapper: ActiveDeploymentCollectionMapper + mapper: ActiveDeploymentCollectionMapper, }; export const validatePayload: OperationParameter = { parameterPath: "validatePayload", - mapper: CustomDomainValidatePayloadMapper + mapper: CustomDomainValidatePayloadMapper, }; export const bindingName: OperationURLParameter = { @@ -464,14 +471,14 @@ export const bindingName: OperationURLParameter = { serializedName: "bindingName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const bindingResource: OperationParameter = { parameterPath: "bindingResource", - mapper: BindingResourceMapper + mapper: BindingResourceMapper, }; export const storageName: OperationURLParameter = { @@ -480,14 +487,14 @@ export const storageName: OperationURLParameter = { serializedName: "storageName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const storageResource: OperationParameter = { parameterPath: "storageResource", - mapper: StorageResourceMapper + mapper: StorageResourceMapper, }; export const certificateName: OperationURLParameter = { @@ -496,14 +503,14 @@ export const certificateName: OperationURLParameter = { serializedName: "certificateName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const certificateResource: OperationParameter = { parameterPath: "certificateResource", - mapper: CertificateResourceMapper + mapper: CertificateResourceMapper, }; export const domainName: OperationURLParameter = { @@ -512,14 +519,14 @@ export const domainName: OperationURLParameter = { serializedName: "domainName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const domainResource: OperationParameter = { parameterPath: "domainResource", - mapper: CustomDomainResourceMapper + mapper: CustomDomainResourceMapper, }; export const deploymentName: OperationURLParameter = { @@ -528,14 +535,14 @@ export const deploymentName: OperationURLParameter = { serializedName: "deploymentName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const deploymentResource: OperationParameter = { parameterPath: "deploymentResource", - mapper: DeploymentResourceMapper + mapper: DeploymentResourceMapper, }; export const version: OperationQueryParameter = { @@ -546,12 +553,12 @@ export const version: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "Multi" + collectionFormat: "Multi", }; export const expand: OperationQueryParameter = { @@ -559,38 +566,43 @@ export const expand: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const remoteDebuggingPayload: OperationParameter = { parameterPath: ["options", "remoteDebuggingPayload"], - mapper: RemoteDebuggingPayloadMapper + mapper: RemoteDebuggingPayloadMapper, }; export const diagnosticParameters: OperationParameter = { parameterPath: "diagnosticParameters", - mapper: DiagnosticParametersMapper + mapper: DiagnosticParametersMapper, }; export const gatewayName: OperationURLParameter = { parameterPath: "gatewayName", mapper: { constraints: { - Pattern: new RegExp("^[a-z][a-z0-9]*$") + Pattern: new RegExp("^[a-z][a-z0-9]*$"), }, serializedName: "gatewayName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const gatewayResource: OperationParameter = { parameterPath: "gatewayResource", - mapper: GatewayResourceMapper + mapper: GatewayResourceMapper, +}; + +export const gatewayCapacityResource: OperationParameter = { + parameterPath: "gatewayCapacityResource", + mapper: SkuObjectMapper, }; export const routeConfigName: OperationURLParameter = { @@ -599,19 +611,19 @@ export const routeConfigName: OperationURLParameter = { serializedName: "routeConfigName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const gatewayRouteConfigResource: OperationParameter = { parameterPath: "gatewayRouteConfigResource", - mapper: GatewayRouteConfigResourceMapper + mapper: GatewayRouteConfigResourceMapper, }; export const gatewayCustomDomainResource: OperationParameter = { parameterPath: "gatewayCustomDomainResource", - mapper: GatewayCustomDomainResourceMapper + mapper: GatewayCustomDomainResourceMapper, }; export const apiPortalName: OperationURLParameter = { @@ -620,74 +632,74 @@ export const apiPortalName: OperationURLParameter = { serializedName: "apiPortalName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiPortalResource: OperationParameter = { parameterPath: "apiPortalResource", - mapper: ApiPortalResourceMapper + mapper: ApiPortalResourceMapper, }; export const apiPortalCustomDomainResource: OperationParameter = { parameterPath: "apiPortalCustomDomainResource", - mapper: ApiPortalCustomDomainResourceMapper + mapper: ApiPortalCustomDomainResourceMapper, }; export const applicationAcceleratorName: OperationURLParameter = { parameterPath: "applicationAcceleratorName", mapper: { constraints: { - Pattern: new RegExp("^[a-z][a-z0-9-]*[a-z0-9]$") + Pattern: new RegExp("^[a-z][a-z0-9-]*[a-z0-9]$"), }, serializedName: "applicationAcceleratorName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const applicationAcceleratorResource: OperationParameter = { parameterPath: "applicationAcceleratorResource", - mapper: ApplicationAcceleratorResourceMapper + mapper: ApplicationAcceleratorResourceMapper, }; export const customizedAcceleratorName: OperationURLParameter = { parameterPath: "customizedAcceleratorName", mapper: { constraints: { - Pattern: new RegExp("^[a-z0-9]([-a-z0-9]*[a-z0-9])$") + Pattern: new RegExp("^[a-z0-9]([-a-z0-9]*[a-z0-9])$"), }, serializedName: "customizedAcceleratorName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const customizedAcceleratorResource: OperationParameter = { parameterPath: "customizedAcceleratorResource", - mapper: CustomizedAcceleratorResourceMapper + mapper: CustomizedAcceleratorResourceMapper, }; export const properties: OperationParameter = { parameterPath: "properties", - mapper: CustomizedAcceleratorPropertiesMapper + mapper: CustomizedAcceleratorPropertiesMapper, }; export const predefinedAcceleratorName: OperationURLParameter = { parameterPath: "predefinedAcceleratorName", mapper: { constraints: { - Pattern: new RegExp("^[a-z][a-z0-9-]*[a-z0-9]$") + Pattern: new RegExp("^[a-z][a-z0-9-]*[a-z0-9]$"), }, serializedName: "predefinedAcceleratorName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts index fa75f88b4ed8..549a7629e852 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { ApiPortalCustomDomainsCreateOrUpdateOptionalParams, ApiPortalCustomDomainsCreateOrUpdateResponse, ApiPortalCustomDomainsDeleteOptionalParams, - ApiPortalCustomDomainsListNextResponse + ApiPortalCustomDomainsListNextResponse, } from "../models"; /// @@ -57,13 +57,13 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { resourceGroupName: string, serviceName: string, apiPortalName: string, - options?: ApiPortalCustomDomainsListOptionalParams + options?: ApiPortalCustomDomainsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, apiPortalName, - options + options, ); return { next() { @@ -81,9 +81,9 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { serviceName, apiPortalName, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { serviceName: string, apiPortalName: string, options?: ApiPortalCustomDomainsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiPortalCustomDomainsListResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { resourceGroupName, serviceName, apiPortalName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -114,7 +114,7 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { serviceName, apiPortalName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -127,13 +127,13 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { resourceGroupName: string, serviceName: string, apiPortalName: string, - options?: ApiPortalCustomDomainsListOptionalParams + options?: ApiPortalCustomDomainsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, apiPortalName, - options + options, )) { yield* page; } @@ -153,11 +153,11 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { serviceName: string, apiPortalName: string, domainName: string, - options?: ApiPortalCustomDomainsGetOptionalParams + options?: ApiPortalCustomDomainsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiPortalName, domainName, options }, - getOperationSpec + getOperationSpec, ); } @@ -177,7 +177,7 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { apiPortalName: string, domainName: string, apiPortalCustomDomainResource: ApiPortalCustomDomainResource, - options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams + options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -186,21 +186,20 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -209,8 +208,8 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -218,8 +217,8 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -231,16 +230,16 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { apiPortalName, domainName, apiPortalCustomDomainResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApiPortalCustomDomainsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -262,7 +261,7 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { apiPortalName: string, domainName: string, apiPortalCustomDomainResource: ApiPortalCustomDomainResource, - options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams + options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -270,7 +269,7 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { apiPortalName, domainName, apiPortalCustomDomainResource, - options + options, ); return poller.pollUntilDone(); } @@ -289,25 +288,24 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { serviceName: string, apiPortalName: string, domainName: string, - options?: ApiPortalCustomDomainsDeleteOptionalParams + options?: ApiPortalCustomDomainsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -316,8 +314,8 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -325,8 +323,8 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -337,13 +335,13 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { serviceName, apiPortalName, domainName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -363,14 +361,14 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { serviceName: string, apiPortalName: string, domainName: string, - options?: ApiPortalCustomDomainsDeleteOptionalParams + options?: ApiPortalCustomDomainsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, apiPortalName, domainName, - options + options, ); return poller.pollUntilDone(); } @@ -387,11 +385,11 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { resourceGroupName: string, serviceName: string, apiPortalName: string, - options?: ApiPortalCustomDomainsListOptionalParams + options?: ApiPortalCustomDomainsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiPortalName, options }, - listOperationSpec + listOperationSpec, ); } @@ -409,11 +407,11 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { serviceName: string, apiPortalName: string, nextLink: string, - options?: ApiPortalCustomDomainsListNextOptionalParams + options?: ApiPortalCustomDomainsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiPortalName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -421,16 +419,15 @@ export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiPortalCustomDomainResource + bodyMapper: Mappers.ApiPortalCustomDomainResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -439,31 +436,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.domainName, - Parameters.apiPortalName + Parameters.apiPortalName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApiPortalCustomDomainResource + bodyMapper: Mappers.ApiPortalCustomDomainResource, }, 201: { - bodyMapper: Mappers.ApiPortalCustomDomainResource + bodyMapper: Mappers.ApiPortalCustomDomainResource, }, 202: { - bodyMapper: Mappers.ApiPortalCustomDomainResource + bodyMapper: Mappers.ApiPortalCustomDomainResource, }, 204: { - bodyMapper: Mappers.ApiPortalCustomDomainResource + bodyMapper: Mappers.ApiPortalCustomDomainResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.apiPortalCustomDomainResource, queryParameters: [Parameters.apiVersion], @@ -473,15 +469,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.domainName, - Parameters.apiPortalName + Parameters.apiPortalName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", httpMethod: "DELETE", responses: { 200: {}, @@ -489,8 +484,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -499,22 +494,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.domainName, - Parameters.apiPortalName + Parameters.apiPortalName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiPortalCustomDomainResourceCollection + bodyMapper: Mappers.ApiPortalCustomDomainResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -522,21 +516,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apiPortalName + Parameters.apiPortalName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiPortalCustomDomainResourceCollection + bodyMapper: Mappers.ApiPortalCustomDomainResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -544,8 +538,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.nextLink, - Parameters.apiPortalName + Parameters.apiPortalName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts b/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts index 748e63b0e994..dcd5b0fe196d 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { CustomDomainValidatePayload, ApiPortalsValidateDomainOptionalParams, ApiPortalsValidateDomainResponse, - ApiPortalsListNextResponse + ApiPortalsListNextResponse, } from "../models"; /// @@ -58,7 +58,7 @@ export class ApiPortalsImpl implements ApiPortals { public list( resourceGroupName: string, serviceName: string, - options?: ApiPortalsListOptionalParams + options?: ApiPortalsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -76,9 +76,9 @@ export class ApiPortalsImpl implements ApiPortals { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class ApiPortalsImpl implements ApiPortals { resourceGroupName: string, serviceName: string, options?: ApiPortalsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiPortalsListResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class ApiPortalsImpl implements ApiPortals { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -114,12 +114,12 @@ export class ApiPortalsImpl implements ApiPortals { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: ApiPortalsListOptionalParams + options?: ApiPortalsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class ApiPortalsImpl implements ApiPortals { resourceGroupName: string, serviceName: string, apiPortalName: string, - options?: ApiPortalsGetOptionalParams + options?: ApiPortalsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiPortalName, options }, - getOperationSpec + getOperationSpec, ); } @@ -159,7 +159,7 @@ export class ApiPortalsImpl implements ApiPortals { serviceName: string, apiPortalName: string, apiPortalResource: ApiPortalResource, - options?: ApiPortalsCreateOrUpdateOptionalParams + options?: ApiPortalsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -168,21 +168,20 @@ export class ApiPortalsImpl implements ApiPortals { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -191,8 +190,8 @@ export class ApiPortalsImpl implements ApiPortals { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -200,8 +199,8 @@ export class ApiPortalsImpl implements ApiPortals { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -212,16 +211,16 @@ export class ApiPortalsImpl implements ApiPortals { serviceName, apiPortalName, apiPortalResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApiPortalsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -241,14 +240,14 @@ export class ApiPortalsImpl implements ApiPortals { serviceName: string, apiPortalName: string, apiPortalResource: ApiPortalResource, - options?: ApiPortalsCreateOrUpdateOptionalParams + options?: ApiPortalsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, apiPortalName, apiPortalResource, - options + options, ); return poller.pollUntilDone(); } @@ -265,25 +264,24 @@ export class ApiPortalsImpl implements ApiPortals { resourceGroupName: string, serviceName: string, apiPortalName: string, - options?: ApiPortalsDeleteOptionalParams + options?: ApiPortalsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -292,8 +290,8 @@ export class ApiPortalsImpl implements ApiPortals { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -301,19 +299,19 @@ export class ApiPortalsImpl implements ApiPortals { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, apiPortalName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -331,13 +329,13 @@ export class ApiPortalsImpl implements ApiPortals { resourceGroupName: string, serviceName: string, apiPortalName: string, - options?: ApiPortalsDeleteOptionalParams + options?: ApiPortalsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, apiPortalName, - options + options, ); return poller.pollUntilDone(); } @@ -352,11 +350,11 @@ export class ApiPortalsImpl implements ApiPortals { private _list( resourceGroupName: string, serviceName: string, - options?: ApiPortalsListOptionalParams + options?: ApiPortalsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -374,7 +372,7 @@ export class ApiPortalsImpl implements ApiPortals { serviceName: string, apiPortalName: string, validatePayload: CustomDomainValidatePayload, - options?: ApiPortalsValidateDomainOptionalParams + options?: ApiPortalsValidateDomainOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -382,9 +380,9 @@ export class ApiPortalsImpl implements ApiPortals { serviceName, apiPortalName, validatePayload, - options + options, }, - validateDomainOperationSpec + validateDomainOperationSpec, ); } @@ -400,11 +398,11 @@ export class ApiPortalsImpl implements ApiPortals { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiPortalsListNextOptionalParams + options?: ApiPortalsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -412,16 +410,15 @@ export class ApiPortalsImpl implements ApiPortals { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiPortalResource + bodyMapper: Mappers.ApiPortalResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -429,31 +426,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apiPortalName + Parameters.apiPortalName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApiPortalResource + bodyMapper: Mappers.ApiPortalResource, }, 201: { - bodyMapper: Mappers.ApiPortalResource + bodyMapper: Mappers.ApiPortalResource, }, 202: { - bodyMapper: Mappers.ApiPortalResource + bodyMapper: Mappers.ApiPortalResource, }, 204: { - bodyMapper: Mappers.ApiPortalResource + bodyMapper: Mappers.ApiPortalResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.apiPortalResource, queryParameters: [Parameters.apiVersion], @@ -462,15 +458,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apiPortalName + Parameters.apiPortalName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", httpMethod: "DELETE", responses: { 200: {}, @@ -478,8 +473,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -487,44 +482,42 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apiPortalName + Parameters.apiPortalName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiPortalResourceCollection + bodyMapper: Mappers.ApiPortalResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateDomainOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CustomDomainValidateResult + bodyMapper: Mappers.CustomDomainValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.validatePayload, queryParameters: [Parameters.apiVersion], @@ -533,30 +526,30 @@ const validateDomainOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apiPortalName + Parameters.apiPortalName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiPortalResourceCollection + bodyMapper: Mappers.ApiPortalResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/apms.ts b/sdk/appplatform/arm-appplatform/src/operations/apms.ts index e614a088f7ee..bc7e4b2ca466 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/apms.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/apms.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { ApmsDeleteResponse, ApmsListSecretKeysOptionalParams, ApmsListSecretKeysResponse, - ApmsListNextResponse + ApmsListNextResponse, } from "../models"; /// @@ -58,7 +58,7 @@ export class ApmsImpl implements Apms { public list( resourceGroupName: string, serviceName: string, - options?: ApmsListOptionalParams + options?: ApmsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -76,9 +76,9 @@ export class ApmsImpl implements Apms { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class ApmsImpl implements Apms { resourceGroupName: string, serviceName: string, options?: ApmsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApmsListResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class ApmsImpl implements Apms { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -114,12 +114,12 @@ export class ApmsImpl implements Apms { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: ApmsListOptionalParams + options?: ApmsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -135,11 +135,11 @@ export class ApmsImpl implements Apms { private _list( resourceGroupName: string, serviceName: string, - options?: ApmsListOptionalParams + options?: ApmsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -155,11 +155,11 @@ export class ApmsImpl implements Apms { resourceGroupName: string, serviceName: string, apmName: string, - options?: ApmsGetOptionalParams + options?: ApmsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apmName, options }, - getOperationSpec + getOperationSpec, ); } @@ -177,7 +177,7 @@ export class ApmsImpl implements Apms { serviceName: string, apmName: string, apmResource: ApmResource, - options?: ApmsCreateOrUpdateOptionalParams + options?: ApmsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -186,21 +186,20 @@ export class ApmsImpl implements Apms { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -209,8 +208,8 @@ export class ApmsImpl implements Apms { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -218,22 +217,22 @@ export class ApmsImpl implements Apms { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, apmName, apmResource, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApmsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -253,14 +252,14 @@ export class ApmsImpl implements Apms { serviceName: string, apmName: string, apmResource: ApmResource, - options?: ApmsCreateOrUpdateOptionalParams + options?: ApmsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, apmName, apmResource, - options + options, ); return poller.pollUntilDone(); } @@ -277,27 +276,26 @@ export class ApmsImpl implements Apms { resourceGroupName: string, serviceName: string, apmName: string, - options?: ApmsDeleteOptionalParams + options?: ApmsDeleteOptionalParams, ): Promise< SimplePollerLike, ApmsDeleteResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -306,8 +304,8 @@ export class ApmsImpl implements Apms { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -315,15 +313,15 @@ export class ApmsImpl implements Apms { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, apmName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< ApmsDeleteResponse, @@ -331,7 +329,7 @@ export class ApmsImpl implements Apms { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -349,13 +347,13 @@ export class ApmsImpl implements Apms { resourceGroupName: string, serviceName: string, apmName: string, - options?: ApmsDeleteOptionalParams + options?: ApmsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, apmName, - options + options, ); return poller.pollUntilDone(); } @@ -372,11 +370,11 @@ export class ApmsImpl implements Apms { resourceGroupName: string, serviceName: string, apmName: string, - options?: ApmsListSecretKeysOptionalParams + options?: ApmsListSecretKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apmName, options }, - listSecretKeysOperationSpec + listSecretKeysOperationSpec, ); } @@ -392,11 +390,11 @@ export class ApmsImpl implements Apms { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApmsListNextOptionalParams + options?: ApmsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -404,38 +402,36 @@ export class ApmsImpl implements Apms { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApmResourceCollection + bodyMapper: Mappers.ApmResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApmResource + bodyMapper: Mappers.ApmResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -443,31 +439,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apmName + Parameters.apmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApmResource + bodyMapper: Mappers.ApmResource, }, 201: { - bodyMapper: Mappers.ApmResource + bodyMapper: Mappers.ApmResource, }, 202: { - bodyMapper: Mappers.ApmResource + bodyMapper: Mappers.ApmResource, }, 204: { - bodyMapper: Mappers.ApmResource + bodyMapper: Mappers.ApmResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.apmResource, queryParameters: [Parameters.apiVersion], @@ -476,32 +471,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apmName + Parameters.apmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.ApmsDeleteHeaders + headersMapper: Mappers.ApmsDeleteHeaders, }, 201: { - headersMapper: Mappers.ApmsDeleteHeaders + headersMapper: Mappers.ApmsDeleteHeaders, }, 202: { - headersMapper: Mappers.ApmsDeleteHeaders + headersMapper: Mappers.ApmsDeleteHeaders, }, 204: { - headersMapper: Mappers.ApmsDeleteHeaders + headersMapper: Mappers.ApmsDeleteHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -509,22 +503,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apmName + Parameters.apmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSecretKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}/listSecretKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}/listSecretKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApmSecretKeys + bodyMapper: Mappers.ApmSecretKeys, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -532,29 +525,29 @@ const listSecretKeysOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apmName + Parameters.apmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApmResourceCollection + bodyMapper: Mappers.ApmResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts index 4bbc4b653705..ef35da798d15 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,7 +30,7 @@ import { ApplicationAcceleratorsCreateOrUpdateResponse, ApplicationAcceleratorsDeleteOptionalParams, ApplicationAcceleratorsDeleteResponse, - ApplicationAcceleratorsListNextResponse + ApplicationAcceleratorsListNextResponse, } from "../models"; /// @@ -56,7 +56,7 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { public list( resourceGroupName: string, serviceName: string, - options?: ApplicationAcceleratorsListOptionalParams + options?: ApplicationAcceleratorsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -74,9 +74,9 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { resourceGroupName: string, serviceName: string, options?: ApplicationAcceleratorsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationAcceleratorsListResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: ApplicationAcceleratorsListOptionalParams + options?: ApplicationAcceleratorsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -133,11 +133,11 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { private _list( resourceGroupName: string, serviceName: string, - options?: ApplicationAcceleratorsListOptionalParams + options?: ApplicationAcceleratorsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -153,11 +153,11 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: ApplicationAcceleratorsGetOptionalParams + options?: ApplicationAcceleratorsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, applicationAcceleratorName, options }, - getOperationSpec + getOperationSpec, ); } @@ -175,7 +175,7 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { serviceName: string, applicationAcceleratorName: string, applicationAcceleratorResource: ApplicationAcceleratorResource, - options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams + options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -184,21 +184,20 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -207,8 +206,8 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -216,8 +215,8 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -228,16 +227,16 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { serviceName, applicationAcceleratorName, applicationAcceleratorResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApplicationAcceleratorsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -257,14 +256,14 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { serviceName: string, applicationAcceleratorName: string, applicationAcceleratorResource: ApplicationAcceleratorResource, - options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams + options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, applicationAcceleratorName, applicationAcceleratorResource, - options + options, ); return poller.pollUntilDone(); } @@ -281,7 +280,7 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: ApplicationAcceleratorsDeleteOptionalParams + options?: ApplicationAcceleratorsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -290,21 +289,20 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -313,8 +311,8 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -322,8 +320,8 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -333,16 +331,16 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { resourceGroupName, serviceName, applicationAcceleratorName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< ApplicationAcceleratorsDeleteResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -360,13 +358,13 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: ApplicationAcceleratorsDeleteOptionalParams + options?: ApplicationAcceleratorsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, applicationAcceleratorName, - options + options, ); return poller.pollUntilDone(); } @@ -383,11 +381,11 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApplicationAcceleratorsListNextOptionalParams + options?: ApplicationAcceleratorsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -395,38 +393,36 @@ export class ApplicationAcceleratorsImpl implements ApplicationAccelerators { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationAcceleratorResourceCollection + bodyMapper: Mappers.ApplicationAcceleratorResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationAcceleratorResource + bodyMapper: Mappers.ApplicationAcceleratorResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -434,31 +430,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.applicationAcceleratorName + Parameters.applicationAcceleratorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationAcceleratorResource + bodyMapper: Mappers.ApplicationAcceleratorResource, }, 201: { - bodyMapper: Mappers.ApplicationAcceleratorResource + bodyMapper: Mappers.ApplicationAcceleratorResource, }, 202: { - bodyMapper: Mappers.ApplicationAcceleratorResource + bodyMapper: Mappers.ApplicationAcceleratorResource, }, 204: { - bodyMapper: Mappers.ApplicationAcceleratorResource + bodyMapper: Mappers.ApplicationAcceleratorResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.applicationAcceleratorResource, queryParameters: [Parameters.apiVersion], @@ -467,32 +462,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.applicationAcceleratorName + Parameters.applicationAcceleratorName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.ApplicationAcceleratorsDeleteHeaders + headersMapper: Mappers.ApplicationAcceleratorsDeleteHeaders, }, 201: { - headersMapper: Mappers.ApplicationAcceleratorsDeleteHeaders + headersMapper: Mappers.ApplicationAcceleratorsDeleteHeaders, }, 202: { - headersMapper: Mappers.ApplicationAcceleratorsDeleteHeaders + headersMapper: Mappers.ApplicationAcceleratorsDeleteHeaders, }, 204: { - headersMapper: Mappers.ApplicationAcceleratorsDeleteHeaders + headersMapper: Mappers.ApplicationAcceleratorsDeleteHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -500,29 +494,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.applicationAcceleratorName + Parameters.applicationAcceleratorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationAcceleratorResourceCollection + bodyMapper: Mappers.ApplicationAcceleratorResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts b/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts index 0a64d8f5df47..f2c289d75635 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,7 +30,7 @@ import { ApplicationLiveViewsCreateOrUpdateResponse, ApplicationLiveViewsDeleteOptionalParams, ApplicationLiveViewsDeleteResponse, - ApplicationLiveViewsListNextResponse + ApplicationLiveViewsListNextResponse, } from "../models"; /// @@ -56,7 +56,7 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { public list( resourceGroupName: string, serviceName: string, - options?: ApplicationLiveViewsListOptionalParams + options?: ApplicationLiveViewsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -74,9 +74,9 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { resourceGroupName: string, serviceName: string, options?: ApplicationLiveViewsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationLiveViewsListResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: ApplicationLiveViewsListOptionalParams + options?: ApplicationLiveViewsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -133,11 +133,11 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { private _list( resourceGroupName: string, serviceName: string, - options?: ApplicationLiveViewsListOptionalParams + options?: ApplicationLiveViewsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -153,11 +153,11 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { resourceGroupName: string, serviceName: string, applicationLiveViewName: string, - options?: ApplicationLiveViewsGetOptionalParams + options?: ApplicationLiveViewsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, applicationLiveViewName, options }, - getOperationSpec + getOperationSpec, ); } @@ -175,7 +175,7 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { serviceName: string, applicationLiveViewName: string, applicationLiveViewResource: ApplicationLiveViewResource, - options?: ApplicationLiveViewsCreateOrUpdateOptionalParams + options?: ApplicationLiveViewsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -184,21 +184,20 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -207,8 +206,8 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -216,8 +215,8 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -228,16 +227,16 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { serviceName, applicationLiveViewName, applicationLiveViewResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApplicationLiveViewsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -257,14 +256,14 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { serviceName: string, applicationLiveViewName: string, applicationLiveViewResource: ApplicationLiveViewResource, - options?: ApplicationLiveViewsCreateOrUpdateOptionalParams + options?: ApplicationLiveViewsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, applicationLiveViewName, applicationLiveViewResource, - options + options, ); return poller.pollUntilDone(); } @@ -281,7 +280,7 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { resourceGroupName: string, serviceName: string, applicationLiveViewName: string, - options?: ApplicationLiveViewsDeleteOptionalParams + options?: ApplicationLiveViewsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -290,21 +289,20 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -313,8 +311,8 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -322,8 +320,8 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -333,16 +331,16 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { resourceGroupName, serviceName, applicationLiveViewName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< ApplicationLiveViewsDeleteResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -360,13 +358,13 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { resourceGroupName: string, serviceName: string, applicationLiveViewName: string, - options?: ApplicationLiveViewsDeleteOptionalParams + options?: ApplicationLiveViewsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, applicationLiveViewName, - options + options, ); return poller.pollUntilDone(); } @@ -383,11 +381,11 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApplicationLiveViewsListNextOptionalParams + options?: ApplicationLiveViewsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -395,38 +393,36 @@ export class ApplicationLiveViewsImpl implements ApplicationLiveViews { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationLiveViewResourceCollection + bodyMapper: Mappers.ApplicationLiveViewResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationLiveViewResource + bodyMapper: Mappers.ApplicationLiveViewResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -434,31 +430,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.applicationLiveViewName + Parameters.applicationLiveViewName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationLiveViewResource + bodyMapper: Mappers.ApplicationLiveViewResource, }, 201: { - bodyMapper: Mappers.ApplicationLiveViewResource + bodyMapper: Mappers.ApplicationLiveViewResource, }, 202: { - bodyMapper: Mappers.ApplicationLiveViewResource + bodyMapper: Mappers.ApplicationLiveViewResource, }, 204: { - bodyMapper: Mappers.ApplicationLiveViewResource + bodyMapper: Mappers.ApplicationLiveViewResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.applicationLiveViewResource, queryParameters: [Parameters.apiVersion], @@ -467,32 +462,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.applicationLiveViewName + Parameters.applicationLiveViewName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.ApplicationLiveViewsDeleteHeaders + headersMapper: Mappers.ApplicationLiveViewsDeleteHeaders, }, 201: { - headersMapper: Mappers.ApplicationLiveViewsDeleteHeaders + headersMapper: Mappers.ApplicationLiveViewsDeleteHeaders, }, 202: { - headersMapper: Mappers.ApplicationLiveViewsDeleteHeaders + headersMapper: Mappers.ApplicationLiveViewsDeleteHeaders, }, 204: { - headersMapper: Mappers.ApplicationLiveViewsDeleteHeaders + headersMapper: Mappers.ApplicationLiveViewsDeleteHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -500,29 +494,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.applicationLiveViewName + Parameters.applicationLiveViewName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationLiveViewResourceCollection + bodyMapper: Mappers.ApplicationLiveViewResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/apps.ts b/sdk/appplatform/arm-appplatform/src/operations/apps.ts index 57ce9317aa6e..0a81f0c351a5 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/apps.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/apps.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,7 +39,7 @@ import { CustomDomainValidatePayload, AppsValidateDomainOptionalParams, AppsValidateDomainResponse, - AppsListNextResponse + AppsListNextResponse, } from "../models"; /// @@ -65,7 +65,7 @@ export class AppsImpl implements Apps { public list( resourceGroupName: string, serviceName: string, - options?: AppsListOptionalParams + options?: AppsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -83,9 +83,9 @@ export class AppsImpl implements Apps { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -93,7 +93,7 @@ export class AppsImpl implements Apps { resourceGroupName: string, serviceName: string, options?: AppsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AppsListResponse; let continuationToken = settings?.continuationToken; @@ -109,7 +109,7 @@ export class AppsImpl implements Apps { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +121,12 @@ export class AppsImpl implements Apps { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: AppsListOptionalParams + options?: AppsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -144,11 +144,11 @@ export class AppsImpl implements Apps { resourceGroupName: string, serviceName: string, appName: string, - options?: AppsGetOptionalParams + options?: AppsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, options }, - getOperationSpec + getOperationSpec, ); } @@ -166,7 +166,7 @@ export class AppsImpl implements Apps { serviceName: string, appName: string, appResource: AppResource, - options?: AppsCreateOrUpdateOptionalParams + options?: AppsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -175,21 +175,20 @@ export class AppsImpl implements Apps { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -198,8 +197,8 @@ export class AppsImpl implements Apps { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -207,22 +206,22 @@ export class AppsImpl implements Apps { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, appName, appResource, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< AppsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -242,14 +241,14 @@ export class AppsImpl implements Apps { serviceName: string, appName: string, appResource: AppResource, - options?: AppsCreateOrUpdateOptionalParams + options?: AppsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, appName, appResource, - options + options, ); return poller.pollUntilDone(); } @@ -266,25 +265,24 @@ export class AppsImpl implements Apps { resourceGroupName: string, serviceName: string, appName: string, - options?: AppsDeleteOptionalParams + options?: AppsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -293,8 +291,8 @@ export class AppsImpl implements Apps { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,19 +300,19 @@ export class AppsImpl implements Apps { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, appName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -332,13 +330,13 @@ export class AppsImpl implements Apps { resourceGroupName: string, serviceName: string, appName: string, - options?: AppsDeleteOptionalParams + options?: AppsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, appName, - options + options, ); return poller.pollUntilDone(); } @@ -357,27 +355,26 @@ export class AppsImpl implements Apps { serviceName: string, appName: string, appResource: AppResource, - options?: AppsUpdateOptionalParams + options?: AppsUpdateOptionalParams, ): Promise< SimplePollerLike, AppsUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -386,8 +383,8 @@ export class AppsImpl implements Apps { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -395,22 +392,22 @@ export class AppsImpl implements Apps { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, appName, appResource, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< AppsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -430,14 +427,14 @@ export class AppsImpl implements Apps { serviceName: string, appName: string, appResource: AppResource, - options?: AppsUpdateOptionalParams + options?: AppsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, serviceName, appName, appResource, - options + options, ); return poller.pollUntilDone(); } @@ -452,11 +449,11 @@ export class AppsImpl implements Apps { private _list( resourceGroupName: string, serviceName: string, - options?: AppsListOptionalParams + options?: AppsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -472,11 +469,11 @@ export class AppsImpl implements Apps { resourceGroupName: string, serviceName: string, appName: string, - options?: AppsGetResourceUploadUrlOptionalParams + options?: AppsGetResourceUploadUrlOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, options }, - getResourceUploadUrlOperationSpec + getResourceUploadUrlOperationSpec, ); } @@ -494,7 +491,7 @@ export class AppsImpl implements Apps { serviceName: string, appName: string, activeDeploymentCollection: ActiveDeploymentCollection, - options?: AppsSetActiveDeploymentsOptionalParams + options?: AppsSetActiveDeploymentsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -503,21 +500,20 @@ export class AppsImpl implements Apps { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -526,8 +522,8 @@ export class AppsImpl implements Apps { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -535,8 +531,8 @@ export class AppsImpl implements Apps { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -547,16 +543,16 @@ export class AppsImpl implements Apps { serviceName, appName, activeDeploymentCollection, - options + options, }, - spec: setActiveDeploymentsOperationSpec + spec: setActiveDeploymentsOperationSpec, }); const poller = await createHttpPoller< AppsSetActiveDeploymentsResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -576,14 +572,14 @@ export class AppsImpl implements Apps { serviceName: string, appName: string, activeDeploymentCollection: ActiveDeploymentCollection, - options?: AppsSetActiveDeploymentsOptionalParams + options?: AppsSetActiveDeploymentsOptionalParams, ): Promise { const poller = await this.beginSetActiveDeployments( resourceGroupName, serviceName, appName, activeDeploymentCollection, - options + options, ); return poller.pollUntilDone(); } @@ -602,11 +598,11 @@ export class AppsImpl implements Apps { serviceName: string, appName: string, validatePayload: CustomDomainValidatePayload, - options?: AppsValidateDomainOptionalParams + options?: AppsValidateDomainOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, validatePayload, options }, - validateDomainOperationSpec + validateDomainOperationSpec, ); } @@ -622,11 +618,11 @@ export class AppsImpl implements Apps { resourceGroupName: string, serviceName: string, nextLink: string, - options?: AppsListNextOptionalParams + options?: AppsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -634,16 +630,15 @@ export class AppsImpl implements Apps { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.syncStatus], urlParameters: [ @@ -651,31 +646,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, 201: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, 202: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, 204: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.appResource, queryParameters: [Parameters.apiVersion], @@ -684,15 +678,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", httpMethod: "DELETE", responses: { 200: {}, @@ -700,8 +693,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -709,31 +702,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, 201: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, 202: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, 204: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.appResource, queryParameters: [Parameters.apiVersion], @@ -742,45 +734,43 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AppResourceCollection + bodyMapper: Mappers.AppResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getResourceUploadUrlOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceUploadDefinition + bodyMapper: Mappers.ResourceUploadDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -788,31 +778,30 @@ const getResourceUploadUrlOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const setActiveDeploymentsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, 201: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, 202: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, 204: { - bodyMapper: Mappers.AppResource + bodyMapper: Mappers.AppResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.activeDeploymentCollection, queryParameters: [Parameters.apiVersion], @@ -821,23 +810,22 @@ const setActiveDeploymentsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateDomainOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CustomDomainValidateResult + bodyMapper: Mappers.CustomDomainValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.validatePayload, queryParameters: [Parameters.apiVersion], @@ -846,30 +834,30 @@ const validateDomainOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AppResourceCollection + bodyMapper: Mappers.AppResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/bindings.ts b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts index 72136c4d05c1..43a1c4746cad 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/bindings.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { BindingsDeleteOptionalParams, BindingsUpdateOptionalParams, BindingsUpdateResponse, - BindingsListNextResponse + BindingsListNextResponse, } from "../models"; /// @@ -59,13 +59,13 @@ export class BindingsImpl implements Bindings { resourceGroupName: string, serviceName: string, appName: string, - options?: BindingsListOptionalParams + options?: BindingsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, appName, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class BindingsImpl implements Bindings { serviceName, appName, options, - settings + settings, ); - } + }, }; } @@ -94,7 +94,7 @@ export class BindingsImpl implements Bindings { serviceName: string, appName: string, options?: BindingsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BindingsListResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class BindingsImpl implements Bindings { resourceGroupName, serviceName, appName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class BindingsImpl implements Bindings { serviceName, appName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,13 +129,13 @@ export class BindingsImpl implements Bindings { resourceGroupName: string, serviceName: string, appName: string, - options?: BindingsListOptionalParams + options?: BindingsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, appName, - options + options, )) { yield* page; } @@ -155,11 +155,11 @@ export class BindingsImpl implements Bindings { serviceName: string, appName: string, bindingName: string, - options?: BindingsGetOptionalParams + options?: BindingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, bindingName, options }, - getOperationSpec + getOperationSpec, ); } @@ -179,7 +179,7 @@ export class BindingsImpl implements Bindings { appName: string, bindingName: string, bindingResource: BindingResource, - options?: BindingsCreateOrUpdateOptionalParams + options?: BindingsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -188,21 +188,20 @@ export class BindingsImpl implements Bindings { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -211,8 +210,8 @@ export class BindingsImpl implements Bindings { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -220,8 +219,8 @@ export class BindingsImpl implements Bindings { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -233,16 +232,16 @@ export class BindingsImpl implements Bindings { appName, bindingName, bindingResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BindingsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -264,7 +263,7 @@ export class BindingsImpl implements Bindings { appName: string, bindingName: string, bindingResource: BindingResource, - options?: BindingsCreateOrUpdateOptionalParams + options?: BindingsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -272,7 +271,7 @@ export class BindingsImpl implements Bindings { appName, bindingName, bindingResource, - options + options, ); return poller.pollUntilDone(); } @@ -291,25 +290,24 @@ export class BindingsImpl implements Bindings { serviceName: string, appName: string, bindingName: string, - options?: BindingsDeleteOptionalParams + options?: BindingsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -318,8 +316,8 @@ export class BindingsImpl implements Bindings { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -327,19 +325,19 @@ export class BindingsImpl implements Bindings { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, appName, bindingName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -359,14 +357,14 @@ export class BindingsImpl implements Bindings { serviceName: string, appName: string, bindingName: string, - options?: BindingsDeleteOptionalParams + options?: BindingsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, appName, bindingName, - options + options, ); return poller.pollUntilDone(); } @@ -387,7 +385,7 @@ export class BindingsImpl implements Bindings { appName: string, bindingName: string, bindingResource: BindingResource, - options?: BindingsUpdateOptionalParams + options?: BindingsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -396,21 +394,20 @@ export class BindingsImpl implements Bindings { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -419,8 +416,8 @@ export class BindingsImpl implements Bindings { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -428,8 +425,8 @@ export class BindingsImpl implements Bindings { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -441,16 +438,16 @@ export class BindingsImpl implements Bindings { appName, bindingName, bindingResource, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< BindingsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -472,7 +469,7 @@ export class BindingsImpl implements Bindings { appName: string, bindingName: string, bindingResource: BindingResource, - options?: BindingsUpdateOptionalParams + options?: BindingsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -480,7 +477,7 @@ export class BindingsImpl implements Bindings { appName, bindingName, bindingResource, - options + options, ); return poller.pollUntilDone(); } @@ -497,11 +494,11 @@ export class BindingsImpl implements Bindings { resourceGroupName: string, serviceName: string, appName: string, - options?: BindingsListOptionalParams + options?: BindingsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, options }, - listOperationSpec + listOperationSpec, ); } @@ -519,11 +516,11 @@ export class BindingsImpl implements Bindings { serviceName: string, appName: string, nextLink: string, - options?: BindingsListNextOptionalParams + options?: BindingsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -531,16 +528,15 @@ export class BindingsImpl implements Bindings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BindingResource + bodyMapper: Mappers.BindingResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -549,31 +545,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.bindingName + Parameters.bindingName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BindingResource + bodyMapper: Mappers.BindingResource, }, 201: { - bodyMapper: Mappers.BindingResource + bodyMapper: Mappers.BindingResource, }, 202: { - bodyMapper: Mappers.BindingResource + bodyMapper: Mappers.BindingResource, }, 204: { - bodyMapper: Mappers.BindingResource + bodyMapper: Mappers.BindingResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.bindingResource, queryParameters: [Parameters.apiVersion], @@ -583,15 +578,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.bindingName + Parameters.bindingName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", httpMethod: "DELETE", responses: { 200: {}, @@ -599,8 +593,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -609,31 +603,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.bindingName + Parameters.bindingName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BindingResource + bodyMapper: Mappers.BindingResource, }, 201: { - bodyMapper: Mappers.BindingResource + bodyMapper: Mappers.BindingResource, }, 202: { - bodyMapper: Mappers.BindingResource + bodyMapper: Mappers.BindingResource, }, 204: { - bodyMapper: Mappers.BindingResource + bodyMapper: Mappers.BindingResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.bindingResource, queryParameters: [Parameters.apiVersion], @@ -643,23 +636,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.bindingName + Parameters.bindingName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BindingResourceCollection + bodyMapper: Mappers.BindingResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -667,21 +659,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BindingResourceCollection + bodyMapper: Mappers.BindingResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -689,8 +681,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.nextLink, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts index 03c281c03711..7fae4ad3d413 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,7 +28,7 @@ import { BuildServiceAgentPoolGetResponse, BuildServiceAgentPoolUpdatePutOptionalParams, BuildServiceAgentPoolUpdatePutResponse, - BuildServiceAgentPoolListNextResponse + BuildServiceAgentPoolListNextResponse, } from "../models"; /// @@ -56,13 +56,13 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceAgentPoolListOptionalParams + options?: BuildServiceAgentPoolListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, buildServiceName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { serviceName, buildServiceName, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { serviceName: string, buildServiceName: string, options?: BuildServiceAgentPoolListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BuildServiceAgentPoolListResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { resourceGroupName, serviceName, buildServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { serviceName, buildServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,13 +126,13 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceAgentPoolListOptionalParams + options?: BuildServiceAgentPoolListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, buildServiceName, - options + options, )) { yield* page; } @@ -150,11 +150,11 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceAgentPoolListOptionalParams + options?: BuildServiceAgentPoolListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -172,7 +172,7 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { serviceName: string, buildServiceName: string, agentPoolName: string, - options?: BuildServiceAgentPoolGetOptionalParams + options?: BuildServiceAgentPoolGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -180,9 +180,9 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { serviceName, buildServiceName, agentPoolName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -202,7 +202,7 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { buildServiceName: string, agentPoolName: string, agentPoolResource: BuildServiceAgentPoolResource, - options?: BuildServiceAgentPoolUpdatePutOptionalParams + options?: BuildServiceAgentPoolUpdatePutOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -211,21 +211,20 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -234,8 +233,8 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -243,8 +242,8 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -256,16 +255,16 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { buildServiceName, agentPoolName, agentPoolResource, - options + options, }, - spec: updatePutOperationSpec + spec: updatePutOperationSpec, }); const poller = await createHttpPoller< BuildServiceAgentPoolUpdatePutResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -287,7 +286,7 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { buildServiceName: string, agentPoolName: string, agentPoolResource: BuildServiceAgentPoolResource, - options?: BuildServiceAgentPoolUpdatePutOptionalParams + options?: BuildServiceAgentPoolUpdatePutOptionalParams, ): Promise { const poller = await this.beginUpdatePut( resourceGroupName, @@ -295,7 +294,7 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { buildServiceName, agentPoolName, agentPoolResource, - options + options, ); return poller.pollUntilDone(); } @@ -314,11 +313,11 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { serviceName: string, buildServiceName: string, nextLink: string, - options?: BuildServiceAgentPoolListNextOptionalParams + options?: BuildServiceAgentPoolListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -326,16 +325,15 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildServiceAgentPoolResourceCollection + bodyMapper: Mappers.BuildServiceAgentPoolResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -343,22 +341,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.buildServiceName + Parameters.buildServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildServiceAgentPoolResource + bodyMapper: Mappers.BuildServiceAgentPoolResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -367,31 +364,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updatePutOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BuildServiceAgentPoolResource + bodyMapper: Mappers.BuildServiceAgentPoolResource, }, 201: { - bodyMapper: Mappers.BuildServiceAgentPoolResource + bodyMapper: Mappers.BuildServiceAgentPoolResource, }, 202: { - bodyMapper: Mappers.BuildServiceAgentPoolResource + bodyMapper: Mappers.BuildServiceAgentPoolResource, }, 204: { - bodyMapper: Mappers.BuildServiceAgentPoolResource + bodyMapper: Mappers.BuildServiceAgentPoolResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.agentPoolResource, queryParameters: [Parameters.apiVersion], @@ -401,22 +397,22 @@ const updatePutOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildServiceAgentPoolResourceCollection + bodyMapper: Mappers.BuildServiceAgentPoolResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -424,8 +420,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.nextLink, - Parameters.buildServiceName + Parameters.buildServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts index 7add0a5ec815..593243481664 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { BuildServiceBuilderDeleteOptionalParams, BuildServiceBuilderListDeploymentsOptionalParams, BuildServiceBuilderListDeploymentsResponse, - BuildServiceBuilderListNextResponse + BuildServiceBuilderListNextResponse, } from "../models"; /// @@ -59,13 +59,13 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceBuilderListOptionalParams + options?: BuildServiceBuilderListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, buildServiceName, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { serviceName, buildServiceName, options, - settings + settings, ); - } + }, }; } @@ -94,7 +94,7 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { serviceName: string, buildServiceName: string, options?: BuildServiceBuilderListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BuildServiceBuilderListResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { resourceGroupName, serviceName, buildServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { serviceName, buildServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,13 +129,13 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceBuilderListOptionalParams + options?: BuildServiceBuilderListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, buildServiceName, - options + options, )) { yield* page; } @@ -155,7 +155,7 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildServiceBuilderGetOptionalParams + options?: BuildServiceBuilderGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -163,9 +163,9 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { serviceName, buildServiceName, builderName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -185,7 +185,7 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { buildServiceName: string, builderName: string, builderResource: BuilderResource, - options?: BuildServiceBuilderCreateOrUpdateOptionalParams + options?: BuildServiceBuilderCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -194,21 +194,20 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -217,8 +216,8 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -226,8 +225,8 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -239,16 +238,16 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { buildServiceName, builderName, builderResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BuildServiceBuilderCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -270,7 +269,7 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { buildServiceName: string, builderName: string, builderResource: BuilderResource, - options?: BuildServiceBuilderCreateOrUpdateOptionalParams + options?: BuildServiceBuilderCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -278,7 +277,7 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { buildServiceName, builderName, builderResource, - options + options, ); return poller.pollUntilDone(); } @@ -297,25 +296,24 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildServiceBuilderDeleteOptionalParams + options?: BuildServiceBuilderDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -324,8 +322,8 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -333,8 +331,8 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -345,13 +343,13 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { serviceName, buildServiceName, builderName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -371,14 +369,14 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildServiceBuilderDeleteOptionalParams + options?: BuildServiceBuilderDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, buildServiceName, builderName, - options + options, ); return poller.pollUntilDone(); } @@ -395,11 +393,11 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceBuilderListOptionalParams + options?: BuildServiceBuilderListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -417,7 +415,7 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildServiceBuilderListDeploymentsOptionalParams + options?: BuildServiceBuilderListDeploymentsOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -425,9 +423,9 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { serviceName, buildServiceName, builderName, - options + options, }, - listDeploymentsOperationSpec + listDeploymentsOperationSpec, ); } @@ -445,11 +443,11 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { serviceName: string, buildServiceName: string, nextLink: string, - options?: BuildServiceBuilderListNextOptionalParams + options?: BuildServiceBuilderListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -457,16 +455,15 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuilderResource + bodyMapper: Mappers.BuilderResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -475,31 +472,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.builderName + Parameters.builderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BuilderResource + bodyMapper: Mappers.BuilderResource, }, 201: { - bodyMapper: Mappers.BuilderResource + bodyMapper: Mappers.BuilderResource, }, 202: { - bodyMapper: Mappers.BuilderResource + bodyMapper: Mappers.BuilderResource, }, 204: { - bodyMapper: Mappers.BuilderResource + bodyMapper: Mappers.BuilderResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.builderResource, queryParameters: [Parameters.apiVersion], @@ -509,15 +505,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.builderName + Parameters.builderName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", httpMethod: "DELETE", responses: { 200: {}, @@ -525,8 +520,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -535,22 +530,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.builderName + Parameters.builderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuilderResourceCollection + bodyMapper: Mappers.BuilderResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -558,22 +552,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.buildServiceName + Parameters.buildServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDeploymentsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentList + bodyMapper: Mappers.DeploymentList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -582,21 +575,21 @@ const listDeploymentsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.builderName + Parameters.builderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuilderResourceCollection + bodyMapper: Mappers.BuilderResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -604,8 +597,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.nextLink, - Parameters.buildServiceName + Parameters.buildServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts index c29fca525381..2cf100e501de 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -58,7 +58,7 @@ import { BuildServiceGetSupportedStackResponse, BuildServiceListBuildServicesNextResponse, BuildServiceListBuildsNextResponse, - BuildServiceListBuildResultsNextResponse + BuildServiceListBuildResultsNextResponse, } from "../models"; /// @@ -84,12 +84,12 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { public listBuildServices( resourceGroupName: string, serviceName: string, - options?: BuildServiceListBuildServicesOptionalParams + options?: BuildServiceListBuildServicesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBuildServicesPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -106,9 +106,9 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -116,7 +116,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName: string, serviceName: string, options?: BuildServiceListBuildServicesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BuildServiceListBuildServicesResponse; let continuationToken = settings?.continuationToken; @@ -124,7 +124,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { result = await this._listBuildServices( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -136,7 +136,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -148,12 +148,12 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { private async *listBuildServicesPagingAll( resourceGroupName: string, serviceName: string, - options?: BuildServiceListBuildServicesOptionalParams + options?: BuildServiceListBuildServicesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBuildServicesPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -171,13 +171,13 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceListBuildsOptionalParams + options?: BuildServiceListBuildsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBuildsPagingAll( resourceGroupName, serviceName, buildServiceName, - options + options, ); return { next() { @@ -195,9 +195,9 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName, buildServiceName, options, - settings + settings, ); - } + }, }; } @@ -206,7 +206,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, options?: BuildServiceListBuildsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BuildServiceListBuildsResponse; let continuationToken = settings?.continuationToken; @@ -215,7 +215,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName, serviceName, buildServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -228,7 +228,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName, buildServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -241,13 +241,13 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceListBuildsOptionalParams + options?: BuildServiceListBuildsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBuildsPagingPage( resourceGroupName, serviceName, buildServiceName, - options + options, )) { yield* page; } @@ -267,14 +267,14 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, buildName: string, - options?: BuildServiceListBuildResultsOptionalParams + options?: BuildServiceListBuildResultsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBuildResultsPagingAll( resourceGroupName, serviceName, buildServiceName, buildName, - options + options, ); return { next() { @@ -293,9 +293,9 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { buildServiceName, buildName, options, - settings + settings, ); - } + }, }; } @@ -305,7 +305,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { buildServiceName: string, buildName: string, options?: BuildServiceListBuildResultsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BuildServiceListBuildResultsResponse; let continuationToken = settings?.continuationToken; @@ -315,7 +315,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName, buildServiceName, buildName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -329,7 +329,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { buildServiceName, buildName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -343,14 +343,14 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, buildName: string, - options?: BuildServiceListBuildResultsOptionalParams + options?: BuildServiceListBuildResultsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBuildResultsPagingPage( resourceGroupName, serviceName, buildServiceName, buildName, - options + options, )) { yield* page; } @@ -366,11 +366,11 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { private _listBuildServices( resourceGroupName: string, serviceName: string, - options?: BuildServiceListBuildServicesOptionalParams + options?: BuildServiceListBuildServicesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listBuildServicesOperationSpec + listBuildServicesOperationSpec, ); } @@ -386,11 +386,11 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceGetBuildServiceOptionalParams + options?: BuildServiceGetBuildServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, options }, - getBuildServiceOperationSpec + getBuildServiceOperationSpec, ); } @@ -408,7 +408,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, buildService: BuildService, - options?: BuildServiceCreateOrUpdateOptionalParams + options?: BuildServiceCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -417,21 +417,20 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -440,8 +439,8 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -449,8 +448,8 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -461,9 +460,9 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName, buildServiceName, buildService, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BuildServiceCreateOrUpdateResponse, @@ -471,7 +470,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -491,14 +490,14 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, buildService: BuildService, - options?: BuildServiceCreateOrUpdateOptionalParams + options?: BuildServiceCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, buildServiceName, buildService, - options + options, ); return poller.pollUntilDone(); } @@ -515,11 +514,11 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceListBuildsOptionalParams + options?: BuildServiceListBuildsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, options }, - listBuildsOperationSpec + listBuildsOperationSpec, ); } @@ -537,11 +536,11 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, buildName: string, - options?: BuildServiceGetBuildOptionalParams + options?: BuildServiceGetBuildOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, buildName, options }, - getBuildOperationSpec + getBuildOperationSpec, ); } @@ -561,7 +560,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { buildServiceName: string, buildName: string, build: Build, - options?: BuildServiceCreateOrUpdateBuildOptionalParams + options?: BuildServiceCreateOrUpdateBuildOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -570,9 +569,9 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { buildServiceName, buildName, build, - options + options, }, - createOrUpdateBuildOperationSpec + createOrUpdateBuildOperationSpec, ); } @@ -590,7 +589,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, buildName: string, - options?: BuildServiceDeleteBuildOptionalParams + options?: BuildServiceDeleteBuildOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -599,21 +598,20 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -622,8 +620,8 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -631,8 +629,8 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -643,9 +641,9 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName, buildServiceName, buildName, - options + options, }, - spec: deleteBuildOperationSpec + spec: deleteBuildOperationSpec, }); const poller = await createHttpPoller< BuildServiceDeleteBuildResponse, @@ -653,7 +651,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -673,14 +671,14 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, buildName: string, - options?: BuildServiceDeleteBuildOptionalParams + options?: BuildServiceDeleteBuildOptionalParams, ): Promise { const poller = await this.beginDeleteBuild( resourceGroupName, serviceName, buildServiceName, buildName, - options + options, ); return poller.pollUntilDone(); } @@ -699,11 +697,11 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, buildName: string, - options?: BuildServiceListBuildResultsOptionalParams + options?: BuildServiceListBuildResultsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, buildName, options }, - listBuildResultsOperationSpec + listBuildResultsOperationSpec, ); } @@ -723,7 +721,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { buildServiceName: string, buildName: string, buildResultName: string, - options?: BuildServiceGetBuildResultOptionalParams + options?: BuildServiceGetBuildResultOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -732,9 +730,9 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { buildServiceName, buildName, buildResultName, - options + options, }, - getBuildResultOperationSpec + getBuildResultOperationSpec, ); } @@ -754,7 +752,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { buildServiceName: string, buildName: string, buildResultName: string, - options?: BuildServiceGetBuildResultLogOptionalParams + options?: BuildServiceGetBuildResultLogOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -763,9 +761,9 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { buildServiceName, buildName, buildResultName, - options + options, }, - getBuildResultLogOperationSpec + getBuildResultLogOperationSpec, ); } @@ -781,11 +779,11 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceGetResourceUploadUrlOptionalParams + options?: BuildServiceGetResourceUploadUrlOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, options }, - getResourceUploadUrlOperationSpec + getResourceUploadUrlOperationSpec, ); } @@ -801,11 +799,11 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceListSupportedBuildpacksOptionalParams + options?: BuildServiceListSupportedBuildpacksOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, options }, - listSupportedBuildpacksOperationSpec + listSupportedBuildpacksOperationSpec, ); } @@ -823,7 +821,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, buildpackName: string, - options?: BuildServiceGetSupportedBuildpackOptionalParams + options?: BuildServiceGetSupportedBuildpackOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -831,9 +829,9 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName, buildServiceName, buildpackName, - options + options, }, - getSupportedBuildpackOperationSpec + getSupportedBuildpackOperationSpec, ); } @@ -849,11 +847,11 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceListSupportedStacksOptionalParams + options?: BuildServiceListSupportedStacksOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, options }, - listSupportedStacksOperationSpec + listSupportedStacksOperationSpec, ); } @@ -871,11 +869,11 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, stackName: string, - options?: BuildServiceGetSupportedStackOptionalParams + options?: BuildServiceGetSupportedStackOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, stackName, options }, - getSupportedStackOperationSpec + getSupportedStackOperationSpec, ); } @@ -891,11 +889,11 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { resourceGroupName: string, serviceName: string, nextLink: string, - options?: BuildServiceListBuildServicesNextOptionalParams + options?: BuildServiceListBuildServicesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listBuildServicesNextOperationSpec + listBuildServicesNextOperationSpec, ); } @@ -913,11 +911,11 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { serviceName: string, buildServiceName: string, nextLink: string, - options?: BuildServiceListBuildsNextOptionalParams + options?: BuildServiceListBuildsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, buildServiceName, nextLink, options }, - listBuildsNextOperationSpec + listBuildsNextOperationSpec, ); } @@ -937,7 +935,7 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { buildServiceName: string, buildName: string, nextLink: string, - options?: BuildServiceListBuildResultsNextOptionalParams + options?: BuildServiceListBuildResultsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -946,9 +944,9 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { buildServiceName, buildName, nextLink, - options + options, }, - listBuildResultsNextOperationSpec + listBuildResultsNextOperationSpec, ); } } @@ -956,38 +954,36 @@ export class BuildServiceOperationsImpl implements BuildServiceOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBuildServicesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildServiceCollection + bodyMapper: Mappers.BuildServiceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getBuildServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildService + bodyMapper: Mappers.BuildService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -995,31 +991,30 @@ const getBuildServiceOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.buildServiceName + Parameters.buildServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BuildService + bodyMapper: Mappers.BuildService, }, 201: { - bodyMapper: Mappers.BuildService + bodyMapper: Mappers.BuildService, }, 202: { - bodyMapper: Mappers.BuildService + bodyMapper: Mappers.BuildService, }, 204: { - bodyMapper: Mappers.BuildService + bodyMapper: Mappers.BuildService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.buildService, queryParameters: [Parameters.apiVersion], @@ -1028,23 +1023,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.buildServiceName + Parameters.buildServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBuildsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildCollection + bodyMapper: Mappers.BuildCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1052,22 +1046,21 @@ const listBuildsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.buildServiceName + Parameters.buildServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getBuildOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Build + bodyMapper: Mappers.Build, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1076,25 +1069,24 @@ const getBuildOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.buildName + Parameters.buildName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateBuildOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Build + bodyMapper: Mappers.Build, }, 201: { - bodyMapper: Mappers.Build + bodyMapper: Mappers.Build, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.build, queryParameters: [Parameters.apiVersion], @@ -1104,32 +1096,31 @@ const createOrUpdateBuildOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.buildName + Parameters.buildName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteBuildOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.BuildServiceDeleteBuildHeaders + headersMapper: Mappers.BuildServiceDeleteBuildHeaders, }, 201: { - headersMapper: Mappers.BuildServiceDeleteBuildHeaders + headersMapper: Mappers.BuildServiceDeleteBuildHeaders, }, 202: { - headersMapper: Mappers.BuildServiceDeleteBuildHeaders + headersMapper: Mappers.BuildServiceDeleteBuildHeaders, }, 204: { - headersMapper: Mappers.BuildServiceDeleteBuildHeaders + headersMapper: Mappers.BuildServiceDeleteBuildHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1138,22 +1129,21 @@ const deleteBuildOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.buildName + Parameters.buildName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBuildResultsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildResultCollection + bodyMapper: Mappers.BuildResultCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1162,22 +1152,21 @@ const listBuildResultsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.buildName + Parameters.buildName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getBuildResultOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildResult + bodyMapper: Mappers.BuildResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1187,22 +1176,21 @@ const getBuildResultOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.buildServiceName, Parameters.buildName, - Parameters.buildResultName + Parameters.buildResultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getBuildResultLogOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.BuildResultLog + bodyMapper: Mappers.BuildResultLog, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1212,22 +1200,21 @@ const getBuildResultLogOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.buildServiceName, Parameters.buildName, - Parameters.buildResultName + Parameters.buildResultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getResourceUploadUrlOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceUploadDefinition + bodyMapper: Mappers.ResourceUploadDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1235,22 +1222,21 @@ const getResourceUploadUrlOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.buildServiceName + Parameters.buildServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedBuildpacksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedBuildpacksCollection + bodyMapper: Mappers.SupportedBuildpacksCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1258,22 +1244,21 @@ const listSupportedBuildpacksOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.buildServiceName + Parameters.buildServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getSupportedBuildpackOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedBuildpackResource + bodyMapper: Mappers.SupportedBuildpackResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1282,22 +1267,21 @@ const getSupportedBuildpackOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.buildpackName + Parameters.buildpackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedStacksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedStacksCollection + bodyMapper: Mappers.SupportedStacksCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1305,22 +1289,21 @@ const listSupportedStacksOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.buildServiceName + Parameters.buildServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getSupportedStackOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedStackResource + bodyMapper: Mappers.SupportedStackResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1329,42 +1312,42 @@ const getSupportedStackOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.stackName + Parameters.stackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBuildServicesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildServiceCollection + bodyMapper: Mappers.BuildServiceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBuildsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildCollection + bodyMapper: Mappers.BuildCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -1372,21 +1355,21 @@ const listBuildsNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.nextLink, - Parameters.buildServiceName + Parameters.buildServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBuildResultsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildResultCollection + bodyMapper: Mappers.BuildResultCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -1395,8 +1378,8 @@ const listBuildResultsNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.nextLink, Parameters.buildServiceName, - Parameters.buildName + Parameters.buildName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts b/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts index 873277df6ccf..9ee1a313ae8e 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -33,7 +33,7 @@ import { BuildpackBindingCreateOrUpdateResponse, BuildpackBindingDeleteOptionalParams, BuildpackBindingListForClusterNextResponse, - BuildpackBindingListNextResponse + BuildpackBindingListNextResponse, } from "../models"; /// @@ -59,12 +59,12 @@ export class BuildpackBindingImpl implements BuildpackBinding { public listForCluster( resourceGroupName: string, serviceName: string, - options?: BuildpackBindingListForClusterOptionalParams + options?: BuildpackBindingListForClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForClusterPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -81,9 +81,9 @@ export class BuildpackBindingImpl implements BuildpackBinding { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { resourceGroupName: string, serviceName: string, options?: BuildpackBindingListForClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BuildpackBindingListForClusterResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { result = await this._listForCluster( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +111,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,12 +123,12 @@ export class BuildpackBindingImpl implements BuildpackBinding { private async *listForClusterPagingAll( resourceGroupName: string, serviceName: string, - options?: BuildpackBindingListForClusterOptionalParams + options?: BuildpackBindingListForClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForClusterPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -148,14 +148,14 @@ export class BuildpackBindingImpl implements BuildpackBinding { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildpackBindingListOptionalParams + options?: BuildpackBindingListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, buildServiceName, builderName, - options + options, ); return { next() { @@ -174,9 +174,9 @@ export class BuildpackBindingImpl implements BuildpackBinding { buildServiceName, builderName, options, - settings + settings, ); - } + }, }; } @@ -186,7 +186,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { buildServiceName: string, builderName: string, options?: BuildpackBindingListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BuildpackBindingListResponse; let continuationToken = settings?.continuationToken; @@ -196,7 +196,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { serviceName, buildServiceName, builderName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -210,7 +210,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { buildServiceName, builderName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -224,14 +224,14 @@ export class BuildpackBindingImpl implements BuildpackBinding { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildpackBindingListOptionalParams + options?: BuildpackBindingListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, buildServiceName, builderName, - options + options, )) { yield* page; } @@ -247,11 +247,11 @@ export class BuildpackBindingImpl implements BuildpackBinding { private _listForCluster( resourceGroupName: string, serviceName: string, - options?: BuildpackBindingListForClusterOptionalParams + options?: BuildpackBindingListForClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listForClusterOperationSpec + listForClusterOperationSpec, ); } @@ -271,7 +271,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { buildServiceName: string, builderName: string, buildpackBindingName: string, - options?: BuildpackBindingGetOptionalParams + options?: BuildpackBindingGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -280,9 +280,9 @@ export class BuildpackBindingImpl implements BuildpackBinding { buildServiceName, builderName, buildpackBindingName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -304,7 +304,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { builderName: string, buildpackBindingName: string, buildpackBinding: BuildpackBindingResource, - options?: BuildpackBindingCreateOrUpdateOptionalParams + options?: BuildpackBindingCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -313,21 +313,20 @@ export class BuildpackBindingImpl implements BuildpackBinding { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -336,8 +335,8 @@ export class BuildpackBindingImpl implements BuildpackBinding { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -345,8 +344,8 @@ export class BuildpackBindingImpl implements BuildpackBinding { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -359,16 +358,16 @@ export class BuildpackBindingImpl implements BuildpackBinding { builderName, buildpackBindingName, buildpackBinding, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BuildpackBindingCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -392,7 +391,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { builderName: string, buildpackBindingName: string, buildpackBinding: BuildpackBindingResource, - options?: BuildpackBindingCreateOrUpdateOptionalParams + options?: BuildpackBindingCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -401,7 +400,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { builderName, buildpackBindingName, buildpackBinding, - options + options, ); return poller.pollUntilDone(); } @@ -422,25 +421,24 @@ export class BuildpackBindingImpl implements BuildpackBinding { buildServiceName: string, builderName: string, buildpackBindingName: string, - options?: BuildpackBindingDeleteOptionalParams + options?: BuildpackBindingDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -449,8 +447,8 @@ export class BuildpackBindingImpl implements BuildpackBinding { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -458,8 +456,8 @@ export class BuildpackBindingImpl implements BuildpackBinding { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -471,13 +469,13 @@ export class BuildpackBindingImpl implements BuildpackBinding { buildServiceName, builderName, buildpackBindingName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -499,7 +497,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { buildServiceName: string, builderName: string, buildpackBindingName: string, - options?: BuildpackBindingDeleteOptionalParams + options?: BuildpackBindingDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -507,7 +505,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { buildServiceName, builderName, buildpackBindingName, - options + options, ); return poller.pollUntilDone(); } @@ -526,7 +524,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildpackBindingListOptionalParams + options?: BuildpackBindingListOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -534,9 +532,9 @@ export class BuildpackBindingImpl implements BuildpackBinding { serviceName, buildServiceName, builderName, - options + options, }, - listOperationSpec + listOperationSpec, ); } @@ -552,11 +550,11 @@ export class BuildpackBindingImpl implements BuildpackBinding { resourceGroupName: string, serviceName: string, nextLink: string, - options?: BuildpackBindingListForClusterNextOptionalParams + options?: BuildpackBindingListForClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listForClusterNextOperationSpec + listForClusterNextOperationSpec, ); } @@ -576,7 +574,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { buildServiceName: string, builderName: string, nextLink: string, - options?: BuildpackBindingListNextOptionalParams + options?: BuildpackBindingListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -585,9 +583,9 @@ export class BuildpackBindingImpl implements BuildpackBinding { buildServiceName, builderName, nextLink, - options + options, }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -595,38 +593,36 @@ export class BuildpackBindingImpl implements BuildpackBinding { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listForClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildpackBindings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildpackBindings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildpackBindingResourceCollection + bodyMapper: Mappers.BuildpackBindingResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildpackBindingResource + bodyMapper: Mappers.BuildpackBindingResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -636,31 +632,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.buildServiceName, Parameters.builderName, - Parameters.buildpackBindingName + Parameters.buildpackBindingName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BuildpackBindingResource + bodyMapper: Mappers.BuildpackBindingResource, }, 201: { - bodyMapper: Mappers.BuildpackBindingResource + bodyMapper: Mappers.BuildpackBindingResource, }, 202: { - bodyMapper: Mappers.BuildpackBindingResource + bodyMapper: Mappers.BuildpackBindingResource, }, 204: { - bodyMapper: Mappers.BuildpackBindingResource + bodyMapper: Mappers.BuildpackBindingResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.buildpackBinding, queryParameters: [Parameters.apiVersion], @@ -671,15 +666,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.buildServiceName, Parameters.builderName, - Parameters.buildpackBindingName + Parameters.buildpackBindingName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", httpMethod: "DELETE", responses: { 200: {}, @@ -687,8 +681,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -698,22 +692,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.buildServiceName, Parameters.builderName, - Parameters.buildpackBindingName + Parameters.buildpackBindingName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildpackBindingResourceCollection + bodyMapper: Mappers.BuildpackBindingResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -722,42 +715,42 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.buildServiceName, - Parameters.builderName + Parameters.builderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildpackBindingResourceCollection + bodyMapper: Mappers.BuildpackBindingResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BuildpackBindingResourceCollection + bodyMapper: Mappers.BuildpackBindingResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -766,8 +759,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.nextLink, Parameters.buildServiceName, - Parameters.builderName + Parameters.builderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/certificates.ts b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts index 2ccff07f6af3..1fb89662987f 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/certificates.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { CertificatesCreateOrUpdateOptionalParams, CertificatesCreateOrUpdateResponse, CertificatesDeleteOptionalParams, - CertificatesListNextResponse + CertificatesListNextResponse, } from "../models"; /// @@ -55,7 +55,7 @@ export class CertificatesImpl implements Certificates { public list( resourceGroupName: string, serviceName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -73,9 +73,9 @@ export class CertificatesImpl implements Certificates { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +83,7 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, serviceName: string, options?: CertificatesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CertificatesListResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class CertificatesImpl implements Certificates { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -111,12 +111,12 @@ export class CertificatesImpl implements Certificates { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -134,11 +134,11 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, serviceName: string, certificateName: string, - options?: CertificatesGetOptionalParams + options?: CertificatesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateName, options }, - getOperationSpec + getOperationSpec, ); } @@ -156,7 +156,7 @@ export class CertificatesImpl implements Certificates { serviceName: string, certificateName: string, certificateResource: CertificateResource, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -165,21 +165,20 @@ export class CertificatesImpl implements Certificates { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -188,8 +187,8 @@ export class CertificatesImpl implements Certificates { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -197,8 +196,8 @@ export class CertificatesImpl implements Certificates { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -209,16 +208,16 @@ export class CertificatesImpl implements Certificates { serviceName, certificateName, certificateResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CertificatesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -238,14 +237,14 @@ export class CertificatesImpl implements Certificates { serviceName: string, certificateName: string, certificateResource: CertificateResource, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, certificateName, certificateResource, - options + options, ); return poller.pollUntilDone(); } @@ -262,25 +261,24 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, serviceName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -289,8 +287,8 @@ export class CertificatesImpl implements Certificates { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -298,19 +296,19 @@ export class CertificatesImpl implements Certificates { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, certificateName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -328,13 +326,13 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, serviceName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, certificateName, - options + options, ); return poller.pollUntilDone(); } @@ -349,11 +347,11 @@ export class CertificatesImpl implements Certificates { private _list( resourceGroupName: string, serviceName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -369,11 +367,11 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, serviceName: string, nextLink: string, - options?: CertificatesListNextOptionalParams + options?: CertificatesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -381,16 +379,15 @@ export class CertificatesImpl implements Certificates { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CertificateResource + bodyMapper: Mappers.CertificateResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -398,31 +395,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CertificateResource + bodyMapper: Mappers.CertificateResource, }, 201: { - bodyMapper: Mappers.CertificateResource + bodyMapper: Mappers.CertificateResource, }, 202: { - bodyMapper: Mappers.CertificateResource + bodyMapper: Mappers.CertificateResource, }, 204: { - bodyMapper: Mappers.CertificateResource + bodyMapper: Mappers.CertificateResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.certificateResource, queryParameters: [Parameters.apiVersion], @@ -431,15 +427,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", httpMethod: "DELETE", responses: { 200: {}, @@ -447,8 +442,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -456,51 +451,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CertificateResourceCollection + bodyMapper: Mappers.CertificateResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CertificateResourceCollection + bodyMapper: Mappers.CertificateResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/configServers.ts b/sdk/appplatform/arm-appplatform/src/operations/configServers.ts index f97f2f4f7fb8..ca43011495dc 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/configServers.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/configServers.ts @@ -14,7 +14,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,7 +27,7 @@ import { ConfigServersUpdatePatchResponse, ConfigServerSettings, ConfigServersValidateOptionalParams, - ConfigServersValidateResponse + ConfigServersValidateResponse, } from "../models"; /** Class containing ConfigServers operations. */ @@ -52,11 +52,11 @@ export class ConfigServersImpl implements ConfigServers { get( resourceGroupName: string, serviceName: string, - options?: ConfigServersGetOptionalParams + options?: ConfigServersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -72,7 +72,7 @@ export class ConfigServersImpl implements ConfigServers { resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, - options?: ConfigServersUpdatePutOptionalParams + options?: ConfigServersUpdatePutOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -81,21 +81,20 @@ export class ConfigServersImpl implements ConfigServers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -104,8 +103,8 @@ export class ConfigServersImpl implements ConfigServers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -113,22 +112,22 @@ export class ConfigServersImpl implements ConfigServers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, configServerResource, options }, - spec: updatePutOperationSpec + spec: updatePutOperationSpec, }); const poller = await createHttpPoller< ConfigServersUpdatePutResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -146,13 +145,13 @@ export class ConfigServersImpl implements ConfigServers { resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, - options?: ConfigServersUpdatePutOptionalParams + options?: ConfigServersUpdatePutOptionalParams, ): Promise { const poller = await this.beginUpdatePut( resourceGroupName, serviceName, configServerResource, - options + options, ); return poller.pollUntilDone(); } @@ -169,7 +168,7 @@ export class ConfigServersImpl implements ConfigServers { resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, - options?: ConfigServersUpdatePatchOptionalParams + options?: ConfigServersUpdatePatchOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -178,21 +177,20 @@ export class ConfigServersImpl implements ConfigServers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -201,8 +199,8 @@ export class ConfigServersImpl implements ConfigServers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -210,22 +208,22 @@ export class ConfigServersImpl implements ConfigServers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, configServerResource, options }, - spec: updatePatchOperationSpec + spec: updatePatchOperationSpec, }); const poller = await createHttpPoller< ConfigServersUpdatePatchResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -243,13 +241,13 @@ export class ConfigServersImpl implements ConfigServers { resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, - options?: ConfigServersUpdatePatchOptionalParams + options?: ConfigServersUpdatePatchOptionalParams, ): Promise { const poller = await this.beginUpdatePatch( resourceGroupName, serviceName, configServerResource, - options + options, ); return poller.pollUntilDone(); } @@ -266,7 +264,7 @@ export class ConfigServersImpl implements ConfigServers { resourceGroupName: string, serviceName: string, configServerSettings: ConfigServerSettings, - options?: ConfigServersValidateOptionalParams + options?: ConfigServersValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -275,21 +273,20 @@ export class ConfigServersImpl implements ConfigServers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -298,8 +295,8 @@ export class ConfigServersImpl implements ConfigServers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -307,15 +304,15 @@ export class ConfigServersImpl implements ConfigServers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, configServerSettings, options }, - spec: validateOperationSpec + spec: validateOperationSpec, }); const poller = await createHttpPoller< ConfigServersValidateResponse, @@ -323,7 +320,7 @@ export class ConfigServersImpl implements ConfigServers { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -341,13 +338,13 @@ export class ConfigServersImpl implements ConfigServers { resourceGroupName: string, serviceName: string, configServerSettings: ConfigServerSettings, - options?: ConfigServersValidateOptionalParams + options?: ConfigServersValidateOptionalParams, ): Promise { const poller = await this.beginValidate( resourceGroupName, serviceName, configServerSettings, - options + options, ); return poller.pollUntilDone(); } @@ -356,47 +353,45 @@ export class ConfigServersImpl implements ConfigServers { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigServerResource + bodyMapper: Mappers.ConfigServerResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updatePutOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConfigServerResource + bodyMapper: Mappers.ConfigServerResource, }, 201: { - bodyMapper: Mappers.ConfigServerResource + bodyMapper: Mappers.ConfigServerResource, }, 202: { - bodyMapper: Mappers.ConfigServerResource + bodyMapper: Mappers.ConfigServerResource, }, 204: { - bodyMapper: Mappers.ConfigServerResource + bodyMapper: Mappers.ConfigServerResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.configServerResource, queryParameters: [Parameters.apiVersion], @@ -404,32 +399,31 @@ const updatePutOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updatePatchOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ConfigServerResource + bodyMapper: Mappers.ConfigServerResource, }, 201: { - bodyMapper: Mappers.ConfigServerResource + bodyMapper: Mappers.ConfigServerResource, }, 202: { - bodyMapper: Mappers.ConfigServerResource + bodyMapper: Mappers.ConfigServerResource, }, 204: { - bodyMapper: Mappers.ConfigServerResource + bodyMapper: Mappers.ConfigServerResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.configServerResource, queryParameters: [Parameters.apiVersion], @@ -437,32 +431,31 @@ const updatePatchOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ConfigServerSettingsValidateResult + bodyMapper: Mappers.ConfigServerSettingsValidateResult, }, 201: { - bodyMapper: Mappers.ConfigServerSettingsValidateResult + bodyMapper: Mappers.ConfigServerSettingsValidateResult, }, 202: { - bodyMapper: Mappers.ConfigServerSettingsValidateResult + bodyMapper: Mappers.ConfigServerSettingsValidateResult, }, 204: { - bodyMapper: Mappers.ConfigServerSettingsValidateResult + bodyMapper: Mappers.ConfigServerSettingsValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.configServerSettings, queryParameters: [Parameters.apiVersion], @@ -470,9 +463,9 @@ const validateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts index 87bda48d017f..0059fbafcb6e 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -34,7 +34,7 @@ import { ConfigurationServicesValidateResponse, ConfigurationServicesValidateResourceOptionalParams, ConfigurationServicesValidateResourceResponse, - ConfigurationServicesListNextResponse + ConfigurationServicesListNextResponse, } from "../models"; /// @@ -60,7 +60,7 @@ export class ConfigurationServicesImpl implements ConfigurationServices { public list( resourceGroupName: string, serviceName: string, - options?: ConfigurationServicesListOptionalParams + options?: ConfigurationServicesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -78,9 +78,9 @@ export class ConfigurationServicesImpl implements ConfigurationServices { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +88,7 @@ export class ConfigurationServicesImpl implements ConfigurationServices { resourceGroupName: string, serviceName: string, options?: ConfigurationServicesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationServicesListResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class ConfigurationServicesImpl implements ConfigurationServices { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class ConfigurationServicesImpl implements ConfigurationServices { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: ConfigurationServicesListOptionalParams + options?: ConfigurationServicesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -139,11 +139,11 @@ export class ConfigurationServicesImpl implements ConfigurationServices { resourceGroupName: string, serviceName: string, configurationServiceName: string, - options?: ConfigurationServicesGetOptionalParams + options?: ConfigurationServicesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, configurationServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -162,7 +162,7 @@ export class ConfigurationServicesImpl implements ConfigurationServices { serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, - options?: ConfigurationServicesCreateOrUpdateOptionalParams + options?: ConfigurationServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -171,21 +171,20 @@ export class ConfigurationServicesImpl implements ConfigurationServices { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -194,8 +193,8 @@ export class ConfigurationServicesImpl implements ConfigurationServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -203,8 +202,8 @@ export class ConfigurationServicesImpl implements ConfigurationServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -215,16 +214,16 @@ export class ConfigurationServicesImpl implements ConfigurationServices { serviceName, configurationServiceName, configurationServiceResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ConfigurationServicesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -245,14 +244,14 @@ export class ConfigurationServicesImpl implements ConfigurationServices { serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, - options?: ConfigurationServicesCreateOrUpdateOptionalParams + options?: ConfigurationServicesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, configurationServiceName, configurationServiceResource, - options + options, ); return poller.pollUntilDone(); } @@ -269,25 +268,24 @@ export class ConfigurationServicesImpl implements ConfigurationServices { resourceGroupName: string, serviceName: string, configurationServiceName: string, - options?: ConfigurationServicesDeleteOptionalParams + options?: ConfigurationServicesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -296,8 +294,8 @@ export class ConfigurationServicesImpl implements ConfigurationServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -305,8 +303,8 @@ export class ConfigurationServicesImpl implements ConfigurationServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -316,13 +314,13 @@ export class ConfigurationServicesImpl implements ConfigurationServices { resourceGroupName, serviceName, configurationServiceName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -340,13 +338,13 @@ export class ConfigurationServicesImpl implements ConfigurationServices { resourceGroupName: string, serviceName: string, configurationServiceName: string, - options?: ConfigurationServicesDeleteOptionalParams + options?: ConfigurationServicesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, configurationServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -361,11 +359,11 @@ export class ConfigurationServicesImpl implements ConfigurationServices { private _list( resourceGroupName: string, serviceName: string, - options?: ConfigurationServicesListOptionalParams + options?: ConfigurationServicesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -383,7 +381,7 @@ export class ConfigurationServicesImpl implements ConfigurationServices { serviceName: string, configurationServiceName: string, settings: ConfigurationServiceSettings, - options?: ConfigurationServicesValidateOptionalParams + options?: ConfigurationServicesValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -392,21 +390,20 @@ export class ConfigurationServicesImpl implements ConfigurationServices { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -415,8 +412,8 @@ export class ConfigurationServicesImpl implements ConfigurationServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -424,8 +421,8 @@ export class ConfigurationServicesImpl implements ConfigurationServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -436,9 +433,9 @@ export class ConfigurationServicesImpl implements ConfigurationServices { serviceName, configurationServiceName, settings, - options + options, }, - spec: validateOperationSpec + spec: validateOperationSpec, }); const poller = await createHttpPoller< ConfigurationServicesValidateResponse, @@ -446,7 +443,7 @@ export class ConfigurationServicesImpl implements ConfigurationServices { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -466,14 +463,14 @@ export class ConfigurationServicesImpl implements ConfigurationServices { serviceName: string, configurationServiceName: string, settings: ConfigurationServiceSettings, - options?: ConfigurationServicesValidateOptionalParams + options?: ConfigurationServicesValidateOptionalParams, ): Promise { const poller = await this.beginValidate( resourceGroupName, serviceName, configurationServiceName, settings, - options + options, ); return poller.pollUntilDone(); } @@ -492,7 +489,7 @@ export class ConfigurationServicesImpl implements ConfigurationServices { serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, - options?: ConfigurationServicesValidateResourceOptionalParams + options?: ConfigurationServicesValidateResourceOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -501,21 +498,20 @@ export class ConfigurationServicesImpl implements ConfigurationServices { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -524,8 +520,8 @@ export class ConfigurationServicesImpl implements ConfigurationServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -533,8 +529,8 @@ export class ConfigurationServicesImpl implements ConfigurationServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -545,9 +541,9 @@ export class ConfigurationServicesImpl implements ConfigurationServices { serviceName, configurationServiceName, configurationServiceResource, - options + options, }, - spec: validateResourceOperationSpec + spec: validateResourceOperationSpec, }); const poller = await createHttpPoller< ConfigurationServicesValidateResourceResponse, @@ -555,7 +551,7 @@ export class ConfigurationServicesImpl implements ConfigurationServices { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -575,14 +571,14 @@ export class ConfigurationServicesImpl implements ConfigurationServices { serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, - options?: ConfigurationServicesValidateResourceOptionalParams + options?: ConfigurationServicesValidateResourceOptionalParams, ): Promise { const poller = await this.beginValidateResource( resourceGroupName, serviceName, configurationServiceName, configurationServiceResource, - options + options, ); return poller.pollUntilDone(); } @@ -599,11 +595,11 @@ export class ConfigurationServicesImpl implements ConfigurationServices { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ConfigurationServicesListNextOptionalParams + options?: ConfigurationServicesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -611,16 +607,15 @@ export class ConfigurationServicesImpl implements ConfigurationServices { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationServiceResource + bodyMapper: Mappers.ConfigurationServiceResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -628,31 +623,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.configurationServiceName + Parameters.configurationServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConfigurationServiceResource + bodyMapper: Mappers.ConfigurationServiceResource, }, 201: { - bodyMapper: Mappers.ConfigurationServiceResource + bodyMapper: Mappers.ConfigurationServiceResource, }, 202: { - bodyMapper: Mappers.ConfigurationServiceResource + bodyMapper: Mappers.ConfigurationServiceResource, }, 204: { - bodyMapper: Mappers.ConfigurationServiceResource + bodyMapper: Mappers.ConfigurationServiceResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.configurationServiceResource, queryParameters: [Parameters.apiVersion], @@ -661,15 +655,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.configurationServiceName + Parameters.configurationServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -677,8 +670,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -686,53 +679,51 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.configurationServiceName + Parameters.configurationServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationServiceResourceCollection + bodyMapper: Mappers.ConfigurationServiceResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult, }, 201: { - bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult, }, 202: { - bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult, }, 204: { - bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.settings, queryParameters: [Parameters.apiVersion], @@ -741,32 +732,31 @@ const validateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.configurationServiceName + Parameters.configurationServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validateResource", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validateResource", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult, }, 201: { - bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult, }, 202: { - bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult, }, 204: { - bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.configurationServiceResource, queryParameters: [Parameters.apiVersion], @@ -775,30 +765,30 @@ const validateResourceOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.configurationServiceName + Parameters.configurationServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationServiceResourceCollection + bodyMapper: Mappers.ConfigurationServiceResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts b/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts index 7a32246bd5eb..0ee2cc252017 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -33,7 +33,7 @@ import { ContainerRegistryProperties, ContainerRegistriesValidateOptionalParams, ContainerRegistriesValidateResponse, - ContainerRegistriesListNextResponse + ContainerRegistriesListNextResponse, } from "../models"; /// @@ -59,7 +59,7 @@ export class ContainerRegistriesImpl implements ContainerRegistries { public list( resourceGroupName: string, serviceName: string, - options?: ContainerRegistriesListOptionalParams + options?: ContainerRegistriesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -77,9 +77,9 @@ export class ContainerRegistriesImpl implements ContainerRegistries { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class ContainerRegistriesImpl implements ContainerRegistries { resourceGroupName: string, serviceName: string, options?: ContainerRegistriesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ContainerRegistriesListResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class ContainerRegistriesImpl implements ContainerRegistries { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,12 +115,12 @@ export class ContainerRegistriesImpl implements ContainerRegistries { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: ContainerRegistriesListOptionalParams + options?: ContainerRegistriesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -136,11 +136,11 @@ export class ContainerRegistriesImpl implements ContainerRegistries { private _list( resourceGroupName: string, serviceName: string, - options?: ContainerRegistriesListOptionalParams + options?: ContainerRegistriesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -156,11 +156,11 @@ export class ContainerRegistriesImpl implements ContainerRegistries { resourceGroupName: string, serviceName: string, containerRegistryName: string, - options?: ContainerRegistriesGetOptionalParams + options?: ContainerRegistriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, containerRegistryName, options }, - getOperationSpec + getOperationSpec, ); } @@ -178,7 +178,7 @@ export class ContainerRegistriesImpl implements ContainerRegistries { serviceName: string, containerRegistryName: string, containerRegistryResource: ContainerRegistryResource, - options?: ContainerRegistriesCreateOrUpdateOptionalParams + options?: ContainerRegistriesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -187,21 +187,20 @@ export class ContainerRegistriesImpl implements ContainerRegistries { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -210,8 +209,8 @@ export class ContainerRegistriesImpl implements ContainerRegistries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -219,8 +218,8 @@ export class ContainerRegistriesImpl implements ContainerRegistries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -231,9 +230,9 @@ export class ContainerRegistriesImpl implements ContainerRegistries { serviceName, containerRegistryName, containerRegistryResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ContainerRegistriesCreateOrUpdateResponse, @@ -241,7 +240,7 @@ export class ContainerRegistriesImpl implements ContainerRegistries { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -261,14 +260,14 @@ export class ContainerRegistriesImpl implements ContainerRegistries { serviceName: string, containerRegistryName: string, containerRegistryResource: ContainerRegistryResource, - options?: ContainerRegistriesCreateOrUpdateOptionalParams + options?: ContainerRegistriesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, containerRegistryName, containerRegistryResource, - options + options, ); return poller.pollUntilDone(); } @@ -285,7 +284,7 @@ export class ContainerRegistriesImpl implements ContainerRegistries { resourceGroupName: string, serviceName: string, containerRegistryName: string, - options?: ContainerRegistriesDeleteOptionalParams + options?: ContainerRegistriesDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -294,21 +293,20 @@ export class ContainerRegistriesImpl implements ContainerRegistries { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -317,8 +315,8 @@ export class ContainerRegistriesImpl implements ContainerRegistries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -326,15 +324,15 @@ export class ContainerRegistriesImpl implements ContainerRegistries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, containerRegistryName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< ContainerRegistriesDeleteResponse, @@ -342,7 +340,7 @@ export class ContainerRegistriesImpl implements ContainerRegistries { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -360,13 +358,13 @@ export class ContainerRegistriesImpl implements ContainerRegistries { resourceGroupName: string, serviceName: string, containerRegistryName: string, - options?: ContainerRegistriesDeleteOptionalParams + options?: ContainerRegistriesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, containerRegistryName, - options + options, ); return poller.pollUntilDone(); } @@ -385,7 +383,7 @@ export class ContainerRegistriesImpl implements ContainerRegistries { serviceName: string, containerRegistryName: string, containerRegistryProperties: ContainerRegistryProperties, - options?: ContainerRegistriesValidateOptionalParams + options?: ContainerRegistriesValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -394,21 +392,20 @@ export class ContainerRegistriesImpl implements ContainerRegistries { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -417,8 +414,8 @@ export class ContainerRegistriesImpl implements ContainerRegistries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -426,8 +423,8 @@ export class ContainerRegistriesImpl implements ContainerRegistries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -438,9 +435,9 @@ export class ContainerRegistriesImpl implements ContainerRegistries { serviceName, containerRegistryName, containerRegistryProperties, - options + options, }, - spec: validateOperationSpec + spec: validateOperationSpec, }); const poller = await createHttpPoller< ContainerRegistriesValidateResponse, @@ -448,7 +445,7 @@ export class ContainerRegistriesImpl implements ContainerRegistries { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -468,14 +465,14 @@ export class ContainerRegistriesImpl implements ContainerRegistries { serviceName: string, containerRegistryName: string, containerRegistryProperties: ContainerRegistryProperties, - options?: ContainerRegistriesValidateOptionalParams + options?: ContainerRegistriesValidateOptionalParams, ): Promise { const poller = await this.beginValidate( resourceGroupName, serviceName, containerRegistryName, containerRegistryProperties, - options + options, ); return poller.pollUntilDone(); } @@ -492,11 +489,11 @@ export class ContainerRegistriesImpl implements ContainerRegistries { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ContainerRegistriesListNextOptionalParams + options?: ContainerRegistriesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -504,38 +501,36 @@ export class ContainerRegistriesImpl implements ContainerRegistries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContainerRegistryResourceCollection + bodyMapper: Mappers.ContainerRegistryResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContainerRegistryResource + bodyMapper: Mappers.ContainerRegistryResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -543,31 +538,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.containerRegistryName + Parameters.containerRegistryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ContainerRegistryResource + bodyMapper: Mappers.ContainerRegistryResource, }, 201: { - bodyMapper: Mappers.ContainerRegistryResource + bodyMapper: Mappers.ContainerRegistryResource, }, 202: { - bodyMapper: Mappers.ContainerRegistryResource + bodyMapper: Mappers.ContainerRegistryResource, }, 204: { - bodyMapper: Mappers.ContainerRegistryResource + bodyMapper: Mappers.ContainerRegistryResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.containerRegistryResource, queryParameters: [Parameters.apiVersion], @@ -576,32 +570,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.containerRegistryName + Parameters.containerRegistryName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.ContainerRegistriesDeleteHeaders + headersMapper: Mappers.ContainerRegistriesDeleteHeaders, }, 201: { - headersMapper: Mappers.ContainerRegistriesDeleteHeaders + headersMapper: Mappers.ContainerRegistriesDeleteHeaders, }, 202: { - headersMapper: Mappers.ContainerRegistriesDeleteHeaders + headersMapper: Mappers.ContainerRegistriesDeleteHeaders, }, 204: { - headersMapper: Mappers.ContainerRegistriesDeleteHeaders + headersMapper: Mappers.ContainerRegistriesDeleteHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -609,31 +602,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.containerRegistryName + Parameters.containerRegistryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}/validate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ContainerRegistryValidateResult + bodyMapper: Mappers.ContainerRegistryValidateResult, }, 201: { - bodyMapper: Mappers.ContainerRegistryValidateResult + bodyMapper: Mappers.ContainerRegistryValidateResult, }, 202: { - bodyMapper: Mappers.ContainerRegistryValidateResult + bodyMapper: Mappers.ContainerRegistryValidateResult, }, 204: { - bodyMapper: Mappers.ContainerRegistryValidateResult + bodyMapper: Mappers.ContainerRegistryValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.containerRegistryProperties, queryParameters: [Parameters.apiVersion], @@ -642,30 +634,30 @@ const validateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.containerRegistryName + Parameters.containerRegistryName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContainerRegistryResourceCollection + bodyMapper: Mappers.ContainerRegistryResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts index c29415fa88d5..7725078dc7a7 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { CustomDomainsDeleteOptionalParams, CustomDomainsUpdateOptionalParams, CustomDomainsUpdateResponse, - CustomDomainsListNextResponse + CustomDomainsListNextResponse, } from "../models"; /// @@ -59,13 +59,13 @@ export class CustomDomainsImpl implements CustomDomains { resourceGroupName: string, serviceName: string, appName: string, - options?: CustomDomainsListOptionalParams + options?: CustomDomainsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, appName, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class CustomDomainsImpl implements CustomDomains { serviceName, appName, options, - settings + settings, ); - } + }, }; } @@ -94,7 +94,7 @@ export class CustomDomainsImpl implements CustomDomains { serviceName: string, appName: string, options?: CustomDomainsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CustomDomainsListResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class CustomDomainsImpl implements CustomDomains { resourceGroupName, serviceName, appName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class CustomDomainsImpl implements CustomDomains { serviceName, appName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,13 +129,13 @@ export class CustomDomainsImpl implements CustomDomains { resourceGroupName: string, serviceName: string, appName: string, - options?: CustomDomainsListOptionalParams + options?: CustomDomainsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, appName, - options + options, )) { yield* page; } @@ -155,11 +155,11 @@ export class CustomDomainsImpl implements CustomDomains { serviceName: string, appName: string, domainName: string, - options?: CustomDomainsGetOptionalParams + options?: CustomDomainsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, domainName, options }, - getOperationSpec + getOperationSpec, ); } @@ -179,7 +179,7 @@ export class CustomDomainsImpl implements CustomDomains { appName: string, domainName: string, domainResource: CustomDomainResource, - options?: CustomDomainsCreateOrUpdateOptionalParams + options?: CustomDomainsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -188,21 +188,20 @@ export class CustomDomainsImpl implements CustomDomains { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -211,8 +210,8 @@ export class CustomDomainsImpl implements CustomDomains { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -220,8 +219,8 @@ export class CustomDomainsImpl implements CustomDomains { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -233,16 +232,16 @@ export class CustomDomainsImpl implements CustomDomains { appName, domainName, domainResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CustomDomainsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -264,7 +263,7 @@ export class CustomDomainsImpl implements CustomDomains { appName: string, domainName: string, domainResource: CustomDomainResource, - options?: CustomDomainsCreateOrUpdateOptionalParams + options?: CustomDomainsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -272,7 +271,7 @@ export class CustomDomainsImpl implements CustomDomains { appName, domainName, domainResource, - options + options, ); return poller.pollUntilDone(); } @@ -291,25 +290,24 @@ export class CustomDomainsImpl implements CustomDomains { serviceName: string, appName: string, domainName: string, - options?: CustomDomainsDeleteOptionalParams + options?: CustomDomainsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -318,8 +316,8 @@ export class CustomDomainsImpl implements CustomDomains { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -327,19 +325,19 @@ export class CustomDomainsImpl implements CustomDomains { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, appName, domainName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -359,14 +357,14 @@ export class CustomDomainsImpl implements CustomDomains { serviceName: string, appName: string, domainName: string, - options?: CustomDomainsDeleteOptionalParams + options?: CustomDomainsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, appName, domainName, - options + options, ); return poller.pollUntilDone(); } @@ -387,7 +385,7 @@ export class CustomDomainsImpl implements CustomDomains { appName: string, domainName: string, domainResource: CustomDomainResource, - options?: CustomDomainsUpdateOptionalParams + options?: CustomDomainsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -396,21 +394,20 @@ export class CustomDomainsImpl implements CustomDomains { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -419,8 +416,8 @@ export class CustomDomainsImpl implements CustomDomains { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -428,8 +425,8 @@ export class CustomDomainsImpl implements CustomDomains { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -441,16 +438,16 @@ export class CustomDomainsImpl implements CustomDomains { appName, domainName, domainResource, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< CustomDomainsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -472,7 +469,7 @@ export class CustomDomainsImpl implements CustomDomains { appName: string, domainName: string, domainResource: CustomDomainResource, - options?: CustomDomainsUpdateOptionalParams + options?: CustomDomainsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -480,7 +477,7 @@ export class CustomDomainsImpl implements CustomDomains { appName, domainName, domainResource, - options + options, ); return poller.pollUntilDone(); } @@ -497,11 +494,11 @@ export class CustomDomainsImpl implements CustomDomains { resourceGroupName: string, serviceName: string, appName: string, - options?: CustomDomainsListOptionalParams + options?: CustomDomainsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, options }, - listOperationSpec + listOperationSpec, ); } @@ -519,11 +516,11 @@ export class CustomDomainsImpl implements CustomDomains { serviceName: string, appName: string, nextLink: string, - options?: CustomDomainsListNextOptionalParams + options?: CustomDomainsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -531,16 +528,15 @@ export class CustomDomainsImpl implements CustomDomains { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomDomainResource + bodyMapper: Mappers.CustomDomainResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -549,31 +545,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.domainName + Parameters.domainName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CustomDomainResource + bodyMapper: Mappers.CustomDomainResource, }, 201: { - bodyMapper: Mappers.CustomDomainResource + bodyMapper: Mappers.CustomDomainResource, }, 202: { - bodyMapper: Mappers.CustomDomainResource + bodyMapper: Mappers.CustomDomainResource, }, 204: { - bodyMapper: Mappers.CustomDomainResource + bodyMapper: Mappers.CustomDomainResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.domainResource, queryParameters: [Parameters.apiVersion], @@ -583,15 +578,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.domainName + Parameters.domainName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", httpMethod: "DELETE", responses: { 200: {}, @@ -599,8 +593,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -609,31 +603,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.domainName + Parameters.domainName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CustomDomainResource + bodyMapper: Mappers.CustomDomainResource, }, 201: { - bodyMapper: Mappers.CustomDomainResource + bodyMapper: Mappers.CustomDomainResource, }, 202: { - bodyMapper: Mappers.CustomDomainResource + bodyMapper: Mappers.CustomDomainResource, }, 204: { - bodyMapper: Mappers.CustomDomainResource + bodyMapper: Mappers.CustomDomainResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.domainResource, queryParameters: [Parameters.apiVersion], @@ -643,23 +636,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.domainName + Parameters.domainName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomDomainResourceCollection + bodyMapper: Mappers.CustomDomainResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -667,21 +659,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomDomainResourceCollection + bodyMapper: Mappers.CustomDomainResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -689,8 +681,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.nextLink, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts index c0e3cef5812c..4e08bf32992a 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -33,7 +33,7 @@ import { CustomizedAcceleratorProperties, CustomizedAcceleratorsValidateOptionalParams, CustomizedAcceleratorsValidateResponse, - CustomizedAcceleratorsListNextResponse + CustomizedAcceleratorsListNextResponse, } from "../models"; /// @@ -61,13 +61,13 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: CustomizedAcceleratorsListOptionalParams + options?: CustomizedAcceleratorsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, applicationAcceleratorName, - options + options, ); return { next() { @@ -85,9 +85,9 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { serviceName, applicationAcceleratorName, options, - settings + settings, ); - } + }, }; } @@ -96,7 +96,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { serviceName: string, applicationAcceleratorName: string, options?: CustomizedAcceleratorsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CustomizedAcceleratorsListResponse; let continuationToken = settings?.continuationToken; @@ -105,7 +105,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { resourceGroupName, serviceName, applicationAcceleratorName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -118,7 +118,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { serviceName, applicationAcceleratorName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -131,13 +131,13 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: CustomizedAcceleratorsListOptionalParams + options?: CustomizedAcceleratorsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, applicationAcceleratorName, - options + options, )) { yield* page; } @@ -155,11 +155,11 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: CustomizedAcceleratorsListOptionalParams + options?: CustomizedAcceleratorsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, applicationAcceleratorName, options }, - listOperationSpec + listOperationSpec, ); } @@ -177,7 +177,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, - options?: CustomizedAcceleratorsGetOptionalParams + options?: CustomizedAcceleratorsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -185,9 +185,9 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { serviceName, applicationAcceleratorName, customizedAcceleratorName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -207,7 +207,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { applicationAcceleratorName: string, customizedAcceleratorName: string, customizedAcceleratorResource: CustomizedAcceleratorResource, - options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams + options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -216,21 +216,20 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -239,8 +238,8 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -248,8 +247,8 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -261,16 +260,16 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { applicationAcceleratorName, customizedAcceleratorName, customizedAcceleratorResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CustomizedAcceleratorsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -292,7 +291,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { applicationAcceleratorName: string, customizedAcceleratorName: string, customizedAcceleratorResource: CustomizedAcceleratorResource, - options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams + options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -300,7 +299,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { applicationAcceleratorName, customizedAcceleratorName, customizedAcceleratorResource, - options + options, ); return poller.pollUntilDone(); } @@ -319,7 +318,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, - options?: CustomizedAcceleratorsDeleteOptionalParams + options?: CustomizedAcceleratorsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -328,21 +327,20 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -351,8 +349,8 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -360,8 +358,8 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -372,16 +370,16 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { serviceName, applicationAcceleratorName, customizedAcceleratorName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< CustomizedAcceleratorsDeleteResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -401,14 +399,14 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, - options?: CustomizedAcceleratorsDeleteOptionalParams + options?: CustomizedAcceleratorsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, applicationAcceleratorName, customizedAcceleratorName, - options + options, ); return poller.pollUntilDone(); } @@ -429,7 +427,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { applicationAcceleratorName: string, customizedAcceleratorName: string, properties: CustomizedAcceleratorProperties, - options?: CustomizedAcceleratorsValidateOptionalParams + options?: CustomizedAcceleratorsValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -438,21 +436,20 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -461,8 +458,8 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -470,8 +467,8 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -483,16 +480,16 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { applicationAcceleratorName, customizedAcceleratorName, properties, - options + options, }, - spec: validateOperationSpec + spec: validateOperationSpec, }); const poller = await createHttpPoller< CustomizedAcceleratorsValidateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -514,7 +511,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { applicationAcceleratorName: string, customizedAcceleratorName: string, properties: CustomizedAcceleratorProperties, - options?: CustomizedAcceleratorsValidateOptionalParams + options?: CustomizedAcceleratorsValidateOptionalParams, ): Promise { const poller = await this.beginValidate( resourceGroupName, @@ -522,7 +519,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { applicationAcceleratorName, customizedAcceleratorName, properties, - options + options, ); return poller.pollUntilDone(); } @@ -541,7 +538,7 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { serviceName: string, applicationAcceleratorName: string, nextLink: string, - options?: CustomizedAcceleratorsListNextOptionalParams + options?: CustomizedAcceleratorsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -549,9 +546,9 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { serviceName, applicationAcceleratorName, nextLink, - options + options, }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -559,16 +556,15 @@ export class CustomizedAcceleratorsImpl implements CustomizedAccelerators { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomizedAcceleratorResourceCollection + bodyMapper: Mappers.CustomizedAcceleratorResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -576,22 +572,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.applicationAcceleratorName + Parameters.applicationAcceleratorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomizedAcceleratorResource + bodyMapper: Mappers.CustomizedAcceleratorResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -600,31 +595,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.applicationAcceleratorName, - Parameters.customizedAcceleratorName + Parameters.customizedAcceleratorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CustomizedAcceleratorResource + bodyMapper: Mappers.CustomizedAcceleratorResource, }, 201: { - bodyMapper: Mappers.CustomizedAcceleratorResource + bodyMapper: Mappers.CustomizedAcceleratorResource, }, 202: { - bodyMapper: Mappers.CustomizedAcceleratorResource + bodyMapper: Mappers.CustomizedAcceleratorResource, }, 204: { - bodyMapper: Mappers.CustomizedAcceleratorResource + bodyMapper: Mappers.CustomizedAcceleratorResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.customizedAcceleratorResource, queryParameters: [Parameters.apiVersion], @@ -634,32 +628,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.applicationAcceleratorName, - Parameters.customizedAcceleratorName + Parameters.customizedAcceleratorName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.CustomizedAcceleratorsDeleteHeaders + headersMapper: Mappers.CustomizedAcceleratorsDeleteHeaders, }, 201: { - headersMapper: Mappers.CustomizedAcceleratorsDeleteHeaders + headersMapper: Mappers.CustomizedAcceleratorsDeleteHeaders, }, 202: { - headersMapper: Mappers.CustomizedAcceleratorsDeleteHeaders + headersMapper: Mappers.CustomizedAcceleratorsDeleteHeaders, }, 204: { - headersMapper: Mappers.CustomizedAcceleratorsDeleteHeaders + headersMapper: Mappers.CustomizedAcceleratorsDeleteHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -668,31 +661,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.applicationAcceleratorName, - Parameters.customizedAcceleratorName + Parameters.customizedAcceleratorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}/validate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CustomizedAcceleratorValidateResult + bodyMapper: Mappers.CustomizedAcceleratorValidateResult, }, 201: { - bodyMapper: Mappers.CustomizedAcceleratorValidateResult + bodyMapper: Mappers.CustomizedAcceleratorValidateResult, }, 202: { - bodyMapper: Mappers.CustomizedAcceleratorValidateResult + bodyMapper: Mappers.CustomizedAcceleratorValidateResult, }, 204: { - bodyMapper: Mappers.CustomizedAcceleratorValidateResult + bodyMapper: Mappers.CustomizedAcceleratorValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.properties, queryParameters: [Parameters.apiVersion], @@ -702,22 +694,22 @@ const validateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.applicationAcceleratorName, - Parameters.customizedAcceleratorName + Parameters.customizedAcceleratorName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomizedAcceleratorResourceCollection + bodyMapper: Mappers.CustomizedAcceleratorResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -725,8 +717,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.nextLink, - Parameters.applicationAcceleratorName + Parameters.applicationAcceleratorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts index f406ef96e82c..ae9d84506078 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -50,7 +50,7 @@ import { DeploymentsGenerateThreadDumpOptionalParams, DeploymentsStartJFROptionalParams, DeploymentsListNextResponse, - DeploymentsListForClusterNextResponse + DeploymentsListForClusterNextResponse, } from "../models"; /// @@ -78,13 +78,13 @@ export class DeploymentsImpl implements Deployments { resourceGroupName: string, serviceName: string, appName: string, - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, appName, - options + options, ); return { next() { @@ -102,9 +102,9 @@ export class DeploymentsImpl implements Deployments { serviceName, appName, options, - settings + settings, ); - } + }, }; } @@ -113,7 +113,7 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, options?: DeploymentsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentsListResponse; let continuationToken = settings?.continuationToken; @@ -122,7 +122,7 @@ export class DeploymentsImpl implements Deployments { resourceGroupName, serviceName, appName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -135,7 +135,7 @@ export class DeploymentsImpl implements Deployments { serviceName, appName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -148,13 +148,13 @@ export class DeploymentsImpl implements Deployments { resourceGroupName: string, serviceName: string, appName: string, - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, appName, - options + options, )) { yield* page; } @@ -170,12 +170,12 @@ export class DeploymentsImpl implements Deployments { public listForCluster( resourceGroupName: string, serviceName: string, - options?: DeploymentsListForClusterOptionalParams + options?: DeploymentsListForClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForClusterPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -192,9 +192,9 @@ export class DeploymentsImpl implements Deployments { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -202,7 +202,7 @@ export class DeploymentsImpl implements Deployments { resourceGroupName: string, serviceName: string, options?: DeploymentsListForClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentsListForClusterResponse; let continuationToken = settings?.continuationToken; @@ -210,7 +210,7 @@ export class DeploymentsImpl implements Deployments { result = await this._listForCluster( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -222,7 +222,7 @@ export class DeploymentsImpl implements Deployments { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -234,12 +234,12 @@ export class DeploymentsImpl implements Deployments { private async *listForClusterPagingAll( resourceGroupName: string, serviceName: string, - options?: DeploymentsListForClusterOptionalParams + options?: DeploymentsListForClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForClusterPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -259,11 +259,11 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsGetOptionalParams + options?: DeploymentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, deploymentName, options }, - getOperationSpec + getOperationSpec, ); } @@ -283,7 +283,7 @@ export class DeploymentsImpl implements Deployments { appName: string, deploymentName: string, deploymentResource: DeploymentResource, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -292,21 +292,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -315,8 +314,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -324,8 +323,8 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -337,16 +336,16 @@ export class DeploymentsImpl implements Deployments { appName, deploymentName, deploymentResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DeploymentsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -368,7 +367,7 @@ export class DeploymentsImpl implements Deployments { appName: string, deploymentName: string, deploymentResource: DeploymentResource, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -376,7 +375,7 @@ export class DeploymentsImpl implements Deployments { appName, deploymentName, deploymentResource, - options + options, ); return poller.pollUntilDone(); } @@ -395,25 +394,24 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -422,8 +420,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -431,8 +429,8 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -443,13 +441,13 @@ export class DeploymentsImpl implements Deployments { serviceName, appName, deploymentName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -469,14 +467,14 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, appName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -497,7 +495,7 @@ export class DeploymentsImpl implements Deployments { appName: string, deploymentName: string, deploymentResource: DeploymentResource, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -506,21 +504,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -529,8 +526,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -538,8 +535,8 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -551,16 +548,16 @@ export class DeploymentsImpl implements Deployments { appName, deploymentName, deploymentResource, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DeploymentsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -582,7 +579,7 @@ export class DeploymentsImpl implements Deployments { appName: string, deploymentName: string, deploymentResource: DeploymentResource, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -590,7 +587,7 @@ export class DeploymentsImpl implements Deployments { appName, deploymentName, deploymentResource, - options + options, ); return poller.pollUntilDone(); } @@ -607,11 +604,11 @@ export class DeploymentsImpl implements Deployments { resourceGroupName: string, serviceName: string, appName: string, - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, options }, - listOperationSpec + listOperationSpec, ); } @@ -625,11 +622,11 @@ export class DeploymentsImpl implements Deployments { private _listForCluster( resourceGroupName: string, serviceName: string, - options?: DeploymentsListForClusterOptionalParams + options?: DeploymentsListForClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listForClusterOperationSpec + listForClusterOperationSpec, ); } @@ -647,25 +644,24 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsStartOptionalParams + options?: DeploymentsStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -674,8 +670,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -683,8 +679,8 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -695,13 +691,13 @@ export class DeploymentsImpl implements Deployments { serviceName, appName, deploymentName, - options + options, }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -721,14 +717,14 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsStartOptionalParams + options?: DeploymentsStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, serviceName, appName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -747,25 +743,24 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsStopOptionalParams + options?: DeploymentsStopOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -774,8 +769,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -783,8 +778,8 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -795,13 +790,13 @@ export class DeploymentsImpl implements Deployments { serviceName, appName, deploymentName, - options + options, }, - spec: stopOperationSpec + spec: stopOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -821,14 +816,14 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsStopOptionalParams + options?: DeploymentsStopOptionalParams, ): Promise { const poller = await this.beginStop( resourceGroupName, serviceName, appName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -847,25 +842,24 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsRestartOptionalParams + options?: DeploymentsRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -874,8 +868,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -883,8 +877,8 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -895,13 +889,13 @@ export class DeploymentsImpl implements Deployments { serviceName, appName, deploymentName, - options + options, }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -921,14 +915,14 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsRestartOptionalParams + options?: DeploymentsRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, serviceName, appName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -947,7 +941,7 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsEnableRemoteDebuggingOptionalParams + options?: DeploymentsEnableRemoteDebuggingOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -956,21 +950,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -979,8 +972,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -988,8 +981,8 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1000,16 +993,16 @@ export class DeploymentsImpl implements Deployments { serviceName, appName, deploymentName, - options + options, }, - spec: enableRemoteDebuggingOperationSpec + spec: enableRemoteDebuggingOperationSpec, }); const poller = await createHttpPoller< DeploymentsEnableRemoteDebuggingResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1029,14 +1022,14 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsEnableRemoteDebuggingOptionalParams + options?: DeploymentsEnableRemoteDebuggingOptionalParams, ): Promise { const poller = await this.beginEnableRemoteDebugging( resourceGroupName, serviceName, appName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -1055,7 +1048,7 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsDisableRemoteDebuggingOptionalParams + options?: DeploymentsDisableRemoteDebuggingOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1064,21 +1057,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1087,8 +1079,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1096,8 +1088,8 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1108,16 +1100,16 @@ export class DeploymentsImpl implements Deployments { serviceName, appName, deploymentName, - options + options, }, - spec: disableRemoteDebuggingOperationSpec + spec: disableRemoteDebuggingOperationSpec, }); const poller = await createHttpPoller< DeploymentsDisableRemoteDebuggingResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1137,14 +1129,14 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsDisableRemoteDebuggingOptionalParams + options?: DeploymentsDisableRemoteDebuggingOptionalParams, ): Promise { const poller = await this.beginDisableRemoteDebugging( resourceGroupName, serviceName, appName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -1163,11 +1155,11 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsGetRemoteDebuggingConfigOptionalParams + options?: DeploymentsGetRemoteDebuggingConfigOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, deploymentName, options }, - getRemoteDebuggingConfigOperationSpec + getRemoteDebuggingConfigOperationSpec, ); } @@ -1185,11 +1177,11 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsGetLogFileUrlOptionalParams + options?: DeploymentsGetLogFileUrlOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, deploymentName, options }, - getLogFileUrlOperationSpec + getLogFileUrlOperationSpec, ); } @@ -1209,25 +1201,24 @@ export class DeploymentsImpl implements Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsGenerateHeapDumpOptionalParams + options?: DeploymentsGenerateHeapDumpOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1236,8 +1227,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1245,8 +1236,8 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1258,13 +1249,13 @@ export class DeploymentsImpl implements Deployments { appName, deploymentName, diagnosticParameters, - options + options, }, - spec: generateHeapDumpOperationSpec + spec: generateHeapDumpOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1286,7 +1277,7 @@ export class DeploymentsImpl implements Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsGenerateHeapDumpOptionalParams + options?: DeploymentsGenerateHeapDumpOptionalParams, ): Promise { const poller = await this.beginGenerateHeapDump( resourceGroupName, @@ -1294,7 +1285,7 @@ export class DeploymentsImpl implements Deployments { appName, deploymentName, diagnosticParameters, - options + options, ); return poller.pollUntilDone(); } @@ -1315,25 +1306,24 @@ export class DeploymentsImpl implements Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsGenerateThreadDumpOptionalParams + options?: DeploymentsGenerateThreadDumpOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1342,8 +1332,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1351,8 +1341,8 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1364,13 +1354,13 @@ export class DeploymentsImpl implements Deployments { appName, deploymentName, diagnosticParameters, - options + options, }, - spec: generateThreadDumpOperationSpec + spec: generateThreadDumpOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1392,7 +1382,7 @@ export class DeploymentsImpl implements Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsGenerateThreadDumpOptionalParams + options?: DeploymentsGenerateThreadDumpOptionalParams, ): Promise { const poller = await this.beginGenerateThreadDump( resourceGroupName, @@ -1400,7 +1390,7 @@ export class DeploymentsImpl implements Deployments { appName, deploymentName, diagnosticParameters, - options + options, ); return poller.pollUntilDone(); } @@ -1421,25 +1411,24 @@ export class DeploymentsImpl implements Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsStartJFROptionalParams + options?: DeploymentsStartJFROptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1448,8 +1437,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1457,8 +1446,8 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1470,13 +1459,13 @@ export class DeploymentsImpl implements Deployments { appName, deploymentName, diagnosticParameters, - options + options, }, - spec: startJFROperationSpec + spec: startJFROperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1498,7 +1487,7 @@ export class DeploymentsImpl implements Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsStartJFROptionalParams + options?: DeploymentsStartJFROptionalParams, ): Promise { const poller = await this.beginStartJFR( resourceGroupName, @@ -1506,7 +1495,7 @@ export class DeploymentsImpl implements Deployments { appName, deploymentName, diagnosticParameters, - options + options, ); return poller.pollUntilDone(); } @@ -1525,11 +1514,11 @@ export class DeploymentsImpl implements Deployments { serviceName: string, appName: string, nextLink: string, - options?: DeploymentsListNextOptionalParams + options?: DeploymentsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, appName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -1545,11 +1534,11 @@ export class DeploymentsImpl implements Deployments { resourceGroupName: string, serviceName: string, nextLink: string, - options?: DeploymentsListForClusterNextOptionalParams + options?: DeploymentsListForClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listForClusterNextOperationSpec + listForClusterNextOperationSpec, ); } } @@ -1557,16 +1546,15 @@ export class DeploymentsImpl implements Deployments { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentResource + bodyMapper: Mappers.DeploymentResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1575,31 +1563,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DeploymentResource + bodyMapper: Mappers.DeploymentResource, }, 201: { - bodyMapper: Mappers.DeploymentResource + bodyMapper: Mappers.DeploymentResource, }, 202: { - bodyMapper: Mappers.DeploymentResource + bodyMapper: Mappers.DeploymentResource, }, 204: { - bodyMapper: Mappers.DeploymentResource + bodyMapper: Mappers.DeploymentResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.deploymentResource, queryParameters: [Parameters.apiVersion], @@ -1609,15 +1596,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1625,8 +1611,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1635,31 +1621,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DeploymentResource + bodyMapper: Mappers.DeploymentResource, }, 201: { - bodyMapper: Mappers.DeploymentResource + bodyMapper: Mappers.DeploymentResource, }, 202: { - bodyMapper: Mappers.DeploymentResource + bodyMapper: Mappers.DeploymentResource, }, 204: { - bodyMapper: Mappers.DeploymentResource + bodyMapper: Mappers.DeploymentResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.deploymentResource, queryParameters: [Parameters.apiVersion], @@ -1669,64 +1654,65 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentResourceCollection + bodyMapper: Mappers.DeploymentResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.version], + queryParameters: [ + Parameters.apiVersion, + Parameters.version, + Parameters.expand, + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentResourceCollection + bodyMapper: Mappers.DeploymentResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.version, - Parameters.expand + Parameters.expand, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", httpMethod: "POST", responses: { 200: {}, @@ -1734,8 +1720,8 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1744,14 +1730,13 @@ const startOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const stopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", httpMethod: "POST", responses: { 200: {}, @@ -1759,8 +1744,8 @@ const stopOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1769,14 +1754,13 @@ const stopOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -1784,8 +1768,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1794,31 +1778,30 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const enableRemoteDebuggingOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RemoteDebugging + bodyMapper: Mappers.RemoteDebugging, }, 201: { - bodyMapper: Mappers.RemoteDebugging + bodyMapper: Mappers.RemoteDebugging, }, 202: { - bodyMapper: Mappers.RemoteDebugging + bodyMapper: Mappers.RemoteDebugging, }, 204: { - bodyMapper: Mappers.RemoteDebugging + bodyMapper: Mappers.RemoteDebugging, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.remoteDebuggingPayload, queryParameters: [Parameters.apiVersion], @@ -1828,32 +1811,31 @@ const enableRemoteDebuggingOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const disableRemoteDebuggingOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RemoteDebugging + bodyMapper: Mappers.RemoteDebugging, }, 201: { - bodyMapper: Mappers.RemoteDebugging + bodyMapper: Mappers.RemoteDebugging, }, 202: { - bodyMapper: Mappers.RemoteDebugging + bodyMapper: Mappers.RemoteDebugging, }, 204: { - bodyMapper: Mappers.RemoteDebugging + bodyMapper: Mappers.RemoteDebugging, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1862,22 +1844,21 @@ const disableRemoteDebuggingOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getRemoteDebuggingConfigOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RemoteDebugging + bodyMapper: Mappers.RemoteDebugging, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1886,23 +1867,22 @@ const getRemoteDebuggingConfigOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getLogFileUrlOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LogFileUrlResponse + bodyMapper: Mappers.LogFileUrlResponse, }, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1911,14 +1891,13 @@ const getLogFileUrlOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const generateHeapDumpOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", httpMethod: "POST", responses: { 200: {}, @@ -1926,8 +1905,8 @@ const generateHeapDumpOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diagnosticParameters, queryParameters: [Parameters.apiVersion], @@ -1937,15 +1916,14 @@ const generateHeapDumpOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const generateThreadDumpOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", httpMethod: "POST", responses: { 200: {}, @@ -1953,8 +1931,8 @@ const generateThreadDumpOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diagnosticParameters, queryParameters: [Parameters.apiVersion], @@ -1964,15 +1942,14 @@ const generateThreadDumpOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const startJFROperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", httpMethod: "POST", responses: { 200: {}, @@ -1980,8 +1957,8 @@ const startJFROperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diagnosticParameters, queryParameters: [Parameters.apiVersion], @@ -1991,22 +1968,22 @@ const startJFROperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.appName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentResourceCollection + bodyMapper: Mappers.DeploymentResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -2014,29 +1991,29 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.nextLink, - Parameters.appName + Parameters.appName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentResourceCollection + bodyMapper: Mappers.DeploymentResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts b/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts index b989921a29d6..0cc5bcb87fa2 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,7 +30,7 @@ import { DevToolPortalsCreateOrUpdateResponse, DevToolPortalsDeleteOptionalParams, DevToolPortalsDeleteResponse, - DevToolPortalsListNextResponse + DevToolPortalsListNextResponse, } from "../models"; /// @@ -56,7 +56,7 @@ export class DevToolPortalsImpl implements DevToolPortals { public list( resourceGroupName: string, serviceName: string, - options?: DevToolPortalsListOptionalParams + options?: DevToolPortalsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -74,9 +74,9 @@ export class DevToolPortalsImpl implements DevToolPortals { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class DevToolPortalsImpl implements DevToolPortals { resourceGroupName: string, serviceName: string, options?: DevToolPortalsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DevToolPortalsListResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class DevToolPortalsImpl implements DevToolPortals { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class DevToolPortalsImpl implements DevToolPortals { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: DevToolPortalsListOptionalParams + options?: DevToolPortalsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -133,11 +133,11 @@ export class DevToolPortalsImpl implements DevToolPortals { private _list( resourceGroupName: string, serviceName: string, - options?: DevToolPortalsListOptionalParams + options?: DevToolPortalsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -153,11 +153,11 @@ export class DevToolPortalsImpl implements DevToolPortals { resourceGroupName: string, serviceName: string, devToolPortalName: string, - options?: DevToolPortalsGetOptionalParams + options?: DevToolPortalsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, devToolPortalName, options }, - getOperationSpec + getOperationSpec, ); } @@ -175,7 +175,7 @@ export class DevToolPortalsImpl implements DevToolPortals { serviceName: string, devToolPortalName: string, devToolPortalResource: DevToolPortalResource, - options?: DevToolPortalsCreateOrUpdateOptionalParams + options?: DevToolPortalsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -184,21 +184,20 @@ export class DevToolPortalsImpl implements DevToolPortals { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -207,8 +206,8 @@ export class DevToolPortalsImpl implements DevToolPortals { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -216,8 +215,8 @@ export class DevToolPortalsImpl implements DevToolPortals { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -228,16 +227,16 @@ export class DevToolPortalsImpl implements DevToolPortals { serviceName, devToolPortalName, devToolPortalResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DevToolPortalsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -257,14 +256,14 @@ export class DevToolPortalsImpl implements DevToolPortals { serviceName: string, devToolPortalName: string, devToolPortalResource: DevToolPortalResource, - options?: DevToolPortalsCreateOrUpdateOptionalParams + options?: DevToolPortalsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, devToolPortalName, devToolPortalResource, - options + options, ); return poller.pollUntilDone(); } @@ -281,7 +280,7 @@ export class DevToolPortalsImpl implements DevToolPortals { resourceGroupName: string, serviceName: string, devToolPortalName: string, - options?: DevToolPortalsDeleteOptionalParams + options?: DevToolPortalsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -290,21 +289,20 @@ export class DevToolPortalsImpl implements DevToolPortals { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -313,8 +311,8 @@ export class DevToolPortalsImpl implements DevToolPortals { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -322,22 +320,22 @@ export class DevToolPortalsImpl implements DevToolPortals { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, devToolPortalName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< DevToolPortalsDeleteResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -355,13 +353,13 @@ export class DevToolPortalsImpl implements DevToolPortals { resourceGroupName: string, serviceName: string, devToolPortalName: string, - options?: DevToolPortalsDeleteOptionalParams + options?: DevToolPortalsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, devToolPortalName, - options + options, ); return poller.pollUntilDone(); } @@ -378,11 +376,11 @@ export class DevToolPortalsImpl implements DevToolPortals { resourceGroupName: string, serviceName: string, nextLink: string, - options?: DevToolPortalsListNextOptionalParams + options?: DevToolPortalsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -390,38 +388,36 @@ export class DevToolPortalsImpl implements DevToolPortals { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/devToolPortals", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/devToolPortals", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DevToolPortalResourceCollection + bodyMapper: Mappers.DevToolPortalResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DevToolPortalResource + bodyMapper: Mappers.DevToolPortalResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -429,31 +425,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.devToolPortalName + Parameters.devToolPortalName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DevToolPortalResource + bodyMapper: Mappers.DevToolPortalResource, }, 201: { - bodyMapper: Mappers.DevToolPortalResource + bodyMapper: Mappers.DevToolPortalResource, }, 202: { - bodyMapper: Mappers.DevToolPortalResource + bodyMapper: Mappers.DevToolPortalResource, }, 204: { - bodyMapper: Mappers.DevToolPortalResource + bodyMapper: Mappers.DevToolPortalResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.devToolPortalResource, queryParameters: [Parameters.apiVersion], @@ -462,32 +457,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.devToolPortalName + Parameters.devToolPortalName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.DevToolPortalsDeleteHeaders + headersMapper: Mappers.DevToolPortalsDeleteHeaders, }, 201: { - headersMapper: Mappers.DevToolPortalsDeleteHeaders + headersMapper: Mappers.DevToolPortalsDeleteHeaders, }, 202: { - headersMapper: Mappers.DevToolPortalsDeleteHeaders + headersMapper: Mappers.DevToolPortalsDeleteHeaders, }, 204: { - headersMapper: Mappers.DevToolPortalsDeleteHeaders + headersMapper: Mappers.DevToolPortalsDeleteHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -495,29 +489,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.devToolPortalName + Parameters.devToolPortalName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DevToolPortalResourceCollection + bodyMapper: Mappers.DevToolPortalResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; 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..a1b354a6ea3b --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/eurekaServers.ts @@ -0,0 +1,382 @@ +/* + * 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/gatewayCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts index cc8fef5b2e0f..9f1dbb32c4ac 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { GatewayCustomDomainsCreateOrUpdateOptionalParams, GatewayCustomDomainsCreateOrUpdateResponse, GatewayCustomDomainsDeleteOptionalParams, - GatewayCustomDomainsListNextResponse + GatewayCustomDomainsListNextResponse, } from "../models"; /// @@ -57,13 +57,13 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewayCustomDomainsListOptionalParams + options?: GatewayCustomDomainsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, gatewayName, - options + options, ); return { next() { @@ -81,9 +81,9 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { serviceName, gatewayName, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { serviceName: string, gatewayName: string, options?: GatewayCustomDomainsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayCustomDomainsListResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { resourceGroupName, serviceName, gatewayName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -114,7 +114,7 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { serviceName, gatewayName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -127,13 +127,13 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewayCustomDomainsListOptionalParams + options?: GatewayCustomDomainsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, gatewayName, - options + options, )) { yield* page; } @@ -153,11 +153,11 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { serviceName: string, gatewayName: string, domainName: string, - options?: GatewayCustomDomainsGetOptionalParams + options?: GatewayCustomDomainsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayName, domainName, options }, - getOperationSpec + getOperationSpec, ); } @@ -178,7 +178,7 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { gatewayName: string, domainName: string, gatewayCustomDomainResource: GatewayCustomDomainResource, - options?: GatewayCustomDomainsCreateOrUpdateOptionalParams + options?: GatewayCustomDomainsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -187,21 +187,20 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -210,8 +209,8 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -219,8 +218,8 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -232,16 +231,16 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { gatewayName, domainName, gatewayCustomDomainResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GatewayCustomDomainsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -264,7 +263,7 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { gatewayName: string, domainName: string, gatewayCustomDomainResource: GatewayCustomDomainResource, - options?: GatewayCustomDomainsCreateOrUpdateOptionalParams + options?: GatewayCustomDomainsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -272,7 +271,7 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { gatewayName, domainName, gatewayCustomDomainResource, - options + options, ); return poller.pollUntilDone(); } @@ -291,25 +290,24 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { serviceName: string, gatewayName: string, domainName: string, - options?: GatewayCustomDomainsDeleteOptionalParams + options?: GatewayCustomDomainsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -318,8 +316,8 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -327,8 +325,8 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -339,13 +337,13 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { serviceName, gatewayName, domainName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -365,14 +363,14 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { serviceName: string, gatewayName: string, domainName: string, - options?: GatewayCustomDomainsDeleteOptionalParams + options?: GatewayCustomDomainsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, gatewayName, domainName, - options + options, ); return poller.pollUntilDone(); } @@ -389,11 +387,11 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewayCustomDomainsListOptionalParams + options?: GatewayCustomDomainsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayName, options }, - listOperationSpec + listOperationSpec, ); } @@ -411,11 +409,11 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { serviceName: string, gatewayName: string, nextLink: string, - options?: GatewayCustomDomainsListNextOptionalParams + options?: GatewayCustomDomainsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -423,16 +421,15 @@ export class GatewayCustomDomainsImpl implements GatewayCustomDomains { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCustomDomainResource + bodyMapper: Mappers.GatewayCustomDomainResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -441,31 +438,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.domainName, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GatewayCustomDomainResource + bodyMapper: Mappers.GatewayCustomDomainResource, }, 201: { - bodyMapper: Mappers.GatewayCustomDomainResource + bodyMapper: Mappers.GatewayCustomDomainResource, }, 202: { - bodyMapper: Mappers.GatewayCustomDomainResource + bodyMapper: Mappers.GatewayCustomDomainResource, }, 204: { - bodyMapper: Mappers.GatewayCustomDomainResource + bodyMapper: Mappers.GatewayCustomDomainResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.gatewayCustomDomainResource, queryParameters: [Parameters.apiVersion], @@ -475,15 +471,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.domainName, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", httpMethod: "DELETE", responses: { 200: {}, @@ -491,8 +486,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -501,22 +496,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.domainName, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCustomDomainResourceCollection + bodyMapper: Mappers.GatewayCustomDomainResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -524,21 +518,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCustomDomainResourceCollection + bodyMapper: Mappers.GatewayCustomDomainResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -546,8 +540,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.nextLink, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts b/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts index 914d3b31004d..c03c02bff9e2 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { GatewayRouteConfigsCreateOrUpdateOptionalParams, GatewayRouteConfigsCreateOrUpdateResponse, GatewayRouteConfigsDeleteOptionalParams, - GatewayRouteConfigsListNextResponse + GatewayRouteConfigsListNextResponse, } from "../models"; /// @@ -57,13 +57,13 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewayRouteConfigsListOptionalParams + options?: GatewayRouteConfigsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, gatewayName, - options + options, ); return { next() { @@ -81,9 +81,9 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { serviceName, gatewayName, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { serviceName: string, gatewayName: string, options?: GatewayRouteConfigsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayRouteConfigsListResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { resourceGroupName, serviceName, gatewayName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -114,7 +114,7 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { serviceName, gatewayName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -127,13 +127,13 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewayRouteConfigsListOptionalParams + options?: GatewayRouteConfigsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, gatewayName, - options + options, )) { yield* page; } @@ -153,11 +153,11 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { serviceName: string, gatewayName: string, routeConfigName: string, - options?: GatewayRouteConfigsGetOptionalParams + options?: GatewayRouteConfigsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayName, routeConfigName, options }, - getOperationSpec + getOperationSpec, ); } @@ -179,7 +179,7 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { gatewayName: string, routeConfigName: string, gatewayRouteConfigResource: GatewayRouteConfigResource, - options?: GatewayRouteConfigsCreateOrUpdateOptionalParams + options?: GatewayRouteConfigsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -188,21 +188,20 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -211,8 +210,8 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -220,8 +219,8 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -233,16 +232,16 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { gatewayName, routeConfigName, gatewayRouteConfigResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GatewayRouteConfigsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -266,7 +265,7 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { gatewayName: string, routeConfigName: string, gatewayRouteConfigResource: GatewayRouteConfigResource, - options?: GatewayRouteConfigsCreateOrUpdateOptionalParams + options?: GatewayRouteConfigsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -274,7 +273,7 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { gatewayName, routeConfigName, gatewayRouteConfigResource, - options + options, ); return poller.pollUntilDone(); } @@ -293,25 +292,24 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { serviceName: string, gatewayName: string, routeConfigName: string, - options?: GatewayRouteConfigsDeleteOptionalParams + options?: GatewayRouteConfigsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -320,8 +318,8 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -329,8 +327,8 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -341,13 +339,13 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { serviceName, gatewayName, routeConfigName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -367,14 +365,14 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { serviceName: string, gatewayName: string, routeConfigName: string, - options?: GatewayRouteConfigsDeleteOptionalParams + options?: GatewayRouteConfigsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, gatewayName, routeConfigName, - options + options, ); return poller.pollUntilDone(); } @@ -391,11 +389,11 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewayRouteConfigsListOptionalParams + options?: GatewayRouteConfigsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayName, options }, - listOperationSpec + listOperationSpec, ); } @@ -413,11 +411,11 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { serviceName: string, gatewayName: string, nextLink: string, - options?: GatewayRouteConfigsListNextOptionalParams + options?: GatewayRouteConfigsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -425,16 +423,15 @@ export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayRouteConfigResource + bodyMapper: Mappers.GatewayRouteConfigResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -443,31 +440,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.gatewayName, - Parameters.routeConfigName + Parameters.routeConfigName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GatewayRouteConfigResource + bodyMapper: Mappers.GatewayRouteConfigResource, }, 201: { - bodyMapper: Mappers.GatewayRouteConfigResource + bodyMapper: Mappers.GatewayRouteConfigResource, }, 202: { - bodyMapper: Mappers.GatewayRouteConfigResource + bodyMapper: Mappers.GatewayRouteConfigResource, }, 204: { - bodyMapper: Mappers.GatewayRouteConfigResource + bodyMapper: Mappers.GatewayRouteConfigResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.gatewayRouteConfigResource, queryParameters: [Parameters.apiVersion], @@ -477,15 +473,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.gatewayName, - Parameters.routeConfigName + Parameters.routeConfigName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", httpMethod: "DELETE", responses: { 200: {}, @@ -493,8 +488,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -503,22 +498,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.gatewayName, - Parameters.routeConfigName + Parameters.routeConfigName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayRouteConfigResourceCollection + bodyMapper: Mappers.GatewayRouteConfigResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -526,21 +520,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayRouteConfigResourceCollection + bodyMapper: Mappers.GatewayRouteConfigResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -548,8 +542,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.nextLink, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts index a6538a4ec994..8eb1b181da7b 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,6 +28,9 @@ import { GatewaysGetResponse, GatewaysCreateOrUpdateOptionalParams, GatewaysCreateOrUpdateResponse, + SkuObject, + GatewaysUpdateCapacityOptionalParams, + GatewaysUpdateCapacityResponse, GatewaysDeleteOptionalParams, GatewaysListEnvSecretsOptionalParams, GatewaysListEnvSecretsResponse, @@ -35,7 +38,7 @@ import { CustomDomainValidatePayload, GatewaysValidateDomainOptionalParams, GatewaysValidateDomainResponse, - GatewaysListNextResponse + GatewaysListNextResponse, } from "../models"; /// @@ -61,7 +64,7 @@ export class GatewaysImpl implements Gateways { public list( resourceGroupName: string, serviceName: string, - options?: GatewaysListOptionalParams + options?: GatewaysListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -79,9 +82,9 @@ export class GatewaysImpl implements Gateways { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +92,7 @@ export class GatewaysImpl implements Gateways { resourceGroupName: string, serviceName: string, options?: GatewaysListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewaysListResponse; let continuationToken = settings?.continuationToken; @@ -105,7 +108,7 @@ export class GatewaysImpl implements Gateways { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +120,12 @@ export class GatewaysImpl implements Gateways { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: GatewaysListOptionalParams + options?: GatewaysListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -140,11 +143,11 @@ export class GatewaysImpl implements Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysGetOptionalParams + options?: GatewaysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayName, options }, - getOperationSpec + getOperationSpec, ); } @@ -162,7 +165,7 @@ export class GatewaysImpl implements Gateways { serviceName: string, gatewayName: string, gatewayResource: GatewayResource, - options?: GatewaysCreateOrUpdateOptionalParams + options?: GatewaysCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -171,21 +174,20 @@ export class GatewaysImpl implements Gateways { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -194,8 +196,8 @@ export class GatewaysImpl implements Gateways { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -203,8 +205,8 @@ export class GatewaysImpl implements Gateways { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -215,16 +217,16 @@ export class GatewaysImpl implements Gateways { serviceName, gatewayName, gatewayResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GatewaysCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -244,14 +246,122 @@ export class GatewaysImpl implements Gateways { serviceName: string, gatewayName: string, gatewayResource: GatewayResource, - options?: GatewaysCreateOrUpdateOptionalParams + options?: GatewaysCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, gatewayName, gatewayResource, - options + options, + ); + return poller.pollUntilDone(); + } + + /** + * Operation to update an exiting Spring Cloud Gateway capacity. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param gatewayCapacityResource The gateway capacity for the update operation + * @param options The options parameters. + */ + async beginUpdateCapacity( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + gatewayCapacityResource: SkuObject, + options?: GatewaysUpdateCapacityOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GatewaysUpdateCapacityResponse + > + > { + 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, + gatewayName, + gatewayCapacityResource, + options, + }, + spec: updateCapacityOperationSpec, + }); + const poller = await createHttpPoller< + GatewaysUpdateCapacityResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Operation to update an exiting Spring Cloud Gateway capacity. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param gatewayCapacityResource The gateway capacity for the update operation + * @param options The options parameters. + */ + async beginUpdateCapacityAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + gatewayCapacityResource: SkuObject, + options?: GatewaysUpdateCapacityOptionalParams, + ): Promise { + const poller = await this.beginUpdateCapacity( + resourceGroupName, + serviceName, + gatewayName, + gatewayCapacityResource, + options, ); return poller.pollUntilDone(); } @@ -268,25 +378,24 @@ export class GatewaysImpl implements Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysDeleteOptionalParams + options?: GatewaysDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -295,8 +404,8 @@ export class GatewaysImpl implements Gateways { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -304,19 +413,19 @@ export class GatewaysImpl implements Gateways { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, gatewayName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -334,13 +443,13 @@ export class GatewaysImpl implements Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysDeleteOptionalParams + options?: GatewaysDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, gatewayName, - options + options, ); return poller.pollUntilDone(); } @@ -357,11 +466,11 @@ export class GatewaysImpl implements Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysListEnvSecretsOptionalParams + options?: GatewaysListEnvSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayName, options }, - listEnvSecretsOperationSpec + listEnvSecretsOperationSpec, ); } @@ -377,25 +486,24 @@ export class GatewaysImpl implements Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysRestartOptionalParams + options?: GatewaysRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -404,8 +512,8 @@ export class GatewaysImpl implements Gateways { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -413,20 +521,20 @@ export class GatewaysImpl implements Gateways { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, gatewayName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -444,13 +552,13 @@ export class GatewaysImpl implements Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysRestartOptionalParams + options?: GatewaysRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, serviceName, gatewayName, - options + options, ); return poller.pollUntilDone(); } @@ -465,11 +573,11 @@ export class GatewaysImpl implements Gateways { private _list( resourceGroupName: string, serviceName: string, - options?: GatewaysListOptionalParams + options?: GatewaysListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -487,11 +595,11 @@ export class GatewaysImpl implements Gateways { serviceName: string, gatewayName: string, validatePayload: CustomDomainValidatePayload, - options?: GatewaysValidateDomainOptionalParams + options?: GatewaysValidateDomainOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayName, validatePayload, options }, - validateDomainOperationSpec + validateDomainOperationSpec, ); } @@ -507,11 +615,11 @@ export class GatewaysImpl implements Gateways { resourceGroupName: string, serviceName: string, nextLink: string, - options?: GatewaysListNextOptionalParams + options?: GatewaysListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -519,16 +627,15 @@ export class GatewaysImpl implements Gateways { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayResource + bodyMapper: Mappers.GatewayResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -536,31 +643,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GatewayResource + bodyMapper: Mappers.GatewayResource, }, 201: { - bodyMapper: Mappers.GatewayResource + bodyMapper: Mappers.GatewayResource, }, 202: { - bodyMapper: Mappers.GatewayResource + bodyMapper: Mappers.GatewayResource, }, 204: { - bodyMapper: Mappers.GatewayResource + bodyMapper: Mappers.GatewayResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.gatewayResource, queryParameters: [Parameters.apiVersion], @@ -569,15 +675,47 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.gatewayName + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateCapacityOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.GatewayResource, + }, + 201: { + bodyMapper: Mappers.GatewayResource, + }, + 202: { + bodyMapper: Mappers.GatewayResource, + }, + 204: { + bodyMapper: Mappers.GatewayResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.gatewayCapacityResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", httpMethod: "DELETE", responses: { 200: {}, @@ -585,8 +723,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -594,24 +732,23 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listEnvSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/listEnvSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/listEnvSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "String" } } } - } + type: { name: "Dictionary", value: { type: { name: "String" } } }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -619,14 +756,13 @@ const listEnvSecretsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -634,8 +770,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -643,44 +779,42 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayResourceCollection + bodyMapper: Mappers.GatewayResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateDomainOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CustomDomainValidateResult + bodyMapper: Mappers.CustomDomainValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.validatePayload, queryParameters: [Parameters.apiVersion], @@ -689,30 +823,30 @@ const validateDomainOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.gatewayName + Parameters.gatewayName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayResourceCollection + bodyMapper: Mappers.GatewayResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/index.ts b/sdk/appplatform/arm-appplatform/src/operations/index.ts index c8565fe39e2e..bfa157c0b919 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/index.ts @@ -8,6 +8,7 @@ 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/monitoringSettings.ts b/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts index 617cc508234f..2507123210ee 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts @@ -14,7 +14,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -24,7 +24,7 @@ import { MonitoringSettingsUpdatePutOptionalParams, MonitoringSettingsUpdatePutResponse, MonitoringSettingsUpdatePatchOptionalParams, - MonitoringSettingsUpdatePatchResponse + MonitoringSettingsUpdatePatchResponse, } from "../models"; /** Class containing MonitoringSettings operations. */ @@ -49,11 +49,11 @@ export class MonitoringSettingsImpl implements MonitoringSettings { get( resourceGroupName: string, serviceName: string, - options?: MonitoringSettingsGetOptionalParams + options?: MonitoringSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -69,7 +69,7 @@ export class MonitoringSettingsImpl implements MonitoringSettings { resourceGroupName: string, serviceName: string, monitoringSettingResource: MonitoringSettingResource, - options?: MonitoringSettingsUpdatePutOptionalParams + options?: MonitoringSettingsUpdatePutOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,21 +78,20 @@ export class MonitoringSettingsImpl implements MonitoringSettings { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -101,8 +100,8 @@ export class MonitoringSettingsImpl implements MonitoringSettings { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -110,8 +109,8 @@ export class MonitoringSettingsImpl implements MonitoringSettings { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -121,16 +120,16 @@ export class MonitoringSettingsImpl implements MonitoringSettings { resourceGroupName, serviceName, monitoringSettingResource, - options + options, }, - spec: updatePutOperationSpec + spec: updatePutOperationSpec, }); const poller = await createHttpPoller< MonitoringSettingsUpdatePutResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -148,13 +147,13 @@ export class MonitoringSettingsImpl implements MonitoringSettings { resourceGroupName: string, serviceName: string, monitoringSettingResource: MonitoringSettingResource, - options?: MonitoringSettingsUpdatePutOptionalParams + options?: MonitoringSettingsUpdatePutOptionalParams, ): Promise { const poller = await this.beginUpdatePut( resourceGroupName, serviceName, monitoringSettingResource, - options + options, ); return poller.pollUntilDone(); } @@ -171,7 +170,7 @@ export class MonitoringSettingsImpl implements MonitoringSettings { resourceGroupName: string, serviceName: string, monitoringSettingResource: MonitoringSettingResource, - options?: MonitoringSettingsUpdatePatchOptionalParams + options?: MonitoringSettingsUpdatePatchOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -180,21 +179,20 @@ export class MonitoringSettingsImpl implements MonitoringSettings { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -203,8 +201,8 @@ export class MonitoringSettingsImpl implements MonitoringSettings { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -212,8 +210,8 @@ export class MonitoringSettingsImpl implements MonitoringSettings { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -223,16 +221,16 @@ export class MonitoringSettingsImpl implements MonitoringSettings { resourceGroupName, serviceName, monitoringSettingResource, - options + options, }, - spec: updatePatchOperationSpec + spec: updatePatchOperationSpec, }); const poller = await createHttpPoller< MonitoringSettingsUpdatePatchResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -250,13 +248,13 @@ export class MonitoringSettingsImpl implements MonitoringSettings { resourceGroupName: string, serviceName: string, monitoringSettingResource: MonitoringSettingResource, - options?: MonitoringSettingsUpdatePatchOptionalParams + options?: MonitoringSettingsUpdatePatchOptionalParams, ): Promise { const poller = await this.beginUpdatePatch( resourceGroupName, serviceName, monitoringSettingResource, - options + options, ); return poller.pollUntilDone(); } @@ -265,47 +263,45 @@ export class MonitoringSettingsImpl implements MonitoringSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MonitoringSettingResource + bodyMapper: Mappers.MonitoringSettingResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updatePutOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.MonitoringSettingResource + bodyMapper: Mappers.MonitoringSettingResource, }, 201: { - bodyMapper: Mappers.MonitoringSettingResource + bodyMapper: Mappers.MonitoringSettingResource, }, 202: { - bodyMapper: Mappers.MonitoringSettingResource + bodyMapper: Mappers.MonitoringSettingResource, }, 204: { - bodyMapper: Mappers.MonitoringSettingResource + bodyMapper: Mappers.MonitoringSettingResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.monitoringSettingResource, queryParameters: [Parameters.apiVersion], @@ -313,32 +309,31 @@ const updatePutOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updatePatchOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.MonitoringSettingResource + bodyMapper: Mappers.MonitoringSettingResource, }, 201: { - bodyMapper: Mappers.MonitoringSettingResource + bodyMapper: Mappers.MonitoringSettingResource, }, 202: { - bodyMapper: Mappers.MonitoringSettingResource + bodyMapper: Mappers.MonitoringSettingResource, }, 204: { - bodyMapper: Mappers.MonitoringSettingResource + bodyMapper: Mappers.MonitoringSettingResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.monitoringSettingResource, queryParameters: [Parameters.apiVersion], @@ -346,9 +341,9 @@ const updatePatchOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/operations.ts b/sdk/appplatform/arm-appplatform/src/operations/operations.ts index 844ad5e54bed..da683893261f 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/operations.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailableOperations + bodyMapper: Mappers.AvailableOperations, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailableOperations + bodyMapper: Mappers.AvailableOperations, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts index aede8603928e..b2e534bfde84 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,7 +28,7 @@ import { PredefinedAcceleratorsGetResponse, PredefinedAcceleratorsDisableOptionalParams, PredefinedAcceleratorsEnableOptionalParams, - PredefinedAcceleratorsListNextResponse + PredefinedAcceleratorsListNextResponse, } from "../models"; /// @@ -56,13 +56,13 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: PredefinedAcceleratorsListOptionalParams + options?: PredefinedAcceleratorsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, applicationAcceleratorName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName, applicationAcceleratorName, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, options?: PredefinedAcceleratorsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PredefinedAcceleratorsListResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { resourceGroupName, serviceName, applicationAcceleratorName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName, applicationAcceleratorName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,13 +126,13 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: PredefinedAcceleratorsListOptionalParams + options?: PredefinedAcceleratorsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, applicationAcceleratorName, - options + options, )) { yield* page; } @@ -150,11 +150,11 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: PredefinedAcceleratorsListOptionalParams + options?: PredefinedAcceleratorsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, applicationAcceleratorName, options }, - listOperationSpec + listOperationSpec, ); } @@ -172,7 +172,7 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsGetOptionalParams + options?: PredefinedAcceleratorsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -180,9 +180,9 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName, applicationAcceleratorName, predefinedAcceleratorName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -200,25 +200,24 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsDisableOptionalParams + options?: PredefinedAcceleratorsDisableOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -227,8 +226,8 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -236,8 +235,8 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -248,13 +247,13 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName, applicationAcceleratorName, predefinedAcceleratorName, - options + options, }, - spec: disableOperationSpec + spec: disableOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -274,14 +273,14 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsDisableOptionalParams + options?: PredefinedAcceleratorsDisableOptionalParams, ): Promise { const poller = await this.beginDisable( resourceGroupName, serviceName, applicationAcceleratorName, predefinedAcceleratorName, - options + options, ); return poller.pollUntilDone(); } @@ -300,25 +299,24 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsEnableOptionalParams + options?: PredefinedAcceleratorsEnableOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -327,8 +325,8 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -336,8 +334,8 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -348,13 +346,13 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName, applicationAcceleratorName, predefinedAcceleratorName, - options + options, }, - spec: enableOperationSpec + spec: enableOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -374,14 +372,14 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsEnableOptionalParams + options?: PredefinedAcceleratorsEnableOptionalParams, ): Promise { const poller = await this.beginEnable( resourceGroupName, serviceName, applicationAcceleratorName, predefinedAcceleratorName, - options + options, ); return poller.pollUntilDone(); } @@ -400,7 +398,7 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, nextLink: string, - options?: PredefinedAcceleratorsListNextOptionalParams + options?: PredefinedAcceleratorsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -408,9 +406,9 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { serviceName, applicationAcceleratorName, nextLink, - options + options, }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -418,16 +416,15 @@ export class PredefinedAcceleratorsImpl implements PredefinedAccelerators { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PredefinedAcceleratorResourceCollection + bodyMapper: Mappers.PredefinedAcceleratorResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -435,22 +432,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.applicationAcceleratorName + Parameters.applicationAcceleratorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PredefinedAcceleratorResource + bodyMapper: Mappers.PredefinedAcceleratorResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -459,14 +455,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.applicationAcceleratorName, - Parameters.predefinedAcceleratorName + Parameters.predefinedAcceleratorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const disableOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/disable", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/disable", httpMethod: "POST", responses: { 200: {}, @@ -474,8 +469,8 @@ const disableOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -484,14 +479,13 @@ const disableOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.applicationAcceleratorName, - Parameters.predefinedAcceleratorName + Parameters.predefinedAcceleratorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const enableOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/enable", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/enable", httpMethod: "POST", responses: { 200: {}, @@ -499,8 +493,8 @@ const enableOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -509,21 +503,21 @@ const enableOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.applicationAcceleratorName, - Parameters.predefinedAcceleratorName + Parameters.predefinedAcceleratorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PredefinedAcceleratorResourceCollection + bodyMapper: Mappers.PredefinedAcceleratorResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -531,8 +525,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.nextLink, - Parameters.applicationAcceleratorName + Parameters.applicationAcceleratorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts b/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts index 91c5c174c8e0..d360d2179fb1 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { RuntimeVersionsListRuntimeVersionsOptionalParams, - RuntimeVersionsListRuntimeVersionsResponse + RuntimeVersionsListRuntimeVersionsResponse, } from "../models"; /** Class containing RuntimeVersions operations. */ @@ -33,11 +33,11 @@ export class RuntimeVersionsImpl implements RuntimeVersions { * @param options The options parameters. */ listRuntimeVersions( - options?: RuntimeVersionsListRuntimeVersionsOptionalParams + options?: RuntimeVersionsListRuntimeVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listRuntimeVersionsOperationSpec + listRuntimeVersionsOperationSpec, ); } } @@ -49,14 +49,14 @@ const listRuntimeVersionsOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailableRuntimeVersions + bodyMapper: Mappers.AvailableRuntimeVersions, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts b/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts index c438e5bbc349..98b22451732e 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { ServiceRegistriesCreateOrUpdateOptionalParams, ServiceRegistriesCreateOrUpdateResponse, ServiceRegistriesDeleteOptionalParams, - ServiceRegistriesListNextResponse + ServiceRegistriesListNextResponse, } from "../models"; /// @@ -55,7 +55,7 @@ export class ServiceRegistriesImpl implements ServiceRegistries { public list( resourceGroupName: string, serviceName: string, - options?: ServiceRegistriesListOptionalParams + options?: ServiceRegistriesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -73,9 +73,9 @@ export class ServiceRegistriesImpl implements ServiceRegistries { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +83,7 @@ export class ServiceRegistriesImpl implements ServiceRegistries { resourceGroupName: string, serviceName: string, options?: ServiceRegistriesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ServiceRegistriesListResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class ServiceRegistriesImpl implements ServiceRegistries { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -111,12 +111,12 @@ export class ServiceRegistriesImpl implements ServiceRegistries { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: ServiceRegistriesListOptionalParams + options?: ServiceRegistriesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -134,11 +134,11 @@ export class ServiceRegistriesImpl implements ServiceRegistries { resourceGroupName: string, serviceName: string, serviceRegistryName: string, - options?: ServiceRegistriesGetOptionalParams + options?: ServiceRegistriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, serviceRegistryName, options }, - getOperationSpec + getOperationSpec, ); } @@ -154,7 +154,7 @@ export class ServiceRegistriesImpl implements ServiceRegistries { resourceGroupName: string, serviceName: string, serviceRegistryName: string, - options?: ServiceRegistriesCreateOrUpdateOptionalParams + options?: ServiceRegistriesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -163,21 +163,20 @@ export class ServiceRegistriesImpl implements ServiceRegistries { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -186,8 +185,8 @@ export class ServiceRegistriesImpl implements ServiceRegistries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -195,22 +194,22 @@ export class ServiceRegistriesImpl implements ServiceRegistries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, serviceRegistryName, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ServiceRegistriesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -228,13 +227,13 @@ export class ServiceRegistriesImpl implements ServiceRegistries { resourceGroupName: string, serviceName: string, serviceRegistryName: string, - options?: ServiceRegistriesCreateOrUpdateOptionalParams + options?: ServiceRegistriesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, serviceRegistryName, - options + options, ); return poller.pollUntilDone(); } @@ -251,25 +250,24 @@ export class ServiceRegistriesImpl implements ServiceRegistries { resourceGroupName: string, serviceName: string, serviceRegistryName: string, - options?: ServiceRegistriesDeleteOptionalParams + options?: ServiceRegistriesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -278,8 +276,8 @@ export class ServiceRegistriesImpl implements ServiceRegistries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -287,19 +285,19 @@ export class ServiceRegistriesImpl implements ServiceRegistries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, serviceRegistryName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -317,13 +315,13 @@ export class ServiceRegistriesImpl implements ServiceRegistries { resourceGroupName: string, serviceName: string, serviceRegistryName: string, - options?: ServiceRegistriesDeleteOptionalParams + options?: ServiceRegistriesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, serviceRegistryName, - options + options, ); return poller.pollUntilDone(); } @@ -338,11 +336,11 @@ export class ServiceRegistriesImpl implements ServiceRegistries { private _list( resourceGroupName: string, serviceName: string, - options?: ServiceRegistriesListOptionalParams + options?: ServiceRegistriesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -358,11 +356,11 @@ export class ServiceRegistriesImpl implements ServiceRegistries { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ServiceRegistriesListNextOptionalParams + options?: ServiceRegistriesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -370,16 +368,15 @@ export class ServiceRegistriesImpl implements ServiceRegistries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServiceRegistryResource + bodyMapper: Mappers.ServiceRegistryResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -387,31 +384,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.serviceRegistryName + Parameters.serviceRegistryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ServiceRegistryResource + bodyMapper: Mappers.ServiceRegistryResource, }, 201: { - bodyMapper: Mappers.ServiceRegistryResource + bodyMapper: Mappers.ServiceRegistryResource, }, 202: { - bodyMapper: Mappers.ServiceRegistryResource + bodyMapper: Mappers.ServiceRegistryResource, }, 204: { - bodyMapper: Mappers.ServiceRegistryResource + bodyMapper: Mappers.ServiceRegistryResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -419,14 +415,13 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.serviceRegistryName + Parameters.serviceRegistryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", httpMethod: "DELETE", responses: { 200: {}, @@ -434,8 +429,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -443,51 +438,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.serviceRegistryName + Parameters.serviceRegistryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServiceRegistryResourceCollection + bodyMapper: Mappers.ServiceRegistryResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServiceRegistryResourceCollection + bodyMapper: Mappers.ServiceRegistryResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/services.ts b/sdk/appplatform/arm-appplatform/src/operations/services.ts index b833ff76d271..4f6c50f3a621 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/services.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/services.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -65,7 +65,7 @@ import { ServicesListSupportedApmTypesNextResponse, ServicesListBySubscriptionNextResponse, ServicesListNextResponse, - ServicesListSupportedServerVersionsNextResponse + ServicesListSupportedServerVersionsNextResponse, } from "../models"; /// @@ -91,12 +91,12 @@ export class ServicesImpl implements Services { public listSupportedApmTypes( resourceGroupName: string, serviceName: string, - options?: ServicesListSupportedApmTypesOptionalParams + options?: ServicesListSupportedApmTypesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSupportedApmTypesPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -113,9 +113,9 @@ export class ServicesImpl implements Services { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -123,7 +123,7 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, options?: ServicesListSupportedApmTypesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ServicesListSupportedApmTypesResponse; let continuationToken = settings?.continuationToken; @@ -131,7 +131,7 @@ export class ServicesImpl implements Services { result = await this._listSupportedApmTypes( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -143,7 +143,7 @@ export class ServicesImpl implements Services { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -155,12 +155,12 @@ export class ServicesImpl implements Services { private async *listSupportedApmTypesPagingAll( resourceGroupName: string, serviceName: string, - options?: ServicesListSupportedApmTypesOptionalParams + options?: ServicesListSupportedApmTypesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSupportedApmTypesPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -171,7 +171,7 @@ export class ServicesImpl implements Services { * @param options The options parameters. */ public listBySubscription( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -186,13 +186,13 @@ export class ServicesImpl implements Services { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ServicesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ServicesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -213,7 +213,7 @@ export class ServicesImpl implements Services { } private async *listBySubscriptionPagingAll( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -228,7 +228,7 @@ export class ServicesImpl implements Services { */ public list( resourceGroupName: string, - options?: ServicesListOptionalParams + options?: ServicesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -243,14 +243,14 @@ export class ServicesImpl implements Services { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: ServicesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ServicesListResponse; let continuationToken = settings?.continuationToken; @@ -265,7 +265,7 @@ export class ServicesImpl implements Services { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -276,7 +276,7 @@ export class ServicesImpl implements Services { private async *listPagingAll( resourceGroupName: string, - options?: ServicesListOptionalParams + options?: ServicesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -293,12 +293,12 @@ export class ServicesImpl implements Services { public listSupportedServerVersions( resourceGroupName: string, serviceName: string, - options?: ServicesListSupportedServerVersionsOptionalParams + options?: ServicesListSupportedServerVersionsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSupportedServerVersionsPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -315,9 +315,9 @@ export class ServicesImpl implements Services { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -325,7 +325,7 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, options?: ServicesListSupportedServerVersionsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ServicesListSupportedServerVersionsResponse; let continuationToken = settings?.continuationToken; @@ -333,7 +333,7 @@ export class ServicesImpl implements Services { result = await this._listSupportedServerVersions( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -345,7 +345,7 @@ export class ServicesImpl implements Services { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -357,12 +357,12 @@ export class ServicesImpl implements Services { private async *listSupportedServerVersionsPagingAll( resourceGroupName: string, serviceName: string, - options?: ServicesListSupportedServerVersionsOptionalParams + options?: ServicesListSupportedServerVersionsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSupportedServerVersionsPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -378,11 +378,11 @@ export class ServicesImpl implements Services { get( resourceGroupName: string, serviceName: string, - options?: ServicesGetOptionalParams + options?: ServicesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -398,7 +398,7 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, resource: ServiceResource, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -407,21 +407,20 @@ export class ServicesImpl implements Services { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -430,8 +429,8 @@ export class ServicesImpl implements Services { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -439,22 +438,22 @@ export class ServicesImpl implements Services { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, resource, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ServicesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -472,13 +471,13 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, resource: ServiceResource, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, resource, - options + options, ); return poller.pollUntilDone(); } @@ -493,25 +492,24 @@ export class ServicesImpl implements Services { async beginDelete( resourceGroupName: string, serviceName: string, - options?: ServicesDeleteOptionalParams + options?: ServicesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -520,8 +518,8 @@ export class ServicesImpl implements Services { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -529,19 +527,19 @@ export class ServicesImpl implements Services { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -557,12 +555,12 @@ export class ServicesImpl implements Services { async beginDeleteAndWait( resourceGroupName: string, serviceName: string, - options?: ServicesDeleteOptionalParams + options?: ServicesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -579,7 +577,7 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, resource: ServiceResource, - options?: ServicesUpdateOptionalParams + options?: ServicesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -588,21 +586,20 @@ export class ServicesImpl implements Services { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -611,8 +608,8 @@ export class ServicesImpl implements Services { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -620,22 +617,22 @@ export class ServicesImpl implements Services { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, resource, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ServicesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -653,13 +650,13 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, resource: ServiceResource, - options?: ServicesUpdateOptionalParams + options?: ServicesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, serviceName, resource, - options + options, ); return poller.pollUntilDone(); } @@ -674,11 +671,11 @@ export class ServicesImpl implements Services { listTestKeys( resourceGroupName: string, serviceName: string, - options?: ServicesListTestKeysOptionalParams + options?: ServicesListTestKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listTestKeysOperationSpec + listTestKeysOperationSpec, ); } @@ -694,11 +691,11 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, regenerateTestKeyRequest: RegenerateTestKeyRequestPayload, - options?: ServicesRegenerateTestKeyOptionalParams + options?: ServicesRegenerateTestKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, regenerateTestKeyRequest, options }, - regenerateTestKeyOperationSpec + regenerateTestKeyOperationSpec, ); } @@ -712,11 +709,11 @@ export class ServicesImpl implements Services { disableTestEndpoint( resourceGroupName: string, serviceName: string, - options?: ServicesDisableTestEndpointOptionalParams + options?: ServicesDisableTestEndpointOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - disableTestEndpointOperationSpec + disableTestEndpointOperationSpec, ); } @@ -730,11 +727,11 @@ export class ServicesImpl implements Services { enableTestEndpoint( resourceGroupName: string, serviceName: string, - options?: ServicesEnableTestEndpointOptionalParams + options?: ServicesEnableTestEndpointOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - enableTestEndpointOperationSpec + enableTestEndpointOperationSpec, ); } @@ -748,25 +745,24 @@ export class ServicesImpl implements Services { async beginStop( resourceGroupName: string, serviceName: string, - options?: ServicesStopOptionalParams + options?: ServicesStopOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -775,8 +771,8 @@ export class ServicesImpl implements Services { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -784,19 +780,19 @@ export class ServicesImpl implements Services { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: stopOperationSpec + spec: stopOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -812,12 +808,12 @@ export class ServicesImpl implements Services { async beginStopAndWait( resourceGroupName: string, serviceName: string, - options?: ServicesStopOptionalParams + options?: ServicesStopOptionalParams, ): Promise { const poller = await this.beginStop( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -832,25 +828,24 @@ export class ServicesImpl implements Services { async beginStart( resourceGroupName: string, serviceName: string, - options?: ServicesStartOptionalParams + options?: ServicesStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -859,8 +854,8 @@ export class ServicesImpl implements Services { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -868,19 +863,19 @@ export class ServicesImpl implements Services { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -896,12 +891,12 @@ export class ServicesImpl implements Services { async beginStartAndWait( resourceGroupName: string, serviceName: string, - options?: ServicesStartOptionalParams + options?: ServicesStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -916,7 +911,7 @@ export class ServicesImpl implements Services { async beginFlushVnetDnsSetting( resourceGroupName: string, serviceName: string, - options?: ServicesFlushVnetDnsSettingOptionalParams + options?: ServicesFlushVnetDnsSettingOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -925,21 +920,20 @@ export class ServicesImpl implements Services { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -948,8 +942,8 @@ export class ServicesImpl implements Services { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -957,15 +951,15 @@ export class ServicesImpl implements Services { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: flushVnetDnsSettingOperationSpec + spec: flushVnetDnsSettingOperationSpec, }); const poller = await createHttpPoller< ServicesFlushVnetDnsSettingResponse, @@ -973,7 +967,7 @@ export class ServicesImpl implements Services { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -989,12 +983,12 @@ export class ServicesImpl implements Services { async beginFlushVnetDnsSettingAndWait( resourceGroupName: string, serviceName: string, - options?: ServicesFlushVnetDnsSettingOptionalParams + options?: ServicesFlushVnetDnsSettingOptionalParams, ): Promise { const poller = await this.beginFlushVnetDnsSetting( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -1009,11 +1003,11 @@ export class ServicesImpl implements Services { private _listSupportedApmTypes( resourceGroupName: string, serviceName: string, - options?: ServicesListSupportedApmTypesOptionalParams + options?: ServicesListSupportedApmTypesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listSupportedApmTypesOperationSpec + listSupportedApmTypesOperationSpec, ); } @@ -1027,11 +1021,11 @@ export class ServicesImpl implements Services { listGloballyEnabledApms( resourceGroupName: string, serviceName: string, - options?: ServicesListGloballyEnabledApmsOptionalParams + options?: ServicesListGloballyEnabledApmsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listGloballyEnabledApmsOperationSpec + listGloballyEnabledApmsOperationSpec, ); } @@ -1047,25 +1041,24 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, apm: ApmReference, - options?: ServicesEnableApmGloballyOptionalParams + options?: ServicesEnableApmGloballyOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1074,8 +1067,8 @@ export class ServicesImpl implements Services { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1083,20 +1076,20 @@ export class ServicesImpl implements Services { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, apm, options }, - spec: enableApmGloballyOperationSpec + spec: enableApmGloballyOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -1114,13 +1107,13 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, apm: ApmReference, - options?: ServicesEnableApmGloballyOptionalParams + options?: ServicesEnableApmGloballyOptionalParams, ): Promise { const poller = await this.beginEnableApmGlobally( resourceGroupName, serviceName, apm, - options + options, ); return poller.pollUntilDone(); } @@ -1137,25 +1130,24 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, apm: ApmReference, - options?: ServicesDisableApmGloballyOptionalParams + options?: ServicesDisableApmGloballyOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1164,8 +1156,8 @@ export class ServicesImpl implements Services { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1173,20 +1165,20 @@ export class ServicesImpl implements Services { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, apm, options }, - spec: disableApmGloballyOperationSpec + spec: disableApmGloballyOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -1204,13 +1196,13 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, apm: ApmReference, - options?: ServicesDisableApmGloballyOptionalParams + options?: ServicesDisableApmGloballyOptionalParams, ): Promise { const poller = await this.beginDisableApmGlobally( resourceGroupName, serviceName, apm, - options + options, ); return poller.pollUntilDone(); } @@ -1224,11 +1216,11 @@ export class ServicesImpl implements Services { checkNameAvailability( location: string, availabilityParameters: NameAvailabilityParameters, - options?: ServicesCheckNameAvailabilityOptionalParams + options?: ServicesCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, availabilityParameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -1237,11 +1229,11 @@ export class ServicesImpl implements Services { * @param options The options parameters. */ private _listBySubscription( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -1253,11 +1245,11 @@ export class ServicesImpl implements Services { */ private _list( resourceGroupName: string, - options?: ServicesListOptionalParams + options?: ServicesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -1271,11 +1263,11 @@ export class ServicesImpl implements Services { private _listSupportedServerVersions( resourceGroupName: string, serviceName: string, - options?: ServicesListSupportedServerVersionsOptionalParams + options?: ServicesListSupportedServerVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listSupportedServerVersionsOperationSpec + listSupportedServerVersionsOperationSpec, ); } @@ -1291,11 +1283,11 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ServicesListSupportedApmTypesNextOptionalParams + options?: ServicesListSupportedApmTypesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listSupportedApmTypesNextOperationSpec + listSupportedApmTypesNextOperationSpec, ); } @@ -1306,11 +1298,11 @@ export class ServicesImpl implements Services { */ private _listBySubscriptionNext( nextLink: string, - options?: ServicesListBySubscriptionNextOptionalParams + options?: ServicesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -1324,11 +1316,11 @@ export class ServicesImpl implements Services { private _listNext( resourceGroupName: string, nextLink: string, - options?: ServicesListNextOptionalParams + options?: ServicesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -1345,11 +1337,11 @@ export class ServicesImpl implements Services { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ServicesListSupportedServerVersionsNextOptionalParams + options?: ServicesListSupportedServerVersionsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listSupportedServerVersionsNextOperationSpec + listSupportedServerVersionsNextOperationSpec, ); } } @@ -1357,47 +1349,45 @@ export class ServicesImpl implements Services { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServiceResource + bodyMapper: Mappers.ServiceResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ServiceResource + bodyMapper: Mappers.ServiceResource, }, 201: { - bodyMapper: Mappers.ServiceResource + bodyMapper: Mappers.ServiceResource, }, 202: { - bodyMapper: Mappers.ServiceResource + bodyMapper: Mappers.ServiceResource, }, 204: { - bodyMapper: Mappers.ServiceResource + bodyMapper: Mappers.ServiceResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.resource, queryParameters: [Parameters.apiVersion], @@ -1405,15 +1395,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1421,39 +1410,38 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ServiceResource + bodyMapper: Mappers.ServiceResource, }, 201: { - bodyMapper: Mappers.ServiceResource + bodyMapper: Mappers.ServiceResource, }, 202: { - bodyMapper: Mappers.ServiceResource + bodyMapper: Mappers.ServiceResource, }, 204: { - bodyMapper: Mappers.ServiceResource + bodyMapper: Mappers.ServiceResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.resource, queryParameters: [Parameters.apiVersion], @@ -1461,45 +1449,43 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listTestKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.TestKeys + bodyMapper: Mappers.TestKeys, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateTestKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.TestKeys + bodyMapper: Mappers.TestKeys, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.regenerateTestKeyRequest, queryParameters: [Parameters.apiVersion], @@ -1507,57 +1493,54 @@ const regenerateTestKeyOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const disableTestEndpointOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const enableTestEndpointOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.TestKeys + bodyMapper: Mappers.TestKeys, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const stopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", httpMethod: "POST", responses: { 200: {}, @@ -1565,28 +1548,27 @@ const stopOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, 404: { - isError: true + isError: true, }, 409: { - isError: true + isError: true, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", httpMethod: "POST", responses: { 200: {}, @@ -1594,103 +1576,99 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, 404: { - isError: true + isError: true, }, 409: { - isError: true + isError: true, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const flushVnetDnsSettingOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/flushVirtualNetworkDnsSettings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/flushVirtualNetworkDnsSettings", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.ServicesFlushVnetDnsSettingHeaders + headersMapper: Mappers.ServicesFlushVnetDnsSettingHeaders, }, 201: { - headersMapper: Mappers.ServicesFlushVnetDnsSettingHeaders + headersMapper: Mappers.ServicesFlushVnetDnsSettingHeaders, }, 202: { - headersMapper: Mappers.ServicesFlushVnetDnsSettingHeaders + headersMapper: Mappers.ServicesFlushVnetDnsSettingHeaders, }, 204: { - headersMapper: Mappers.ServicesFlushVnetDnsSettingHeaders + headersMapper: Mappers.ServicesFlushVnetDnsSettingHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedApmTypesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedApmTypes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedApmTypes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedApmTypes + bodyMapper: Mappers.SupportedApmTypes, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listGloballyEnabledApmsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listGloballyEnabledApms", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listGloballyEnabledApms", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GloballyEnabledApms + bodyMapper: Mappers.GloballyEnabledApms, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const enableApmGloballyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableApmGlobally", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableApmGlobally", httpMethod: "POST", responses: { 200: {}, @@ -1698,8 +1676,8 @@ const enableApmGloballyOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.apm, queryParameters: [Parameters.apiVersion], @@ -1707,15 +1685,14 @@ const enableApmGloballyOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const disableApmGloballyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableApmGlobally", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableApmGlobally", httpMethod: "POST", responses: { 200: {}, @@ -1723,8 +1700,8 @@ const disableApmGloballyOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.apm, queryParameters: [Parameters.apiVersion], @@ -1732,173 +1709,169 @@ const disableApmGloballyOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NameAvailability + bodyMapper: Mappers.NameAvailability, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.availabilityParameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServiceResourceList + bodyMapper: Mappers.ServiceResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServiceResourceList + bodyMapper: Mappers.ServiceResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedServerVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedServerVersions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedServerVersions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedServerVersions + bodyMapper: Mappers.SupportedServerVersions, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedApmTypesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedApmTypes + bodyMapper: Mappers.SupportedApmTypes, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServiceResourceList + bodyMapper: Mappers.ServiceResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServiceResourceList + bodyMapper: Mappers.ServiceResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedServerVersionsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedServerVersions + bodyMapper: Mappers.SupportedServerVersions, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/skus.ts b/sdk/appplatform/arm-appplatform/src/operations/skus.ts index c49a190801bf..255934fb11dd 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/skus.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/skus.ts @@ -18,7 +18,7 @@ import { SkusListNextOptionalParams, SkusListOptionalParams, SkusListResponse, - SkusListNextResponse + SkusListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class SkusImpl implements Skus { * @param options The options parameters. */ public list( - options?: SkusListOptionalParams + options?: SkusListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class SkusImpl implements Skus { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: SkusListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SkusListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class SkusImpl implements Skus { } private async *listPagingAll( - options?: SkusListOptionalParams + options?: SkusListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -103,11 +103,11 @@ export class SkusImpl implements Skus { */ private _listNext( nextLink: string, - options?: SkusListNextOptionalParams + options?: SkusListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -119,33 +119,33 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkuCollection + bodyMapper: Mappers.ResourceSkuCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkuCollection + bodyMapper: Mappers.ResourceSkuCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operations/storages.ts b/sdk/appplatform/arm-appplatform/src/operations/storages.ts index d60dc52c4b0a..ae390d744baa 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/storages.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/storages.ts @@ -16,7 +16,7 @@ import { AppPlatformManagementClient } from "../appPlatformManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { StoragesCreateOrUpdateOptionalParams, StoragesCreateOrUpdateResponse, StoragesDeleteOptionalParams, - StoragesListNextResponse + StoragesListNextResponse, } from "../models"; /// @@ -55,7 +55,7 @@ export class StoragesImpl implements Storages { public list( resourceGroupName: string, serviceName: string, - options?: StoragesListOptionalParams + options?: StoragesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -73,9 +73,9 @@ export class StoragesImpl implements Storages { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +83,7 @@ export class StoragesImpl implements Storages { resourceGroupName: string, serviceName: string, options?: StoragesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: StoragesListResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class StoragesImpl implements Storages { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -111,12 +111,12 @@ export class StoragesImpl implements Storages { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: StoragesListOptionalParams + options?: StoragesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -134,11 +134,11 @@ export class StoragesImpl implements Storages { resourceGroupName: string, serviceName: string, storageName: string, - options?: StoragesGetOptionalParams + options?: StoragesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, storageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -156,7 +156,7 @@ export class StoragesImpl implements Storages { serviceName: string, storageName: string, storageResource: StorageResource, - options?: StoragesCreateOrUpdateOptionalParams + options?: StoragesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -165,21 +165,20 @@ export class StoragesImpl implements Storages { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -188,8 +187,8 @@ export class StoragesImpl implements Storages { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -197,8 +196,8 @@ export class StoragesImpl implements Storages { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -209,16 +208,16 @@ export class StoragesImpl implements Storages { serviceName, storageName, storageResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< StoragesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -238,14 +237,14 @@ export class StoragesImpl implements Storages { serviceName: string, storageName: string, storageResource: StorageResource, - options?: StoragesCreateOrUpdateOptionalParams + options?: StoragesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, storageName, storageResource, - options + options, ); return poller.pollUntilDone(); } @@ -262,25 +261,24 @@ export class StoragesImpl implements Storages { resourceGroupName: string, serviceName: string, storageName: string, - options?: StoragesDeleteOptionalParams + options?: StoragesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -289,8 +287,8 @@ export class StoragesImpl implements Storages { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -298,19 +296,19 @@ export class StoragesImpl implements Storages { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, storageName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -328,13 +326,13 @@ export class StoragesImpl implements Storages { resourceGroupName: string, serviceName: string, storageName: string, - options?: StoragesDeleteOptionalParams + options?: StoragesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, storageName, - options + options, ); return poller.pollUntilDone(); } @@ -349,11 +347,11 @@ export class StoragesImpl implements Storages { private _list( resourceGroupName: string, serviceName: string, - options?: StoragesListOptionalParams + options?: StoragesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -369,11 +367,11 @@ export class StoragesImpl implements Storages { resourceGroupName: string, serviceName: string, nextLink: string, - options?: StoragesListNextOptionalParams + options?: StoragesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -381,16 +379,15 @@ export class StoragesImpl implements Storages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageResource + bodyMapper: Mappers.StorageResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -398,31 +395,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.storageName + Parameters.storageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.StorageResource + bodyMapper: Mappers.StorageResource, }, 201: { - bodyMapper: Mappers.StorageResource + bodyMapper: Mappers.StorageResource, }, 202: { - bodyMapper: Mappers.StorageResource + bodyMapper: Mappers.StorageResource, }, 204: { - bodyMapper: Mappers.StorageResource + bodyMapper: Mappers.StorageResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.storageResource, queryParameters: [Parameters.apiVersion], @@ -431,15 +427,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.storageName + Parameters.storageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", httpMethod: "DELETE", responses: { 200: {}, @@ -447,8 +442,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -456,51 +451,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.storageName + Parameters.storageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageResourceCollection + bodyMapper: Mappers.StorageResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageResourceCollection + bodyMapper: Mappers.StorageResourceCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts index 9e680d05593d..fb44582b9fbf 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts @@ -15,7 +15,7 @@ import { ApiPortalCustomDomainsGetResponse, ApiPortalCustomDomainsCreateOrUpdateOptionalParams, ApiPortalCustomDomainsCreateOrUpdateResponse, - ApiPortalCustomDomainsDeleteOptionalParams + ApiPortalCustomDomainsDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface ApiPortalCustomDomains { resourceGroupName: string, serviceName: string, apiPortalName: string, - options?: ApiPortalCustomDomainsListOptionalParams + options?: ApiPortalCustomDomainsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the API portal custom domain. @@ -49,7 +49,7 @@ export interface ApiPortalCustomDomains { serviceName: string, apiPortalName: string, domainName: string, - options?: ApiPortalCustomDomainsGetOptionalParams + options?: ApiPortalCustomDomainsGetOptionalParams, ): Promise; /** * Create or update the API portal custom domain. @@ -67,7 +67,7 @@ export interface ApiPortalCustomDomains { apiPortalName: string, domainName: string, apiPortalCustomDomainResource: ApiPortalCustomDomainResource, - options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams + options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -90,7 +90,7 @@ export interface ApiPortalCustomDomains { apiPortalName: string, domainName: string, apiPortalCustomDomainResource: ApiPortalCustomDomainResource, - options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams + options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the API portal custom domain. @@ -106,7 +106,7 @@ export interface ApiPortalCustomDomains { serviceName: string, apiPortalName: string, domainName: string, - options?: ApiPortalCustomDomainsDeleteOptionalParams + options?: ApiPortalCustomDomainsDeleteOptionalParams, ): Promise, void>>; /** * Delete the API portal custom domain. @@ -122,6 +122,6 @@ export interface ApiPortalCustomDomains { serviceName: string, apiPortalName: string, domainName: string, - options?: ApiPortalCustomDomainsDeleteOptionalParams + options?: ApiPortalCustomDomainsDeleteOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts index bf5f1584605d..39c7004e3990 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts @@ -18,7 +18,7 @@ import { ApiPortalsDeleteOptionalParams, CustomDomainValidatePayload, ApiPortalsValidateDomainOptionalParams, - ApiPortalsValidateDomainResponse + ApiPortalsValidateDomainResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface ApiPortals { list( resourceGroupName: string, serviceName: string, - options?: ApiPortalsListOptionalParams + options?: ApiPortalsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the API portal and its properties. @@ -48,7 +48,7 @@ export interface ApiPortals { resourceGroupName: string, serviceName: string, apiPortalName: string, - options?: ApiPortalsGetOptionalParams + options?: ApiPortalsGetOptionalParams, ): Promise; /** * Create the default API portal or update the existing API portal. @@ -64,7 +64,7 @@ export interface ApiPortals { serviceName: string, apiPortalName: string, apiPortalResource: ApiPortalResource, - options?: ApiPortalsCreateOrUpdateOptionalParams + options?: ApiPortalsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -85,7 +85,7 @@ export interface ApiPortals { serviceName: string, apiPortalName: string, apiPortalResource: ApiPortalResource, - options?: ApiPortalsCreateOrUpdateOptionalParams + options?: ApiPortalsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the default API portal. @@ -99,7 +99,7 @@ export interface ApiPortals { resourceGroupName: string, serviceName: string, apiPortalName: string, - options?: ApiPortalsDeleteOptionalParams + options?: ApiPortalsDeleteOptionalParams, ): Promise, void>>; /** * Delete the default API portal. @@ -113,7 +113,7 @@ export interface ApiPortals { resourceGroupName: string, serviceName: string, apiPortalName: string, - options?: ApiPortalsDeleteOptionalParams + options?: ApiPortalsDeleteOptionalParams, ): Promise; /** * Check the domains are valid as well as not in use. @@ -129,6 +129,6 @@ export interface ApiPortals { serviceName: string, apiPortalName: string, validatePayload: CustomDomainValidatePayload, - options?: ApiPortalsValidateDomainOptionalParams + options?: ApiPortalsValidateDomainOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apms.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apms.ts index da3e1d3a5a27..ce6b096fe075 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apms.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apms.ts @@ -18,7 +18,7 @@ import { ApmsDeleteOptionalParams, ApmsDeleteResponse, ApmsListSecretKeysOptionalParams, - ApmsListSecretKeysResponse + ApmsListSecretKeysResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Apms { list( resourceGroupName: string, serviceName: string, - options?: ApmsListOptionalParams + options?: ApmsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the APM by name. @@ -48,7 +48,7 @@ export interface Apms { resourceGroupName: string, serviceName: string, apmName: string, - options?: ApmsGetOptionalParams + options?: ApmsGetOptionalParams, ): Promise; /** * Create or update an APM. @@ -64,7 +64,7 @@ export interface Apms { serviceName: string, apmName: string, apmResource: ApmResource, - options?: ApmsCreateOrUpdateOptionalParams + options?: ApmsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -85,7 +85,7 @@ export interface Apms { serviceName: string, apmName: string, apmResource: ApmResource, - options?: ApmsCreateOrUpdateOptionalParams + options?: ApmsCreateOrUpdateOptionalParams, ): Promise; /** * Operation to delete an APM @@ -99,7 +99,7 @@ export interface Apms { resourceGroupName: string, serviceName: string, apmName: string, - options?: ApmsDeleteOptionalParams + options?: ApmsDeleteOptionalParams, ): Promise< SimplePollerLike, ApmsDeleteResponse> >; @@ -115,7 +115,7 @@ export interface Apms { resourceGroupName: string, serviceName: string, apmName: string, - options?: ApmsDeleteOptionalParams + options?: ApmsDeleteOptionalParams, ): Promise; /** * List keys of APM sensitive properties. @@ -129,6 +129,6 @@ export interface Apms { resourceGroupName: string, serviceName: string, apmName: string, - options?: ApmsListSecretKeysOptionalParams + options?: ApmsListSecretKeysOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts index 936ecf154f08..d187bd4ee51d 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts @@ -16,7 +16,7 @@ import { ApplicationAcceleratorsCreateOrUpdateOptionalParams, ApplicationAcceleratorsCreateOrUpdateResponse, ApplicationAcceleratorsDeleteOptionalParams, - ApplicationAcceleratorsDeleteResponse + ApplicationAcceleratorsDeleteResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface ApplicationAccelerators { list( resourceGroupName: string, serviceName: string, - options?: ApplicationAcceleratorsListOptionalParams + options?: ApplicationAcceleratorsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the application accelerator. @@ -46,7 +46,7 @@ export interface ApplicationAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: ApplicationAcceleratorsGetOptionalParams + options?: ApplicationAcceleratorsGetOptionalParams, ): Promise; /** * Create or update the application accelerator. @@ -62,7 +62,7 @@ export interface ApplicationAccelerators { serviceName: string, applicationAcceleratorName: string, applicationAcceleratorResource: ApplicationAcceleratorResource, - options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams + options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,7 +83,7 @@ export interface ApplicationAccelerators { serviceName: string, applicationAcceleratorName: string, applicationAcceleratorResource: ApplicationAcceleratorResource, - options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams + options?: ApplicationAcceleratorsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the application accelerator. @@ -97,7 +97,7 @@ export interface ApplicationAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: ApplicationAcceleratorsDeleteOptionalParams + options?: ApplicationAcceleratorsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,6 +116,6 @@ export interface ApplicationAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: ApplicationAcceleratorsDeleteOptionalParams + options?: ApplicationAcceleratorsDeleteOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts index 503d638848c1..55e1c647c82f 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts @@ -16,7 +16,7 @@ import { ApplicationLiveViewsCreateOrUpdateOptionalParams, ApplicationLiveViewsCreateOrUpdateResponse, ApplicationLiveViewsDeleteOptionalParams, - ApplicationLiveViewsDeleteResponse + ApplicationLiveViewsDeleteResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface ApplicationLiveViews { list( resourceGroupName: string, serviceName: string, - options?: ApplicationLiveViewsListOptionalParams + options?: ApplicationLiveViewsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the Application Live and its properties. @@ -46,7 +46,7 @@ export interface ApplicationLiveViews { resourceGroupName: string, serviceName: string, applicationLiveViewName: string, - options?: ApplicationLiveViewsGetOptionalParams + options?: ApplicationLiveViewsGetOptionalParams, ): Promise; /** * Create the default Application Live View or update the existing Application Live View. @@ -62,7 +62,7 @@ export interface ApplicationLiveViews { serviceName: string, applicationLiveViewName: string, applicationLiveViewResource: ApplicationLiveViewResource, - options?: ApplicationLiveViewsCreateOrUpdateOptionalParams + options?: ApplicationLiveViewsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,7 +83,7 @@ export interface ApplicationLiveViews { serviceName: string, applicationLiveViewName: string, applicationLiveViewResource: ApplicationLiveViewResource, - options?: ApplicationLiveViewsCreateOrUpdateOptionalParams + options?: ApplicationLiveViewsCreateOrUpdateOptionalParams, ): Promise; /** * Disable the default Application Live View. @@ -97,7 +97,7 @@ export interface ApplicationLiveViews { resourceGroupName: string, serviceName: string, applicationLiveViewName: string, - options?: ApplicationLiveViewsDeleteOptionalParams + options?: ApplicationLiveViewsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,6 +116,6 @@ export interface ApplicationLiveViews { resourceGroupName: string, serviceName: string, applicationLiveViewName: string, - options?: ApplicationLiveViewsDeleteOptionalParams + options?: ApplicationLiveViewsDeleteOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts index 5ac6340b3770..59a17177034e 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts @@ -25,7 +25,7 @@ import { AppsSetActiveDeploymentsResponse, CustomDomainValidatePayload, AppsValidateDomainOptionalParams, - AppsValidateDomainResponse + AppsValidateDomainResponse, } from "../models"; /// @@ -41,7 +41,7 @@ export interface Apps { list( resourceGroupName: string, serviceName: string, - options?: AppsListOptionalParams + options?: AppsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get an App and its properties. @@ -55,7 +55,7 @@ export interface Apps { resourceGroupName: string, serviceName: string, appName: string, - options?: AppsGetOptionalParams + options?: AppsGetOptionalParams, ): Promise; /** * Create a new App or update an exiting App. @@ -71,7 +71,7 @@ export interface Apps { serviceName: string, appName: string, appResource: AppResource, - options?: AppsCreateOrUpdateOptionalParams + options?: AppsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -92,7 +92,7 @@ export interface Apps { serviceName: string, appName: string, appResource: AppResource, - options?: AppsCreateOrUpdateOptionalParams + options?: AppsCreateOrUpdateOptionalParams, ): Promise; /** * Operation to delete an App. @@ -106,7 +106,7 @@ export interface Apps { resourceGroupName: string, serviceName: string, appName: string, - options?: AppsDeleteOptionalParams + options?: AppsDeleteOptionalParams, ): Promise, void>>; /** * Operation to delete an App. @@ -120,7 +120,7 @@ export interface Apps { resourceGroupName: string, serviceName: string, appName: string, - options?: AppsDeleteOptionalParams + options?: AppsDeleteOptionalParams, ): Promise; /** * Operation to update an exiting App. @@ -136,7 +136,7 @@ export interface Apps { serviceName: string, appName: string, appResource: AppResource, - options?: AppsUpdateOptionalParams + options?: AppsUpdateOptionalParams, ): Promise< SimplePollerLike, AppsUpdateResponse> >; @@ -154,7 +154,7 @@ export interface Apps { serviceName: string, appName: string, appResource: AppResource, - options?: AppsUpdateOptionalParams + options?: AppsUpdateOptionalParams, ): Promise; /** * Get an resource upload URL for an App, which may be artifacts or source archive. @@ -168,7 +168,7 @@ export interface Apps { resourceGroupName: string, serviceName: string, appName: string, - options?: AppsGetResourceUploadUrlOptionalParams + options?: AppsGetResourceUploadUrlOptionalParams, ): Promise; /** * Set existing Deployment under the app as active @@ -184,7 +184,7 @@ export interface Apps { serviceName: string, appName: string, activeDeploymentCollection: ActiveDeploymentCollection, - options?: AppsSetActiveDeploymentsOptionalParams + options?: AppsSetActiveDeploymentsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -205,7 +205,7 @@ export interface Apps { serviceName: string, appName: string, activeDeploymentCollection: ActiveDeploymentCollection, - options?: AppsSetActiveDeploymentsOptionalParams + options?: AppsSetActiveDeploymentsOptionalParams, ): Promise; /** * Check the resource name is valid as well as not in use. @@ -221,6 +221,6 @@ export interface Apps { serviceName: string, appName: string, validatePayload: CustomDomainValidatePayload, - options?: AppsValidateDomainOptionalParams + options?: AppsValidateDomainOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/bindings.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/bindings.ts index d1a6795dbbef..29fc940adb9e 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/bindings.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/bindings.ts @@ -17,7 +17,7 @@ import { BindingsCreateOrUpdateResponse, BindingsDeleteOptionalParams, BindingsUpdateOptionalParams, - BindingsUpdateResponse + BindingsUpdateResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface Bindings { resourceGroupName: string, serviceName: string, appName: string, - options?: BindingsListOptionalParams + options?: BindingsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a Binding and its properties. @@ -51,7 +51,7 @@ export interface Bindings { serviceName: string, appName: string, bindingName: string, - options?: BindingsGetOptionalParams + options?: BindingsGetOptionalParams, ): Promise; /** * Create a new Binding or update an exiting Binding. @@ -69,7 +69,7 @@ export interface Bindings { appName: string, bindingName: string, bindingResource: BindingResource, - options?: BindingsCreateOrUpdateOptionalParams + options?: BindingsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -92,7 +92,7 @@ export interface Bindings { appName: string, bindingName: string, bindingResource: BindingResource, - options?: BindingsCreateOrUpdateOptionalParams + options?: BindingsCreateOrUpdateOptionalParams, ): Promise; /** * Operation to delete a Binding. @@ -108,7 +108,7 @@ export interface Bindings { serviceName: string, appName: string, bindingName: string, - options?: BindingsDeleteOptionalParams + options?: BindingsDeleteOptionalParams, ): Promise, void>>; /** * Operation to delete a Binding. @@ -124,7 +124,7 @@ export interface Bindings { serviceName: string, appName: string, bindingName: string, - options?: BindingsDeleteOptionalParams + options?: BindingsDeleteOptionalParams, ): Promise; /** * Operation to update an exiting Binding. @@ -142,7 +142,7 @@ export interface Bindings { appName: string, bindingName: string, bindingResource: BindingResource, - options?: BindingsUpdateOptionalParams + options?: BindingsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -165,6 +165,6 @@ export interface Bindings { appName: string, bindingName: string, bindingResource: BindingResource, - options?: BindingsUpdateOptionalParams + options?: BindingsUpdateOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceAgentPool.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceAgentPool.ts index ccc9f5e51dfb..41711ebd5ffb 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceAgentPool.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceAgentPool.ts @@ -14,7 +14,7 @@ import { BuildServiceAgentPoolGetOptionalParams, BuildServiceAgentPoolGetResponse, BuildServiceAgentPoolUpdatePutOptionalParams, - BuildServiceAgentPoolUpdatePutResponse + BuildServiceAgentPoolUpdatePutResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface BuildServiceAgentPool { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceAgentPoolListOptionalParams + options?: BuildServiceAgentPoolListOptionalParams, ): PagedAsyncIterableIterator; /** * Get build service agent pool. @@ -48,7 +48,7 @@ export interface BuildServiceAgentPool { serviceName: string, buildServiceName: string, agentPoolName: string, - options?: BuildServiceAgentPoolGetOptionalParams + options?: BuildServiceAgentPoolGetOptionalParams, ): Promise; /** * Create or update build service agent pool. @@ -66,7 +66,7 @@ export interface BuildServiceAgentPool { buildServiceName: string, agentPoolName: string, agentPoolResource: BuildServiceAgentPoolResource, - options?: BuildServiceAgentPoolUpdatePutOptionalParams + options?: BuildServiceAgentPoolUpdatePutOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -89,6 +89,6 @@ export interface BuildServiceAgentPool { buildServiceName: string, agentPoolName: string, agentPoolResource: BuildServiceAgentPoolResource, - options?: BuildServiceAgentPoolUpdatePutOptionalParams + options?: BuildServiceAgentPoolUpdatePutOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceBuilder.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceBuilder.ts index d1b0230ae6a0..976c5eae7e6f 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceBuilder.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceBuilder.ts @@ -17,7 +17,7 @@ import { BuildServiceBuilderCreateOrUpdateResponse, BuildServiceBuilderDeleteOptionalParams, BuildServiceBuilderListDeploymentsOptionalParams, - BuildServiceBuilderListDeploymentsResponse + BuildServiceBuilderListDeploymentsResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface BuildServiceBuilder { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceBuilderListOptionalParams + options?: BuildServiceBuilderListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a KPack builder. @@ -51,7 +51,7 @@ export interface BuildServiceBuilder { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildServiceBuilderGetOptionalParams + options?: BuildServiceBuilderGetOptionalParams, ): Promise; /** * Create or update a KPack builder. @@ -69,7 +69,7 @@ export interface BuildServiceBuilder { buildServiceName: string, builderName: string, builderResource: BuilderResource, - options?: BuildServiceBuilderCreateOrUpdateOptionalParams + options?: BuildServiceBuilderCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -92,7 +92,7 @@ export interface BuildServiceBuilder { buildServiceName: string, builderName: string, builderResource: BuilderResource, - options?: BuildServiceBuilderCreateOrUpdateOptionalParams + options?: BuildServiceBuilderCreateOrUpdateOptionalParams, ): Promise; /** * Delete a KPack builder. @@ -108,7 +108,7 @@ export interface BuildServiceBuilder { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildServiceBuilderDeleteOptionalParams + options?: BuildServiceBuilderDeleteOptionalParams, ): Promise, void>>; /** * Delete a KPack builder. @@ -124,7 +124,7 @@ export interface BuildServiceBuilder { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildServiceBuilderDeleteOptionalParams + options?: BuildServiceBuilderDeleteOptionalParams, ): Promise; /** * List deployments that are using the builder. @@ -140,6 +140,6 @@ export interface BuildServiceBuilder { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildServiceBuilderListDeploymentsOptionalParams + options?: BuildServiceBuilderListDeploymentsOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceOperations.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceOperations.ts index d707ac9f3205..5296291feb45 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceOperations.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceOperations.ts @@ -38,7 +38,7 @@ import { BuildServiceListSupportedStacksOptionalParams, BuildServiceListSupportedStacksResponse, BuildServiceGetSupportedStackOptionalParams, - BuildServiceGetSupportedStackResponse + BuildServiceGetSupportedStackResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export interface BuildServiceOperations { listBuildServices( resourceGroupName: string, serviceName: string, - options?: BuildServiceListBuildServicesOptionalParams + options?: BuildServiceListBuildServicesOptionalParams, ): PagedAsyncIterableIterator; /** * List KPack builds. @@ -68,7 +68,7 @@ export interface BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceListBuildsOptionalParams + options?: BuildServiceListBuildsOptionalParams, ): PagedAsyncIterableIterator; /** * List KPack build results. @@ -84,7 +84,7 @@ export interface BuildServiceOperations { serviceName: string, buildServiceName: string, buildName: string, - options?: BuildServiceListBuildResultsOptionalParams + options?: BuildServiceListBuildResultsOptionalParams, ): PagedAsyncIterableIterator; /** * Get a build service resource. @@ -98,7 +98,7 @@ export interface BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceGetBuildServiceOptionalParams + options?: BuildServiceGetBuildServiceOptionalParams, ): Promise; /** * Create a build service resource. @@ -114,7 +114,7 @@ export interface BuildServiceOperations { serviceName: string, buildServiceName: string, buildService: BuildService, - options?: BuildServiceCreateOrUpdateOptionalParams + options?: BuildServiceCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -135,7 +135,7 @@ export interface BuildServiceOperations { serviceName: string, buildServiceName: string, buildService: BuildService, - options?: BuildServiceCreateOrUpdateOptionalParams + options?: BuildServiceCreateOrUpdateOptionalParams, ): Promise; /** * Get a KPack build. @@ -151,7 +151,7 @@ export interface BuildServiceOperations { serviceName: string, buildServiceName: string, buildName: string, - options?: BuildServiceGetBuildOptionalParams + options?: BuildServiceGetBuildOptionalParams, ): Promise; /** * Create or update a KPack build. @@ -169,7 +169,7 @@ export interface BuildServiceOperations { buildServiceName: string, buildName: string, build: Build, - options?: BuildServiceCreateOrUpdateBuildOptionalParams + options?: BuildServiceCreateOrUpdateBuildOptionalParams, ): Promise; /** * delete a KPack build. @@ -185,7 +185,7 @@ export interface BuildServiceOperations { serviceName: string, buildServiceName: string, buildName: string, - options?: BuildServiceDeleteBuildOptionalParams + options?: BuildServiceDeleteBuildOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -206,7 +206,7 @@ export interface BuildServiceOperations { serviceName: string, buildServiceName: string, buildName: string, - options?: BuildServiceDeleteBuildOptionalParams + options?: BuildServiceDeleteBuildOptionalParams, ): Promise; /** * Get a KPack build result. @@ -224,7 +224,7 @@ export interface BuildServiceOperations { buildServiceName: string, buildName: string, buildResultName: string, - options?: BuildServiceGetBuildResultOptionalParams + options?: BuildServiceGetBuildResultOptionalParams, ): Promise; /** * Get a KPack build result log download URL. @@ -242,7 +242,7 @@ export interface BuildServiceOperations { buildServiceName: string, buildName: string, buildResultName: string, - options?: BuildServiceGetBuildResultLogOptionalParams + options?: BuildServiceGetBuildResultLogOptionalParams, ): Promise; /** * Get an resource upload URL for build service, which may be artifacts or source archive. @@ -256,7 +256,7 @@ export interface BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceGetResourceUploadUrlOptionalParams + options?: BuildServiceGetResourceUploadUrlOptionalParams, ): Promise; /** * Get all supported buildpacks. @@ -270,7 +270,7 @@ export interface BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceListSupportedBuildpacksOptionalParams + options?: BuildServiceListSupportedBuildpacksOptionalParams, ): Promise; /** * Get the supported buildpack resource. @@ -286,7 +286,7 @@ export interface BuildServiceOperations { serviceName: string, buildServiceName: string, buildpackName: string, - options?: BuildServiceGetSupportedBuildpackOptionalParams + options?: BuildServiceGetSupportedBuildpackOptionalParams, ): Promise; /** * Get all supported stacks. @@ -300,7 +300,7 @@ export interface BuildServiceOperations { resourceGroupName: string, serviceName: string, buildServiceName: string, - options?: BuildServiceListSupportedStacksOptionalParams + options?: BuildServiceListSupportedStacksOptionalParams, ): Promise; /** * Get the supported stack resource. @@ -316,6 +316,6 @@ export interface BuildServiceOperations { serviceName: string, buildServiceName: string, stackName: string, - options?: BuildServiceGetSupportedStackOptionalParams + options?: BuildServiceGetSupportedStackOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildpackBinding.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildpackBinding.ts index 2cc7e7b5fb6d..498fdf27d6e7 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildpackBinding.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildpackBinding.ts @@ -16,7 +16,7 @@ import { BuildpackBindingGetResponse, BuildpackBindingCreateOrUpdateOptionalParams, BuildpackBindingCreateOrUpdateResponse, - BuildpackBindingDeleteOptionalParams + BuildpackBindingDeleteOptionalParams, } from "../models"; /// @@ -32,7 +32,7 @@ export interface BuildpackBinding { listForCluster( resourceGroupName: string, serviceName: string, - options?: BuildpackBindingListForClusterOptionalParams + options?: BuildpackBindingListForClusterOptionalParams, ): PagedAsyncIterableIterator; /** * Handles requests to list all buildpack bindings in a builder. @@ -48,7 +48,7 @@ export interface BuildpackBinding { serviceName: string, buildServiceName: string, builderName: string, - options?: BuildpackBindingListOptionalParams + options?: BuildpackBindingListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a buildpack binding by name. @@ -66,7 +66,7 @@ export interface BuildpackBinding { buildServiceName: string, builderName: string, buildpackBindingName: string, - options?: BuildpackBindingGetOptionalParams + options?: BuildpackBindingGetOptionalParams, ): Promise; /** * Create or update a buildpack binding. @@ -86,7 +86,7 @@ export interface BuildpackBinding { builderName: string, buildpackBindingName: string, buildpackBinding: BuildpackBindingResource, - options?: BuildpackBindingCreateOrUpdateOptionalParams + options?: BuildpackBindingCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -111,7 +111,7 @@ export interface BuildpackBinding { builderName: string, buildpackBindingName: string, buildpackBinding: BuildpackBindingResource, - options?: BuildpackBindingCreateOrUpdateOptionalParams + options?: BuildpackBindingCreateOrUpdateOptionalParams, ): Promise; /** * Operation to delete a Buildpack Binding @@ -129,7 +129,7 @@ export interface BuildpackBinding { buildServiceName: string, builderName: string, buildpackBindingName: string, - options?: BuildpackBindingDeleteOptionalParams + options?: BuildpackBindingDeleteOptionalParams, ): Promise, void>>; /** * Operation to delete a Buildpack Binding @@ -147,6 +147,6 @@ export interface BuildpackBinding { buildServiceName: string, builderName: string, buildpackBindingName: string, - options?: BuildpackBindingDeleteOptionalParams + options?: BuildpackBindingDeleteOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/certificates.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/certificates.ts index 28f9df258d2a..031d7bcd499f 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/certificates.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/certificates.ts @@ -15,7 +15,7 @@ import { CertificatesGetResponse, CertificatesCreateOrUpdateOptionalParams, CertificatesCreateOrUpdateResponse, - CertificatesDeleteOptionalParams + CertificatesDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface Certificates { list( resourceGroupName: string, serviceName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the certificate resource. @@ -45,7 +45,7 @@ export interface Certificates { resourceGroupName: string, serviceName: string, certificateName: string, - options?: CertificatesGetOptionalParams + options?: CertificatesGetOptionalParams, ): Promise; /** * Create or update certificate resource. @@ -61,7 +61,7 @@ export interface Certificates { serviceName: string, certificateName: string, certificateResource: CertificateResource, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -82,7 +82,7 @@ export interface Certificates { serviceName: string, certificateName: string, certificateResource: CertificateResource, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the certificate resource. @@ -96,7 +96,7 @@ export interface Certificates { resourceGroupName: string, serviceName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise, void>>; /** * Delete the certificate resource. @@ -110,6 +110,6 @@ export interface Certificates { resourceGroupName: string, serviceName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configServers.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configServers.ts index de4c5903e4c5..6ca13e242428 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configServers.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configServers.ts @@ -17,7 +17,7 @@ import { ConfigServersUpdatePatchResponse, ConfigServerSettings, ConfigServersValidateOptionalParams, - ConfigServersValidateResponse + ConfigServersValidateResponse, } from "../models"; /** Interface representing a ConfigServers. */ @@ -32,7 +32,7 @@ export interface ConfigServers { get( resourceGroupName: string, serviceName: string, - options?: ConfigServersGetOptionalParams + options?: ConfigServersGetOptionalParams, ): Promise; /** * Update the config server. @@ -46,7 +46,7 @@ export interface ConfigServers { resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, - options?: ConfigServersUpdatePutOptionalParams + options?: ConfigServersUpdatePutOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -65,7 +65,7 @@ export interface ConfigServers { resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, - options?: ConfigServersUpdatePutOptionalParams + options?: ConfigServersUpdatePutOptionalParams, ): Promise; /** * Update the config server. @@ -79,7 +79,7 @@ export interface ConfigServers { resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, - options?: ConfigServersUpdatePatchOptionalParams + options?: ConfigServersUpdatePatchOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -98,7 +98,7 @@ export interface ConfigServers { resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, - options?: ConfigServersUpdatePatchOptionalParams + options?: ConfigServersUpdatePatchOptionalParams, ): Promise; /** * Check if the config server settings are valid. @@ -112,7 +112,7 @@ export interface ConfigServers { resourceGroupName: string, serviceName: string, configServerSettings: ConfigServerSettings, - options?: ConfigServersValidateOptionalParams + options?: ConfigServersValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -131,6 +131,6 @@ export interface ConfigServers { resourceGroupName: string, serviceName: string, configServerSettings: ConfigServerSettings, - options?: ConfigServersValidateOptionalParams + options?: ConfigServersValidateOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts index daa754e97998..1e5e94a3109f 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts @@ -20,7 +20,7 @@ import { ConfigurationServicesValidateOptionalParams, ConfigurationServicesValidateResponse, ConfigurationServicesValidateResourceOptionalParams, - ConfigurationServicesValidateResourceResponse + ConfigurationServicesValidateResourceResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface ConfigurationServices { list( resourceGroupName: string, serviceName: string, - options?: ConfigurationServicesListOptionalParams + options?: ConfigurationServicesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the Application Configuration Service and its properties. @@ -50,7 +50,7 @@ export interface ConfigurationServices { resourceGroupName: string, serviceName: string, configurationServiceName: string, - options?: ConfigurationServicesGetOptionalParams + options?: ConfigurationServicesGetOptionalParams, ): Promise; /** * Create the default Application Configuration Service or update the existing Application @@ -67,7 +67,7 @@ export interface ConfigurationServices { serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, - options?: ConfigurationServicesCreateOrUpdateOptionalParams + options?: ConfigurationServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -89,7 +89,7 @@ export interface ConfigurationServices { serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, - options?: ConfigurationServicesCreateOrUpdateOptionalParams + options?: ConfigurationServicesCreateOrUpdateOptionalParams, ): Promise; /** * Disable the default Application Configuration Service. @@ -103,7 +103,7 @@ export interface ConfigurationServices { resourceGroupName: string, serviceName: string, configurationServiceName: string, - options?: ConfigurationServicesDeleteOptionalParams + options?: ConfigurationServicesDeleteOptionalParams, ): Promise, void>>; /** * Disable the default Application Configuration Service. @@ -117,7 +117,7 @@ export interface ConfigurationServices { resourceGroupName: string, serviceName: string, configurationServiceName: string, - options?: ConfigurationServicesDeleteOptionalParams + options?: ConfigurationServicesDeleteOptionalParams, ): Promise; /** * Check if the Application Configuration Service settings are valid. @@ -133,7 +133,7 @@ export interface ConfigurationServices { serviceName: string, configurationServiceName: string, settings: ConfigurationServiceSettings, - options?: ConfigurationServicesValidateOptionalParams + options?: ConfigurationServicesValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -154,7 +154,7 @@ export interface ConfigurationServices { serviceName: string, configurationServiceName: string, settings: ConfigurationServiceSettings, - options?: ConfigurationServicesValidateOptionalParams + options?: ConfigurationServicesValidateOptionalParams, ): Promise; /** * Check if the Application Configuration Service resource is valid. @@ -170,7 +170,7 @@ export interface ConfigurationServices { serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, - options?: ConfigurationServicesValidateResourceOptionalParams + options?: ConfigurationServicesValidateResourceOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -191,6 +191,6 @@ export interface ConfigurationServices { serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, - options?: ConfigurationServicesValidateResourceOptionalParams + options?: ConfigurationServicesValidateResourceOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts index 73113ead1689..f2026e859a08 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts @@ -19,7 +19,7 @@ import { ContainerRegistriesDeleteResponse, ContainerRegistryProperties, ContainerRegistriesValidateOptionalParams, - ContainerRegistriesValidateResponse + ContainerRegistriesValidateResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ContainerRegistries { list( resourceGroupName: string, serviceName: string, - options?: ContainerRegistriesListOptionalParams + options?: ContainerRegistriesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the container registries resource. @@ -49,7 +49,7 @@ export interface ContainerRegistries { resourceGroupName: string, serviceName: string, containerRegistryName: string, - options?: ContainerRegistriesGetOptionalParams + options?: ContainerRegistriesGetOptionalParams, ): Promise; /** * Create or update container registry resource. @@ -65,7 +65,7 @@ export interface ContainerRegistries { serviceName: string, containerRegistryName: string, containerRegistryResource: ContainerRegistryResource, - options?: ContainerRegistriesCreateOrUpdateOptionalParams + options?: ContainerRegistriesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -86,7 +86,7 @@ export interface ContainerRegistries { serviceName: string, containerRegistryName: string, containerRegistryResource: ContainerRegistryResource, - options?: ContainerRegistriesCreateOrUpdateOptionalParams + options?: ContainerRegistriesCreateOrUpdateOptionalParams, ): Promise; /** * Delete a container registry resource. @@ -100,7 +100,7 @@ export interface ContainerRegistries { resourceGroupName: string, serviceName: string, containerRegistryName: string, - options?: ContainerRegistriesDeleteOptionalParams + options?: ContainerRegistriesDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -119,7 +119,7 @@ export interface ContainerRegistries { resourceGroupName: string, serviceName: string, containerRegistryName: string, - options?: ContainerRegistriesDeleteOptionalParams + options?: ContainerRegistriesDeleteOptionalParams, ): Promise; /** * Check if the container registry properties are valid. @@ -135,7 +135,7 @@ export interface ContainerRegistries { serviceName: string, containerRegistryName: string, containerRegistryProperties: ContainerRegistryProperties, - options?: ContainerRegistriesValidateOptionalParams + options?: ContainerRegistriesValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -156,6 +156,6 @@ export interface ContainerRegistries { serviceName: string, containerRegistryName: string, containerRegistryProperties: ContainerRegistryProperties, - options?: ContainerRegistriesValidateOptionalParams + options?: ContainerRegistriesValidateOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customDomains.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customDomains.ts index ac16ed99f213..e6f38dcb5217 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customDomains.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customDomains.ts @@ -17,7 +17,7 @@ import { CustomDomainsCreateOrUpdateResponse, CustomDomainsDeleteOptionalParams, CustomDomainsUpdateOptionalParams, - CustomDomainsUpdateResponse + CustomDomainsUpdateResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface CustomDomains { resourceGroupName: string, serviceName: string, appName: string, - options?: CustomDomainsListOptionalParams + options?: CustomDomainsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the custom domain of one lifecycle application. @@ -51,7 +51,7 @@ export interface CustomDomains { serviceName: string, appName: string, domainName: string, - options?: CustomDomainsGetOptionalParams + options?: CustomDomainsGetOptionalParams, ): Promise; /** * Create or update custom domain of one lifecycle application. @@ -69,7 +69,7 @@ export interface CustomDomains { appName: string, domainName: string, domainResource: CustomDomainResource, - options?: CustomDomainsCreateOrUpdateOptionalParams + options?: CustomDomainsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -92,7 +92,7 @@ export interface CustomDomains { appName: string, domainName: string, domainResource: CustomDomainResource, - options?: CustomDomainsCreateOrUpdateOptionalParams + options?: CustomDomainsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the custom domain of one lifecycle application. @@ -108,7 +108,7 @@ export interface CustomDomains { serviceName: string, appName: string, domainName: string, - options?: CustomDomainsDeleteOptionalParams + options?: CustomDomainsDeleteOptionalParams, ): Promise, void>>; /** * Delete the custom domain of one lifecycle application. @@ -124,7 +124,7 @@ export interface CustomDomains { serviceName: string, appName: string, domainName: string, - options?: CustomDomainsDeleteOptionalParams + options?: CustomDomainsDeleteOptionalParams, ): Promise; /** * Update custom domain of one lifecycle application. @@ -142,7 +142,7 @@ export interface CustomDomains { appName: string, domainName: string, domainResource: CustomDomainResource, - options?: CustomDomainsUpdateOptionalParams + options?: CustomDomainsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -165,6 +165,6 @@ export interface CustomDomains { appName: string, domainName: string, domainResource: CustomDomainResource, - options?: CustomDomainsUpdateOptionalParams + options?: CustomDomainsUpdateOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts index c9e2d1c3bb69..30f5385198c6 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts @@ -19,7 +19,7 @@ import { CustomizedAcceleratorsDeleteResponse, CustomizedAcceleratorProperties, CustomizedAcceleratorsValidateOptionalParams, - CustomizedAcceleratorsValidateResponse + CustomizedAcceleratorsValidateResponse, } from "../models"; /// @@ -37,7 +37,7 @@ export interface CustomizedAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: CustomizedAcceleratorsListOptionalParams + options?: CustomizedAcceleratorsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the customized accelerator. @@ -53,7 +53,7 @@ export interface CustomizedAccelerators { serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, - options?: CustomizedAcceleratorsGetOptionalParams + options?: CustomizedAcceleratorsGetOptionalParams, ): Promise; /** * Create or update the customized accelerator. @@ -71,7 +71,7 @@ export interface CustomizedAccelerators { applicationAcceleratorName: string, customizedAcceleratorName: string, customizedAcceleratorResource: CustomizedAcceleratorResource, - options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams + options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -94,7 +94,7 @@ export interface CustomizedAccelerators { applicationAcceleratorName: string, customizedAcceleratorName: string, customizedAcceleratorResource: CustomizedAcceleratorResource, - options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams + options?: CustomizedAcceleratorsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the customized accelerator. @@ -110,7 +110,7 @@ export interface CustomizedAccelerators { serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, - options?: CustomizedAcceleratorsDeleteOptionalParams + options?: CustomizedAcceleratorsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -131,7 +131,7 @@ export interface CustomizedAccelerators { serviceName: string, applicationAcceleratorName: string, customizedAcceleratorName: string, - options?: CustomizedAcceleratorsDeleteOptionalParams + options?: CustomizedAcceleratorsDeleteOptionalParams, ): Promise; /** * Check the customized accelerator are valid. @@ -149,7 +149,7 @@ export interface CustomizedAccelerators { applicationAcceleratorName: string, customizedAcceleratorName: string, properties: CustomizedAcceleratorProperties, - options?: CustomizedAcceleratorsValidateOptionalParams + options?: CustomizedAcceleratorsValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -172,6 +172,6 @@ export interface CustomizedAccelerators { applicationAcceleratorName: string, customizedAcceleratorName: string, properties: CustomizedAcceleratorProperties, - options?: CustomizedAcceleratorsValidateOptionalParams + options?: CustomizedAcceleratorsValidateOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/deployments.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/deployments.ts index 194c736f5b98..98165cdce947 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/deployments.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/deployments.ts @@ -33,7 +33,7 @@ import { DiagnosticParameters, DeploymentsGenerateHeapDumpOptionalParams, DeploymentsGenerateThreadDumpOptionalParams, - DeploymentsStartJFROptionalParams + DeploymentsStartJFROptionalParams, } from "../models"; /// @@ -51,7 +51,7 @@ export interface Deployments { resourceGroupName: string, serviceName: string, appName: string, - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): PagedAsyncIterableIterator; /** * List deployments for a certain service @@ -63,7 +63,7 @@ export interface Deployments { listForCluster( resourceGroupName: string, serviceName: string, - options?: DeploymentsListForClusterOptionalParams + options?: DeploymentsListForClusterOptionalParams, ): PagedAsyncIterableIterator; /** * Get a Deployment and its properties. @@ -79,7 +79,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsGetOptionalParams + options?: DeploymentsGetOptionalParams, ): Promise; /** * Create a new Deployment or update an exiting Deployment. @@ -97,7 +97,7 @@ export interface Deployments { appName: string, deploymentName: string, deploymentResource: DeploymentResource, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -120,7 +120,7 @@ export interface Deployments { appName: string, deploymentName: string, deploymentResource: DeploymentResource, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise; /** * Operation to delete a Deployment. @@ -136,7 +136,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise, void>>; /** * Operation to delete a Deployment. @@ -152,7 +152,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise; /** * Operation to update an exiting Deployment. @@ -170,7 +170,7 @@ export interface Deployments { appName: string, deploymentName: string, deploymentResource: DeploymentResource, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -193,7 +193,7 @@ export interface Deployments { appName: string, deploymentName: string, deploymentResource: DeploymentResource, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise; /** * Start the deployment. @@ -209,7 +209,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsStartOptionalParams + options?: DeploymentsStartOptionalParams, ): Promise, void>>; /** * Start the deployment. @@ -225,7 +225,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsStartOptionalParams + options?: DeploymentsStartOptionalParams, ): Promise; /** * Stop the deployment. @@ -241,7 +241,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsStopOptionalParams + options?: DeploymentsStopOptionalParams, ): Promise, void>>; /** * Stop the deployment. @@ -257,7 +257,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsStopOptionalParams + options?: DeploymentsStopOptionalParams, ): Promise; /** * Restart the deployment. @@ -273,7 +273,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsRestartOptionalParams + options?: DeploymentsRestartOptionalParams, ): Promise, void>>; /** * Restart the deployment. @@ -289,7 +289,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsRestartOptionalParams + options?: DeploymentsRestartOptionalParams, ): Promise; /** * Enable remote debugging. @@ -305,7 +305,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsEnableRemoteDebuggingOptionalParams + options?: DeploymentsEnableRemoteDebuggingOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -326,7 +326,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsEnableRemoteDebuggingOptionalParams + options?: DeploymentsEnableRemoteDebuggingOptionalParams, ): Promise; /** * Disable remote debugging. @@ -342,7 +342,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsDisableRemoteDebuggingOptionalParams + options?: DeploymentsDisableRemoteDebuggingOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -363,7 +363,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsDisableRemoteDebuggingOptionalParams + options?: DeploymentsDisableRemoteDebuggingOptionalParams, ): Promise; /** * Get remote debugging config. @@ -379,7 +379,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsGetRemoteDebuggingConfigOptionalParams + options?: DeploymentsGetRemoteDebuggingConfigOptionalParams, ): Promise; /** * Get deployment log file URL @@ -395,7 +395,7 @@ export interface Deployments { serviceName: string, appName: string, deploymentName: string, - options?: DeploymentsGetLogFileUrlOptionalParams + options?: DeploymentsGetLogFileUrlOptionalParams, ): Promise; /** * Generate Heap Dump @@ -413,7 +413,7 @@ export interface Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsGenerateHeapDumpOptionalParams + options?: DeploymentsGenerateHeapDumpOptionalParams, ): Promise, void>>; /** * Generate Heap Dump @@ -431,7 +431,7 @@ export interface Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsGenerateHeapDumpOptionalParams + options?: DeploymentsGenerateHeapDumpOptionalParams, ): Promise; /** * Generate Thread Dump @@ -449,7 +449,7 @@ export interface Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsGenerateThreadDumpOptionalParams + options?: DeploymentsGenerateThreadDumpOptionalParams, ): Promise, void>>; /** * Generate Thread Dump @@ -467,7 +467,7 @@ export interface Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsGenerateThreadDumpOptionalParams + options?: DeploymentsGenerateThreadDumpOptionalParams, ): Promise; /** * Start JFR @@ -485,7 +485,7 @@ export interface Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsStartJFROptionalParams + options?: DeploymentsStartJFROptionalParams, ): Promise, void>>; /** * Start JFR @@ -503,6 +503,6 @@ export interface Deployments { appName: string, deploymentName: string, diagnosticParameters: DiagnosticParameters, - options?: DeploymentsStartJFROptionalParams + options?: DeploymentsStartJFROptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts index 5e83a4cf2a61..c285f239a1a4 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts @@ -16,7 +16,7 @@ import { DevToolPortalsCreateOrUpdateOptionalParams, DevToolPortalsCreateOrUpdateResponse, DevToolPortalsDeleteOptionalParams, - DevToolPortalsDeleteResponse + DevToolPortalsDeleteResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface DevToolPortals { list( resourceGroupName: string, serviceName: string, - options?: DevToolPortalsListOptionalParams + options?: DevToolPortalsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the Application Live and its properties. @@ -46,7 +46,7 @@ export interface DevToolPortals { resourceGroupName: string, serviceName: string, devToolPortalName: string, - options?: DevToolPortalsGetOptionalParams + options?: DevToolPortalsGetOptionalParams, ): Promise; /** * Create the default Dev Tool Portal or update the existing Dev Tool Portal. @@ -62,7 +62,7 @@ export interface DevToolPortals { serviceName: string, devToolPortalName: string, devToolPortalResource: DevToolPortalResource, - options?: DevToolPortalsCreateOrUpdateOptionalParams + options?: DevToolPortalsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,7 +83,7 @@ export interface DevToolPortals { serviceName: string, devToolPortalName: string, devToolPortalResource: DevToolPortalResource, - options?: DevToolPortalsCreateOrUpdateOptionalParams + options?: DevToolPortalsCreateOrUpdateOptionalParams, ): Promise; /** * Disable the default Dev Tool Portal. @@ -97,7 +97,7 @@ export interface DevToolPortals { resourceGroupName: string, serviceName: string, devToolPortalName: string, - options?: DevToolPortalsDeleteOptionalParams + options?: DevToolPortalsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,6 +116,6 @@ export interface DevToolPortals { resourceGroupName: string, serviceName: string, devToolPortalName: string, - options?: DevToolPortalsDeleteOptionalParams + options?: DevToolPortalsDeleteOptionalParams, ): 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..0c3b7ce524ba --- /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/gatewayCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts index a8d6f0142066..d998c3e44c7a 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts @@ -15,7 +15,7 @@ import { GatewayCustomDomainsGetResponse, GatewayCustomDomainsCreateOrUpdateOptionalParams, GatewayCustomDomainsCreateOrUpdateResponse, - GatewayCustomDomainsDeleteOptionalParams + GatewayCustomDomainsDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface GatewayCustomDomains { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewayCustomDomainsListOptionalParams + options?: GatewayCustomDomainsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the Spring Cloud Gateway custom domain. @@ -49,7 +49,7 @@ export interface GatewayCustomDomains { serviceName: string, gatewayName: string, domainName: string, - options?: GatewayCustomDomainsGetOptionalParams + options?: GatewayCustomDomainsGetOptionalParams, ): Promise; /** * Create or update the Spring Cloud Gateway custom domain. @@ -68,7 +68,7 @@ export interface GatewayCustomDomains { gatewayName: string, domainName: string, gatewayCustomDomainResource: GatewayCustomDomainResource, - options?: GatewayCustomDomainsCreateOrUpdateOptionalParams + options?: GatewayCustomDomainsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -92,7 +92,7 @@ export interface GatewayCustomDomains { gatewayName: string, domainName: string, gatewayCustomDomainResource: GatewayCustomDomainResource, - options?: GatewayCustomDomainsCreateOrUpdateOptionalParams + options?: GatewayCustomDomainsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the Spring Cloud Gateway custom domain. @@ -108,7 +108,7 @@ export interface GatewayCustomDomains { serviceName: string, gatewayName: string, domainName: string, - options?: GatewayCustomDomainsDeleteOptionalParams + options?: GatewayCustomDomainsDeleteOptionalParams, ): Promise, void>>; /** * Delete the Spring Cloud Gateway custom domain. @@ -124,6 +124,6 @@ export interface GatewayCustomDomains { serviceName: string, gatewayName: string, domainName: string, - options?: GatewayCustomDomainsDeleteOptionalParams + options?: GatewayCustomDomainsDeleteOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts index cc5ef107f081..d013fba68e7b 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts @@ -15,7 +15,7 @@ import { GatewayRouteConfigsGetResponse, GatewayRouteConfigsCreateOrUpdateOptionalParams, GatewayRouteConfigsCreateOrUpdateResponse, - GatewayRouteConfigsDeleteOptionalParams + GatewayRouteConfigsDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface GatewayRouteConfigs { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewayRouteConfigsListOptionalParams + options?: GatewayRouteConfigsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the Spring Cloud Gateway route configs. @@ -49,7 +49,7 @@ export interface GatewayRouteConfigs { serviceName: string, gatewayName: string, routeConfigName: string, - options?: GatewayRouteConfigsGetOptionalParams + options?: GatewayRouteConfigsGetOptionalParams, ): Promise; /** * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway @@ -69,7 +69,7 @@ export interface GatewayRouteConfigs { gatewayName: string, routeConfigName: string, gatewayRouteConfigResource: GatewayRouteConfigResource, - options?: GatewayRouteConfigsCreateOrUpdateOptionalParams + options?: GatewayRouteConfigsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -94,7 +94,7 @@ export interface GatewayRouteConfigs { gatewayName: string, routeConfigName: string, gatewayRouteConfigResource: GatewayRouteConfigResource, - options?: GatewayRouteConfigsCreateOrUpdateOptionalParams + options?: GatewayRouteConfigsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the Spring Cloud Gateway route config. @@ -110,7 +110,7 @@ export interface GatewayRouteConfigs { serviceName: string, gatewayName: string, routeConfigName: string, - options?: GatewayRouteConfigsDeleteOptionalParams + options?: GatewayRouteConfigsDeleteOptionalParams, ): Promise, void>>; /** * Delete the Spring Cloud Gateway route config. @@ -126,6 +126,6 @@ export interface GatewayRouteConfigs { serviceName: string, gatewayName: string, routeConfigName: string, - options?: GatewayRouteConfigsDeleteOptionalParams + options?: GatewayRouteConfigsDeleteOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts index 505bb7ebcb2a..c50b00d49d6e 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts @@ -15,13 +15,16 @@ import { GatewaysGetResponse, GatewaysCreateOrUpdateOptionalParams, GatewaysCreateOrUpdateResponse, + SkuObject, + GatewaysUpdateCapacityOptionalParams, + GatewaysUpdateCapacityResponse, GatewaysDeleteOptionalParams, GatewaysListEnvSecretsOptionalParams, GatewaysListEnvSecretsResponse, GatewaysRestartOptionalParams, CustomDomainValidatePayload, GatewaysValidateDomainOptionalParams, - GatewaysValidateDomainResponse + GatewaysValidateDomainResponse, } from "../models"; /// @@ -37,7 +40,7 @@ export interface Gateways { list( resourceGroupName: string, serviceName: string, - options?: GatewaysListOptionalParams + options?: GatewaysListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the Spring Cloud Gateway and its properties. @@ -51,7 +54,7 @@ export interface Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysGetOptionalParams + options?: GatewaysGetOptionalParams, ): Promise; /** * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. @@ -67,7 +70,7 @@ export interface Gateways { serviceName: string, gatewayName: string, gatewayResource: GatewayResource, - options?: GatewaysCreateOrUpdateOptionalParams + options?: GatewaysCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -88,8 +91,45 @@ export interface Gateways { serviceName: string, gatewayName: string, gatewayResource: GatewayResource, - options?: GatewaysCreateOrUpdateOptionalParams + options?: GatewaysCreateOrUpdateOptionalParams, ): Promise; + /** + * Operation to update an exiting Spring Cloud Gateway capacity. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param gatewayCapacityResource The gateway capacity for the update operation + * @param options The options parameters. + */ + beginUpdateCapacity( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + gatewayCapacityResource: SkuObject, + options?: GatewaysUpdateCapacityOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GatewaysUpdateCapacityResponse + > + >; + /** + * Operation to update an exiting Spring Cloud Gateway capacity. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param gatewayCapacityResource The gateway capacity for the update operation + * @param options The options parameters. + */ + beginUpdateCapacityAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + gatewayCapacityResource: SkuObject, + options?: GatewaysUpdateCapacityOptionalParams, + ): Promise; /** * Disable the default Spring Cloud Gateway. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -102,7 +142,7 @@ export interface Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysDeleteOptionalParams + options?: GatewaysDeleteOptionalParams, ): Promise, void>>; /** * Disable the default Spring Cloud Gateway. @@ -116,7 +156,7 @@ export interface Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysDeleteOptionalParams + options?: GatewaysDeleteOptionalParams, ): Promise; /** * List sensitive environment variables of Spring Cloud Gateway. @@ -130,7 +170,7 @@ export interface Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysListEnvSecretsOptionalParams + options?: GatewaysListEnvSecretsOptionalParams, ): Promise; /** * Restart the Spring Cloud Gateway. @@ -144,7 +184,7 @@ export interface Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysRestartOptionalParams + options?: GatewaysRestartOptionalParams, ): Promise, void>>; /** * Restart the Spring Cloud Gateway. @@ -158,7 +198,7 @@ export interface Gateways { resourceGroupName: string, serviceName: string, gatewayName: string, - options?: GatewaysRestartOptionalParams + options?: GatewaysRestartOptionalParams, ): Promise; /** * Check the domains are valid as well as not in use. @@ -174,6 +214,6 @@ export interface Gateways { serviceName: string, gatewayName: string, validatePayload: CustomDomainValidatePayload, - options?: GatewaysValidateDomainOptionalParams + options?: GatewaysValidateDomainOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts index c8565fe39e2e..bfa157c0b919 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts @@ -8,6 +8,7 @@ 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/monitoringSettings.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/monitoringSettings.ts index dbc21c803ba7..4f46e7325cfd 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/monitoringSettings.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/monitoringSettings.ts @@ -14,7 +14,7 @@ import { MonitoringSettingsUpdatePutOptionalParams, MonitoringSettingsUpdatePutResponse, MonitoringSettingsUpdatePatchOptionalParams, - MonitoringSettingsUpdatePatchResponse + MonitoringSettingsUpdatePatchResponse, } from "../models"; /** Interface representing a MonitoringSettings. */ @@ -29,7 +29,7 @@ export interface MonitoringSettings { get( resourceGroupName: string, serviceName: string, - options?: MonitoringSettingsGetOptionalParams + options?: MonitoringSettingsGetOptionalParams, ): Promise; /** * Update the Monitoring Setting. @@ -43,7 +43,7 @@ export interface MonitoringSettings { resourceGroupName: string, serviceName: string, monitoringSettingResource: MonitoringSettingResource, - options?: MonitoringSettingsUpdatePutOptionalParams + options?: MonitoringSettingsUpdatePutOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -62,7 +62,7 @@ export interface MonitoringSettings { resourceGroupName: string, serviceName: string, monitoringSettingResource: MonitoringSettingResource, - options?: MonitoringSettingsUpdatePutOptionalParams + options?: MonitoringSettingsUpdatePutOptionalParams, ): Promise; /** * Update the Monitoring Setting. @@ -76,7 +76,7 @@ export interface MonitoringSettings { resourceGroupName: string, serviceName: string, monitoringSettingResource: MonitoringSettingResource, - options?: MonitoringSettingsUpdatePatchOptionalParams + options?: MonitoringSettingsUpdatePatchOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -95,6 +95,6 @@ export interface MonitoringSettings { resourceGroupName: string, serviceName: string, monitoringSettingResource: MonitoringSettingResource, - options?: MonitoringSettingsUpdatePatchOptionalParams + options?: MonitoringSettingsUpdatePatchOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/operations.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/operations.ts index 733857ef7fe7..dfb29617eb66 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/operations.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts index 1aaacedd49b6..2e7b04822d78 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts @@ -14,7 +14,7 @@ import { PredefinedAcceleratorsGetOptionalParams, PredefinedAcceleratorsGetResponse, PredefinedAcceleratorsDisableOptionalParams, - PredefinedAcceleratorsEnableOptionalParams + PredefinedAcceleratorsEnableOptionalParams, } from "../models"; /// @@ -32,7 +32,7 @@ export interface PredefinedAccelerators { resourceGroupName: string, serviceName: string, applicationAcceleratorName: string, - options?: PredefinedAcceleratorsListOptionalParams + options?: PredefinedAcceleratorsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the predefined accelerator. @@ -48,7 +48,7 @@ export interface PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsGetOptionalParams + options?: PredefinedAcceleratorsGetOptionalParams, ): Promise; /** * Disable predefined accelerator. @@ -64,7 +64,7 @@ export interface PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsDisableOptionalParams + options?: PredefinedAcceleratorsDisableOptionalParams, ): Promise, void>>; /** * Disable predefined accelerator. @@ -80,7 +80,7 @@ export interface PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsDisableOptionalParams + options?: PredefinedAcceleratorsDisableOptionalParams, ): Promise; /** * Enable predefined accelerator. @@ -96,7 +96,7 @@ export interface PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsEnableOptionalParams + options?: PredefinedAcceleratorsEnableOptionalParams, ): Promise, void>>; /** * Enable predefined accelerator. @@ -112,6 +112,6 @@ export interface PredefinedAccelerators { serviceName: string, applicationAcceleratorName: string, predefinedAcceleratorName: string, - options?: PredefinedAcceleratorsEnableOptionalParams + options?: PredefinedAcceleratorsEnableOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/runtimeVersions.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/runtimeVersions.ts index a35327a41b7e..0dc09abb18c5 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/runtimeVersions.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/runtimeVersions.ts @@ -8,7 +8,7 @@ import { RuntimeVersionsListRuntimeVersionsOptionalParams, - RuntimeVersionsListRuntimeVersionsResponse + RuntimeVersionsListRuntimeVersionsResponse, } from "../models"; /** Interface representing a RuntimeVersions. */ @@ -18,6 +18,6 @@ export interface RuntimeVersions { * @param options The options parameters. */ listRuntimeVersions( - options?: RuntimeVersionsListRuntimeVersionsOptionalParams + options?: RuntimeVersionsListRuntimeVersionsOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/serviceRegistries.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/serviceRegistries.ts index a8a1c5b99d19..5922e9a1372b 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/serviceRegistries.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/serviceRegistries.ts @@ -15,7 +15,7 @@ import { ServiceRegistriesGetResponse, ServiceRegistriesCreateOrUpdateOptionalParams, ServiceRegistriesCreateOrUpdateResponse, - ServiceRegistriesDeleteOptionalParams + ServiceRegistriesDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface ServiceRegistries { list( resourceGroupName: string, serviceName: string, - options?: ServiceRegistriesListOptionalParams + options?: ServiceRegistriesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the Service Registry and its properties. @@ -45,7 +45,7 @@ export interface ServiceRegistries { resourceGroupName: string, serviceName: string, serviceRegistryName: string, - options?: ServiceRegistriesGetOptionalParams + options?: ServiceRegistriesGetOptionalParams, ): Promise; /** * Create the default Service Registry or update the existing Service Registry. @@ -59,7 +59,7 @@ export interface ServiceRegistries { resourceGroupName: string, serviceName: string, serviceRegistryName: string, - options?: ServiceRegistriesCreateOrUpdateOptionalParams + options?: ServiceRegistriesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,7 +78,7 @@ export interface ServiceRegistries { resourceGroupName: string, serviceName: string, serviceRegistryName: string, - options?: ServiceRegistriesCreateOrUpdateOptionalParams + options?: ServiceRegistriesCreateOrUpdateOptionalParams, ): Promise; /** * Disable the default Service Registry. @@ -92,7 +92,7 @@ export interface ServiceRegistries { resourceGroupName: string, serviceName: string, serviceRegistryName: string, - options?: ServiceRegistriesDeleteOptionalParams + options?: ServiceRegistriesDeleteOptionalParams, ): Promise, void>>; /** * Disable the default Service Registry. @@ -106,6 +106,6 @@ export interface ServiceRegistries { resourceGroupName: string, serviceName: string, serviceRegistryName: string, - options?: ServiceRegistriesDeleteOptionalParams + options?: ServiceRegistriesDeleteOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts index b524e3afd6b6..0b296e4e43ff 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts @@ -42,7 +42,7 @@ import { ServicesDisableApmGloballyOptionalParams, NameAvailabilityParameters, ServicesCheckNameAvailabilityOptionalParams, - ServicesCheckNameAvailabilityResponse + ServicesCheckNameAvailabilityResponse, } from "../models"; /// @@ -58,14 +58,14 @@ export interface Services { listSupportedApmTypes( resourceGroupName: string, serviceName: string, - options?: ServicesListSupportedApmTypesOptionalParams + options?: ServicesListSupportedApmTypesOptionalParams, ): PagedAsyncIterableIterator; /** * Handles requests to list all resources in a subscription. * @param options The options parameters. */ listBySubscription( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Handles requests to list all resources in a resource group. @@ -75,7 +75,7 @@ export interface Services { */ list( resourceGroupName: string, - options?: ServicesListOptionalParams + options?: ServicesListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the available server versions supported by Microsoft.AppPlatform provider. @@ -87,7 +87,7 @@ export interface Services { listSupportedServerVersions( resourceGroupName: string, serviceName: string, - options?: ServicesListSupportedServerVersionsOptionalParams + options?: ServicesListSupportedServerVersionsOptionalParams, ): PagedAsyncIterableIterator; /** * Get a Service and its properties. @@ -99,7 +99,7 @@ export interface Services { get( resourceGroupName: string, serviceName: string, - options?: ServicesGetOptionalParams + options?: ServicesGetOptionalParams, ): Promise; /** * Create a new Service or update an exiting Service. @@ -113,7 +113,7 @@ export interface Services { resourceGroupName: string, serviceName: string, resource: ServiceResource, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -132,7 +132,7 @@ export interface Services { resourceGroupName: string, serviceName: string, resource: ServiceResource, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise; /** * Operation to delete a Service. @@ -144,7 +144,7 @@ export interface Services { beginDelete( resourceGroupName: string, serviceName: string, - options?: ServicesDeleteOptionalParams + options?: ServicesDeleteOptionalParams, ): Promise, void>>; /** * Operation to delete a Service. @@ -156,7 +156,7 @@ export interface Services { beginDeleteAndWait( resourceGroupName: string, serviceName: string, - options?: ServicesDeleteOptionalParams + options?: ServicesDeleteOptionalParams, ): Promise; /** * Operation to update an exiting Service. @@ -170,7 +170,7 @@ export interface Services { resourceGroupName: string, serviceName: string, resource: ServiceResource, - options?: ServicesUpdateOptionalParams + options?: ServicesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -189,7 +189,7 @@ export interface Services { resourceGroupName: string, serviceName: string, resource: ServiceResource, - options?: ServicesUpdateOptionalParams + options?: ServicesUpdateOptionalParams, ): Promise; /** * List test keys for a Service. @@ -201,7 +201,7 @@ export interface Services { listTestKeys( resourceGroupName: string, serviceName: string, - options?: ServicesListTestKeysOptionalParams + options?: ServicesListTestKeysOptionalParams, ): Promise; /** * Regenerate a test key for a Service. @@ -215,7 +215,7 @@ export interface Services { resourceGroupName: string, serviceName: string, regenerateTestKeyRequest: RegenerateTestKeyRequestPayload, - options?: ServicesRegenerateTestKeyOptionalParams + options?: ServicesRegenerateTestKeyOptionalParams, ): Promise; /** * Disable test endpoint functionality for a Service. @@ -227,7 +227,7 @@ export interface Services { disableTestEndpoint( resourceGroupName: string, serviceName: string, - options?: ServicesDisableTestEndpointOptionalParams + options?: ServicesDisableTestEndpointOptionalParams, ): Promise; /** * Enable test endpoint functionality for a Service. @@ -239,7 +239,7 @@ export interface Services { enableTestEndpoint( resourceGroupName: string, serviceName: string, - options?: ServicesEnableTestEndpointOptionalParams + options?: ServicesEnableTestEndpointOptionalParams, ): Promise; /** * Stop a Service. @@ -251,7 +251,7 @@ export interface Services { beginStop( resourceGroupName: string, serviceName: string, - options?: ServicesStopOptionalParams + options?: ServicesStopOptionalParams, ): Promise, void>>; /** * Stop a Service. @@ -263,7 +263,7 @@ export interface Services { beginStopAndWait( resourceGroupName: string, serviceName: string, - options?: ServicesStopOptionalParams + options?: ServicesStopOptionalParams, ): Promise; /** * Start a Service. @@ -275,7 +275,7 @@ export interface Services { beginStart( resourceGroupName: string, serviceName: string, - options?: ServicesStartOptionalParams + options?: ServicesStartOptionalParams, ): Promise, void>>; /** * Start a Service. @@ -287,7 +287,7 @@ export interface Services { beginStartAndWait( resourceGroupName: string, serviceName: string, - options?: ServicesStartOptionalParams + options?: ServicesStartOptionalParams, ): Promise; /** * Flush Virtual Network DNS settings for a VNET injected Service. @@ -299,7 +299,7 @@ export interface Services { beginFlushVnetDnsSetting( resourceGroupName: string, serviceName: string, - options?: ServicesFlushVnetDnsSettingOptionalParams + options?: ServicesFlushVnetDnsSettingOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -316,7 +316,7 @@ export interface Services { beginFlushVnetDnsSettingAndWait( resourceGroupName: string, serviceName: string, - options?: ServicesFlushVnetDnsSettingOptionalParams + options?: ServicesFlushVnetDnsSettingOptionalParams, ): Promise; /** * List globally enabled APMs for a Service. @@ -328,7 +328,7 @@ export interface Services { listGloballyEnabledApms( resourceGroupName: string, serviceName: string, - options?: ServicesListGloballyEnabledApmsOptionalParams + options?: ServicesListGloballyEnabledApmsOptionalParams, ): Promise; /** * Enable an APM globally. @@ -342,7 +342,7 @@ export interface Services { resourceGroupName: string, serviceName: string, apm: ApmReference, - options?: ServicesEnableApmGloballyOptionalParams + options?: ServicesEnableApmGloballyOptionalParams, ): Promise, void>>; /** * Enable an APM globally. @@ -356,7 +356,7 @@ export interface Services { resourceGroupName: string, serviceName: string, apm: ApmReference, - options?: ServicesEnableApmGloballyOptionalParams + options?: ServicesEnableApmGloballyOptionalParams, ): Promise; /** * Disable an APM globally. @@ -370,7 +370,7 @@ export interface Services { resourceGroupName: string, serviceName: string, apm: ApmReference, - options?: ServicesDisableApmGloballyOptionalParams + options?: ServicesDisableApmGloballyOptionalParams, ): Promise, void>>; /** * Disable an APM globally. @@ -384,7 +384,7 @@ export interface Services { resourceGroupName: string, serviceName: string, apm: ApmReference, - options?: ServicesDisableApmGloballyOptionalParams + options?: ServicesDisableApmGloballyOptionalParams, ): Promise; /** * Checks that the resource name is valid and is not already in use. @@ -395,6 +395,6 @@ export interface Services { checkNameAvailability( location: string, availabilityParameters: NameAvailabilityParameters, - options?: ServicesCheckNameAvailabilityOptionalParams + options?: ServicesCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/skus.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/skus.ts index 1e610564d6db..1b7538888820 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/skus.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/skus.ts @@ -17,6 +17,6 @@ export interface Skus { * @param options The options parameters. */ list( - options?: SkusListOptionalParams + options?: SkusListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/storages.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/storages.ts index 0c567cc50b2f..9981a0db84a9 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/storages.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/storages.ts @@ -15,7 +15,7 @@ import { StoragesGetResponse, StoragesCreateOrUpdateOptionalParams, StoragesCreateOrUpdateResponse, - StoragesDeleteOptionalParams + StoragesDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface Storages { list( resourceGroupName: string, serviceName: string, - options?: StoragesListOptionalParams + options?: StoragesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the storage resource. @@ -45,7 +45,7 @@ export interface Storages { resourceGroupName: string, serviceName: string, storageName: string, - options?: StoragesGetOptionalParams + options?: StoragesGetOptionalParams, ): Promise; /** * Create or update storage resource. @@ -61,7 +61,7 @@ export interface Storages { serviceName: string, storageName: string, storageResource: StorageResource, - options?: StoragesCreateOrUpdateOptionalParams + options?: StoragesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -82,7 +82,7 @@ export interface Storages { serviceName: string, storageName: string, storageResource: StorageResource, - options?: StoragesCreateOrUpdateOptionalParams + options?: StoragesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the storage resource. @@ -96,7 +96,7 @@ export interface Storages { resourceGroupName: string, serviceName: string, storageName: string, - options?: StoragesDeleteOptionalParams + options?: StoragesDeleteOptionalParams, ): Promise, void>>; /** * Delete the storage resource. @@ -110,6 +110,6 @@ export interface Storages { resourceGroupName: string, serviceName: string, storageName: string, - options?: StoragesDeleteOptionalParams + options?: StoragesDeleteOptionalParams, ): Promise; } diff --git a/sdk/appplatform/arm-appplatform/src/pagingHelper.ts b/sdk/appplatform/arm-appplatform/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/appplatform/arm-appplatform/src/pagingHelper.ts +++ b/sdk/appplatform/arm-appplatform/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/appplatform/arm-appplatform/test/sampleTest.ts b/sdk/appplatform/arm-appplatform/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /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"