diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 9d6481d8fa9a..9d43d3987d6d 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -18196,7 +18196,7 @@ packages: dev: false file:projects/arm-synapse.tgz: - resolution: {integrity: sha512-S5WnuTQi2aWK6q5toiunog3uKzjMhwq0Y3CQ1JAtlJyGa3oIEO760qFTIhycvbhVuiRcmUui5mQGgLV6ChZcHA==, tarball: file:projects/arm-synapse.tgz} + resolution: {integrity: sha512-A6RClJzKgGiGN1juEqb/y6Mus0bXmeagP4Ldk/09Zug+23LMgKNPUG8dhJ9wS3pHwxNWf/6MAW/B/uQqCGcscA==, tarball: file:projects/arm-synapse.tgz} name: '@rush-temp/arm-synapse' version: 0.0.0 dependencies: @@ -18212,6 +18212,7 @@ packages: mocha: 10.8.2 ts-node: 10.9.2(@types/node@18.19.67)(typescript@5.6.3) tslib: 2.8.1 + tsx: 4.19.2 typescript: 5.6.3 transitivePeerDependencies: - '@swc/core' @@ -20631,7 +20632,7 @@ packages: dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-CmpydjzCLyYe9pOqREnO9zXh+Ofszpi3S3jklILN3p2XDuGvzi78TNabj7HfeEyZqhS5JjUvmbGDjvYBBhoycw==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-cPpTxfD+emujmd87h4AkgVwMIGV5tZpD/rAmx10EVBYQo3KREJ3sp9dKA5Aq+oPQVcNeslrJM+lth3+ume9vMg==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: diff --git a/sdk/synapse/arm-synapse/CHANGELOG.md b/sdk/synapse/arm-synapse/CHANGELOG.md index a73c8364abc3..653c5815b691 100644 --- a/sdk/synapse/arm-synapse/CHANGELOG.md +++ b/sdk/synapse/arm-synapse/CHANGELOG.md @@ -1,15 +1,163 @@ # Release History - -## 9.0.0-beta.2 (Unreleased) - + +## 9.0.0-beta.2 (2024-12-05) +Compared with version 8.0.0 + ### Features Added -### Breaking Changes - -### Bugs Fixed + - Added operation group Get + - Added operation group KustoPoolPrivateLinkResourcesOperations + - Added operation group PrivateLinkResourcesOperations + - Added operation group WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettings + - Added operation SqlPoolOperationResults.beginGetLocationHeaderResult + - Added operation SqlPoolOperationResults.beginGetLocationHeaderResultAndWait + - Added operation SqlPools.beginUpdate + - Added operation SqlPools.beginUpdateAndWait + - Added Interface AttachedDatabaseConfiguration + - Added Interface AzureADOnlyAuthentication + - Added Interface AzureEntityResource + - Added Interface BigDataPoolResourceInfo + - Added Interface ClusterPrincipalAssignment + - Added Interface CmdkeySetup + - Added Interface ComponentSetup + - Added Interface CopyComputeScaleProperties + - Added Interface Database + - Added Interface DatabasePrincipalAssignment + - Added Interface DataConnection + - Added Interface DataMaskingPolicy + - Added Interface DataMaskingRule + - Added Interface DataWarehouseUserActivities + - Added Interface DedicatedSQLminimalTlsSettings + - Added Interface DedicatedSQLminimalTlsSettingsListResult + - Added Interface DedicatedSQLminimalTlsSettingsPatchInfo + - Added Interface EncryptionProtector + - Added Interface EnvironmentVariableSetup + - Added Interface ErrorResponseAutoGenerated + - Added Interface EventGridDataConnection + - Added Interface EventHubDataConnection + - Added Interface ExtendedServerBlobAuditingPolicy + - Added Interface ExtendedSqlPoolBlobAuditingPolicy + - Added Interface GeoBackupPolicy + - Added Interface GetIntegrationRuntimeEnableInteractivequeryOptionalParams + - Added Interface GetIntegrationRuntimeStartOptionalParams + - Added Interface GetIntegrationRuntimeStopOptionalParams + - Added Interface IntegrationRuntimeEnableinteractivequery + - Added Interface IntegrationRuntimeOperationStatus + - Added Interface IntegrationRuntimeResource + - Added Interface IntegrationRuntimeStopOperationStatus + - Added Interface IotHubDataConnection + - Added Interface IpFirewallRuleInfo + - Added Interface Key + - Added Interface KustoPool + - Added Interface KustoPoolPrivateLinkResources + - Added Interface KustoPoolPrivateLinkResourcesListOptionalParams + - Added Interface KustoPoolUpdate + - Added Interface LibraryResource + - Added Interface LinkedIntegrationRuntimeKeyAuthorization + - Added Interface LinkedIntegrationRuntimeRbacAuthorization + - Added Interface MaintenanceWindowOptions + - Added Interface MaintenanceWindows + - Added Interface ManagedIdentitySqlControlSettingsModel + - Added Interface ManagedIntegrationRuntime + - Added Interface ManagedIntegrationRuntimeStatus + - Added Interface MetadataSyncConfig + - Added Interface PipelineExternalComputeScaleProperties + - Added Interface PrivateEndpointConnection + - Added Interface PrivateEndpointConnectionForPrivateLinkHub + - Added Interface PrivateLinkHub + - Added Interface PrivateLinkResource + - Added Interface PrivateLinkResources + - Added Interface ProxyResource + - Added Interface ReadOnlyFollowingDatabase + - Added Interface ReadWriteDatabase + - Added Interface RecommendedSensitivityLabelUpdate + - Added Interface RecoverableSqlPool + - Added Interface ReplicationLink + - Added Interface RestorableDroppedSqlPool + - Added Interface RestorePoint + - Added Interface SecureString + - Added Interface SelfHostedIntegrationRuntime + - Added Interface SelfHostedIntegrationRuntimeStatus + - Added Interface SensitivityLabel + - Added Interface SensitivityLabelUpdate + - Added Interface ServerBlobAuditingPolicy + - Added Interface ServerSecurityAlertPolicy + - Added Interface ServerVulnerabilityAssessment + - Added Interface SparkConfigurationResource + - Added Interface SqlPool + - Added Interface SqlPoolBlobAuditingPolicy + - Added Interface SqlPoolColumn + - Added Interface SqlPoolConnectionPolicy + - Added Interface SqlPoolOperation + - Added Interface SqlPoolSchema + - Added Interface SqlPoolSecurityAlertPolicy + - Added Interface SqlPoolTable + - Added Interface SqlPoolVulnerabilityAssessment + - Added Interface SqlPoolVulnerabilityAssessmentRuleBaseline + - Added Interface SqlPoolVulnerabilityAssessmentScansExport + - Added Interface SsisEnvironment + - Added Interface SsisFolder + - Added Interface SsisPackage + - Added Interface SsisProject + - Added Interface SubResource + - Added Interface TrackedResource + - Added Interface TransparentDataEncryption + - Added Interface VulnerabilityAssessmentScanRecord + - Added Interface WorkloadClassifier + - Added Interface WorkloadGroup + - Added Interface Workspace + - Added Interface WorkspaceAadAdminInfo + - Added Interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetOptionalParams + - Added Interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListNextOptionalParams + - Added Interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams + - Added Interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams + - Added Type Alias ActualState + - Added Type Alias DedicatedSQLMinimalTlsSettingsName + - Added Type Alias DesiredState + - Added Type Alias GetIntegrationRuntimeEnableInteractivequeryResponse + - Added Type Alias GetIntegrationRuntimeStartResponse + - Added Type Alias GetIntegrationRuntimeStopResponse + - Added Type Alias KustoPoolPrivateLinkResourcesListResponse + - Added Type Alias WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetResponse + - Added Type Alias WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListNextResponse + - Added Type Alias WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListResponse + - Added Type Alias WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse + - Added Type Alias WorkspaceStatus + - Interface IntegrationRuntimeComputeProperties has a new optional parameter copyComputeScaleProperties + - Interface IntegrationRuntimeComputeProperties has a new optional parameter pipelineExternalComputeScaleProperties + - Interface IntegrationRuntimeStatusResponse has a new optional parameter dataFactoryName + - Interface IntegrationRuntimeStatusResponse has a new optional parameter state + - Interface SqlPoolOperationResultsGetLocationHeaderResultOptionalParams has a new optional parameter resumeFrom + - Interface SqlPoolOperationResultsGetLocationHeaderResultOptionalParams has a new optional parameter updateIntervalInMs + - Interface SqlPoolsUpdateOptionalParams has a new optional parameter resumeFrom + - Interface SqlPoolsUpdateOptionalParams has a new optional parameter updateIntervalInMs + - Added Enum KnownDedicatedSQLMinimalTlsSettingsName + - Added Enum KnownWorkspaceStatus + - Added function getContinuationToken -### Other Changes +### Breaking Changes + - Removed operation group PrivateLinkResources + - Removed operation SqlPoolOperationResults.getLocationHeaderResult + - Removed operation SqlPools.rename + - Removed operation SqlPools.update + - Class SynapseManagementClient has a new signature + - Interface IntegrationRuntimeStatusResponse no longer has parameter properties + - Interface SqlPoolSchemasListNextOptionalParams no longer has parameter filter + - Interface SqlPoolSensitivityLabelsListCurrentNextOptionalParams no longer has parameter filter + - Interface SqlPoolSensitivityLabelsListRecommendedNextOptionalParams no longer has parameter filter + - Interface SqlPoolSensitivityLabelsListRecommendedNextOptionalParams no longer has parameter includeDisabledRecommendations + - Interface SqlPoolSensitivityLabelsListRecommendedNextOptionalParams no longer has parameter skipToken + - Interface SqlPoolTableColumnsListByTableNameNextOptionalParams no longer has parameter filter + - Interface SqlPoolTablesListBySchemaNextOptionalParams no longer has parameter filter + - Interface IntegrationRuntimeStatusResponse has a new required parameter type + - Type of parameter actualState of interface ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity is changed from ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState to ActualState + - Type of parameter desiredState of interface ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity is changed from ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState to DesiredState + - Class SynapseManagementClient no longer has parameter privateLinkResources + - Removed Enum KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState + - Removed Enum KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState + + ## 9.0.0-beta.1 (2023-02-08) ### Features Added @@ -169,4 +317,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/synapse/arm-synapse/LICENSE b/sdk/synapse/arm-synapse/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/synapse/arm-synapse/LICENSE +++ b/sdk/synapse/arm-synapse/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/synapse/arm-synapse/README.md b/sdk/synapse/arm-synapse/README.md index 8d862a0a320a..d60b167b6742 100644 --- a/sdk/synapse/arm-synapse/README.md +++ b/sdk/synapse/arm-synapse/README.md @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure SynapseManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). diff --git a/sdk/synapse/arm-synapse/_meta.json b/sdk/synapse/arm-synapse/_meta.json index 3db878d61f07..a187d68576d0 100644 --- a/sdk/synapse/arm-synapse/_meta.json +++ b/sdk/synapse/arm-synapse/_meta.json @@ -1,8 +1,8 @@ { - "commit": "340d577969b7bff5ad0488d79543314bc17daa50", - "readme": "specification\\synapse\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\synapse\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.7 --generate-sample=true", + "commit": "930c3e95b7dcd271fd4faf673fd697babd296a6d", + "readme": "specification/synapse/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/synapse/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.1", - "use": "@autorest/typescript@6.0.0-rc.7" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.16", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/synapse/arm-synapse/package.json b/sdk/synapse/arm-synapse/package.json index 6957620ad957..fb36710540e2 100644 --- a/sdk/synapse/arm-synapse/package.json +++ b/sdk/synapse/arm-synapse/package.json @@ -8,12 +8,12 @@ "node": ">=18.0.0" }, "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-client": "^1.6.1", - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.4", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -28,18 +28,19 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-synapse.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "typescript": "~5.6.2", + "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", + "@azure/identity": "^4.2.1", + "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^1.1.0", + "mocha": "^10.0.0", "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", + "tsx": "^4.7.1", + "@types/chai": "^4.2.8", "chai": "^4.2.0", - "dotenv": "^16.0.0", - "mocha": "^10.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -67,28 +68,28 @@ ], "scripts": { "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "build:browser": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "dev-tool run extract-api", + "lint": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", - "build:samples": "echo skipped.", + "build:browser": "echo skipped", "build:test": "echo skipped", + "build:samples": "echo skipped.", "check-format": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "lint": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", "test": "npm run integration-test", - "test:browser": "echo skipped", "test:node": "echo skipped", + "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -101,13 +102,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/synapse/arm-synapse", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-synapse?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/synapse/arm-synapse" +} \ No newline at end of file diff --git a/sdk/synapse/arm-synapse/review/arm-synapse.api.md b/sdk/synapse/arm-synapse/review/arm-synapse.api.md index 34ccf171d685..62faad5077a1 100644 --- a/sdk/synapse/arm-synapse/review/arm-synapse.api.md +++ b/sdk/synapse/arm-synapse/review/arm-synapse.api.md @@ -6,9 +6,9 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public export type ActualState = "Enabling" | "Enabled" | "Disabling" | "Disabled" | "Unknown"; @@ -78,7 +78,7 @@ export type AzureADOnlyAuthenticationName = string; // @public export interface AzureADOnlyAuthentications { - beginCreate(resourceGroupName: string, workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, options?: AzureADOnlyAuthenticationsCreateOptionalParams): Promise, AzureADOnlyAuthenticationsCreateResponse>>; + beginCreate(resourceGroupName: string, workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, options?: AzureADOnlyAuthenticationsCreateOptionalParams): Promise, AzureADOnlyAuthenticationsCreateResponse>>; beginCreateAndWait(resourceGroupName: string, workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, options?: AzureADOnlyAuthenticationsCreateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, options?: AzureADOnlyAuthenticationsGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, options?: AzureADOnlyAuthenticationsListOptionalParams): PagedAsyncIterableIterator; @@ -182,9 +182,9 @@ export interface BigDataPoolResourceInfoListResult { // @public export interface BigDataPools { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolInfo: BigDataPoolResourceInfo, options?: BigDataPoolsCreateOrUpdateOptionalParams): Promise, BigDataPoolsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolInfo: BigDataPoolResourceInfo, options?: BigDataPoolsCreateOrUpdateOptionalParams): Promise, BigDataPoolsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolInfo: BigDataPoolResourceInfo, options?: BigDataPoolsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options?: BigDataPoolsDeleteOptionalParams): Promise, BigDataPoolsDeleteResponse>>; + beginDelete(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options?: BigDataPoolsDeleteOptionalParams): Promise, BigDataPoolsDeleteResponse>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options?: BigDataPoolsDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options?: BigDataPoolsGetOptionalParams): Promise; listByWorkspace(resourceGroupName: string, workspaceName: string, options?: BigDataPoolsListByWorkspaceOptionalParams): PagedAsyncIterableIterator; @@ -323,6 +323,13 @@ export type ConfigurationType = string; // @public export type ConnectionPolicyName = string; +// @public +export interface CopyComputeScaleProperties { + [property: string]: any; + dataIntegrationUnit?: number; + timeToLive?: number; +} + // @public export type CreatedByType = string; @@ -880,11 +887,13 @@ export type IntegrationRuntimeAutoUpdate = string; // @public export interface IntegrationRuntimeComputeProperties { [property: string]: any; + copyComputeScaleProperties?: CopyComputeScaleProperties; dataFlowProperties?: IntegrationRuntimeDataFlowProperties; location?: string; maxParallelExecutionsPerNode?: number; nodeSize?: string; numberOfNodes?: number; + pipelineExternalComputeScaleProperties?: PipelineExternalComputeScaleProperties; vNetProperties?: IntegrationRuntimeVNetProperties; } @@ -1043,7 +1052,7 @@ export type IntegrationRuntimeNodesUpdateResponse = SelfHostedIntegrationRuntime // @public export interface IntegrationRuntimeObjectMetadata { - beginRefresh(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams): Promise, IntegrationRuntimeObjectMetadataRefreshResponse>>; + beginRefresh(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams): Promise, IntegrationRuntimeObjectMetadataRefreshResponse>>; beginRefreshAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataListOptionalParams): Promise; } @@ -1108,17 +1117,17 @@ export interface IntegrationRuntimeResource extends SubResource { // @public export interface IntegrationRuntimes { - beginCreate(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, integrationRuntime: IntegrationRuntimeResource, options?: IntegrationRuntimesCreateOptionalParams): Promise, IntegrationRuntimesCreateResponse>>; + beginCreate(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, integrationRuntime: IntegrationRuntimeResource, options?: IntegrationRuntimesCreateOptionalParams): Promise, IntegrationRuntimesCreateResponse>>; beginCreateAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, integrationRuntime: IntegrationRuntimeResource, options?: IntegrationRuntimesCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesDeleteOptionalParams): Promise; - beginDisableInteractiveQuery(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams): Promise, void>>; + beginDisableInteractiveQuery(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams): Promise, void>>; beginDisableInteractiveQueryAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams): Promise; - beginEnableInteractiveQuery(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams): Promise, void>>; + beginEnableInteractiveQuery(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams): Promise, void>>; beginEnableInteractiveQueryAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams): Promise; - beginStart(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStartOptionalParams): Promise, IntegrationRuntimesStartResponse>>; + beginStart(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStartOptionalParams): Promise, IntegrationRuntimesStartResponse>>; beginStartAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStartOptionalParams): Promise; - beginStop(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStopOptionalParams): Promise, void>>; + beginStop(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStopOptionalParams): Promise, void>>; beginStopAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStopOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesGetOptionalParams): Promise; listByWorkspace(resourceGroupName: string, workspaceName: string, options?: IntegrationRuntimesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; @@ -1331,11 +1340,11 @@ export interface IpFirewallRuleProperties { // @public export interface IpFirewallRules { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, ruleName: string, ipFirewallRuleInfo: IpFirewallRuleInfo, options?: IpFirewallRulesCreateOrUpdateOptionalParams): Promise, IpFirewallRulesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, ruleName: string, ipFirewallRuleInfo: IpFirewallRuleInfo, options?: IpFirewallRulesCreateOrUpdateOptionalParams): Promise, IpFirewallRulesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, ruleName: string, ipFirewallRuleInfo: IpFirewallRuleInfo, options?: IpFirewallRulesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, ruleName: string, options?: IpFirewallRulesDeleteOptionalParams): Promise, IpFirewallRulesDeleteResponse>>; + beginDelete(resourceGroupName: string, workspaceName: string, ruleName: string, options?: IpFirewallRulesDeleteOptionalParams): Promise, IpFirewallRulesDeleteResponse>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, ruleName: string, options?: IpFirewallRulesDeleteOptionalParams): Promise; - beginReplaceAll(resourceGroupName: string, workspaceName: string, request: ReplaceAllIpFirewallRulesRequest, options?: IpFirewallRulesReplaceAllOptionalParams): Promise, IpFirewallRulesReplaceAllResponse>>; + beginReplaceAll(resourceGroupName: string, workspaceName: string, request: ReplaceAllIpFirewallRulesRequest, options?: IpFirewallRulesReplaceAllOptionalParams): Promise, IpFirewallRulesReplaceAllResponse>>; beginReplaceAllAndWait(resourceGroupName: string, workspaceName: string, request: ReplaceAllIpFirewallRulesRequest, options?: IpFirewallRulesReplaceAllOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, ruleName: string, options?: IpFirewallRulesGetOptionalParams): Promise; listByWorkspace(resourceGroupName: string, workspaceName: string, options?: IpFirewallRulesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; @@ -2003,9 +2012,9 @@ export interface KustoPool extends TrackedResource { // @public export interface KustoPoolAttachedDatabaseConfigurations { - beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, parameters: AttachedDatabaseConfiguration, options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams): Promise, KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse>>; + beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, parameters: AttachedDatabaseConfiguration, options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams): Promise, KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, parameters: AttachedDatabaseConfiguration, options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams): Promise; - beginDelete(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams): Promise, void>>; + beginDelete(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams): Promise; get(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options?: KustoPoolAttachedDatabaseConfigurationsGetOptionalParams): Promise; listByKustoPool(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams): PagedAsyncIterableIterator; @@ -2060,9 +2069,9 @@ export type KustoPoolChildResourceCheckNameAvailabilityResponse = CheckNameResul // @public export interface KustoPoolDatabasePrincipalAssignments { - beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, parameters: DatabasePrincipalAssignment, options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams): Promise, KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse>>; + beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, parameters: DatabasePrincipalAssignment, options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams): Promise, KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, parameters: DatabasePrincipalAssignment, options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams): Promise; - beginDelete(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams): Promise, void>>; + beginDelete(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams): Promise; checkNameAvailability(workspaceName: string, kustoPoolName: string, databaseName: string, resourceGroupName: string, principalAssignmentName: DatabasePrincipalAssignmentCheckNameRequest, options?: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams): Promise; get(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolDatabasePrincipalAssignmentsGetOptionalParams): Promise; @@ -2107,11 +2116,11 @@ export type KustoPoolDatabasePrincipalAssignmentsListResponse = DatabasePrincipa // @public export interface KustoPoolDatabases { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, options?: KustoPoolDatabasesCreateOrUpdateOptionalParams): Promise, KustoPoolDatabasesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, options?: KustoPoolDatabasesCreateOrUpdateOptionalParams): Promise, KustoPoolDatabasesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, options?: KustoPoolDatabasesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: KustoPoolDatabasesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: KustoPoolDatabasesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: KustoPoolDatabasesDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, options?: KustoPoolDatabasesUpdateOptionalParams): Promise, KustoPoolDatabasesUpdateResponse>>; + beginUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, options?: KustoPoolDatabasesUpdateOptionalParams): Promise, KustoPoolDatabasesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, options?: KustoPoolDatabasesUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: KustoPoolDatabasesGetOptionalParams): Promise; listByKustoPool(resourceGroupName: string, workspaceName: string, kustoPoolName: string, options?: KustoPoolDatabasesListByKustoPoolOptionalParams): PagedAsyncIterableIterator; @@ -2157,13 +2166,13 @@ export type KustoPoolDatabasesUpdateResponse = DatabaseUnion; // @public export interface KustoPoolDataConnections { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams): Promise, KustoPoolDataConnectionsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams): Promise, KustoPoolDataConnectionsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams): Promise; - beginDataConnectionValidation(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DataConnectionValidation, options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams): Promise, KustoPoolDataConnectionsDataConnectionValidationResponse>>; + beginDataConnectionValidation(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DataConnectionValidation, options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams): Promise, KustoPoolDataConnectionsDataConnectionValidationResponse>>; beginDataConnectionValidationAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DataConnectionValidation, options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options?: KustoPoolDataConnectionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options?: KustoPoolDataConnectionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options?: KustoPoolDataConnectionsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, options?: KustoPoolDataConnectionsUpdateOptionalParams): Promise, KustoPoolDataConnectionsUpdateResponse>>; + beginUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, options?: KustoPoolDataConnectionsUpdateOptionalParams): Promise, KustoPoolDataConnectionsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, options?: KustoPoolDataConnectionsUpdateOptionalParams): Promise; checkNameAvailability(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: DataConnectionCheckNameRequest, options?: KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options?: KustoPoolDataConnectionsGetOptionalParams): Promise; @@ -2231,9 +2240,9 @@ export interface KustoPoolListResult { // @public export interface KustoPoolPrincipalAssignments { - beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, parameters: ClusterPrincipalAssignment, options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams): Promise, KustoPoolPrincipalAssignmentsCreateOrUpdateResponse>>; + beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, parameters: ClusterPrincipalAssignment, options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams): Promise, KustoPoolPrincipalAssignmentsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, parameters: ClusterPrincipalAssignment, options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams): Promise; - beginDelete(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams): Promise, void>>; + beginDelete(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams): Promise; checkNameAvailability(workspaceName: string, kustoPoolName: string, resourceGroupName: string, principalAssignmentName: ClusterPrincipalAssignmentCheckNameRequest, options?: KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams): Promise; get(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolPrincipalAssignmentsGetOptionalParams): Promise; @@ -2299,21 +2308,21 @@ export interface KustoPoolPrivateLinkResourcesOperations { // @public export interface KustoPools { - beginAddLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: LanguageExtensionsList, options?: KustoPoolsAddLanguageExtensionsOptionalParams): Promise, void>>; + beginAddLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: LanguageExtensionsList, options?: KustoPoolsAddLanguageExtensionsOptionalParams): Promise, void>>; beginAddLanguageExtensionsAndWait(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: LanguageExtensionsList, options?: KustoPoolsAddLanguageExtensionsOptionalParams): Promise; - beginCreateOrUpdate(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: KustoPool, options?: KustoPoolsCreateOrUpdateOptionalParams): Promise, KustoPoolsCreateOrUpdateResponse>>; + beginCreateOrUpdate(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: KustoPool, options?: KustoPoolsCreateOrUpdateOptionalParams): Promise, KustoPoolsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: KustoPool, options?: KustoPoolsCreateOrUpdateOptionalParams): Promise; - beginDelete(workspaceName: string, resourceGroupName: string, kustoPoolName: string, options?: KustoPoolsDeleteOptionalParams): Promise, void>>; + beginDelete(workspaceName: string, resourceGroupName: string, kustoPoolName: string, options?: KustoPoolsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(workspaceName: string, resourceGroupName: string, kustoPoolName: string, options?: KustoPoolsDeleteOptionalParams): Promise; - beginDetachFollowerDatabases(workspaceName: string, kustoPoolName: string, resourceGroupName: string, followerDatabaseToRemove: FollowerDatabaseDefinition, options?: KustoPoolsDetachFollowerDatabasesOptionalParams): Promise, void>>; + beginDetachFollowerDatabases(workspaceName: string, kustoPoolName: string, resourceGroupName: string, followerDatabaseToRemove: FollowerDatabaseDefinition, options?: KustoPoolsDetachFollowerDatabasesOptionalParams): Promise, void>>; beginDetachFollowerDatabasesAndWait(workspaceName: string, kustoPoolName: string, resourceGroupName: string, followerDatabaseToRemove: FollowerDatabaseDefinition, options?: KustoPoolsDetachFollowerDatabasesOptionalParams): Promise; - beginRemoveLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToRemove: LanguageExtensionsList, options?: KustoPoolsRemoveLanguageExtensionsOptionalParams): Promise, void>>; + beginRemoveLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToRemove: LanguageExtensionsList, options?: KustoPoolsRemoveLanguageExtensionsOptionalParams): Promise, void>>; beginRemoveLanguageExtensionsAndWait(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToRemove: LanguageExtensionsList, options?: KustoPoolsRemoveLanguageExtensionsOptionalParams): Promise; - beginStart(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsStartOptionalParams): Promise, void>>; + beginStart(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsStartOptionalParams): Promise, void>>; beginStartAndWait(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsStartOptionalParams): Promise; - beginStop(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsStopOptionalParams): Promise, void>>; + beginStop(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsStopOptionalParams): Promise, void>>; beginStopAndWait(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsStopOptionalParams): Promise; - beginUpdate(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: KustoPoolUpdate, options?: KustoPoolsUpdateOptionalParams): Promise, KustoPoolsUpdateResponse>>; + beginUpdate(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: KustoPoolUpdate, options?: KustoPoolsUpdateOptionalParams): Promise, KustoPoolsUpdateResponse>>; beginUpdateAndWait(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: KustoPoolUpdate, options?: KustoPoolsUpdateOptionalParams): Promise; checkNameAvailability(location: string, kustoPoolName: KustoPoolCheckNameRequest, options?: KustoPoolsCheckNameAvailabilityOptionalParams): Promise; get(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsGetOptionalParams): Promise; @@ -2500,7 +2509,7 @@ export interface LibraryInfo { path?: string; readonly provisioningStatus?: string; type?: string; - uploadedTimestamp?: Date; + readonly uploadedTimestamp?: Date; } // @public @@ -2524,7 +2533,7 @@ export interface LibraryResource extends SubResource { path?: string; readonly provisioningStatus?: string; typePropertiesType?: string; - uploadedTimestamp?: Date; + readonly uploadedTimestamp?: Date; } // @public @@ -2798,6 +2807,14 @@ export interface OptimizedAutoscale { version: number; } +// @public +export interface PipelineExternalComputeScaleProperties { + [property: string]: any; + numberOfExternalNodes?: number; + numberOfPipelineNodes?: number; + timeToLive?: number; +} + // @public export type PrincipalsModificationKind = string; @@ -2862,9 +2879,9 @@ export interface PrivateEndpointConnectionProperties { // @public export interface PrivateEndpointConnections { - beginCreate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, request: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOptionalParams): Promise, PrivateEndpointConnectionsCreateResponse>>; + beginCreate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, request: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOptionalParams): Promise, PrivateEndpointConnectionsCreateResponse>>; beginCreateAndWait(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, request: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; @@ -2981,7 +2998,7 @@ export type PrivateLinkHubPrivateLinkResourcesListResponse = PrivateLinkResource // @public export interface PrivateLinkHubs { - beginDelete(resourceGroupName: string, privateLinkHubName: string, options?: PrivateLinkHubsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, privateLinkHubName: string, options?: PrivateLinkHubsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, privateLinkHubName: string, options?: PrivateLinkHubsDeleteOptionalParams): Promise; createOrUpdate(resourceGroupName: string, privateLinkHubName: string, privateLinkHubInfo: PrivateLinkHub, options?: PrivateLinkHubsCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, privateLinkHubName: string, options?: PrivateLinkHubsGetOptionalParams): Promise; @@ -3253,11 +3270,6 @@ export interface Resource { // @public export type ResourceIdentityType = "None" | "SystemAssigned" | "SystemAssigned,UserAssigned"; -// @public -export interface ResourceMoveDefinition { - id: string; -} - // @public export type ResourceProvisioningState = string; @@ -3343,6 +3355,7 @@ export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; // @public export interface SelfHostedIntegrationRuntime extends IntegrationRuntime { linkedInfo?: LinkedIntegrationRuntimeTypeUnion; + selfContainedInteractiveAuthoringEnabled?: boolean; type: "SelfHosted"; } @@ -3389,10 +3402,13 @@ export interface SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeSt newerVersions?: string[]; readonly nodeCommunicationChannelEncryptionMode?: string; nodes?: SelfHostedIntegrationRuntimeNode[]; + readonly osType?: number; readonly pushedVersion?: string; readonly scheduledUpdateDate?: Date; + readonly selfContainedInteractiveAuthoringEnabled?: boolean; serviceRegion?: string; readonly serviceUrls?: string[]; + readonly targetFramework?: number; readonly taskQueueId?: string; type: "SelfHosted"; readonly updateDelayOffset?: string; @@ -3852,7 +3868,7 @@ export interface SqlPoolOperation extends ProxyResource { // @public export interface SqlPoolOperationResults { - beginGetLocationHeaderResult(resourceGroupName: string, workspaceName: string, sqlPoolName: string, operationId: string, options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams): Promise, SqlPoolOperationResultsGetLocationHeaderResultResponse>>; + beginGetLocationHeaderResult(resourceGroupName: string, workspaceName: string, sqlPoolName: string, operationId: string, options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams): Promise, SqlPoolOperationResultsGetLocationHeaderResultResponse>>; beginGetLocationHeaderResultAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, operationId: string, options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams): Promise; } @@ -3942,7 +3958,7 @@ export type SqlPoolReplicationLinksListResponse = ReplicationLinkListResult; // @public export interface SqlPoolRestorePoints { - beginCreate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: CreateSqlPoolRestorePointDefinition, options?: SqlPoolRestorePointsCreateOptionalParams): Promise, SqlPoolRestorePointsCreateResponse>>; + beginCreate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: CreateSqlPoolRestorePointDefinition, options?: SqlPoolRestorePointsCreateOptionalParams): Promise, SqlPoolRestorePointsCreateResponse>>; beginCreateAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: CreateSqlPoolRestorePointDefinition, options?: SqlPoolRestorePointsCreateOptionalParams): Promise; delete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: string, options?: SqlPoolRestorePointsDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: string, options?: SqlPoolRestorePointsGetOptionalParams): Promise; @@ -3985,19 +4001,18 @@ export type SqlPoolRestorePointsListResponse = RestorePointListResult; // @public export interface SqlPools { - beginCreate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPool, options?: SqlPoolsCreateOptionalParams): Promise, SqlPoolsCreateResponse>>; + beginCreate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPool, options?: SqlPoolsCreateOptionalParams): Promise, SqlPoolsCreateResponse>>; beginCreateAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPool, options?: SqlPoolsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsDeleteOptionalParams): Promise, SqlPoolsDeleteResponse>>; + beginDelete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsDeleteOptionalParams): Promise, SqlPoolsDeleteResponse>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsDeleteOptionalParams): Promise; - beginPause(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsPauseOptionalParams): Promise, SqlPoolsPauseResponse>>; + beginPause(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsPauseOptionalParams): Promise, SqlPoolsPauseResponse>>; beginPauseAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsPauseOptionalParams): Promise; - beginResume(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsResumeOptionalParams): Promise, SqlPoolsResumeResponse>>; + beginResume(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsResumeOptionalParams): Promise, SqlPoolsResumeResponse>>; beginResumeAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsResumeOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPoolPatchInfo, options?: SqlPoolsUpdateOptionalParams): Promise, SqlPoolsUpdateResponse>>; + beginUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPoolPatchInfo, options?: SqlPoolsUpdateOptionalParams): Promise, SqlPoolsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPoolPatchInfo, options?: SqlPoolsUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsGetOptionalParams): Promise; listByWorkspace(resourceGroupName: string, workspaceName: string, options?: SqlPoolsListByWorkspaceOptionalParams): PagedAsyncIterableIterator; - rename(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: ResourceMoveDefinition, options?: SqlPoolsRenameOptionalParams): Promise; } // @public @@ -4207,10 +4222,6 @@ export interface SqlPoolsPauseOptionalParams extends coreClient.OperationOptions // @public export type SqlPoolsPauseResponse = SqlPool; -// @public -export interface SqlPoolsRenameOptionalParams extends coreClient.OperationOptions { -} - // @public export interface SqlPoolsResumeOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -4417,7 +4428,7 @@ export interface SqlPoolVulnerabilityAssessments { // @public export interface SqlPoolVulnerabilityAssessmentScans { - beginInitiateScan(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams): Promise, void>>; + beginInitiateScan(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams): Promise, void>>; beginInitiateScanAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams): Promise; export(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: SqlPoolVulnerabilityAssessmentScansExportOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: SqlPoolVulnerabilityAssessmentScansGetOptionalParams): Promise; @@ -4497,9 +4508,9 @@ export type SqlPoolVulnerabilityAssessmentsListResponse = SqlPoolVulnerabilityAs // @public export interface SqlPoolWorkloadClassifier { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams): Promise, SqlPoolWorkloadClassifierCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams): Promise, SqlPoolWorkloadClassifierCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options?: SqlPoolWorkloadClassifierDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options?: SqlPoolWorkloadClassifierDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options?: SqlPoolWorkloadClassifierDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options?: SqlPoolWorkloadClassifierGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: SqlPoolWorkloadClassifierListOptionalParams): PagedAsyncIterableIterator; @@ -4543,9 +4554,9 @@ export type SqlPoolWorkloadClassifierListResponse = WorkloadClassifierListResult // @public export interface SqlPoolWorkloadGroup { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, parameters: WorkloadGroup, options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams): Promise, SqlPoolWorkloadGroupCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, parameters: WorkloadGroup, options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams): Promise, SqlPoolWorkloadGroupCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, parameters: WorkloadGroup, options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: SqlPoolWorkloadGroupDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: SqlPoolWorkloadGroupDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: SqlPoolWorkloadGroupDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: SqlPoolWorkloadGroupGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolWorkloadGroupListOptionalParams): PagedAsyncIterableIterator; @@ -4698,6 +4709,7 @@ export class SynapseManagementClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SynapseManagementClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: SynapseManagementClientOptionalParams); // (undocumented) azureADOnlyAuthentications: AzureADOnlyAuthentications; // (undocumented) @@ -4825,7 +4837,7 @@ export class SynapseManagementClient extends coreClient.ServiceClient { // (undocumented) sqlPoolWorkloadGroup: SqlPoolWorkloadGroup; // (undocumented) - subscriptionId: string; + subscriptionId?: string; // (undocumented) workspaceAadAdmins: WorkspaceAadAdmins; // (undocumented) @@ -5025,15 +5037,13 @@ export interface WorkloadGroupListResult { export interface Workspace extends TrackedResource { readonly adlaResourceId?: string; azureADOnlyAuthentication?: boolean; - connectivityEndpoints?: { + readonly connectivityEndpoints?: { [propertyName: string]: string; }; cspWorkspaceAdminProperties?: CspWorkspaceAdminProperties; defaultDataLakeStorage?: DataLakeStorageAccountDetails; encryption?: EncryptionDetails; - readonly extraProperties?: { - [propertyName: string]: Record; - }; + readonly extraProperties?: Record; identity?: ManagedIdentity; managedResourceGroupName?: string; managedVirtualNetwork?: string; @@ -5063,9 +5073,9 @@ export interface WorkspaceAadAdminInfo extends ProxyResource { // @public export interface WorkspaceAadAdmins { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams): Promise, WorkspaceAadAdminsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams): Promise, WorkspaceAadAdminsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspaceAadAdminsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspaceAadAdminsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspaceAadAdminsDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, options?: WorkspaceAadAdminsGetOptionalParams): Promise; } @@ -5106,7 +5116,7 @@ export interface WorkspaceKeyDetails { // @public export interface WorkspaceManagedIdentitySqlControlSettings { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams): Promise, WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams): Promise, WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams): Promise; } @@ -5129,7 +5139,7 @@ export type WorkspaceManagedIdentitySqlControlSettingsGetResponse = ManagedIdent // @public export interface WorkspaceManagedSqlServerBlobAuditingPolicies { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ServerBlobAuditingPolicy, options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ServerBlobAuditingPolicy, options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ServerBlobAuditingPolicy, options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, options?: WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams): Promise; listByWorkspace(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; @@ -5167,7 +5177,7 @@ export type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceResponse // @public export interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettings { - beginUpdate(resourceGroupName: string, workspaceName: string, dedicatedSQLminimalTlsSettingsName: DedicatedSQLMinimalTlsSettingsName, parameters: DedicatedSQLminimalTlsSettings, options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams): Promise, WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse>>; + beginUpdate(resourceGroupName: string, workspaceName: string, dedicatedSQLminimalTlsSettingsName: DedicatedSQLMinimalTlsSettingsName, parameters: DedicatedSQLminimalTlsSettings, options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams): Promise, WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, dedicatedSQLminimalTlsSettingsName: DedicatedSQLMinimalTlsSettingsName, parameters: DedicatedSQLminimalTlsSettings, options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, dedicatedSQLminimalTlsSettingsName: string, options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams): PagedAsyncIterableIterator; @@ -5205,9 +5215,9 @@ export type WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateRespons // @public export interface WorkspaceManagedSqlServerEncryptionProtector { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: EncryptionProtector, options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: EncryptionProtector, options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: EncryptionProtector, options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams): Promise; - beginRevalidate(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams): Promise, void>>; + beginRevalidate(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams): Promise, void>>; beginRevalidateAndWait(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, options?: WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams): PagedAsyncIterableIterator; @@ -5251,7 +5261,7 @@ export interface WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalP // @public export interface WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ExtendedServerBlobAuditingPolicy, options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ExtendedServerBlobAuditingPolicy, options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ExtendedServerBlobAuditingPolicy, options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams): Promise; listByWorkspace(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; @@ -5316,7 +5326,7 @@ export type WorkspaceManagedSqlServerRecoverableSqlPoolsListResponse = Recoverab // @public export interface WorkspaceManagedSqlServerSecurityAlertPolicy { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams): PagedAsyncIterableIterator; @@ -5444,11 +5454,11 @@ export interface WorkspaceRepositoryConfiguration { // @public export interface Workspaces { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, workspaceInfo: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, workspaceInfo: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, workspaceInfo: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise, WorkspacesDeleteResponse>>; + beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise, WorkspacesDeleteResponse>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, workspacePatchInfo: WorkspacePatchInfo, options?: WorkspacesUpdateOptionalParams): Promise, WorkspacesUpdateResponse>>; + beginUpdate(resourceGroupName: string, workspaceName: string, workspacePatchInfo: WorkspacePatchInfo, options?: WorkspacesUpdateOptionalParams): Promise, WorkspacesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, workspacePatchInfo: WorkspacePatchInfo, options?: WorkspacesUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise; list(options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator; @@ -5510,9 +5520,9 @@ export type WorkspacesListResponse = WorkspaceInfoListResult; // @public export interface WorkspaceSqlAadAdmins { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams): Promise, WorkspaceSqlAadAdminsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams): Promise, WorkspaceSqlAadAdminsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspaceSqlAadAdminsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspaceSqlAadAdminsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspaceSqlAadAdminsDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, options?: WorkspaceSqlAadAdminsGetOptionalParams): Promise; } diff --git a/sdk/synapse/arm-synapse/sample.env b/sdk/synapse/arm-synapse/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/synapse/arm-synapse/sample.env +++ b/sdk/synapse/arm-synapse/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/synapse/arm-synapse/src/lroImpl.ts b/sdk/synapse/arm-synapse/src/lroImpl.ts index 518d5f053b4e..5f88efab981b 100644 --- a/sdk/synapse/arm-synapse/src/lroImpl.ts +++ b/sdk/synapse/arm-synapse/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike }, + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal, + }); + }, + }; } diff --git a/sdk/synapse/arm-synapse/src/models/index.ts b/sdk/synapse/arm-synapse/src/models/index.ts index 572bd05015d3..d3b30105a7de 100644 --- a/sdk/synapse/arm-synapse/src/models/index.ts +++ b/sdk/synapse/arm-synapse/src/models/index.ts @@ -476,12 +476,6 @@ export interface SqlPoolInfoListResult { value?: SqlPool[]; } -/** Contains the information necessary to perform a resource move (rename). */ -export interface ResourceMoveDefinition { - /** The target ID for the resource */ - id: string; -} - /** The response to a list geo backup policies request. */ export interface GeoBackupPolicyListResult { /** The list of geo backup policies. */ @@ -1064,7 +1058,7 @@ export interface ManagedVirtualNetworkSettings { export interface WorkspaceRepositoryConfiguration { /** Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, WorkspaceGitHubConfiguration */ type?: string; - /** GitHub Enterprise host name. For example: https://github.mydomain.com */ + /** GitHub Enterprise host name. For example: `https://github.mydomain.com` */ hostName?: string; /** Account name */ accountName?: string; @@ -1219,8 +1213,11 @@ export interface LibraryInfo { path?: string; /** Storage blob container name. */ containerName?: string; - /** The last update time of the library. */ - uploadedTimestamp?: Date; + /** + * The last update time of the library. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly uploadedTimestamp?: Date; /** Type of the library. */ type?: string; /** @@ -2104,6 +2101,10 @@ export interface IntegrationRuntimeComputeProperties { dataFlowProperties?: IntegrationRuntimeDataFlowProperties; /** VNet properties for managed integration runtime. */ vNetProperties?: IntegrationRuntimeVNetProperties; + /** CopyComputeScale properties for managed integration runtime. */ + copyComputeScaleProperties?: CopyComputeScaleProperties; + /** PipelineExternalComputeScale properties for managed integration runtime. */ + pipelineExternalComputeScaleProperties?: PipelineExternalComputeScaleProperties; } /** Data flow properties for managed integration runtime. */ @@ -2134,6 +2135,28 @@ export interface IntegrationRuntimeVNetProperties { subnetId?: string; } +/** CopyComputeScale properties for managed integration runtime. */ +export interface CopyComputeScaleProperties { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** DIU number setting reserved for copy activity execution. Supported values are multiples of 4 in range 4-256. */ + dataIntegrationUnit?: number; + /** Time to live (in minutes) setting of integration runtime which will execute copy activity. */ + timeToLive?: number; +} + +/** PipelineExternalComputeScale properties for managed integration runtime. */ +export interface PipelineExternalComputeScaleProperties { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Time to live (in minutes) setting of integration runtime which will execute pipeline and external activity. */ + timeToLive?: number; + /** Number of the pipeline nodes, which should be greater than 0 and less than 11. */ + numberOfPipelineNodes?: number; + /** Number of the the external nodes, which should be greater than 0 and less than 11. */ + numberOfExternalNodes?: number; +} + /** SSIS properties for managed integration runtime. */ export interface IntegrationRuntimeSsisProperties { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ @@ -2482,6 +2505,8 @@ export interface SelfHostedIntegrationRuntime extends IntegrationRuntime { type: "SelfHosted"; /** Linked integration runtime type from data factory */ linkedInfo?: LinkedIntegrationRuntimeTypeUnion; + /** An alternative option to ensure interactive authoring function when your self-hosted integration runtime is unable to establish a connection with Azure Relay. */ + selfContainedInteractiveAuthoringEnabled?: boolean; } /** Ssis folder. */ @@ -2643,6 +2668,15 @@ export interface SelfHostedIntegrationRuntimeStatus serviceRegion?: string; /** The newer versions on download center. */ newerVersions?: string[]; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly osType?: number; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly targetFramework?: number; + /** + * An alternative option to ensure interactive authoring function when your self-hosted integration runtime is unable to establish a connection with Azure Relay. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly selfContainedInteractiveAuthoringEnabled?: boolean; } /** Azure Synapse secure string definition. The string value will be masked with asterisks '*' during Get or List API calls. */ @@ -4143,8 +4177,11 @@ export interface Workspace extends TrackedResource { sqlAdministratorLogin?: string; /** Virtual Network profile */ virtualNetworkProfile?: VirtualNetworkProfile; - /** Connectivity endpoints */ - connectivityEndpoints?: { [propertyName: string]: string }; + /** + * Connectivity endpoints + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly connectivityEndpoints?: { [propertyName: string]: string }; /** Setting this to 'default' will ensure that all compute for this workspace is in a virtual network managed on behalf of the user. */ managedVirtualNetwork?: string; /** Private endpoint connections to the workspace */ @@ -4160,9 +4197,7 @@ export interface Workspace extends TrackedResource { * Workspace level configs and feature flags * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly extraProperties?: { - [propertyName: string]: Record; - }; + readonly extraProperties?: Record; /** Managed Virtual Network Settings */ managedVirtualNetworkSettings?: ManagedVirtualNetworkSettings; /** Git integration settings */ @@ -4444,8 +4479,11 @@ export interface LibraryResource extends SubResource { path?: string; /** Storage blob container name. */ containerName?: string; - /** The last update time of the library. */ - uploadedTimestamp?: Date; + /** + * The last update time of the library. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly uploadedTimestamp?: Date; /** Type of the library. */ typePropertiesType?: string; /** @@ -4489,7 +4527,7 @@ export interface SparkConfigurationResource extends SubResource { /** Known values of {@link AzureADOnlyAuthenticationName} that the service accepts. */ export enum KnownAzureADOnlyAuthenticationName { /** Default */ - Default = "default" + Default = "default", } /** @@ -4508,7 +4546,7 @@ export enum KnownStateValue { /** InConsistent */ InConsistent = "InConsistent", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -4533,7 +4571,7 @@ export enum KnownProvisioningState { /** Failed */ Failed = "Failed", /** DeleteError */ - DeleteError = "DeleteError" + DeleteError = "DeleteError", } /** @@ -4558,7 +4596,7 @@ export enum KnownOperationStatus { /** Failed */ Failed = "Failed", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -4582,7 +4620,7 @@ export enum KnownCreateMode { /** Recovery */ Recovery = "Recovery", /** Restore */ - Restore = "Restore" + Restore = "Restore", } /** @@ -4602,7 +4640,7 @@ export enum KnownStorageAccountType { /** GRS */ GRS = "GRS", /** LRS */ - LRS = "LRS" + LRS = "LRS", } /** @@ -4618,7 +4656,7 @@ export type StorageAccountType = string; /** Known values of {@link GeoBackupPolicyName} that the service accepts. */ export enum KnownGeoBackupPolicyName { /** Default */ - Default = "Default" + Default = "Default", } /** @@ -4633,7 +4671,7 @@ export type GeoBackupPolicyName = string; /** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ export enum KnownDataWarehouseUserActivityName { /** Current */ - Current = "current" + Current = "current", } /** @@ -4654,7 +4692,7 @@ export enum KnownReplicationState { /** CatchUP */ CatchUP = "CATCH_UP", /** Suspended */ - Suspended = "SUSPENDED" + Suspended = "SUSPENDED", } /** @@ -4684,7 +4722,7 @@ export enum KnownDayOfWeek { /** Friday */ Friday = "Friday", /** Saturday */ - Saturday = "Saturday" + Saturday = "Saturday", } /** @@ -4705,7 +4743,7 @@ export type DayOfWeek = string; /** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ export enum KnownTransparentDataEncryptionName { /** Current */ - Current = "current" + Current = "current", } /** @@ -4730,7 +4768,7 @@ export enum KnownManagementOperationState { /** CancelInProgress */ CancelInProgress = "CancelInProgress", /** Cancelled */ - Cancelled = "Cancelled" + Cancelled = "Cancelled", } /** @@ -4816,7 +4854,7 @@ export enum KnownColumnDataType { /** Xml */ Xml = "xml", /** Sysname */ - Sysname = "sysname" + Sysname = "sysname", } /** @@ -4864,7 +4902,7 @@ export type ColumnDataType = string; /** Known values of {@link ConnectionPolicyName} that the service accepts. */ export enum KnownConnectionPolicyName { /** Default */ - Default = "default" + Default = "default", } /** @@ -4879,7 +4917,7 @@ export type ConnectionPolicyName = string; /** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ export enum KnownVulnerabilityAssessmentName { /** Default */ - Default = "default" + Default = "default", } /** @@ -4896,7 +4934,7 @@ export enum KnownVulnerabilityAssessmentScanTriggerType { /** OnDemand */ OnDemand = "OnDemand", /** Recurring */ - Recurring = "Recurring" + Recurring = "Recurring", } /** @@ -4918,7 +4956,7 @@ export enum KnownVulnerabilityAssessmentScanState { /** FailedToRun */ FailedToRun = "FailedToRun", /** InProgress */ - InProgress = "InProgress" + InProgress = "InProgress", } /** @@ -4936,7 +4974,7 @@ export type VulnerabilityAssessmentScanState = string; /** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ export enum KnownSecurityAlertPolicyName { /** Default */ - Default = "default" + Default = "default", } /** @@ -4951,7 +4989,7 @@ export type SecurityAlertPolicyName = string; /** Known values of {@link BlobAuditingPolicyName} that the service accepts. */ export enum KnownBlobAuditingPolicyName { /** Default */ - Default = "default" + Default = "default", } /** @@ -4966,7 +5004,7 @@ export type BlobAuditingPolicyName = string; /** Known values of {@link SecurityAlertPolicyNameAutoGenerated} that the service accepts. */ export enum KnownSecurityAlertPolicyNameAutoGenerated { /** Default */ - Default = "Default" + Default = "Default", } /** @@ -4981,7 +5019,7 @@ export type SecurityAlertPolicyNameAutoGenerated = string; /** Known values of {@link EncryptionProtectorName} that the service accepts. */ export enum KnownEncryptionProtectorName { /** Current */ - Current = "current" + Current = "current", } /** @@ -4998,7 +5036,7 @@ export enum KnownServerKeyType { /** ServiceManaged */ ServiceManaged = "ServiceManaged", /** AzureKeyVault */ - AzureKeyVault = "AzureKeyVault" + AzureKeyVault = "AzureKeyVault", } /** @@ -5014,7 +5052,7 @@ export type ServerKeyType = string; /** Known values of {@link DedicatedSQLMinimalTlsSettingsName} that the service accepts. */ export enum KnownDedicatedSQLMinimalTlsSettingsName { /** Default */ - Default = "default" + Default = "default", } /** @@ -5031,7 +5069,7 @@ export enum KnownWorkspacePublicNetworkAccess { /** Enabled */ Enabled = "Enabled", /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -5049,7 +5087,7 @@ export enum KnownConfigurationType { /** File */ File = "File", /** Artifact */ - Artifact = "Artifact" + Artifact = "Artifact", } /** @@ -5077,7 +5115,7 @@ export enum KnownNodeSize { /** XXLarge */ XXLarge = "XXLarge", /** XXXLarge */ - XXXLarge = "XXXLarge" + XXXLarge = "XXXLarge", } /** @@ -5104,7 +5142,7 @@ export enum KnownNodeSizeFamily { /** HardwareAcceleratedFpga */ HardwareAcceleratedFpga = "HardwareAcceleratedFPGA", /** HardwareAcceleratedGPU */ - HardwareAcceleratedGPU = "HardwareAcceleratedGPU" + HardwareAcceleratedGPU = "HardwareAcceleratedGPU", } /** @@ -5124,7 +5162,7 @@ export enum KnownIntegrationRuntimeAutoUpdate { /** On */ On = "On", /** Off */ - Off = "Off" + Off = "Off", } /** @@ -5142,7 +5180,7 @@ export enum KnownIntegrationRuntimeType { /** Managed */ Managed = "Managed", /** SelfHosted */ - SelfHosted = "SelfHosted" + SelfHosted = "SelfHosted", } /** @@ -5164,7 +5202,7 @@ export enum KnownSsisObjectMetadataType { /** Package */ Package = "Package", /** Environment */ - Environment = "Environment" + Environment = "Environment", } /** @@ -5194,7 +5232,7 @@ export enum KnownSelfHostedIntegrationRuntimeNodeStatus { /** Initializing */ Initializing = "Initializing", /** InitializeFailed */ - InitializeFailed = "InitializeFailed" + InitializeFailed = "InitializeFailed", } /** @@ -5219,7 +5257,7 @@ export enum KnownIntegrationRuntimeUpdateResult { /** Succeed */ Succeed = "Succeed", /** Fail */ - Fail = "Fail" + Fail = "Fail", } /** @@ -5254,7 +5292,7 @@ export enum KnownIntegrationRuntimeState { /** Offline */ Offline = "Offline", /** AccessDenied */ - AccessDenied = "AccessDenied" + AccessDenied = "AccessDenied", } /** @@ -5280,7 +5318,7 @@ export enum KnownIntegrationRuntimeAuthKeyName { /** AuthKey1 */ AuthKey1 = "authKey1", /** AuthKey2 */ - AuthKey2 = "authKey2" + AuthKey2 = "authKey2", } /** @@ -5300,7 +5338,7 @@ export enum KnownWorkspaceStatus { /** Succeeded */ Succeeded = "Succeeded", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -5319,7 +5357,7 @@ export enum KnownReason { /** Invalid */ Invalid = "Invalid", /** AlreadyExists */ - AlreadyExists = "AlreadyExists" + AlreadyExists = "AlreadyExists", } /** @@ -5337,7 +5375,7 @@ export enum KnownSkuName { /** ComputeOptimized */ ComputeOptimized = "Compute optimized", /** StorageOptimized */ - StorageOptimized = "Storage optimized" + StorageOptimized = "Storage optimized", } /** @@ -5359,7 +5397,7 @@ export enum KnownSkuSize { /** Medium */ Medium = "Medium", /** Large */ - Large = "Large" + Large = "Large", } /** @@ -5393,7 +5431,7 @@ export enum KnownState { /** Starting */ Starting = "Starting", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -5428,7 +5466,7 @@ export enum KnownResourceProvisioningState { /** Moving */ Moving = "Moving", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -5451,7 +5489,7 @@ export enum KnownLanguageExtensionName { /** Python */ Python = "PYTHON", /** R */ - R = "R" + R = "R", } /** @@ -5473,7 +5511,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -5495,7 +5533,7 @@ export enum KnownAzureScaleType { /** Manual */ Manual = "manual", /** None */ - None = "none" + None = "none", } /** @@ -5516,7 +5554,7 @@ export enum KnownDefaultPrincipalsModificationKind { /** Replace */ Replace = "Replace", /** None */ - None = "None" + None = "None", } /** @@ -5535,7 +5573,7 @@ export enum KnownKind { /** ReadWrite */ ReadWrite = "ReadWrite", /** ReadOnlyFollowing */ - ReadOnlyFollowing = "ReadOnlyFollowing" + ReadOnlyFollowing = "ReadOnlyFollowing", } /** @@ -5555,7 +5593,7 @@ export enum KnownDataConnectionKind { /** EventGrid */ EventGrid = "EventGrid", /** IotHub */ - IotHub = "IotHub" + IotHub = "IotHub", } /** @@ -5574,7 +5612,7 @@ export enum KnownClusterPrincipalRole { /** AllDatabasesAdmin */ AllDatabasesAdmin = "AllDatabasesAdmin", /** AllDatabasesViewer */ - AllDatabasesViewer = "AllDatabasesViewer" + AllDatabasesViewer = "AllDatabasesViewer", } /** @@ -5594,7 +5632,7 @@ export enum KnownPrincipalType { /** Group */ Group = "Group", /** User */ - User = "User" + User = "User", } /** @@ -5621,7 +5659,7 @@ export enum KnownDatabasePrincipalRole { /** UnrestrictedViewer */ UnrestrictedViewer = "UnrestrictedViewer", /** Viewer */ - Viewer = "Viewer" + Viewer = "Viewer", } /** @@ -5645,7 +5683,7 @@ export enum KnownDataFlowComputeType { /** MemoryOptimized */ MemoryOptimized = "MemoryOptimized", /** ComputeOptimized */ - ComputeOptimized = "ComputeOptimized" + ComputeOptimized = "ComputeOptimized", } /** @@ -5668,7 +5706,7 @@ export enum KnownIntegrationRuntimeSsisCatalogPricingTier { /** Premium */ Premium = "Premium", /** PremiumRS */ - PremiumRS = "PremiumRS" + PremiumRS = "PremiumRS", } /** @@ -5688,7 +5726,7 @@ export enum KnownIntegrationRuntimeLicenseType { /** BasePrice */ BasePrice = "BasePrice", /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded" + LicenseIncluded = "LicenseIncluded", } /** @@ -5706,7 +5744,7 @@ export enum KnownIntegrationRuntimeEntityReferenceType { /** IntegrationRuntimeReference */ IntegrationRuntimeReference = "IntegrationRuntimeReference", /** LinkedServiceReference */ - LinkedServiceReference = "LinkedServiceReference" + LinkedServiceReference = "LinkedServiceReference", } /** @@ -5724,7 +5762,7 @@ export enum KnownIntegrationRuntimeEdition { /** Standard */ Standard = "Standard", /** Enterprise */ - Enterprise = "Enterprise" + Enterprise = "Enterprise", } /** @@ -5746,7 +5784,7 @@ export enum KnownManagedIntegrationRuntimeNodeStatus { /** Recycling */ Recycling = "Recycling", /** Unavailable */ - Unavailable = "Unavailable" + Unavailable = "Unavailable", } /** @@ -5768,7 +5806,7 @@ export enum KnownIntegrationRuntimeInternalChannelEncryptionMode { /** SslEncrypted */ SslEncrypted = "SslEncrypted", /** NotEncrypted */ - NotEncrypted = "NotEncrypted" + NotEncrypted = "NotEncrypted", } /** @@ -5789,7 +5827,7 @@ export enum KnownPrincipalsModificationKind { /** Replace */ Replace = "Replace", /** None */ - None = "None" + None = "None", } /** @@ -5836,7 +5874,7 @@ export enum KnownEventHubDataFormat { /** Apacheavro */ Apacheavro = "APACHEAVRO", /** W3Clogfile */ - W3Clogfile = "W3CLOGFILE" + W3Clogfile = "W3CLOGFILE", } /** @@ -5868,7 +5906,7 @@ export enum KnownCompression { /** None */ None = "None", /** GZip */ - GZip = "GZip" + GZip = "GZip", } /** @@ -5914,7 +5952,7 @@ export enum KnownIotHubDataFormat { /** Apacheavro */ Apacheavro = "APACHEAVRO", /** W3Clogfile */ - W3Clogfile = "W3CLOGFILE" + W3Clogfile = "W3CLOGFILE", } /** @@ -5974,7 +6012,7 @@ export enum KnownEventGridDataFormat { /** Apacheavro */ Apacheavro = "APACHEAVRO", /** W3Clogfile */ - W3Clogfile = "W3CLOGFILE" + W3Clogfile = "W3CLOGFILE", } /** @@ -6006,7 +6044,7 @@ export enum KnownBlobStorageEventType { /** MicrosoftStorageBlobCreated */ MicrosoftStorageBlobCreated = "Microsoft.Storage.BlobCreated", /** MicrosoftStorageBlobRenamed */ - MicrosoftStorageBlobRenamed = "Microsoft.Storage.BlobRenamed" + MicrosoftStorageBlobRenamed = "Microsoft.Storage.BlobRenamed", } /** @@ -6116,28 +6154,32 @@ export interface AzureADOnlyAuthenticationsCreateOptionalParams } /** Contains response data for the create operation. */ -export type AzureADOnlyAuthenticationsCreateResponse = AzureADOnlyAuthentication; +export type AzureADOnlyAuthenticationsCreateResponse = + AzureADOnlyAuthentication; /** Optional parameters. */ export interface AzureADOnlyAuthenticationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AzureADOnlyAuthenticationsListResponse = AzureADOnlyAuthenticationListResult; +export type AzureADOnlyAuthenticationsListResponse = + AzureADOnlyAuthenticationListResult; /** Optional parameters. */ export interface AzureADOnlyAuthenticationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AzureADOnlyAuthenticationsListNextResponse = AzureADOnlyAuthenticationListResult; +export type AzureADOnlyAuthenticationsListNextResponse = + AzureADOnlyAuthenticationListResult; /** Optional parameters. */ export interface OperationsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type OperationsCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; +export type OperationsCheckNameAvailabilityResponse = + CheckNameAvailabilityResponse; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -6162,7 +6204,8 @@ export interface IpFirewallRulesListByWorkspaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspace operation. */ -export type IpFirewallRulesListByWorkspaceResponse = IpFirewallRuleInfoListResult; +export type IpFirewallRulesListByWorkspaceResponse = + IpFirewallRuleInfoListResult; /** Optional parameters. */ export interface IpFirewallRulesCreateOrUpdateOptionalParams @@ -6205,14 +6248,16 @@ export interface IpFirewallRulesReplaceAllOptionalParams } /** Contains response data for the replaceAll operation. */ -export type IpFirewallRulesReplaceAllResponse = ReplaceAllFirewallRulesOperationResponse; +export type IpFirewallRulesReplaceAllResponse = + ReplaceAllFirewallRulesOperationResponse; /** Optional parameters. */ export interface IpFirewallRulesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspaceNext operation. */ -export type IpFirewallRulesListByWorkspaceNextResponse = IpFirewallRuleInfoListResult; +export type IpFirewallRulesListByWorkspaceNextResponse = + IpFirewallRuleInfoListResult; /** Optional parameters. */ export interface KeysListByWorkspaceOptionalParams @@ -6264,7 +6309,8 @@ export interface PrivateEndpointConnectionsCreateOptionalParams } /** Contains response data for the create operation. */ -export type PrivateEndpointConnectionsCreateResponse = PrivateEndpointConnection; +export type PrivateEndpointConnectionsCreateResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsDeleteOptionalParams @@ -6280,14 +6326,16 @@ export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionList; +export type PrivateEndpointConnectionsListResponse = + PrivateEndpointConnectionList; /** Optional parameters. */ export interface PrivateEndpointConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnectionList; +export type PrivateEndpointConnectionsListNextResponse = + PrivateEndpointConnectionList; /** Optional parameters. */ export interface PrivateLinkResourcesListOptionalParams @@ -6308,14 +6356,16 @@ export interface PrivateLinkResourcesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type PrivateLinkResourcesListNextResponse = PrivateLinkResourceListResult; +export type PrivateLinkResourcesListNextResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface PrivateLinkHubPrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PrivateLinkHubPrivateLinkResourcesListResponse = PrivateLinkResourceListResult; +export type PrivateLinkHubPrivateLinkResourcesListResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface PrivateLinkHubPrivateLinkResourcesGetOptionalParams @@ -6329,14 +6379,16 @@ export interface PrivateLinkHubPrivateLinkResourcesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type PrivateLinkHubPrivateLinkResourcesListNextResponse = PrivateLinkResourceListResult; +export type PrivateLinkHubPrivateLinkResourcesListNextResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface PrivateLinkHubsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type PrivateLinkHubsListByResourceGroupResponse = PrivateLinkHubInfoListResult; +export type PrivateLinkHubsListByResourceGroupResponse = + PrivateLinkHubInfoListResult; /** Optional parameters. */ export interface PrivateLinkHubsGetOptionalParams @@ -6380,7 +6432,8 @@ export interface PrivateLinkHubsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type PrivateLinkHubsListByResourceGroupNextResponse = PrivateLinkHubInfoListResult; +export type PrivateLinkHubsListByResourceGroupNextResponse = + PrivateLinkHubInfoListResult; /** Optional parameters. */ export interface PrivateLinkHubsListNextOptionalParams @@ -6394,21 +6447,24 @@ export interface PrivateEndpointConnectionsPrivateLinkHubListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PrivateEndpointConnectionsPrivateLinkHubListResponse = PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; +export type PrivateEndpointConnectionsPrivateLinkHubListResponse = + PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; /** Optional parameters. */ export interface PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PrivateEndpointConnectionsPrivateLinkHubGetResponse = PrivateEndpointConnectionForPrivateLinkHub; +export type PrivateEndpointConnectionsPrivateLinkHubGetResponse = + PrivateEndpointConnectionForPrivateLinkHub; /** Optional parameters. */ export interface PrivateEndpointConnectionsPrivateLinkHubListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type PrivateEndpointConnectionsPrivateLinkHubListNextResponse = PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; +export type PrivateEndpointConnectionsPrivateLinkHubListNextResponse = + PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; /** Optional parameters. */ export interface SqlPoolsGetOptionalParams @@ -6484,10 +6540,6 @@ export interface SqlPoolsResumeOptionalParams /** Contains response data for the resume operation. */ export type SqlPoolsResumeResponse = SqlPool; -/** Optional parameters. */ -export interface SqlPoolsRenameOptionalParams - extends coreClient.OperationOptions {} - /** Optional parameters. */ export interface SqlPoolsListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} @@ -6547,7 +6599,8 @@ export interface SqlPoolDataWarehouseUserActivitiesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlPoolDataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; +export type SqlPoolDataWarehouseUserActivitiesGetResponse = + DataWarehouseUserActivities; /** Optional parameters. */ export interface SqlPoolRestorePointsListOptionalParams @@ -6623,35 +6676,40 @@ export interface SqlPoolMaintenanceWindowOptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlPoolMaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; +export type SqlPoolMaintenanceWindowOptionsGetResponse = + MaintenanceWindowOptions; /** Optional parameters. */ export interface SqlPoolTransparentDataEncryptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlPoolTransparentDataEncryptionsGetResponse = TransparentDataEncryption; +export type SqlPoolTransparentDataEncryptionsGetResponse = + TransparentDataEncryption; /** Optional parameters. */ export interface SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SqlPoolTransparentDataEncryptionsCreateOrUpdateResponse = TransparentDataEncryption; +export type SqlPoolTransparentDataEncryptionsCreateOrUpdateResponse = + TransparentDataEncryption; /** Optional parameters. */ export interface SqlPoolTransparentDataEncryptionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SqlPoolTransparentDataEncryptionsListResponse = TransparentDataEncryptionListResult; +export type SqlPoolTransparentDataEncryptionsListResponse = + TransparentDataEncryptionListResult; /** Optional parameters. */ export interface SqlPoolTransparentDataEncryptionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SqlPoolTransparentDataEncryptionsListNextResponse = TransparentDataEncryptionListResult; +export type SqlPoolTransparentDataEncryptionsListNextResponse = + TransparentDataEncryptionListResult; /** Optional parameters. */ export interface SqlPoolBlobAuditingPoliciesGetOptionalParams @@ -6665,35 +6723,40 @@ export interface SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SqlPoolBlobAuditingPoliciesCreateOrUpdateResponse = SqlPoolBlobAuditingPolicy; +export type SqlPoolBlobAuditingPoliciesCreateOrUpdateResponse = + SqlPoolBlobAuditingPolicy; /** Optional parameters. */ export interface SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySqlPool operation. */ -export type SqlPoolBlobAuditingPoliciesListBySqlPoolResponse = SqlPoolBlobAuditingPolicyListResult; +export type SqlPoolBlobAuditingPoliciesListBySqlPoolResponse = + SqlPoolBlobAuditingPolicyListResult; /** Optional parameters. */ export interface SqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySqlPoolNext operation. */ -export type SqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse = SqlPoolBlobAuditingPolicyListResult; +export type SqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse = + SqlPoolBlobAuditingPolicyListResult; /** Optional parameters. */ export interface SqlPoolOperationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SqlPoolOperationsListResponse = SqlPoolBlobAuditingPolicySqlPoolOperationListResult; +export type SqlPoolOperationsListResponse = + SqlPoolBlobAuditingPolicySqlPoolOperationListResult; /** Optional parameters. */ export interface SqlPoolOperationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SqlPoolOperationsListNextResponse = SqlPoolBlobAuditingPolicySqlPoolOperationListResult; +export type SqlPoolOperationsListNextResponse = + SqlPoolBlobAuditingPolicySqlPoolOperationListResult; /** Optional parameters. */ export interface SqlPoolUsagesListOptionalParams @@ -6717,7 +6780,8 @@ export interface SqlPoolSensitivityLabelsListCurrentOptionalParams } /** Contains response data for the listCurrent operation. */ -export type SqlPoolSensitivityLabelsListCurrentResponse = SensitivityLabelListResult; +export type SqlPoolSensitivityLabelsListCurrentResponse = + SensitivityLabelListResult; /** Optional parameters. */ export interface SqlPoolSensitivityLabelsUpdateOptionalParams @@ -6735,7 +6799,8 @@ export interface SqlPoolSensitivityLabelsListRecommendedOptionalParams } /** Contains response data for the listRecommended operation. */ -export type SqlPoolSensitivityLabelsListRecommendedResponse = SensitivityLabelListResult; +export type SqlPoolSensitivityLabelsListRecommendedResponse = + SensitivityLabelListResult; /** Optional parameters. */ export interface SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams @@ -6768,14 +6833,16 @@ export interface SqlPoolSensitivityLabelsListCurrentNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listCurrentNext operation. */ -export type SqlPoolSensitivityLabelsListCurrentNextResponse = SensitivityLabelListResult; +export type SqlPoolSensitivityLabelsListCurrentNextResponse = + SensitivityLabelListResult; /** Optional parameters. */ export interface SqlPoolSensitivityLabelsListRecommendedNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listRecommendedNext operation. */ -export type SqlPoolSensitivityLabelsListRecommendedNextResponse = SensitivityLabelListResult; +export type SqlPoolSensitivityLabelsListRecommendedNextResponse = + SensitivityLabelListResult; /** Optional parameters. */ export interface SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams @@ -6837,14 +6904,16 @@ export interface SqlPoolTableColumnsListByTableNameOptionalParams } /** Contains response data for the listByTableName operation. */ -export type SqlPoolTableColumnsListByTableNameResponse = SqlPoolColumnListResult; +export type SqlPoolTableColumnsListByTableNameResponse = + SqlPoolColumnListResult; /** Optional parameters. */ export interface SqlPoolTableColumnsListByTableNameNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByTableNameNext operation. */ -export type SqlPoolTableColumnsListByTableNameNextResponse = SqlPoolColumnListResult; +export type SqlPoolTableColumnsListByTableNameNextResponse = + SqlPoolColumnListResult; /** Optional parameters. */ export interface SqlPoolConnectionPoliciesGetOptionalParams @@ -6858,21 +6927,24 @@ export interface SqlPoolVulnerabilityAssessmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SqlPoolVulnerabilityAssessmentsListResponse = SqlPoolVulnerabilityAssessmentListResult; +export type SqlPoolVulnerabilityAssessmentsListResponse = + SqlPoolVulnerabilityAssessmentListResult; /** Optional parameters. */ export interface SqlPoolVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlPoolVulnerabilityAssessmentsGetResponse = SqlPoolVulnerabilityAssessment; +export type SqlPoolVulnerabilityAssessmentsGetResponse = + SqlPoolVulnerabilityAssessment; /** Optional parameters. */ export interface SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SqlPoolVulnerabilityAssessmentsCreateOrUpdateResponse = SqlPoolVulnerabilityAssessment; +export type SqlPoolVulnerabilityAssessmentsCreateOrUpdateResponse = + SqlPoolVulnerabilityAssessment; /** Optional parameters. */ export interface SqlPoolVulnerabilityAssessmentsDeleteOptionalParams @@ -6883,14 +6955,16 @@ export interface SqlPoolVulnerabilityAssessmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SqlPoolVulnerabilityAssessmentsListNextResponse = SqlPoolVulnerabilityAssessmentListResult; +export type SqlPoolVulnerabilityAssessmentsListNextResponse = + SqlPoolVulnerabilityAssessmentListResult; /** Optional parameters. */ export interface SqlPoolVulnerabilityAssessmentScansListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SqlPoolVulnerabilityAssessmentScansListResponse = VulnerabilityAssessmentScanRecordListResult; +export type SqlPoolVulnerabilityAssessmentScansListResponse = + VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ export interface SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams @@ -6906,56 +6980,64 @@ export interface SqlPoolVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the export operation. */ -export type SqlPoolVulnerabilityAssessmentScansExportResponse = SqlPoolVulnerabilityAssessmentScansExport; +export type SqlPoolVulnerabilityAssessmentScansExportResponse = + SqlPoolVulnerabilityAssessmentScansExport; /** Optional parameters. */ export interface SqlPoolVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlPoolVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +export type SqlPoolVulnerabilityAssessmentScansGetResponse = + VulnerabilityAssessmentScanRecord; /** Optional parameters. */ export interface SqlPoolVulnerabilityAssessmentScansListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SqlPoolVulnerabilityAssessmentScansListNextResponse = VulnerabilityAssessmentScanRecordListResult; +export type SqlPoolVulnerabilityAssessmentScansListNextResponse = + VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ export interface SqlPoolSecurityAlertPoliciesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SqlPoolSecurityAlertPoliciesListResponse = ListSqlPoolSecurityAlertPolicies; +export type SqlPoolSecurityAlertPoliciesListResponse = + ListSqlPoolSecurityAlertPolicies; /** Optional parameters. */ export interface SqlPoolSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlPoolSecurityAlertPoliciesGetResponse = SqlPoolSecurityAlertPolicy; +export type SqlPoolSecurityAlertPoliciesGetResponse = + SqlPoolSecurityAlertPolicy; /** Optional parameters. */ export interface SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SqlPoolSecurityAlertPoliciesCreateOrUpdateResponse = SqlPoolSecurityAlertPolicy; +export type SqlPoolSecurityAlertPoliciesCreateOrUpdateResponse = + SqlPoolSecurityAlertPolicy; /** Optional parameters. */ export interface SqlPoolSecurityAlertPoliciesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SqlPoolSecurityAlertPoliciesListNextResponse = ListSqlPoolSecurityAlertPolicies; +export type SqlPoolSecurityAlertPoliciesListNextResponse = + ListSqlPoolSecurityAlertPolicies; /** Optional parameters. */ export interface SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = SqlPoolVulnerabilityAssessmentRuleBaseline; +export type SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = + SqlPoolVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ export interface SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams @@ -6966,35 +7048,40 @@ export interface SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlPoolVulnerabilityAssessmentRuleBaselinesGetResponse = SqlPoolVulnerabilityAssessmentRuleBaseline; +export type SqlPoolVulnerabilityAssessmentRuleBaselinesGetResponse = + SqlPoolVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ export interface ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedSqlPoolBlobAuditingPoliciesGetResponse = ExtendedSqlPoolBlobAuditingPolicy; +export type ExtendedSqlPoolBlobAuditingPoliciesGetResponse = + ExtendedSqlPoolBlobAuditingPolicy; /** Optional parameters. */ export interface ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedSqlPoolBlobAuditingPolicy; +export type ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateResponse = + ExtendedSqlPoolBlobAuditingPolicy; /** Optional parameters. */ export interface ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySqlPool operation. */ -export type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolResponse = ExtendedSqlPoolBlobAuditingPolicyListResult; +export type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolResponse = + ExtendedSqlPoolBlobAuditingPolicyListResult; /** Optional parameters. */ export interface ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySqlPoolNext operation. */ -export type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse = ExtendedSqlPoolBlobAuditingPolicyListResult; +export type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse = + ExtendedSqlPoolBlobAuditingPolicyListResult; /** Optional parameters. */ export interface DataMaskingPoliciesCreateOrUpdateOptionalParams @@ -7097,7 +7184,8 @@ export interface SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SqlPoolWorkloadClassifierCreateOrUpdateResponse = WorkloadClassifier; +export type SqlPoolWorkloadClassifierCreateOrUpdateResponse = + WorkloadClassifier; /** Optional parameters. */ export interface SqlPoolWorkloadClassifierDeleteOptionalParams @@ -7113,21 +7201,24 @@ export interface SqlPoolWorkloadClassifierListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SqlPoolWorkloadClassifierListResponse = WorkloadClassifierListResult; +export type SqlPoolWorkloadClassifierListResponse = + WorkloadClassifierListResult; /** Optional parameters. */ export interface SqlPoolWorkloadClassifierListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SqlPoolWorkloadClassifierListNextResponse = WorkloadClassifierListResult; +export type SqlPoolWorkloadClassifierListNextResponse = + WorkloadClassifierListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceManagedSqlServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; +export type WorkspaceManagedSqlServerBlobAuditingPoliciesGetResponse = + ServerBlobAuditingPolicy; /** Optional parameters. */ export interface WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams @@ -7139,28 +7230,32 @@ export interface WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOpti } /** Contains response data for the createOrUpdate operation. */ -export type WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; +export type WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse = + ServerBlobAuditingPolicy; /** Optional parameters. */ export interface WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspace operation. */ -export type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceResponse = ServerBlobAuditingPolicyListResult; +export type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceResponse = + ServerBlobAuditingPolicyListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspaceNext operation. */ -export type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextResponse = ServerBlobAuditingPolicyListResult; +export type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextResponse = + ServerBlobAuditingPolicyListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetResponse = + ExtendedServerBlobAuditingPolicy; /** Optional parameters. */ export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams @@ -7172,28 +7267,32 @@ export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUp } /** Contains response data for the createOrUpdate operation. */ -export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse = + ExtendedServerBlobAuditingPolicy; /** Optional parameters. */ export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspace operation. */ -export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceResponse = ExtendedServerBlobAuditingPolicyListResult; +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceResponse = + ExtendedServerBlobAuditingPolicyListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspaceNext operation. */ -export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextResponse = ExtendedServerBlobAuditingPolicyListResult; +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextResponse = + ExtendedServerBlobAuditingPolicyListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceManagedSqlServerSecurityAlertPolicyGetResponse = ServerSecurityAlertPolicy; +export type WorkspaceManagedSqlServerSecurityAlertPolicyGetResponse = + ServerSecurityAlertPolicy; /** Optional parameters. */ export interface WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams @@ -7205,35 +7304,40 @@ export interface WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptio } /** Contains response data for the createOrUpdate operation. */ -export type WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse = ServerSecurityAlertPolicy; +export type WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse = + ServerSecurityAlertPolicy; /** Optional parameters. */ export interface WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WorkspaceManagedSqlServerSecurityAlertPolicyListResponse = ServerSecurityAlertPolicyListResult; +export type WorkspaceManagedSqlServerSecurityAlertPolicyListResponse = + ServerSecurityAlertPolicyListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerSecurityAlertPolicyListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WorkspaceManagedSqlServerSecurityAlertPolicyListNextResponse = ServerSecurityAlertPolicyListResult; +export type WorkspaceManagedSqlServerSecurityAlertPolicyListNextResponse = + ServerSecurityAlertPolicyListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceManagedSqlServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsGetResponse = + ServerVulnerabilityAssessment; /** Optional parameters. */ export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse = + ServerVulnerabilityAssessment; /** Optional parameters. */ export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams @@ -7244,21 +7348,24 @@ export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalPa extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WorkspaceManagedSqlServerVulnerabilityAssessmentsListResponse = ServerVulnerabilityAssessmentListResult; +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsListResponse = + ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextResponse = ServerVulnerabilityAssessmentListResult; +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextResponse = + ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceManagedSqlServerEncryptionProtectorGetResponse = EncryptionProtector; +export type WorkspaceManagedSqlServerEncryptionProtectorGetResponse = + EncryptionProtector; /** Optional parameters. */ export interface WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams @@ -7270,14 +7377,16 @@ export interface WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptio } /** Contains response data for the createOrUpdate operation. */ -export type WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse = EncryptionProtector; +export type WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse = + EncryptionProtector; /** Optional parameters. */ export interface WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WorkspaceManagedSqlServerEncryptionProtectorListResponse = EncryptionProtectorListResult; +export type WorkspaceManagedSqlServerEncryptionProtectorListResponse = + EncryptionProtectorListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams @@ -7293,7 +7402,8 @@ export interface WorkspaceManagedSqlServerEncryptionProtectorListNextOptionalPar extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WorkspaceManagedSqlServerEncryptionProtectorListNextResponse = EncryptionProtectorListResult; +export type WorkspaceManagedSqlServerEncryptionProtectorListNextResponse = + EncryptionProtectorListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerUsagesListOptionalParams @@ -7307,28 +7417,32 @@ export interface WorkspaceManagedSqlServerUsagesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WorkspaceManagedSqlServerUsagesListNextResponse = ServerUsageListResult; +export type WorkspaceManagedSqlServerUsagesListNextResponse = + ServerUsageListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WorkspaceManagedSqlServerRecoverableSqlPoolsListResponse = RecoverableSqlPoolListResult; +export type WorkspaceManagedSqlServerRecoverableSqlPoolsListResponse = + RecoverableSqlPoolListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceManagedSqlServerRecoverableSqlPoolsGetResponse = RecoverableSqlPool; +export type WorkspaceManagedSqlServerRecoverableSqlPoolsGetResponse = + RecoverableSqlPool; /** Optional parameters. */ export interface WorkspaceManagedSqlServerRecoverableSqlPoolsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WorkspaceManagedSqlServerRecoverableSqlPoolsListNextResponse = RecoverableSqlPoolListResult; +export type WorkspaceManagedSqlServerRecoverableSqlPoolsListNextResponse = + RecoverableSqlPoolListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams @@ -7340,28 +7454,32 @@ export interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOp } /** Contains response data for the update operation. */ -export type WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse = DedicatedSQLminimalTlsSettings; +export type WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse = + DedicatedSQLminimalTlsSettings; /** Optional parameters. */ export interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetResponse = DedicatedSQLminimalTlsSettings; +export type WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetResponse = + DedicatedSQLminimalTlsSettings; /** Optional parameters. */ export interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListResponse = DedicatedSQLminimalTlsSettingsListResult; +export type WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListResponse = + DedicatedSQLminimalTlsSettingsListResult; /** Optional parameters. */ export interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListNextResponse = DedicatedSQLminimalTlsSettingsListResult; +export type WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListNextResponse = + DedicatedSQLminimalTlsSettingsListResult; /** Optional parameters. */ export interface WorkspacesListByResourceGroupOptionalParams @@ -7495,7 +7613,8 @@ export interface WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceManagedIdentitySqlControlSettingsGetResponse = ManagedIdentitySqlControlSettingsModel; +export type WorkspaceManagedIdentitySqlControlSettingsGetResponse = + ManagedIdentitySqlControlSettingsModel; /** Optional parameters. */ export interface WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams @@ -7507,7 +7626,8 @@ export interface WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptiona } /** Contains response data for the createOrUpdate operation. */ -export type WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse = ManagedIdentitySqlControlSettingsModel; +export type WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse = + ManagedIdentitySqlControlSettingsModel; /** Optional parameters. */ export interface RestorableDroppedSqlPoolsGetOptionalParams @@ -7521,7 +7641,8 @@ export interface RestorableDroppedSqlPoolsListByWorkspaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspace operation. */ -export type RestorableDroppedSqlPoolsListByWorkspaceResponse = RestorableDroppedSqlPoolListResult; +export type RestorableDroppedSqlPoolsListByWorkspaceResponse = + RestorableDroppedSqlPoolListResult; /** Optional parameters. */ export interface BigDataPoolsGetOptionalParams @@ -7568,14 +7689,16 @@ export interface BigDataPoolsListByWorkspaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspace operation. */ -export type BigDataPoolsListByWorkspaceResponse = BigDataPoolResourceInfoListResult; +export type BigDataPoolsListByWorkspaceResponse = + BigDataPoolResourceInfoListResult; /** Optional parameters. */ export interface BigDataPoolsListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspaceNext operation. */ -export type BigDataPoolsListByWorkspaceNextResponse = BigDataPoolResourceInfoListResult; +export type BigDataPoolsListByWorkspaceNextResponse = + BigDataPoolResourceInfoListResult; /** Optional parameters. */ export interface LibraryGetOptionalParams extends coreClient.OperationOptions {} @@ -7646,7 +7769,8 @@ export interface IntegrationRuntimesListByWorkspaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspace operation. */ -export type IntegrationRuntimesListByWorkspaceResponse = IntegrationRuntimeListResponse; +export type IntegrationRuntimesListByWorkspaceResponse = + IntegrationRuntimeListResponse; /** Optional parameters. */ export interface IntegrationRuntimesStartOptionalParams @@ -7674,7 +7798,8 @@ export interface IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOpti extends coreClient.OperationOptions {} /** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ -export type IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse = IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse; +export type IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse = + IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse; /** Optional parameters. */ export interface IntegrationRuntimesEnableInteractiveQueryOptionalParams @@ -7699,14 +7824,16 @@ export interface IntegrationRuntimesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspaceNext operation. */ -export type IntegrationRuntimesListByWorkspaceNextResponse = IntegrationRuntimeListResponse; +export type IntegrationRuntimesListByWorkspaceNextResponse = + IntegrationRuntimeListResponse; /** Optional parameters. */ export interface IntegrationRuntimeNodeIpAddressGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IntegrationRuntimeNodeIpAddressGetResponse = IntegrationRuntimeNodeIpAddress; +export type IntegrationRuntimeNodeIpAddressGetResponse = + IntegrationRuntimeNodeIpAddress; /** Optional parameters. */ export interface IntegrationRuntimeObjectMetadataListOptionalParams @@ -7716,7 +7843,8 @@ export interface IntegrationRuntimeObjectMetadataListOptionalParams } /** Contains response data for the list operation. */ -export type IntegrationRuntimeObjectMetadataListResponse = SsisObjectMetadataListResponse; +export type IntegrationRuntimeObjectMetadataListResponse = + SsisObjectMetadataListResponse; /** Optional parameters. */ export interface IntegrationRuntimeObjectMetadataRefreshOptionalParams @@ -7728,21 +7856,24 @@ export interface IntegrationRuntimeObjectMetadataRefreshOptionalParams } /** Contains response data for the refresh operation. */ -export type IntegrationRuntimeObjectMetadataRefreshResponse = SsisObjectMetadataStatusResponse; +export type IntegrationRuntimeObjectMetadataRefreshResponse = + SsisObjectMetadataStatusResponse; /** Optional parameters. */ export interface IntegrationRuntimeNodesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IntegrationRuntimeNodesGetResponse = SelfHostedIntegrationRuntimeNode; +export type IntegrationRuntimeNodesGetResponse = + SelfHostedIntegrationRuntimeNode; /** Optional parameters. */ export interface IntegrationRuntimeNodesUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type IntegrationRuntimeNodesUpdateResponse = SelfHostedIntegrationRuntimeNode; +export type IntegrationRuntimeNodesUpdateResponse = + SelfHostedIntegrationRuntimeNode; /** Optional parameters. */ export interface IntegrationRuntimeNodesDeleteOptionalParams @@ -7757,14 +7888,16 @@ export interface IntegrationRuntimeConnectionInfosGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IntegrationRuntimeConnectionInfosGetResponse = IntegrationRuntimeConnectionInfo; +export type IntegrationRuntimeConnectionInfosGetResponse = + IntegrationRuntimeConnectionInfo; /** Optional parameters. */ export interface IntegrationRuntimeAuthKeysRegenerateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the regenerate operation. */ -export type IntegrationRuntimeAuthKeysRegenerateResponse = IntegrationRuntimeAuthKeys; +export type IntegrationRuntimeAuthKeysRegenerateResponse = + IntegrationRuntimeAuthKeys; /** Optional parameters. */ export interface IntegrationRuntimeAuthKeysListOptionalParams @@ -7778,35 +7911,40 @@ export interface IntegrationRuntimeMonitoringDataListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type IntegrationRuntimeMonitoringDataListResponse = IntegrationRuntimeMonitoringData; +export type IntegrationRuntimeMonitoringDataListResponse = + IntegrationRuntimeMonitoringData; /** Optional parameters. */ export interface IntegrationRuntimeStatusGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IntegrationRuntimeStatusGetResponse = IntegrationRuntimeStatusResponse; +export type IntegrationRuntimeStatusGetResponse = + IntegrationRuntimeStatusResponse; /** Optional parameters. */ export interface GetIntegrationRuntimeStartOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the integrationRuntimeStart operation. */ -export type GetIntegrationRuntimeStartResponse = IntegrationRuntimeOperationStatus; +export type GetIntegrationRuntimeStartResponse = + IntegrationRuntimeOperationStatus; /** Optional parameters. */ export interface GetIntegrationRuntimeStopOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the integrationRuntimeStop operation. */ -export type GetIntegrationRuntimeStopResponse = IntegrationRuntimeStopOperationStatus; +export type GetIntegrationRuntimeStopResponse = + IntegrationRuntimeStopOperationStatus; /** Optional parameters. */ export interface GetIntegrationRuntimeEnableInteractivequeryOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the integrationRuntimeEnableInteractivequery operation. */ -export type GetIntegrationRuntimeEnableInteractivequeryResponse = IntegrationRuntimeEnableinteractivequery; +export type GetIntegrationRuntimeEnableInteractivequeryResponse = + IntegrationRuntimeEnableinteractivequery; /** Optional parameters. */ export interface SparkConfigurationGetOptionalParams @@ -7820,14 +7958,16 @@ export interface SparkConfigurationsListByWorkspaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspace operation. */ -export type SparkConfigurationsListByWorkspaceResponse = SparkConfigurationListResponse; +export type SparkConfigurationsListByWorkspaceResponse = + SparkConfigurationListResponse; /** Optional parameters. */ export interface SparkConfigurationsListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspaceNext operation. */ -export type SparkConfigurationsListByWorkspaceNextResponse = SparkConfigurationListResponse; +export type SparkConfigurationsListByWorkspaceNextResponse = + SparkConfigurationListResponse; /** Optional parameters. */ export interface KustoOperationsListOptionalParams @@ -7965,7 +8105,8 @@ export interface KustoPoolsListFollowerDatabasesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listFollowerDatabases operation. */ -export type KustoPoolsListFollowerDatabasesResponse = FollowerDatabaseListResult; +export type KustoPoolsListFollowerDatabasesResponse = + FollowerDatabaseListResult; /** Optional parameters. */ export interface KustoPoolsDetachFollowerDatabasesOptionalParams @@ -7981,21 +8122,24 @@ export interface KustoPoolChildResourceCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type KustoPoolChildResourceCheckNameAvailabilityResponse = CheckNameResult; +export type KustoPoolChildResourceCheckNameAvailabilityResponse = + CheckNameResult; /** Optional parameters. */ export interface KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByKustoPool operation. */ -export type KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse = AttachedDatabaseConfigurationListResult; +export type KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse = + AttachedDatabaseConfigurationListResult; /** Optional parameters. */ export interface KustoPoolAttachedDatabaseConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type KustoPoolAttachedDatabaseConfigurationsGetResponse = AttachedDatabaseConfiguration; +export type KustoPoolAttachedDatabaseConfigurationsGetResponse = + AttachedDatabaseConfiguration; /** Optional parameters. */ export interface KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams @@ -8007,7 +8151,8 @@ export interface KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalPa } /** Contains response data for the createOrUpdate operation. */ -export type KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse = AttachedDatabaseConfiguration; +export type KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse = + AttachedDatabaseConfiguration; /** Optional parameters. */ export interface KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams @@ -8070,7 +8215,8 @@ export interface KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type KustoPoolDataConnectionsCheckNameAvailabilityResponse = CheckNameResult; +export type KustoPoolDataConnectionsCheckNameAvailabilityResponse = + CheckNameResult; /** Optional parameters. */ export interface KustoPoolDataConnectionsDataConnectionValidationOptionalParams @@ -8082,14 +8228,16 @@ export interface KustoPoolDataConnectionsDataConnectionValidationOptionalParams } /** Contains response data for the dataConnectionValidation operation. */ -export type KustoPoolDataConnectionsDataConnectionValidationResponse = DataConnectionValidationListResult; +export type KustoPoolDataConnectionsDataConnectionValidationResponse = + DataConnectionValidationListResult; /** Optional parameters. */ export interface KustoPoolDataConnectionsListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type KustoPoolDataConnectionsListByDatabaseResponse = DataConnectionListResult; +export type KustoPoolDataConnectionsListByDatabaseResponse = + DataConnectionListResult; /** Optional parameters. */ export interface KustoPoolDataConnectionsGetOptionalParams @@ -8108,7 +8256,8 @@ export interface KustoPoolDataConnectionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type KustoPoolDataConnectionsCreateOrUpdateResponse = DataConnectionUnion; +export type KustoPoolDataConnectionsCreateOrUpdateResponse = + DataConnectionUnion; /** Optional parameters. */ export interface KustoPoolDataConnectionsUpdateOptionalParams @@ -8136,21 +8285,24 @@ export interface KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParam extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type KustoPoolPrincipalAssignmentsCheckNameAvailabilityResponse = CheckNameResult; +export type KustoPoolPrincipalAssignmentsCheckNameAvailabilityResponse = + CheckNameResult; /** Optional parameters. */ export interface KustoPoolPrincipalAssignmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type KustoPoolPrincipalAssignmentsListResponse = ClusterPrincipalAssignmentListResult; +export type KustoPoolPrincipalAssignmentsListResponse = + ClusterPrincipalAssignmentListResult; /** Optional parameters. */ export interface KustoPoolPrincipalAssignmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type KustoPoolPrincipalAssignmentsGetResponse = ClusterPrincipalAssignment; +export type KustoPoolPrincipalAssignmentsGetResponse = + ClusterPrincipalAssignment; /** Optional parameters. */ export interface KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams @@ -8162,7 +8314,8 @@ export interface KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type KustoPoolPrincipalAssignmentsCreateOrUpdateResponse = ClusterPrincipalAssignment; +export type KustoPoolPrincipalAssignmentsCreateOrUpdateResponse = + ClusterPrincipalAssignment; /** Optional parameters. */ export interface KustoPoolPrincipalAssignmentsDeleteOptionalParams @@ -8178,21 +8331,24 @@ export interface KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptio extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityResponse = CheckNameResult; +export type KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityResponse = + CheckNameResult; /** Optional parameters. */ export interface KustoPoolDatabasePrincipalAssignmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type KustoPoolDatabasePrincipalAssignmentsListResponse = DatabasePrincipalAssignmentListResult; +export type KustoPoolDatabasePrincipalAssignmentsListResponse = + DatabasePrincipalAssignmentListResult; /** Optional parameters. */ export interface KustoPoolDatabasePrincipalAssignmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type KustoPoolDatabasePrincipalAssignmentsGetResponse = DatabasePrincipalAssignment; +export type KustoPoolDatabasePrincipalAssignmentsGetResponse = + DatabasePrincipalAssignment; /** Optional parameters. */ export interface KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams @@ -8204,7 +8360,8 @@ export interface KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalPara } /** Contains response data for the createOrUpdate operation. */ -export type KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse = DatabasePrincipalAssignment; +export type KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse = + DatabasePrincipalAssignment; /** Optional parameters. */ export interface KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams diff --git a/sdk/synapse/arm-synapse/src/models/mappers.ts b/sdk/synapse/arm-synapse/src/models/mappers.ts index 625cfe50799d..648caf598856 100644 --- a/sdk/synapse/arm-synapse/src/models/mappers.ts +++ b/sdk/synapse/arm-synapse/src/models/mappers.ts @@ -17,25 +17,25 @@ 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", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -47,11 +47,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -63,22 +63,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -88,10 +88,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -101,13 +101,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -119,19 +119,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const AzureADOnlyAuthenticationListResult: coreClient.CompositeMapper = { @@ -147,20 +147,20 @@ export const AzureADOnlyAuthenticationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AzureADOnlyAuthentication" - } - } - } + className: "AzureADOnlyAuthentication", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { @@ -171,17 +171,17 @@ export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { @@ -192,29 +192,29 @@ export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, available: { serializedName: "available", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IpFirewallRuleInfoListResult: coreClient.CompositeMapper = { @@ -225,8 +225,8 @@ export const IpFirewallRuleInfoListResult: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -235,13 +235,13 @@ export const IpFirewallRuleInfoListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IpFirewallRuleInfo" - } - } - } - } - } - } + className: "IpFirewallRuleInfo", + }, + }, + }, + }, + }, + }, }; export const IpFirewallRuleProperties: coreClient.CompositeMapper = { @@ -252,24 +252,24 @@ export const IpFirewallRuleProperties: coreClient.CompositeMapper = { endIpAddress: { serializedName: "endIpAddress", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startIpAddress: { serializedName: "startIpAddress", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ReplaceAllIpFirewallRulesRequest: coreClient.CompositeMapper = { @@ -282,28 +282,29 @@ export const ReplaceAllIpFirewallRulesRequest: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Composite", className: "IpFirewallRuleProperties" } - } - } - } - } - } -}; - -export const ReplaceAllFirewallRulesOperationResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ReplaceAllFirewallRulesOperationResponse", - modelProperties: { - operationId: { - serializedName: "operationId", - type: { - name: "String" - } - } - } - } -}; + type: { name: "Composite", className: "IpFirewallRuleProperties" }, + }, + }, + }, + }, + }, +}; + +export const ReplaceAllFirewallRulesOperationResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplaceAllFirewallRulesOperationResponse", + modelProperties: { + operationId: { + serializedName: "operationId", + type: { + name: "String", + }, + }, + }, + }, + }; export const KeyInfoListResult: coreClient.CompositeMapper = { type: { @@ -313,8 +314,8 @@ export const KeyInfoListResult: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -323,13 +324,13 @@ export const KeyInfoListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Key" - } - } - } - } - } - } + className: "Key", + }, + }, + }, + }, + }, + }, }; export const AvailableRpOperation: coreClient.CompositeMapper = { @@ -341,36 +342,36 @@ export const AvailableRpOperation: coreClient.CompositeMapper = { serializedName: "display", type: { name: "Composite", - className: "AvailableRpOperationDisplayInfo" - } + className: "AvailableRpOperationDisplayInfo", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, serviceSpecification: { serializedName: "properties.serviceSpecification", type: { name: "Composite", - className: "OperationMetaServiceSpecification" - } - } - } - } + className: "OperationMetaServiceSpecification", + }, + }, + }, + }, }; export const AvailableRpOperationDisplayInfo: coreClient.CompositeMapper = { @@ -381,29 +382,29 @@ export const AvailableRpOperationDisplayInfo: coreClient.CompositeMapper = { description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationMetaServiceSpecification: coreClient.CompositeMapper = { @@ -418,10 +419,10 @@ export const OperationMetaServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationMetaMetricSpecification" - } - } - } + className: "OperationMetaMetricSpecification", + }, + }, + }, }, logSpecifications: { serializedName: "logSpecifications", @@ -430,13 +431,13 @@ export const OperationMetaServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationMetaLogSpecification" - } - } - } - } - } - } + className: "OperationMetaLogSpecification", + }, + }, + }, + }, + }, + }, }; export const OperationMetaMetricSpecification: coreClient.CompositeMapper = { @@ -447,50 +448,50 @@ export const OperationMetaMetricSpecification: coreClient.CompositeMapper = { sourceMdmNamespace: { serializedName: "sourceMdmNamespace", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, aggregationType: { serializedName: "aggregationType", type: { - name: "String" - } + name: "String", + }, }, displayDescription: { serializedName: "displayDescription", type: { - name: "String" - } + name: "String", + }, }, sourceMdmAccount: { serializedName: "sourceMdmAccount", type: { - name: "String" - } + name: "String", + }, }, enableRegionalMdmAccount: { serializedName: "enableRegionalMdmAccount", type: { - name: "Boolean" - } + name: "Boolean", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, dimensions: { serializedName: "dimensions", @@ -499,53 +500,54 @@ export const OperationMetaMetricSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationMetaMetricDimensionSpecification" - } - } - } + className: "OperationMetaMetricDimensionSpecification", + }, + }, + }, }, supportsInstanceLevelAggregation: { serializedName: "supportsInstanceLevelAggregation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, metricFilterPattern: { serializedName: "metricFilterPattern", type: { - name: "String" - } - } - } - } -}; - -export const OperationMetaMetricDimensionSpecification: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationMetaMetricDimensionSpecification", - modelProperties: { - displayName: { - serializedName: "displayName", - type: { - name: "String" - } + name: "String", + }, }, - name: { - serializedName: "name", - type: { - name: "String" - } + }, + }, +}; + +export const OperationMetaMetricDimensionSpecification: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "OperationMetaMetricDimensionSpecification", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", + type: { + name: "Boolean", + }, + }, }, - toBeExportedForShoebox: { - serializedName: "toBeExportedForShoebox", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }; export const OperationMetaLogSpecification: coreClient.CompositeMapper = { type: { @@ -555,23 +557,23 @@ export const OperationMetaLogSpecification: coreClient.CompositeMapper = { displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, blobDuration: { serializedName: "blobDuration", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationResource: coreClient.CompositeMapper = { @@ -582,55 +584,55 @@ export const OperationResource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } + className: "ErrorDetail", + }, }, startTime: { serializedName: "startTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { serializedName: "endTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, percentComplete: { serializedName: "percentComplete", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { @@ -642,25 +644,25 @@ export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { serializedName: "privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + className: "PrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -672,11 +674,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -687,24 +689,24 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnectionList: coreClient.CompositeMapper = { @@ -720,20 +722,20 @@ export const PrivateEndpointConnectionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { @@ -749,20 +751,20 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } + className: "PrivateLinkResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { @@ -774,8 +776,8 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { serializedName: "groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "requiredMembers", @@ -784,10 +786,10 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "requiredZoneNames", @@ -796,13 +798,13 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PrivateLinkHubInfoListResult: coreClient.CompositeMapper = { @@ -813,8 +815,8 @@ export const PrivateLinkHubInfoListResult: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -823,51 +825,52 @@ export const PrivateLinkHubInfoListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkHub" - } - } - } - } - } - } -}; - -export const PrivateEndpointConnectionForPrivateLinkHubBasic: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionForPrivateLinkHubBasic", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateLinkHub", + }, + }, + }, }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + }, + }, +}; + +export const PrivateEndpointConnectionForPrivateLinkHubBasic: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionForPrivateLinkHubBasic", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + }, + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + }, + }; export const PrivateLinkHubPatchInfo: coreClient.CompositeMapper = { type: { @@ -878,62 +881,64 @@ export const PrivateLinkHubPatchInfo: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: - "PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionForPrivateLinkHub" - } - } - } + value: { type: { name: "String" } }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } + }, + }, +}; + +export const PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionForPrivateLinkHub", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "PrivateEndpointConnectionProperties" - } - } - } - } -}; + }, + }; + +export const PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + }, + }, + }, + }, + }; export const Sku: coreClient.CompositeMapper = { type: { @@ -943,23 +948,23 @@ export const Sku: coreClient.CompositeMapper = { tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SqlPoolPatchInfo: coreClient.CompositeMapper = { @@ -971,94 +976,94 @@ export const SqlPoolPatchInfo: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, maxSizeBytes: { serializedName: "properties.maxSizeBytes", type: { - name: "Number" - } + name: "Number", + }, }, collation: { defaultValue: "", serializedName: "properties.collation", type: { - name: "String" - } + name: "String", + }, }, sourceDatabaseId: { serializedName: "properties.sourceDatabaseId", type: { - name: "String" - } + name: "String", + }, }, recoverableDatabaseId: { serializedName: "properties.recoverableDatabaseId", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePointInTime: { serializedName: "properties.restorePointInTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, createMode: { serializedName: "properties.createMode", type: { - name: "String" - } + name: "String", + }, }, creationDate: { serializedName: "properties.creationDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, storageAccountType: { defaultValue: "GRS", serializedName: "properties.storageAccountType", type: { - name: "String" - } + name: "String", + }, }, sourceDatabaseDeletionDate: { serializedName: "properties.sourceDatabaseDeletionDate", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const SqlPoolInfoListResult: coreClient.CompositeMapper = { @@ -1069,8 +1074,8 @@ export const SqlPoolInfoListResult: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -1079,29 +1084,13 @@ export const SqlPoolInfoListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlPool" - } - } - } - } - } - } -}; - -export const ResourceMoveDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceMoveDefinition", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } - } - } - } + className: "SqlPool", + }, + }, + }, + }, + }, + }, }; export const GeoBackupPolicyListResult: coreClient.CompositeMapper = { @@ -1116,13 +1105,13 @@ export const GeoBackupPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GeoBackupPolicy" - } - } - } - } - } - } + className: "GeoBackupPolicy", + }, + }, + }, + }, + }, + }, }; export const RestorePointListResult: coreClient.CompositeMapper = { @@ -1138,20 +1127,20 @@ export const RestorePointListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePoint" - } - } - } + className: "RestorePoint", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CreateSqlPoolRestorePointDefinition: coreClient.CompositeMapper = { @@ -1163,12 +1152,12 @@ export const CreateSqlPoolRestorePointDefinition: coreClient.CompositeMapper = { serializedName: "restorePointLabel", required: true, type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; export const ReplicationLinkListResult: coreClient.CompositeMapper = { type: { @@ -1182,20 +1171,20 @@ export const ReplicationLinkListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ReplicationLink" - } - } - } + className: "ReplicationLink", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { @@ -1206,23 +1195,23 @@ export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { dayOfWeek: { serializedName: "dayOfWeek", type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "startTime", type: { - name: "String" - } + name: "String", + }, }, duration: { serializedName: "duration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { @@ -1234,22 +1223,22 @@ export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -1259,10 +1248,10 @@ export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponseAutoGenerated" - } - } - } + className: "ErrorResponseAutoGenerated", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -1272,13 +1261,13 @@ export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const TransparentDataEncryptionListResult: coreClient.CompositeMapper = { @@ -1294,50 +1283,51 @@ export const TransparentDataEncryptionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TransparentDataEncryption" - } - } - } + className: "TransparentDataEncryption", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const SqlPoolBlobAuditingPolicySqlPoolOperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlPoolBlobAuditingPolicySqlPoolOperationListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPoolOperation" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const SqlPoolBlobAuditingPolicySqlPoolOperationListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SqlPoolBlobAuditingPolicySqlPoolOperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlPoolOperation", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const SqlPoolUsageListResult: coreClient.CompositeMapper = { type: { @@ -1352,20 +1342,20 @@ export const SqlPoolUsageListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlPoolUsage" - } - } - } + className: "SqlPoolUsage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SqlPoolUsage: coreClient.CompositeMapper = { @@ -1377,53 +1367,53 @@ export const SqlPoolUsage: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resourceName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, currentValue: { serializedName: "currentValue", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, limit: { serializedName: "limit", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, unit: { serializedName: "unit", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nextResetTime: { serializedName: "nextResetTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const SensitivityLabelListResult: coreClient.CompositeMapper = { @@ -1439,20 +1429,20 @@ export const SensitivityLabelListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SensitivityLabel" - } - } - } + className: "SensitivityLabel", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { @@ -1467,35 +1457,36 @@ export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SensitivityLabelUpdate" - } - } - } - } - } - } -}; - -export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedSensitivityLabelUpdateList", - modelProperties: { - operations: { - serializedName: "operations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedSensitivityLabelUpdate" - } - } - } - } - } - } -}; + className: "SensitivityLabelUpdate", + }, + }, + }, + }, + }, + }, +}; + +export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RecommendedSensitivityLabelUpdateList", + modelProperties: { + operations: { + serializedName: "operations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedSensitivityLabelUpdate", + }, + }, + }, + }, + }, + }, + }; export const SqlPoolSchemaListResult: coreClient.CompositeMapper = { type: { @@ -1510,20 +1501,20 @@ export const SqlPoolSchemaListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlPoolSchema" - } - } - } + className: "SqlPoolSchema", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SqlPoolTableListResult: coreClient.CompositeMapper = { @@ -1539,20 +1530,20 @@ export const SqlPoolTableListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlPoolTable" - } - } - } + className: "SqlPoolTable", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SqlPoolColumnListResult: coreClient.CompositeMapper = { @@ -1568,112 +1559,115 @@ export const SqlPoolColumnListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlPoolColumn" - } - } - } + className: "SqlPoolColumn", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const SqlPoolVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlPoolVulnerabilityAssessmentListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPoolVulnerabilityAssessment" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const VulnerabilityAssessmentRecurringScansProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties", - modelProperties: { - isEnabled: { - serializedName: "isEnabled", - type: { - name: "Boolean" - } + }, + }, +}; + +export const SqlPoolVulnerabilityAssessmentListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SqlPoolVulnerabilityAssessmentListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlPoolVulnerabilityAssessment", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, - emailSubscriptionAdmins: { - defaultValue: true, - serializedName: "emailSubscriptionAdmins", - type: { - name: "Boolean" - } + }, + }; + +export const VulnerabilityAssessmentRecurringScansProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties", + modelProperties: { + isEnabled: { + serializedName: "isEnabled", + type: { + name: "Boolean", + }, + }, + emailSubscriptionAdmins: { + defaultValue: true, + serializedName: "emailSubscriptionAdmins", + type: { + name: "Boolean", + }, + }, + emails: { + serializedName: "emails", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, - emails: { - serializedName: "emails", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanRecordListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanRecord" - } - } - } + }, + }; + +export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanRecordListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanRecord", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VulnerabilityAssessmentScanError: coreClient.CompositeMapper = { type: { @@ -1684,18 +1678,18 @@ export const VulnerabilityAssessmentScanError: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListSqlPoolSecurityAlertPolicies: coreClient.CompositeMapper = { @@ -1711,71 +1705,73 @@ export const ListSqlPoolSecurityAlertPolicies: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlPoolSecurityAlertPolicy" - } - } - } + className: "SqlPoolSecurityAlertPolicy", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const SqlPoolVulnerabilityAssessmentRuleBaselineItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlPoolVulnerabilityAssessmentRuleBaselineItem", - modelProperties: { - result: { - serializedName: "result", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ExtendedSqlPoolBlobAuditingPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedSqlPoolBlobAuditingPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExtendedSqlPoolBlobAuditingPolicy" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const SqlPoolVulnerabilityAssessmentRuleBaselineItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SqlPoolVulnerabilityAssessmentRuleBaselineItem", + modelProperties: { + result: { + serializedName: "result", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; + +export const ExtendedSqlPoolBlobAuditingPolicyListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ExtendedSqlPoolBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtendedSqlPoolBlobAuditingPolicy", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const DataMaskingRuleListResult: coreClient.CompositeMapper = { type: { @@ -1789,13 +1785,13 @@ export const DataMaskingRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataMaskingRule" - } - } - } - } - } - } + className: "DataMaskingRule", + }, + }, + }, + }, + }, + }, }; export const SqlPoolBlobAuditingPolicyListResult: coreClient.CompositeMapper = { @@ -1811,20 +1807,20 @@ export const SqlPoolBlobAuditingPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlPoolBlobAuditingPolicy" - } - } - } + className: "SqlPoolBlobAuditingPolicy", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WorkloadGroupListResult: coreClient.CompositeMapper = { @@ -1840,20 +1836,20 @@ export const WorkloadGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WorkloadGroup" - } - } - } + className: "WorkloadGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WorkloadClassifierListResult: coreClient.CompositeMapper = { @@ -1869,20 +1865,20 @@ export const WorkloadClassifierListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WorkloadClassifier" - } - } - } + className: "WorkloadClassifier", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { @@ -1898,26 +1894,56 @@ export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerBlobAuditingPolicy" - } - } - } + className: "ServerBlobAuditingPolicy", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ExtendedServerBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtendedServerBlobAuditingPolicy", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; -export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicyListResult", + className: "ServerSecurityAlertPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -1927,26 +1953,56 @@ export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy" - } - } - } + className: "ServerSecurityAlertPolicy", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessmentListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; -export const ServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { +export const EncryptionProtectorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerSecurityAlertPolicyListResult", + className: "EncryptionProtectorListResult", modelProperties: { value: { serializedName: "value", @@ -1956,165 +2012,107 @@ export const ServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerSecurityAlertPolicy" - } - } - } + className: "EncryptionProtector", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { +export const ServerUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerVulnerabilityAssessmentListResult", + className: "ServerUsageListResult", modelProperties: { value: { serializedName: "value", - readOnly: true, + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerVulnerabilityAssessment" - } - } - } + className: "ServerUsage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const EncryptionProtectorListResult: coreClient.CompositeMapper = { +export const ServerUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtectorListResult", + className: "ServerUsage", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EncryptionProtector" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerUsageListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerUsageListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerUsage" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerUsage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerUsage", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resourceName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, currentValue: { serializedName: "currentValue", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, limit: { serializedName: "limit", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, unit: { serializedName: "unit", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nextResetTime: { serializedName: "nextResetTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const RecoverableSqlPoolListResult: coreClient.CompositeMapper = { @@ -2130,50 +2128,51 @@ export const RecoverableSqlPoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RecoverableSqlPool" - } - } - } + className: "RecoverableSqlPool", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const DedicatedSQLminimalTlsSettingsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedSQLminimalTlsSettingsListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedSQLminimalTlsSettings" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const DedicatedSQLminimalTlsSettingsListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DedicatedSQLminimalTlsSettingsListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DedicatedSQLminimalTlsSettings", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const WorkspaceInfoListResult: coreClient.CompositeMapper = { type: { @@ -2183,8 +2182,8 @@ export const WorkspaceInfoListResult: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2193,13 +2192,13 @@ export const WorkspaceInfoListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Workspace" - } - } - } - } - } - } + className: "Workspace", + }, + }, + }, + }, + }, + }, }; export const DataLakeStorageAccountDetails: coreClient.CompositeMapper = { @@ -2210,29 +2209,29 @@ export const DataLakeStorageAccountDetails: coreClient.CompositeMapper = { accountUrl: { serializedName: "accountUrl", type: { - name: "String" - } + name: "String", + }, }, filesystem: { serializedName: "filesystem", type: { - name: "String" - } + name: "String", + }, }, resourceId: { serializedName: "resourceId", type: { - name: "String" - } + name: "String", + }, }, createManagedPrivateEndpoint: { serializedName: "createManagedPrivateEndpoint", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VirtualNetworkProfile: coreClient.CompositeMapper = { @@ -2243,11 +2242,11 @@ export const VirtualNetworkProfile: coreClient.CompositeMapper = { computeSubnetId: { serializedName: "computeSubnetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionDetails: coreClient.CompositeMapper = { @@ -2259,18 +2258,18 @@ export const EncryptionDetails: coreClient.CompositeMapper = { serializedName: "doubleEncryptionEnabled", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, cmk: { serializedName: "cmk", type: { name: "Composite", - className: "CustomerManagedKeyDetails" - } - } - } - } + className: "CustomerManagedKeyDetails", + }, + }, + }, + }, }; export const CustomerManagedKeyDetails: coreClient.CompositeMapper = { @@ -2282,25 +2281,25 @@ export const CustomerManagedKeyDetails: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, key: { serializedName: "key", type: { name: "Composite", - className: "WorkspaceKeyDetails" - } + className: "WorkspaceKeyDetails", + }, }, kekIdentity: { serializedName: "kekIdentity", type: { name: "Composite", - className: "KekIdentityProperties" - } - } - } - } + className: "KekIdentityProperties", + }, + }, + }, + }, }; export const WorkspaceKeyDetails: coreClient.CompositeMapper = { @@ -2311,17 +2310,17 @@ export const WorkspaceKeyDetails: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, keyVaultUrl: { serializedName: "keyVaultUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KekIdentityProperties: coreClient.CompositeMapper = { @@ -2332,17 +2331,17 @@ export const KekIdentityProperties: coreClient.CompositeMapper = { userAssignedIdentity: { serializedName: "userAssignedIdentity", type: { - name: "String" - } + name: "String", + }, }, useSystemAssignedIdentity: { serializedName: "useSystemAssignedIdentity", type: { - name: "any" - } - } - } - } + name: "any", + }, + }, + }, + }, }; export const ManagedVirtualNetworkSettings: coreClient.CompositeMapper = { @@ -2353,14 +2352,14 @@ export const ManagedVirtualNetworkSettings: coreClient.CompositeMapper = { preventDataExfiltration: { serializedName: "preventDataExfiltration", type: { - name: "Boolean" - } + name: "Boolean", + }, }, linkedAccessCheckOnTargetResource: { serializedName: "linkedAccessCheckOnTargetResource", type: { - name: "Boolean" - } + name: "Boolean", + }, }, allowedAadTenantIdsForLinking: { serializedName: "allowedAadTenantIdsForLinking", @@ -2368,13 +2367,13 @@ export const ManagedVirtualNetworkSettings: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const WorkspaceRepositoryConfiguration: coreClient.CompositeMapper = { @@ -2385,59 +2384,59 @@ export const WorkspaceRepositoryConfiguration: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, hostName: { serializedName: "hostName", type: { - name: "String" - } + name: "String", + }, }, accountName: { serializedName: "accountName", type: { - name: "String" - } + name: "String", + }, }, projectName: { serializedName: "projectName", type: { - name: "String" - } + name: "String", + }, }, repositoryName: { serializedName: "repositoryName", type: { - name: "String" - } + name: "String", + }, }, collaborationBranch: { serializedName: "collaborationBranch", type: { - name: "String" - } + name: "String", + }, }, rootFolder: { serializedName: "rootFolder", type: { - name: "String" - } + name: "String", + }, }, lastCommitId: { serializedName: "lastCommitId", type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", type: { - name: "Uuid" - } - } - } - } + name: "Uuid", + }, + }, + }, + }, }; export const PurviewConfiguration: coreClient.CompositeMapper = { @@ -2448,11 +2447,11 @@ export const PurviewConfiguration: coreClient.CompositeMapper = { purviewResourceId: { serializedName: "purviewResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CspWorkspaceAdminProperties: coreClient.CompositeMapper = { @@ -2463,11 +2462,11 @@ export const CspWorkspaceAdminProperties: coreClient.CompositeMapper = { initialWorkspaceAdminObjectId: { serializedName: "initialWorkspaceAdminObjectId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedIdentity: coreClient.CompositeMapper = { @@ -2479,15 +2478,15 @@ export const ManagedIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, type: { serializedName: "type", @@ -2496,9 +2495,9 @@ export const ManagedIdentity: coreClient.CompositeMapper = { allowedValues: [ "None", "SystemAssigned", - "SystemAssigned,UserAssigned" - ] - } + "SystemAssigned,UserAssigned", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -2507,13 +2506,13 @@ export const ManagedIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedManagedIdentity" - } - } - } - } - } - } + className: "UserAssignedManagedIdentity", + }, + }, + }, + }, + }, + }, }; export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { @@ -2526,19 +2525,19 @@ export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { readOnly: true, nullable: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, principalId: { serializedName: "principalId", readOnly: true, nullable: true, type: { - name: "Uuid" - } - } - } - } + name: "Uuid", + }, + }, + }, + }, }; export const WorkspacePatchInfo: coreClient.CompositeMapper = { @@ -2550,97 +2549,98 @@ export const WorkspacePatchInfo: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedIdentity" - } + className: "ManagedIdentity", + }, }, sqlAdministratorLoginPassword: { serializedName: "properties.sqlAdministratorLoginPassword", type: { - name: "String" - } + name: "String", + }, }, managedVirtualNetworkSettings: { serializedName: "properties.managedVirtualNetworkSettings", type: { name: "Composite", - className: "ManagedVirtualNetworkSettings" - } + className: "ManagedVirtualNetworkSettings", + }, }, workspaceRepositoryConfiguration: { serializedName: "properties.workspaceRepositoryConfiguration", type: { name: "Composite", - className: "WorkspaceRepositoryConfiguration" - } + className: "WorkspaceRepositoryConfiguration", + }, }, purviewConfiguration: { serializedName: "properties.purviewConfiguration", type: { name: "Composite", - className: "PurviewConfiguration" - } + className: "PurviewConfiguration", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionDetails" - } + className: "EncryptionDetails", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } - } - } - } -}; - -export const ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: - "ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity", - modelProperties: { - desiredState: { - serializedName: "desiredState", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + name: "String", + }, }, - actualState: { - serializedName: "actualState", - readOnly: true, - type: { - name: "Enum", - allowedValues: [ - "Enabling", - "Enabled", - "Disabling", - "Disabled", - "Unknown" - ] - } - } - } - } -}; + }, + }, +}; + +export const ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity", + modelProperties: { + desiredState: { + serializedName: "desiredState", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"], + }, + }, + actualState: { + serializedName: "actualState", + readOnly: true, + type: { + name: "Enum", + allowedValues: [ + "Enabling", + "Enabled", + "Disabling", + "Disabled", + "Unknown", + ], + }, + }, + }, + }, + }; export const RestorableDroppedSqlPoolListResult: coreClient.CompositeMapper = { type: { @@ -2655,13 +2655,13 @@ export const RestorableDroppedSqlPoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorableDroppedSqlPool" - } - } - } - } - } - } + className: "RestorableDroppedSqlPool", + }, + }, + }, + }, + }, + }, }; export const AutoScaleProperties: coreClient.CompositeMapper = { @@ -2672,23 +2672,23 @@ export const AutoScaleProperties: coreClient.CompositeMapper = { minNodeCount: { serializedName: "minNodeCount", type: { - name: "Number" - } + name: "Number", + }, }, enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, maxNodeCount: { serializedName: "maxNodeCount", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AutoPauseProperties: coreClient.CompositeMapper = { @@ -2699,17 +2699,17 @@ export const AutoPauseProperties: coreClient.CompositeMapper = { delayInMinutes: { serializedName: "delayInMinutes", type: { - name: "Number" - } + name: "Number", + }, }, enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DynamicExecutorAllocation: coreClient.CompositeMapper = { @@ -2720,23 +2720,23 @@ export const DynamicExecutorAllocation: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, minExecutors: { serializedName: "minExecutors", type: { - name: "Number" - } + name: "Number", + }, }, maxExecutors: { serializedName: "maxExecutors", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const LibraryRequirements: coreClient.CompositeMapper = { @@ -2748,23 +2748,23 @@ export const LibraryRequirements: coreClient.CompositeMapper = { serializedName: "time", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, content: { serializedName: "content", type: { - name: "String" - } + name: "String", + }, }, filename: { serializedName: "filename", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LibraryInfo: coreClient.CompositeMapper = { @@ -2775,49 +2775,50 @@ export const LibraryInfo: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, path: { serializedName: "path", type: { - name: "String" - } + name: "String", + }, }, containerName: { serializedName: "containerName", type: { - name: "String" - } + name: "String", + }, }, uploadedTimestamp: { serializedName: "uploadedTimestamp", + readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, provisioningStatus: { serializedName: "provisioningStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creatorId: { serializedName: "creatorId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SparkConfigProperties: coreClient.CompositeMapper = { @@ -2829,29 +2830,29 @@ export const SparkConfigProperties: coreClient.CompositeMapper = { serializedName: "time", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, content: { serializedName: "content", type: { - name: "String" - } + name: "String", + }, }, filename: { serializedName: "filename", type: { - name: "String" - } + name: "String", + }, }, configurationType: { serializedName: "configurationType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BigDataPoolPatchInfo: coreClient.CompositeMapper = { @@ -2863,11 +2864,11 @@ export const BigDataPoolPatchInfo: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const BigDataPoolResourceInfoListResult: coreClient.CompositeMapper = { @@ -2878,8 +2879,8 @@ export const BigDataPoolResourceInfoListResult: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2888,13 +2889,13 @@ export const BigDataPoolResourceInfoListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BigDataPoolResourceInfo" - } - } - } - } - } - } + className: "BigDataPoolResourceInfo", + }, + }, + }, + }, + }, + }, }; export const LibraryListResponse: coreClient.CompositeMapper = { @@ -2910,19 +2911,19 @@ export const LibraryListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LibraryResource" - } - } - } + className: "LibraryResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UpdateIntegrationRuntimeRequest: coreClient.CompositeMapper = { @@ -2933,17 +2934,17 @@ export const UpdateIntegrationRuntimeRequest: coreClient.CompositeMapper = { autoUpdate: { serializedName: "autoUpdate", type: { - name: "String" - } + name: "String", + }, }, updateDelayOffset: { serializedName: "updateDelayOffset", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IntegrationRuntime: coreClient.CompositeMapper = { @@ -2955,24 +2956,24 @@ export const IntegrationRuntime: coreClient.CompositeMapper = { additionalProperties: { type: { name: "Object" } }, polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IntegrationRuntimeNodeIpAddress: coreClient.CompositeMapper = { @@ -2984,11 +2985,11 @@ export const IntegrationRuntimeNodeIpAddress: coreClient.CompositeMapper = { serializedName: "ipAddress", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GetSsisObjectMetadataRequest: coreClient.CompositeMapper = { @@ -2999,11 +3000,11 @@ export const GetSsisObjectMetadataRequest: coreClient.CompositeMapper = { metadataPath: { serializedName: "metadataPath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SsisObjectMetadataListResponse: coreClient.CompositeMapper = { @@ -3018,19 +3019,19 @@ export const SsisObjectMetadataListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SsisObjectMetadata" - } - } - } + className: "SsisObjectMetadata", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SsisObjectMetadata: coreClient.CompositeMapper = { @@ -3040,36 +3041,36 @@ export const SsisObjectMetadata: coreClient.CompositeMapper = { uberParent: "SsisObjectMetadata", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SelfHostedIntegrationRuntimeNode: coreClient.CompositeMapper = { @@ -3082,131 +3083,131 @@ export const SelfHostedIntegrationRuntimeNode: coreClient.CompositeMapper = { serializedName: "nodeName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, machineName: { serializedName: "machineName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hostServiceUri: { serializedName: "hostServiceUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "capabilities", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, versionStatus: { serializedName: "versionStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, registerTime: { serializedName: "registerTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastConnectTime: { serializedName: "lastConnectTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, expiryTime: { serializedName: "expiryTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastStartTime: { serializedName: "lastStartTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastStopTime: { serializedName: "lastStopTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastUpdateResult: { serializedName: "lastUpdateResult", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, lastStartUpdateTime: { serializedName: "lastStartUpdateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastEndUpdateTime: { serializedName: "lastEndUpdateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, isActiveDispatcher: { serializedName: "isActiveDispatcher", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, concurrentJobsLimit: { serializedName: "concurrentJobsLimit", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, maxConcurrentJobs: { serializedName: "maxConcurrentJobs", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const UpdateIntegrationRuntimeNodeRequest: coreClient.CompositeMapper = { @@ -3216,15 +3217,15 @@ export const UpdateIntegrationRuntimeNodeRequest: coreClient.CompositeMapper = { modelProperties: { concurrentJobsLimit: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "concurrentJobsLimit", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const IntegrationRuntimeListResponse: coreClient.CompositeMapper = { @@ -3240,21 +3241,21 @@ export const IntegrationRuntimeListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IntegrationRuntimeResource" - } - } - } + className: "IntegrationRuntimeResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - + name: "String", + }, + }, + }, + }, +}; + export const IntegrationRuntimeConnectionInfo: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3265,46 +3266,46 @@ export const IntegrationRuntimeConnectionInfo: coreClient.CompositeMapper = { serializedName: "serviceToken", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, identityCertThumbprint: { serializedName: "identityCertThumbprint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hostServiceUri: { serializedName: "hostServiceUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, publicKey: { serializedName: "publicKey", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isIdentityCertExprired: { serializedName: "isIdentityCertExprired", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const IntegrationRuntimeStatusResponse: coreClient.CompositeMapper = { @@ -3316,32 +3317,32 @@ export const IntegrationRuntimeStatusResponse: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "properties.type", required: true, type: { - name: "String" - } + name: "String", + }, }, dataFactoryName: { serializedName: "properties.dataFactoryName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IntegrationRuntimeStatus: coreClient.CompositeMapper = { @@ -3353,48 +3354,49 @@ export const IntegrationRuntimeStatus: coreClient.CompositeMapper = { additionalProperties: { type: { name: "Object" } }, polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, dataFactoryName: { serializedName: "dataFactoryName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const IntegrationRuntimeRegenerateKeyParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeRegenerateKeyParameters", - modelProperties: { - keyName: { - serializedName: "keyName", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const IntegrationRuntimeRegenerateKeyParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeRegenerateKeyParameters", + modelProperties: { + keyName: { + serializedName: "keyName", + type: { + name: "String", + }, + }, + }, + }, + }; export const IntegrationRuntimeAuthKeys: coreClient.CompositeMapper = { type: { @@ -3404,17 +3406,17 @@ export const IntegrationRuntimeAuthKeys: coreClient.CompositeMapper = { authKey1: { serializedName: "authKey1", type: { - name: "String" - } + name: "String", + }, }, authKey2: { serializedName: "authKey2", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IntegrationRuntimeMonitoringData: coreClient.CompositeMapper = { @@ -3425,8 +3427,8 @@ export const IntegrationRuntimeMonitoringData: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, nodes: { serializedName: "nodes", @@ -3435,80 +3437,81 @@ export const IntegrationRuntimeMonitoringData: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IntegrationRuntimeNodeMonitoringData" - } - } - } - } - } - } -}; - -export const IntegrationRuntimeNodeMonitoringData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeNodeMonitoringData", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - nodeName: { - serializedName: "nodeName", - readOnly: true, - type: { - name: "String" - } - }, - availableMemoryInMB: { - serializedName: "availableMemoryInMB", - readOnly: true, - type: { - name: "Number" - } - }, - cpuUtilization: { - serializedName: "cpuUtilization", - readOnly: true, - type: { - name: "Number" - } - }, - concurrentJobsLimit: { - serializedName: "concurrentJobsLimit", - readOnly: true, - type: { - name: "Number" - } - }, - concurrentJobsRunning: { - serializedName: "concurrentJobsRunning", - readOnly: true, - type: { - name: "Number" - } - }, - maxConcurrentJobs: { - serializedName: "maxConcurrentJobs", - readOnly: true, - type: { - name: "Number" - } + className: "IntegrationRuntimeNodeMonitoringData", + }, + }, + }, }, - sentBytes: { - serializedName: "sentBytes", - readOnly: true, - type: { - name: "Number" - } + }, + }, +}; + +export const IntegrationRuntimeNodeMonitoringData: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeNodeMonitoringData", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + nodeName: { + serializedName: "nodeName", + readOnly: true, + type: { + name: "String", + }, + }, + availableMemoryInMB: { + serializedName: "availableMemoryInMB", + readOnly: true, + type: { + name: "Number", + }, + }, + cpuUtilization: { + serializedName: "cpuUtilization", + readOnly: true, + type: { + name: "Number", + }, + }, + concurrentJobsLimit: { + serializedName: "concurrentJobsLimit", + readOnly: true, + type: { + name: "Number", + }, + }, + concurrentJobsRunning: { + serializedName: "concurrentJobsRunning", + readOnly: true, + type: { + name: "Number", + }, + }, + maxConcurrentJobs: { + serializedName: "maxConcurrentJobs", + readOnly: true, + type: { + name: "Number", + }, + }, + sentBytes: { + serializedName: "sentBytes", + readOnly: true, + type: { + name: "Number", + }, + }, + receivedBytes: { + serializedName: "receivedBytes", + readOnly: true, + type: { + name: "Number", + }, + }, }, - receivedBytes: { - serializedName: "receivedBytes", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; + }, + }; export const SsisObjectMetadataStatusResponse: coreClient.CompositeMapper = { type: { @@ -3518,224 +3521,233 @@ export const SsisObjectMetadataStatusResponse: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { - name: "String" - } + name: "String", + }, }, error: { serializedName: "error", type: { - name: "String" - } - } - } - } -}; - -export const IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: - "IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint" - } - } - } - } - } - } -}; - -export const IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint", - modelProperties: { - category: { - serializedName: "category", - type: { - name: "String" - } + name: "String", + }, }, - endpoints: { - serializedName: "endpoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IntegrationRuntimeOutboundNetworkDependenciesEndpoint" - } - } - } - } - } - } -}; - -export const IntegrationRuntimeOutboundNetworkDependenciesEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeOutboundNetworkDependenciesEndpoint", - modelProperties: { - domainName: { - serializedName: "domainName", - type: { - name: "String" - } + }, + }, +}; + +export const IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint", + }, + }, + }, + }, }, - endpointDetails: { - serializedName: "endpointDetails", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: - "IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails" - } - } - } - } - } - } -}; - -export const IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails", - modelProperties: { - port: { - serializedName: "port", - type: { - name: "Number" - } - } - } - } -}; - -export const IntegrationRuntimeOperationStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeOperationStatus", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } + }, + }; + +export const IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint", + modelProperties: { + category: { + serializedName: "category", + type: { + name: "String", + }, + }, + endpoints: { + serializedName: "endpoints", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "IntegrationRuntimeOutboundNetworkDependenciesEndpoint", + }, + }, + }, + }, }, - name: { - serializedName: "name", - type: { - name: "String" - } + }, + }; + +export const IntegrationRuntimeOutboundNetworkDependenciesEndpoint: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeOutboundNetworkDependenciesEndpoint", + modelProperties: { + domainName: { + serializedName: "domainName", + type: { + name: "String", + }, + }, + endpointDetails: { + serializedName: "endpointDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails", + }, + }, + }, + }, }, - properties: { - serializedName: "properties", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } + }, + }; + +export const IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails", + modelProperties: { + port: { + serializedName: "port", + type: { + name: "Number", + }, + }, }, - error: { - serializedName: "error", - type: { - name: "String" - } - } - } - } -}; + }, + }; -export const IntegrationRuntimeStopOperationStatus: coreClient.CompositeMapper = { +export const IntegrationRuntimeOperationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeStopOperationStatus", + className: "IntegrationRuntimeOperationStatus", modelProperties: { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, error: { serializedName: "error", type: { - name: "String" - } - } - } - } -}; - -export const IntegrationRuntimeEnableinteractivequery: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeEnableinteractivequery", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } + name: "String", + }, }, - name: { - serializedName: "name", - type: { - name: "String" - } + }, + }, +}; + +export const IntegrationRuntimeStopOperationStatus: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeStopOperationStatus", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + error: { + serializedName: "error", + type: { + name: "String", + }, + }, }, - properties: { - serializedName: "properties", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } + }, + }; + +export const IntegrationRuntimeEnableinteractivequery: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeEnableinteractivequery", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + error: { + serializedName: "error", + type: { + name: "String", + }, + }, }, - error: { - serializedName: "error", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const SparkConfigurationListResponse: coreClient.CompositeMapper = { type: { @@ -3750,19 +3762,19 @@ export const SparkConfigurationListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SparkConfigurationResource" - } - } - } + className: "SparkConfigurationResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -3777,20 +3789,20 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -3801,31 +3813,31 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -3836,29 +3848,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SkuDescriptionList: coreClient.CompositeMapper = { @@ -3874,13 +3886,13 @@ export const SkuDescriptionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SkuDescription" - } - } - } - } - } - } + className: "SkuDescription", + }, + }, + }, + }, + }, + }, }; export const SkuDescription: coreClient.CompositeMapper = { @@ -3892,22 +3904,22 @@ export const SkuDescription: coreClient.CompositeMapper = { serializedName: "resourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "size", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, locations: { serializedName: "locations", @@ -3916,10 +3928,10 @@ export const SkuDescription: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, locationInfo: { serializedName: "locationInfo", @@ -3929,10 +3941,10 @@ export const SkuDescription: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SkuLocationInfoItem" - } - } - } + className: "SkuLocationInfoItem", + }, + }, + }, }, restrictions: { serializedName: "restrictions", @@ -3942,13 +3954,13 @@ export const SkuDescription: coreClient.CompositeMapper = { element: { type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, + }, + }, }; export const SkuLocationInfoItem: coreClient.CompositeMapper = { @@ -3960,8 +3972,8 @@ export const SkuLocationInfoItem: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -3969,13 +3981,13 @@ export const SkuLocationInfoItem: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const KustoPoolCheckNameRequest: coreClient.CompositeMapper = { @@ -3987,19 +3999,19 @@ export const KustoPoolCheckNameRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { defaultValue: "Microsoft.Synapse/workspaces/kustoPools", isConstant: true, serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameResult: coreClient.CompositeMapper = { @@ -4010,29 +4022,29 @@ export const CheckNameResult: coreClient.CompositeMapper = { nameAvailable: { serializedName: "nameAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, reason: { serializedName: "reason", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KustoPoolListResult: coreClient.CompositeMapper = { @@ -4047,13 +4059,13 @@ export const KustoPoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KustoPool" - } - } - } - } - } - } + className: "KustoPool", + }, + }, + }, + }, + }, + }, }; export const AzureSku: coreClient.CompositeMapper = { @@ -4065,24 +4077,24 @@ export const AzureSku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } + name: "Number", + }, }, size: { serializedName: "size", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OptimizedAutoscale: coreClient.CompositeMapper = { @@ -4094,32 +4106,32 @@ export const OptimizedAutoscale: coreClient.CompositeMapper = { serializedName: "version", required: true, type: { - name: "Number" - } + name: "Number", + }, }, isEnabled: { serializedName: "isEnabled", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, minimum: { serializedName: "minimum", required: true, type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const LanguageExtensionsList: coreClient.CompositeMapper = { @@ -4134,14 +4146,14 @@ export const LanguageExtensionsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LanguageExtension" - } - } - } - } - } - } -}; + className: "LanguageExtension", + }, + }, + }, + }, + }, + }, +}; export const LanguageExtension: coreClient.CompositeMapper = { type: { @@ -4151,11 +4163,11 @@ export const LanguageExtension: coreClient.CompositeMapper = { languageExtensionName: { serializedName: "languageExtensionName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -4166,41 +4178,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 ListResourceSkusResult: coreClient.CompositeMapper = { @@ -4215,13 +4227,13 @@ export const ListResourceSkusResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AzureResourceSku" - } - } - } - } - } - } + className: "AzureResourceSku", + }, + }, + }, + }, + }, + }, }; export const AzureResourceSku: coreClient.CompositeMapper = { @@ -4232,25 +4244,25 @@ export const AzureResourceSku: coreClient.CompositeMapper = { resourceType: { serializedName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "AzureSku" - } + className: "AzureSku", + }, }, capacity: { serializedName: "capacity", type: { name: "Composite", - className: "AzureCapacity" - } - } - } - } + className: "AzureCapacity", + }, + }, + }, + }, }; export const AzureCapacity: coreClient.CompositeMapper = { @@ -4262,32 +4274,32 @@ export const AzureCapacity: coreClient.CompositeMapper = { serializedName: "scaleType", required: true, type: { - name: "String" - } + name: "String", + }, }, minimum: { serializedName: "minimum", required: true, type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", required: true, type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "default", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DatabaseCheckNameRequest: coreClient.CompositeMapper = { @@ -4299,8 +4311,8 @@ export const DatabaseCheckNameRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", @@ -4309,12 +4321,12 @@ export const DatabaseCheckNameRequest: coreClient.CompositeMapper = { name: "Enum", allowedValues: [ "Microsoft.Synapse/workspaces/kustoPools/databases", - "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations" - ] - } - } - } - } + "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations", + ], + }, + }, + }, + }, }; export const FollowerDatabaseListResult: coreClient.CompositeMapper = { @@ -4329,13 +4341,13 @@ export const FollowerDatabaseListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FollowerDatabaseDefinition" - } - } - } - } - } - } + className: "FollowerDatabaseDefinition", + }, + }, + }, + }, + }, + }, }; export const FollowerDatabaseDefinition: coreClient.CompositeMapper = { @@ -4347,47 +4359,48 @@ export const FollowerDatabaseDefinition: coreClient.CompositeMapper = { serializedName: "clusterResourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, attachedDatabaseConfigurationName: { serializedName: "attachedDatabaseConfigurationName", required: true, type: { - name: "String" - } + name: "String", + }, }, databaseName: { serializedName: "databaseName", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const AttachedDatabaseConfigurationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AttachedDatabaseConfigurationListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AttachedDatabaseConfiguration" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AttachedDatabaseConfigurationListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AttachedDatabaseConfigurationListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AttachedDatabaseConfiguration", + }, + }, + }, + }, + }, + }, + }; export const TableLevelSharingProperties: coreClient.CompositeMapper = { type: { @@ -4400,10 +4413,10 @@ export const TableLevelSharingProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, tablesToExclude: { serializedName: "tablesToExclude", @@ -4411,10 +4424,10 @@ export const TableLevelSharingProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, externalTablesToInclude: { serializedName: "externalTablesToInclude", @@ -4422,10 +4435,10 @@ export const TableLevelSharingProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, externalTablesToExclude: { serializedName: "externalTablesToExclude", @@ -4433,10 +4446,10 @@ export const TableLevelSharingProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, materializedViewsToInclude: { serializedName: "materializedViewsToInclude", @@ -4444,10 +4457,10 @@ export const TableLevelSharingProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, materializedViewsToExclude: { serializedName: "materializedViewsToExclude", @@ -4455,13 +4468,13 @@ export const TableLevelSharingProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const DatabaseListResult: coreClient.CompositeMapper = { @@ -4476,13 +4489,13 @@ export const DatabaseListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Database" - } - } - } - } - } - } + className: "Database", + }, + }, + }, + }, + }, + }, }; export const DataConnectionCheckNameRequest: coreClient.CompositeMapper = { @@ -4494,8 +4507,8 @@ export const DataConnectionCheckNameRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { defaultValue: @@ -4503,11 +4516,11 @@ export const DataConnectionCheckNameRequest: coreClient.CompositeMapper = { isConstant: true, serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataConnectionValidation: coreClient.CompositeMapper = { @@ -4518,18 +4531,18 @@ export const DataConnectionValidation: coreClient.CompositeMapper = { dataConnectionName: { serializedName: "dataConnectionName", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "DataConnection" - } - } - } - } + className: "DataConnection", + }, + }, + }, + }, }; export const DataConnectionValidationListResult: coreClient.CompositeMapper = { @@ -4544,13 +4557,13 @@ export const DataConnectionValidationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataConnectionValidationResult" - } - } - } - } - } - } + className: "DataConnectionValidationResult", + }, + }, + }, + }, + }, + }, }; export const DataConnectionValidationResult: coreClient.CompositeMapper = { @@ -4561,11 +4574,11 @@ export const DataConnectionValidationResult: coreClient.CompositeMapper = { errorMessage: { serializedName: "errorMessage", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataConnectionListResult: coreClient.CompositeMapper = { @@ -4580,106 +4593,110 @@ export const DataConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataConnection" - } - } - } - } - } - } -}; - -export const ClusterPrincipalAssignmentCheckNameRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterPrincipalAssignmentCheckNameRequest", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } + className: "DataConnection", + }, + }, + }, }, - type: { - defaultValue: - "Microsoft.Synapse/workspaces/kustoPools/principalAssignments", - isConstant: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const ClusterPrincipalAssignmentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterPrincipalAssignmentListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ClusterPrincipalAssignment" - } - } - } - } - } - } -}; - -export const DatabasePrincipalAssignmentCheckNameRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabasePrincipalAssignmentCheckNameRequest", - modelProperties: { - name: { - serializedName: "name", - required: true, + }, + }, +}; + +export const ClusterPrincipalAssignmentCheckNameRequest: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterPrincipalAssignmentCheckNameRequest", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, type: { - name: "String" - } + defaultValue: + "Microsoft.Synapse/workspaces/kustoPools/principalAssignments", + isConstant: true, + serializedName: "type", + type: { + name: "String", + }, + }, }, - type: { - defaultValue: - "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments", - isConstant: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const DatabasePrincipalAssignmentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabasePrincipalAssignmentListResult", - modelProperties: { - value: { - serializedName: "value", + }, + }; + +export const ClusterPrincipalAssignmentListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterPrincipalAssignmentListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClusterPrincipalAssignment", + }, + }, + }, + }, + }, + }, + }; + +export const DatabasePrincipalAssignmentCheckNameRequest: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DatabasePrincipalAssignmentCheckNameRequest", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabasePrincipalAssignment" - } - } - } - } - } - } -}; + defaultValue: + "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments", + isConstant: true, + serializedName: "type", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const DatabasePrincipalAssignmentListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DatabasePrincipalAssignmentListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabasePrincipalAssignment", + }, + }, + }, + }, + }, + }, + }; export const PrivateLinkResources: coreClient.CompositeMapper = { type: { @@ -4693,13 +4710,13 @@ export const PrivateLinkResources: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KustoPoolPrivateLinkResources" - } - } - } - } - } - } + className: "KustoPoolPrivateLinkResources", + }, + }, + }, + }, + }, + }, }; export const TopQueries: coreClient.CompositeMapper = { @@ -4712,52 +4729,58 @@ export const TopQueries: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["min", "max", "avg", "sum"] - } + allowedValues: ["min", "max", "avg", "sum"], + }, }, executionType: { serializedName: "executionType", readOnly: true, type: { name: "Enum", - allowedValues: ["any", "regular", "irregular", "aborted", "exception"] - } + allowedValues: [ + "any", + "regular", + "irregular", + "aborted", + "exception", + ], + }, }, intervalType: { serializedName: "intervalType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, numberOfTopQueries: { serializedName: "numberOfTopQueries", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, observationStartTime: { serializedName: "observationStartTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, observationEndTime: { serializedName: "observationEndTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, observedMetric: { serializedName: "observedMetric", readOnly: true, type: { name: "Enum", - allowedValues: ["cpu", "io", "logio", "duration", "executionCount"] - } + allowedValues: ["cpu", "io", "logio", "duration", "executionCount"], + }, }, queries: { serializedName: "queries", @@ -4767,13 +4790,13 @@ export const TopQueries: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryStatistic" - } - } - } - } - } - } + className: "QueryStatistic", + }, + }, + }, + }, + }, + }, }; export const QueryStatistic: coreClient.CompositeMapper = { @@ -4785,8 +4808,8 @@ export const QueryStatistic: coreClient.CompositeMapper = { serializedName: "queryId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, intervals: { serializedName: "intervals", @@ -4796,13 +4819,13 @@ export const QueryStatistic: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryInterval" - } - } - } - } - } - } + className: "QueryInterval", + }, + }, + }, + }, + }, + }, }; export const QueryInterval: coreClient.CompositeMapper = { @@ -4814,15 +4837,15 @@ export const QueryInterval: coreClient.CompositeMapper = { serializedName: "intervalStartTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, executionCount: { serializedName: "executionCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, metrics: { serializedName: "metrics", @@ -4832,13 +4855,13 @@ export const QueryInterval: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryMetric" - } - } - } - } - } - } + className: "QueryMetric", + }, + }, + }, + }, + }, + }, }; export const QueryMetric: coreClient.CompositeMapper = { @@ -4850,33 +4873,33 @@ export const QueryMetric: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, unit: { serializedName: "unit", readOnly: true, type: { name: "Enum", - allowedValues: ["percentage", "KB", "microseconds"] - } + allowedValues: ["percentage", "KB", "microseconds"], + }, }, value: { serializedName: "value", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const TopQueriesListResult: coreClient.CompositeMapper = { @@ -4892,29 +4915,30 @@ export const TopQueriesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TopQueries" - } - } - } - } - } - } -}; - -export const DedicatedSQLminimalTlsSettingsPatchInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedSQLminimalTlsSettingsPatchInfo", - modelProperties: { - minimalTlsVersion: { - serializedName: "minimalTlsVersion", - type: { - name: "String" - } - } - } - } -}; + className: "TopQueries", + }, + }, + }, + }, + }, + }, +}; + +export const DedicatedSQLminimalTlsSettingsPatchInfo: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DedicatedSQLminimalTlsSettingsPatchInfo", + modelProperties: { + minimalTlsVersion: { + serializedName: "minimalTlsVersion", + type: { + name: "String", + }, + }, + }, + }, + }; export const IntegrationRuntimeComputeProperties: coreClient.CompositeMapper = { type: { @@ -4925,87 +4949,102 @@ export const IntegrationRuntimeComputeProperties: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, nodeSize: { serializedName: "nodeSize", type: { - name: "String" - } + name: "String", + }, }, numberOfNodes: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "numberOfNodes", type: { - name: "Number" - } + name: "Number", + }, }, maxParallelExecutionsPerNode: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "maxParallelExecutionsPerNode", type: { - name: "Number" - } + name: "Number", + }, }, dataFlowProperties: { serializedName: "dataFlowProperties", type: { name: "Composite", - className: "IntegrationRuntimeDataFlowProperties" - } + className: "IntegrationRuntimeDataFlowProperties", + }, }, vNetProperties: { serializedName: "vNetProperties", type: { name: "Composite", - className: "IntegrationRuntimeVNetProperties" - } - } - } - } -}; - -export const IntegrationRuntimeDataFlowProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeDataFlowProperties", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - computeType: { - serializedName: "computeType", + className: "IntegrationRuntimeVNetProperties", + }, + }, + copyComputeScaleProperties: { + serializedName: "copyComputeScaleProperties", type: { - name: "String" - } + name: "Composite", + className: "CopyComputeScaleProperties", + }, }, - coreCount: { - serializedName: "coreCount", + pipelineExternalComputeScaleProperties: { + serializedName: "pipelineExternalComputeScaleProperties", type: { - name: "Number" - } + name: "Composite", + className: "PipelineExternalComputeScaleProperties", + }, }, - timeToLive: { - constraints: { - InclusiveMinimum: 0 + }, + }, +}; + +export const IntegrationRuntimeDataFlowProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeDataFlowProperties", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + computeType: { + serializedName: "computeType", + type: { + name: "String", + }, + }, + coreCount: { + serializedName: "coreCount", + type: { + name: "Number", + }, + }, + timeToLive: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "timeToLive", + type: { + name: "Number", + }, + }, + cleanup: { + serializedName: "cleanup", + type: { + name: "Boolean", + }, }, - serializedName: "timeToLive", - type: { - name: "Number" - } }, - cleanup: { - serializedName: "cleanup", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }; export const IntegrationRuntimeVNetProperties: coreClient.CompositeMapper = { type: { @@ -5016,14 +5055,14 @@ export const IntegrationRuntimeVNetProperties: coreClient.CompositeMapper = { vNetId: { serializedName: "vNetId", type: { - name: "String" - } + name: "String", + }, }, subnet: { serializedName: "subnet", type: { - name: "String" - } + name: "String", + }, }, publicIPs: { serializedName: "publicIPs", @@ -5031,21 +5070,89 @@ export const IntegrationRuntimeVNetProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, subnetId: { serializedName: "subnetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; +export const CopyComputeScaleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CopyComputeScaleProperties", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + dataIntegrationUnit: { + constraints: { + InclusiveMinimum: 4, + }, + serializedName: "dataIntegrationUnit", + type: { + name: "Number", + }, + }, + timeToLive: { + constraints: { + InclusiveMinimum: 5, + }, + serializedName: "timeToLive", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const PipelineExternalComputeScaleProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PipelineExternalComputeScaleProperties", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + timeToLive: { + constraints: { + InclusiveMinimum: 5, + }, + serializedName: "timeToLive", + type: { + name: "Number", + }, + }, + numberOfPipelineNodes: { + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 1, + }, + serializedName: "numberOfPipelineNodes", + type: { + name: "Number", + }, + }, + numberOfExternalNodes: { + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 1, + }, + serializedName: "numberOfExternalNodes", + type: { + name: "Number", + }, + }, + }, + }, + }; + export const IntegrationRuntimeSsisProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5056,34 +5163,34 @@ export const IntegrationRuntimeSsisProperties: coreClient.CompositeMapper = { serializedName: "catalogInfo", type: { name: "Composite", - className: "IntegrationRuntimeSsisCatalogInfo" - } + className: "IntegrationRuntimeSsisCatalogInfo", + }, }, licenseType: { serializedName: "licenseType", type: { - name: "String" - } + name: "String", + }, }, customSetupScriptProperties: { serializedName: "customSetupScriptProperties", type: { name: "Composite", - className: "IntegrationRuntimeCustomSetupScriptProperties" - } + className: "IntegrationRuntimeCustomSetupScriptProperties", + }, }, dataProxyProperties: { serializedName: "dataProxyProperties", type: { name: "Composite", - className: "IntegrationRuntimeDataProxyProperties" - } + className: "IntegrationRuntimeDataProxyProperties", + }, }, edition: { serializedName: "edition", type: { - name: "String" - } + name: "String", + }, }, expressCustomSetupProperties: { serializedName: "expressCustomSetupProperties", @@ -5092,13 +5199,13 @@ export const IntegrationRuntimeSsisProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomSetupBase" - } - } - } - } - } - } + className: "CustomSetupBase", + }, + }, + }, + }, + }, + }, }; export const IntegrationRuntimeSsisCatalogInfo: coreClient.CompositeMapper = { @@ -5110,34 +5217,34 @@ export const IntegrationRuntimeSsisCatalogInfo: coreClient.CompositeMapper = { catalogServerEndpoint: { serializedName: "catalogServerEndpoint", type: { - name: "String" - } + name: "String", + }, }, catalogAdminUserName: { constraints: { MaxLength: 128, - MinLength: 1 + MinLength: 1, }, serializedName: "catalogAdminUserName", type: { - name: "String" - } + name: "String", + }, }, catalogAdminPassword: { serializedName: "catalogAdminPassword", type: { name: "Composite", - className: "SecureString" - } + className: "SecureString", + }, }, catalogPricingTier: { serializedName: "catalogPricingTier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SecretBase: coreClient.CompositeMapper = { @@ -5147,70 +5254,72 @@ export const SecretBase: coreClient.CompositeMapper = { uberParent: "SecretBase", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } - } - } - } -}; - -export const IntegrationRuntimeCustomSetupScriptProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeCustomSetupScriptProperties", - modelProperties: { - blobContainerUri: { - serializedName: "blobContainerUri", - type: { - name: "String" - } + name: "String", + }, }, - sasToken: { - serializedName: "sasToken", - type: { - name: "Composite", - className: "SecureString" - } - } - } - } -}; - -export const IntegrationRuntimeDataProxyProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeDataProxyProperties", - modelProperties: { - connectVia: { - serializedName: "connectVia", - type: { - name: "Composite", - className: "EntityReference" - } + }, + }, +}; + +export const IntegrationRuntimeCustomSetupScriptProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeCustomSetupScriptProperties", + modelProperties: { + blobContainerUri: { + serializedName: "blobContainerUri", + type: { + name: "String", + }, + }, + sasToken: { + serializedName: "sasToken", + type: { + name: "Composite", + className: "SecureString", + }, + }, }, - stagingLinkedService: { - serializedName: "stagingLinkedService", - type: { - name: "Composite", - className: "EntityReference" - } + }, + }; + +export const IntegrationRuntimeDataProxyProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeDataProxyProperties", + modelProperties: { + connectVia: { + serializedName: "connectVia", + type: { + name: "Composite", + className: "EntityReference", + }, + }, + stagingLinkedService: { + serializedName: "stagingLinkedService", + type: { + name: "Composite", + className: "EntityReference", + }, + }, + path: { + serializedName: "path", + type: { + name: "String", + }, + }, }, - path: { - serializedName: "path", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const EntityReference: coreClient.CompositeMapper = { type: { @@ -5220,17 +5329,17 @@ export const EntityReference: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, referenceName: { serializedName: "referenceName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomSetupBase: coreClient.CompositeMapper = { @@ -5240,18 +5349,18 @@ export const CustomSetupBase: coreClient.CompositeMapper = { uberParent: "CustomSetupBase", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LinkedIntegrationRuntimeType: coreClient.CompositeMapper = { @@ -5261,18 +5370,18 @@ export const LinkedIntegrationRuntimeType: coreClient.CompositeMapper = { uberParent: "LinkedIntegrationRuntimeType", polymorphicDiscriminator: { serializedName: "authorizationType", - clientName: "authorizationType" + clientName: "authorizationType", }, modelProperties: { authorizationType: { serializedName: "authorizationType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedIntegrationRuntimeNode: coreClient.CompositeMapper = { @@ -5285,15 +5394,15 @@ export const ManagedIntegrationRuntimeNode: coreClient.CompositeMapper = { serializedName: "nodeId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, errors: { serializedName: "errors", @@ -5301,92 +5410,35 @@ export const ManagedIntegrationRuntimeNode: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedIntegrationRuntimeError" - } - } - } - } - } - } -}; - -export const ManagedIntegrationRuntimeError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedIntegrationRuntimeError", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - time: { - serializedName: "time", - readOnly: true, - type: { - name: "DateTime" - } - }, - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - parameters: { - serializedName: "parameters", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - } - } - } + name: "Composite", + className: "ManagedIntegrationRuntimeError", + }, + }, + }, + }, + }, + }, }; -export const ManagedIntegrationRuntimeOperationResult: coreClient.CompositeMapper = { +export const ManagedIntegrationRuntimeError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIntegrationRuntimeOperationResult", + className: "ManagedIntegrationRuntimeError", additionalProperties: { type: { name: "Object" } }, modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - result: { - serializedName: "result", + time: { + serializedName: "time", readOnly: true, type: { - name: "String" - } + name: "DateTime", + }, }, - errorCode: { - serializedName: "errorCode", + code: { + serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", @@ -5395,21 +5447,79 @@ export const ManagedIntegrationRuntimeOperationResult: coreClient.CompositeMappe name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - activityId: { - serializedName: "activityId", + message: { + serializedName: "message", readOnly: true, type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ManagedIntegrationRuntimeOperationResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedIntegrationRuntimeOperationResult", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + startTime: { + serializedName: "startTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + result: { + serializedName: "result", + readOnly: true, + type: { + name: "String", + }, + }, + errorCode: { + serializedName: "errorCode", + readOnly: true, + type: { + name: "String", + }, + }, + parameters: { + serializedName: "parameters", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + activityId: { + serializedName: "activityId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const LinkedIntegrationRuntime: coreClient.CompositeMapper = { type: { @@ -5420,39 +5530,39 @@ export const LinkedIntegrationRuntime: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subscriptionId: { serializedName: "subscriptionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dataFactoryName: { serializedName: "dataFactoryName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dataFactoryLocation: { serializedName: "dataFactoryLocation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, createTime: { serializedName: "createTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const SsisEnvironmentReference: coreClient.CompositeMapper = { @@ -5463,29 +5573,29 @@ export const SsisEnvironmentReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "Number" - } + name: "Number", + }, }, environmentFolderName: { serializedName: "environmentFolderName", type: { - name: "String" - } + name: "String", + }, }, environmentName: { serializedName: "environmentName", type: { - name: "String" - } + name: "String", + }, }, referenceType: { serializedName: "referenceType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SsisParameter: coreClient.CompositeMapper = { @@ -5496,77 +5606,77 @@ export const SsisParameter: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, dataType: { serializedName: "dataType", type: { - name: "String" - } + name: "String", + }, }, required: { serializedName: "required", type: { - name: "Boolean" - } + name: "Boolean", + }, }, sensitive: { serializedName: "sensitive", type: { - name: "Boolean" - } + name: "Boolean", + }, }, designDefaultValue: { serializedName: "designDefaultValue", type: { - name: "String" - } + name: "String", + }, }, defaultValue: { serializedName: "defaultValue", type: { - name: "String" - } + name: "String", + }, }, sensitiveDefaultValue: { serializedName: "sensitiveDefaultValue", type: { - name: "String" - } + name: "String", + }, }, valueType: { serializedName: "valueType", type: { - name: "String" - } + name: "String", + }, }, valueSet: { serializedName: "valueSet", type: { - name: "Boolean" - } + name: "Boolean", + }, }, variable: { serializedName: "variable", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SsisVariable: coreClient.CompositeMapper = { @@ -5577,47 +5687,47 @@ export const SsisVariable: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, dataType: { serializedName: "dataType", type: { - name: "String" - } + name: "String", + }, }, sensitive: { serializedName: "sensitive", type: { - name: "Boolean" - } + name: "Boolean", + }, }, value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, sensitiveValue: { serializedName: "sensitiveValue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DatabaseStatistics: coreClient.CompositeMapper = { @@ -5628,11 +5738,11 @@ export const DatabaseStatistics: coreClient.CompositeMapper = { size: { serializedName: "size", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -5640,9 +5750,9 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -5655,18 +5765,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AzureEntityResource: coreClient.CompositeMapper = { @@ -5679,11 +5789,11 @@ export const AzureEntityResource: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KustoPoolUpdate: coreClient.CompositeMapper = { @@ -5696,111 +5806,112 @@ export const KustoPoolUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "AzureSku" - } + className: "AzureSku", + }, }, state: { serializedName: "properties.state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uri: { serializedName: "properties.uri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dataIngestionUri: { serializedName: "properties.dataIngestionUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, stateReason: { serializedName: "properties.stateReason", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, optimizedAutoscale: { serializedName: "properties.optimizedAutoscale", type: { name: "Composite", - className: "OptimizedAutoscale" - } + className: "OptimizedAutoscale", + }, }, enableStreamingIngest: { defaultValue: false, serializedName: "properties.enableStreamingIngest", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enablePurge: { defaultValue: false, serializedName: "properties.enablePurge", type: { - name: "Boolean" - } + name: "Boolean", + }, }, languageExtensions: { serializedName: "properties.languageExtensions", type: { name: "Composite", - className: "LanguageExtensionsList" - } + className: "LanguageExtensionsList", + }, }, workspaceUID: { serializedName: "properties.workspaceUID", type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionForPrivateLinkHub: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionForPrivateLinkHub", - modelProperties: { - ...PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.type - .modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } + name: "String", + }, }, - type: { - serializedName: "type", + }, + }, +}; + +export const PrivateEndpointConnectionForPrivateLinkHub: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionForPrivateLinkHub", + modelProperties: { + ...PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.type + .modelProperties, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, type: { - name: "String" - } - } - } - } -}; + serializedName: "type", + type: { + name: "String", + }, + }, + }, + }, + }; export const ManagedIntegrationRuntime: coreClient.CompositeMapper = { serializedName: "Managed", @@ -5816,43 +5927,43 @@ export const ManagedIntegrationRuntime: coreClient.CompositeMapper = { serializedName: "state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, referenceName: { serializedName: "managedVirtualNetwork.referenceName", type: { - name: "String" - } + name: "String", + }, }, typeManagedVirtualNetworkType: { serializedName: "managedVirtualNetwork.type", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "managedVirtualNetwork.id", type: { - name: "String" - } + name: "String", + }, }, computeProperties: { serializedName: "typeProperties.computeProperties", type: { name: "Composite", - className: "IntegrationRuntimeComputeProperties" - } + className: "IntegrationRuntimeComputeProperties", + }, }, ssisProperties: { serializedName: "typeProperties.ssisProperties", type: { name: "Composite", - className: "IntegrationRuntimeSsisProperties" - } - } - } - } + className: "IntegrationRuntimeSsisProperties", + }, + }, + }, + }, }; export const SelfHostedIntegrationRuntime: coreClient.CompositeMapper = { @@ -5869,11 +5980,18 @@ export const SelfHostedIntegrationRuntime: coreClient.CompositeMapper = { serializedName: "typeProperties.linkedInfo", type: { name: "Composite", - className: "LinkedIntegrationRuntimeType" - } - } - } - } + className: "LinkedIntegrationRuntimeType", + }, + }, + selfContainedInteractiveAuthoringEnabled: { + serializedName: + "typeProperties.selfContainedInteractiveAuthoringEnabled", + type: { + name: "Boolean", + }, + }, + }, + }, }; export const SsisFolder: coreClient.CompositeMapper = { @@ -5884,9 +6002,9 @@ export const SsisFolder: coreClient.CompositeMapper = { uberParent: "SsisObjectMetadata", polymorphicDiscriminator: SsisObjectMetadata.type.polymorphicDiscriminator, modelProperties: { - ...SsisObjectMetadata.type.modelProperties - } - } + ...SsisObjectMetadata.type.modelProperties, + }, + }, }; export const SsisProject: coreClient.CompositeMapper = { @@ -5901,14 +6019,14 @@ export const SsisProject: coreClient.CompositeMapper = { folderId: { serializedName: "folderId", type: { - name: "Number" - } + name: "Number", + }, }, version: { serializedName: "version", type: { - name: "Number" - } + name: "Number", + }, }, environmentRefs: { serializedName: "environmentRefs", @@ -5917,10 +6035,10 @@ export const SsisProject: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SsisEnvironmentReference" - } - } - } + className: "SsisEnvironmentReference", + }, + }, + }, }, parameters: { serializedName: "parameters", @@ -5929,13 +6047,13 @@ export const SsisProject: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SsisParameter" - } - } - } - } - } - } + className: "SsisParameter", + }, + }, + }, + }, + }, + }, }; export const SsisPackage: coreClient.CompositeMapper = { @@ -5950,20 +6068,20 @@ export const SsisPackage: coreClient.CompositeMapper = { folderId: { serializedName: "folderId", type: { - name: "Number" - } + name: "Number", + }, }, projectVersion: { serializedName: "projectVersion", type: { - name: "Number" - } + name: "Number", + }, }, projectId: { serializedName: "projectId", type: { - name: "Number" - } + name: "Number", + }, }, parameters: { serializedName: "parameters", @@ -5972,13 +6090,13 @@ export const SsisPackage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SsisParameter" - } - } - } - } - } - } + className: "SsisParameter", + }, + }, + }, + }, + }, + }, }; export const SsisEnvironment: coreClient.CompositeMapper = { @@ -5993,8 +6111,8 @@ export const SsisEnvironment: coreClient.CompositeMapper = { folderId: { serializedName: "folderId", type: { - name: "Number" - } + name: "Number", + }, }, variables: { serializedName: "variables", @@ -6003,13 +6121,13 @@ export const SsisEnvironment: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SsisVariable" - } - } - } - } - } - } + className: "SsisVariable", + }, + }, + }, + }, + }, + }, }; export const ManagedIntegrationRuntimeStatus: coreClient.CompositeMapper = { @@ -6027,8 +6145,8 @@ export const ManagedIntegrationRuntimeStatus: coreClient.CompositeMapper = { serializedName: "typeProperties.createTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, nodes: { serializedName: "typeProperties.nodes", @@ -6038,10 +6156,10 @@ export const ManagedIntegrationRuntimeStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedIntegrationRuntimeNode" - } - } - } + className: "ManagedIntegrationRuntimeNode", + }, + }, + }, }, otherErrors: { serializedName: "typeProperties.otherErrors", @@ -6051,20 +6169,20 @@ export const ManagedIntegrationRuntimeStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedIntegrationRuntimeError" - } - } - } + className: "ManagedIntegrationRuntimeError", + }, + }, + }, }, lastOperation: { serializedName: "typeProperties.lastOperation", type: { name: "Composite", - className: "ManagedIntegrationRuntimeOperationResult" - } - } - } - } + className: "ManagedIntegrationRuntimeOperationResult", + }, + }, + }, + }, }; export const SelfHostedIntegrationRuntimeStatus: coreClient.CompositeMapper = { @@ -6082,36 +6200,36 @@ export const SelfHostedIntegrationRuntimeStatus: coreClient.CompositeMapper = { serializedName: "typeProperties.createTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, taskQueueId: { serializedName: "typeProperties.taskQueueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nodeCommunicationChannelEncryptionMode: { serializedName: "typeProperties.nodeCommunicationChannelEncryptionMode", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, internalChannelEncryption: { serializedName: "typeProperties.internalChannelEncryption", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "typeProperties.version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nodes: { serializedName: "typeProperties.nodes", @@ -6120,39 +6238,39 @@ export const SelfHostedIntegrationRuntimeStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SelfHostedIntegrationRuntimeNode" - } - } - } + className: "SelfHostedIntegrationRuntimeNode", + }, + }, + }, }, scheduledUpdateDate: { serializedName: "typeProperties.scheduledUpdateDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, updateDelayOffset: { serializedName: "typeProperties.updateDelayOffset", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, localTimeZoneOffset: { serializedName: "typeProperties.localTimeZoneOffset", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "typeProperties.capabilities", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, serviceUrls: { serializedName: "typeProperties.serviceUrls", @@ -6161,24 +6279,24 @@ export const SelfHostedIntegrationRuntimeStatus: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, autoUpdate: { serializedName: "typeProperties.autoUpdate", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, versionStatus: { serializedName: "typeProperties.versionStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, links: { serializedName: "typeProperties.links", @@ -6187,37 +6305,37 @@ export const SelfHostedIntegrationRuntimeStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LinkedIntegrationRuntime" - } - } - } + className: "LinkedIntegrationRuntime", + }, + }, + }, }, pushedVersion: { serializedName: "typeProperties.pushedVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, latestVersion: { serializedName: "typeProperties.latestVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, autoUpdateETA: { serializedName: "typeProperties.autoUpdateETA", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, serviceRegion: { serializedName: "typeProperties.serviceRegion", type: { - name: "String" - } + name: "String", + }, }, newerVersions: { serializedName: "typeProperties.newerVersions", @@ -6225,13 +6343,35 @@ export const SelfHostedIntegrationRuntimeStatus: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + osType: { + serializedName: "typeProperties.osType", + readOnly: true, + type: { + name: "Number", + }, + }, + targetFramework: { + serializedName: "typeProperties.targetFramework", + readOnly: true, + type: { + name: "Number", + }, + }, + selfContainedInteractiveAuthoringEnabled: { + serializedName: + "typeProperties.selfContainedInteractiveAuthoringEnabled", + readOnly: true, + type: { + name: "Boolean", + }, + }, + }, + }, }; export const SecureString: coreClient.CompositeMapper = { @@ -6247,11 +6387,11 @@ export const SecureString: coreClient.CompositeMapper = { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CmdkeySetup: coreClient.CompositeMapper = { @@ -6268,26 +6408,26 @@ export const CmdkeySetup: coreClient.CompositeMapper = { required: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, userName: { serializedName: "typeProperties.userName", required: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, password: { serializedName: "typeProperties.password", type: { name: "Composite", - className: "SecretBase" - } - } - } - } + className: "SecretBase", + }, + }, + }, + }, }; export const EnvironmentVariableSetup: coreClient.CompositeMapper = { @@ -6303,18 +6443,18 @@ export const EnvironmentVariableSetup: coreClient.CompositeMapper = { serializedName: "typeProperties.variableName", required: true, type: { - name: "String" - } + name: "String", + }, }, variableValue: { serializedName: "typeProperties.variableValue", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ComponentSetup: coreClient.CompositeMapper = { @@ -6330,61 +6470,63 @@ export const ComponentSetup: coreClient.CompositeMapper = { serializedName: "typeProperties.componentName", required: true, type: { - name: "String" - } + name: "String", + }, }, licenseKey: { serializedName: "typeProperties.licenseKey", type: { name: "Composite", - className: "SecretBase" - } - } - } - } -}; - -export const LinkedIntegrationRuntimeKeyAuthorization: coreClient.CompositeMapper = { - serializedName: "Key", - type: { - name: "Composite", - className: "LinkedIntegrationRuntimeKeyAuthorization", - uberParent: "LinkedIntegrationRuntimeType", - polymorphicDiscriminator: - LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, - modelProperties: { - ...LinkedIntegrationRuntimeType.type.modelProperties, - key: { - serializedName: "key", - type: { - name: "Composite", - className: "SecureString" - } - } - } - } -}; - -export const LinkedIntegrationRuntimeRbacAuthorization: coreClient.CompositeMapper = { - serializedName: "RBAC", - type: { - name: "Composite", - className: "LinkedIntegrationRuntimeRbacAuthorization", - uberParent: "LinkedIntegrationRuntimeType", - polymorphicDiscriminator: - LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, - modelProperties: { - ...LinkedIntegrationRuntimeType.type.modelProperties, - resourceId: { - serializedName: "resourceId", - required: true, - type: { - name: "String" - } - } - } - } -}; + className: "SecretBase", + }, + }, + }, + }, +}; + +export const LinkedIntegrationRuntimeKeyAuthorization: coreClient.CompositeMapper = + { + serializedName: "Key", + type: { + name: "Composite", + className: "LinkedIntegrationRuntimeKeyAuthorization", + uberParent: "LinkedIntegrationRuntimeType", + polymorphicDiscriminator: + LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedIntegrationRuntimeType.type.modelProperties, + key: { + serializedName: "key", + type: { + name: "Composite", + className: "SecureString", + }, + }, + }, + }, + }; + +export const LinkedIntegrationRuntimeRbacAuthorization: coreClient.CompositeMapper = + { + serializedName: "RBAC", + type: { + name: "Composite", + className: "LinkedIntegrationRuntimeRbacAuthorization", + uberParent: "LinkedIntegrationRuntimeType", + polymorphicDiscriminator: + LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedIntegrationRuntimeType.type.modelProperties, + resourceId: { + serializedName: "resourceId", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const AzureADOnlyAuthentication: coreClient.CompositeMapper = { type: { @@ -6395,25 +6537,25 @@ export const AzureADOnlyAuthentication: coreClient.CompositeMapper = { azureADOnlyAuthentication: { serializedName: "properties.azureADOnlyAuthentication", type: { - name: "Boolean" - } + name: "Boolean", + }, }, state: { serializedName: "properties.state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationDate: { serializedName: "properties.creationDate", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const IpFirewallRuleInfo: coreClient.CompositeMapper = { @@ -6425,24 +6567,24 @@ export const IpFirewallRuleInfo: coreClient.CompositeMapper = { endIpAddress: { serializedName: "properties.endIpAddress", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startIpAddress: { serializedName: "properties.startIpAddress", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Key: coreClient.CompositeMapper = { @@ -6454,17 +6596,17 @@ export const Key: coreClient.CompositeMapper = { isActiveCMK: { serializedName: "properties.isActiveCMK", type: { - name: "Boolean" - } + name: "Boolean", + }, }, keyVaultUrl: { serializedName: "properties.keyVaultUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -6477,25 +6619,25 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + className: "PrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -6508,11 +6650,11 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "PrivateLinkResourceProperties" - } - } - } - } + className: "PrivateLinkResourceProperties", + }, + }, + }, + }, }; export const MetadataSyncConfig: coreClient.CompositeMapper = { @@ -6524,17 +6666,17 @@ export const MetadataSyncConfig: coreClient.CompositeMapper = { enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, syncIntervalInMinutes: { serializedName: "properties.syncIntervalInMinutes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const GeoBackupPolicy: coreClient.CompositeMapper = { @@ -6547,33 +6689,33 @@ export const GeoBackupPolicy: coreClient.CompositeMapper = { serializedName: "kind", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", required: true, type: { name: "Enum", - allowedValues: ["Disabled", "Enabled"] - } + allowedValues: ["Disabled", "Enabled"], + }, }, storageType: { serializedName: "properties.storageType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataWarehouseUserActivities: coreClient.CompositeMapper = { @@ -6586,11 +6728,11 @@ export const DataWarehouseUserActivities: coreClient.CompositeMapper = { serializedName: "properties.activeQueriesCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RestorePoint: coreClient.CompositeMapper = { @@ -6603,40 +6745,40 @@ export const RestorePoint: coreClient.CompositeMapper = { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePointType: { serializedName: "properties.restorePointType", readOnly: true, type: { name: "Enum", - allowedValues: ["CONTINUOUS", "DISCRETE"] - } + allowedValues: ["CONTINUOUS", "DISCRETE"], + }, }, earliestRestoreDate: { serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, restorePointCreationDate: { serializedName: "properties.restorePointCreationDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, restorePointLabel: { serializedName: "properties.restorePointLabel", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ReplicationLink: coreClient.CompositeMapper = { @@ -6649,43 +6791,43 @@ export const ReplicationLink: coreClient.CompositeMapper = { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isTerminationAllowed: { serializedName: "properties.isTerminationAllowed", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, replicationMode: { serializedName: "properties.replicationMode", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, partnerServer: { serializedName: "properties.partnerServer", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, partnerDatabase: { serializedName: "properties.partnerDatabase", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, partnerLocation: { serializedName: "properties.partnerLocation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, role: { serializedName: "properties.role", @@ -6697,9 +6839,9 @@ export const ReplicationLink: coreClient.CompositeMapper = { "Secondary", "NonReadableSecondary", "Source", - "Copy" - ] - } + "Copy", + ], + }, }, partnerRole: { serializedName: "properties.partnerRole", @@ -6711,33 +6853,33 @@ export const ReplicationLink: coreClient.CompositeMapper = { "Secondary", "NonReadableSecondary", "Source", - "Copy" - ] - } + "Copy", + ], + }, }, startTime: { serializedName: "properties.startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, percentComplete: { serializedName: "properties.percentComplete", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, replicationState: { serializedName: "properties.replicationState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MaintenanceWindows: coreClient.CompositeMapper = { @@ -6753,13 +6895,13 @@ export const MaintenanceWindows: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } - } - } - } - } + className: "MaintenanceWindowTimeRange", + }, + }, + }, + }, + }, + }, }; export const MaintenanceWindowOptions: coreClient.CompositeMapper = { @@ -6771,8 +6913,8 @@ export const MaintenanceWindowOptions: coreClient.CompositeMapper = { isEnabled: { serializedName: "properties.isEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, maintenanceWindowCycles: { serializedName: "properties.maintenanceWindowCycles", @@ -6781,43 +6923,43 @@ export const MaintenanceWindowOptions: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } - } + className: "MaintenanceWindowTimeRange", + }, + }, + }, }, minDurationInMinutes: { serializedName: "properties.minDurationInMinutes", type: { - name: "Number" - } + name: "Number", + }, }, defaultDurationInMinutes: { serializedName: "properties.defaultDurationInMinutes", type: { - name: "Number" - } + name: "Number", + }, }, minCycles: { serializedName: "properties.minCycles", type: { - name: "Number" - } + name: "Number", + }, }, timeGranularityInMinutes: { serializedName: "properties.timeGranularityInMinutes", type: { - name: "Number" - } + name: "Number", + }, }, allowMultipleMaintenanceWindowsPerCycle: { serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const TransparentDataEncryption: coreClient.CompositeMapper = { @@ -6830,18 +6972,18 @@ export const TransparentDataEncryption: coreClient.CompositeMapper = { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - } - } - } + allowedValues: ["Enabled", "Disabled"], + }, + }, + }, + }, }; export const SqlPoolBlobAuditingPolicy: coreClient.CompositeMapper = { @@ -6854,33 +6996,33 @@ export const SqlPoolBlobAuditingPolicy: coreClient.CompositeMapper = { serializedName: "kind", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, storageEndpoint: { serializedName: "properties.storageEndpoint", type: { - name: "String" - } + name: "String", + }, }, storageAccountAccessKey: { serializedName: "properties.storageAccountAccessKey", type: { - name: "String" - } + name: "String", + }, }, retentionDays: { serializedName: "properties.retentionDays", type: { - name: "Number" - } + name: "Number", + }, }, auditActionsAndGroups: { serializedName: "properties.auditActionsAndGroups", @@ -6888,32 +7030,32 @@ export const SqlPoolBlobAuditingPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, storageAccountSubscriptionId: { serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, isStorageSecondaryKeyInUse: { serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isAzureMonitorTargetEnabled: { defaultValue: false, serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SqlPoolOperation: coreClient.CompositeMapper = { @@ -6926,102 +7068,102 @@ export const SqlPoolOperation: coreClient.CompositeMapper = { serializedName: "properties.databaseName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "properties.operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operationFriendlyName: { serializedName: "properties.operationFriendlyName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, percentComplete: { serializedName: "properties.percentComplete", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, serverName: { serializedName: "properties.serverName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "properties.startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, state: { serializedName: "properties.state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, errorCode: { serializedName: "properties.errorCode", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, errorDescription: { serializedName: "properties.errorDescription", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, errorSeverity: { serializedName: "properties.errorSeverity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, isUserError: { serializedName: "properties.isUserError", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, estimatedCompletionTime: { serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, description: { serializedName: "properties.description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isCancellable: { serializedName: "properties.isCancellable", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SensitivityLabel: coreClient.CompositeMapper = { @@ -7034,70 +7176,70 @@ export const SensitivityLabel: coreClient.CompositeMapper = { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, schemaName: { serializedName: "properties.schemaName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tableName: { serializedName: "properties.tableName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, columnName: { serializedName: "properties.columnName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, labelName: { serializedName: "properties.labelName", type: { - name: "String" - } + name: "String", + }, }, labelId: { serializedName: "properties.labelId", type: { - name: "String" - } + name: "String", + }, }, informationType: { serializedName: "properties.informationType", type: { - name: "String" - } + name: "String", + }, }, informationTypeId: { serializedName: "properties.informationTypeId", type: { - name: "String" - } + name: "String", + }, }, isDisabled: { serializedName: "properties.isDisabled", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, rank: { serializedName: "properties.rank", type: { name: "Enum", - allowedValues: ["None", "Low", "Medium", "High", "Critical"] - } - } - } - } + allowedValues: ["None", "Low", "Medium", "High", "Critical"], + }, + }, + }, + }, }; export const SensitivityLabelUpdate: coreClient.CompositeMapper = { @@ -7110,36 +7252,36 @@ export const SensitivityLabelUpdate: coreClient.CompositeMapper = { serializedName: "properties.op", type: { name: "Enum", - allowedValues: ["set", "remove"] - } + allowedValues: ["set", "remove"], + }, }, schema: { serializedName: "properties.schema", type: { - name: "String" - } + name: "String", + }, }, table: { serializedName: "properties.table", type: { - name: "String" - } + name: "String", + }, }, column: { serializedName: "properties.column", type: { - name: "String" - } + name: "String", + }, }, sensitivityLabel: { serializedName: "properties.sensitivityLabel", type: { name: "Composite", - className: "SensitivityLabel" - } - } - } - } + className: "SensitivityLabel", + }, + }, + }, + }, }; export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { @@ -7152,29 +7294,29 @@ export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { serializedName: "properties.op", type: { name: "Enum", - allowedValues: ["enable", "disable"] - } + allowedValues: ["enable", "disable"], + }, }, schema: { serializedName: "properties.schema", type: { - name: "String" - } + name: "String", + }, }, table: { serializedName: "properties.table", type: { - name: "String" - } + name: "String", + }, }, column: { serializedName: "properties.column", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SqlPoolSchema: coreClient.CompositeMapper = { @@ -7182,9 +7324,9 @@ export const SqlPoolSchema: coreClient.CompositeMapper = { name: "Composite", className: "SqlPoolSchema", modelProperties: { - ...ProxyResource.type.modelProperties - } - } + ...ProxyResource.type.modelProperties, + }, + }, }; export const SqlPoolTable: coreClient.CompositeMapper = { @@ -7192,9 +7334,9 @@ export const SqlPoolTable: coreClient.CompositeMapper = { name: "Composite", className: "SqlPoolTable", modelProperties: { - ...ProxyResource.type.modelProperties - } - } + ...ProxyResource.type.modelProperties, + }, + }, }; export const SqlPoolColumn: coreClient.CompositeMapper = { @@ -7206,18 +7348,18 @@ export const SqlPoolColumn: coreClient.CompositeMapper = { columnType: { serializedName: "properties.columnType", type: { - name: "String" - } + name: "String", + }, }, isComputed: { serializedName: "properties.isComputed", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SqlPoolConnectionPolicy: coreClient.CompositeMapper = { @@ -7230,60 +7372,60 @@ export const SqlPoolConnectionPolicy: coreClient.CompositeMapper = { serializedName: "kind", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, securityEnabledAccess: { serializedName: "properties.securityEnabledAccess", type: { - name: "String" - } + name: "String", + }, }, proxyDnsName: { serializedName: "properties.proxyDnsName", type: { - name: "String" - } + name: "String", + }, }, proxyPort: { serializedName: "properties.proxyPort", type: { - name: "String" - } + name: "String", + }, }, visibility: { serializedName: "properties.visibility", type: { - name: "String" - } + name: "String", + }, }, useServerDefault: { serializedName: "properties.useServerDefault", type: { - name: "String" - } + name: "String", + }, }, redirectionState: { serializedName: "properties.redirectionState", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SqlPoolVulnerabilityAssessment: coreClient.CompositeMapper = { @@ -7295,30 +7437,30 @@ export const SqlPoolVulnerabilityAssessment: coreClient.CompositeMapper = { storageContainerPath: { serializedName: "properties.storageContainerPath", type: { - name: "String" - } + name: "String", + }, }, storageContainerSasKey: { serializedName: "properties.storageContainerSasKey", type: { - name: "String" - } + name: "String", + }, }, storageAccountAccessKey: { serializedName: "properties.storageAccountAccessKey", type: { - name: "String" - } + name: "String", + }, }, recurringScans: { serializedName: "properties.recurringScans", type: { name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } - } - } - } + className: "VulnerabilityAssessmentRecurringScansProperties", + }, + }, + }, + }, }; export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { @@ -7331,36 +7473,36 @@ export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { serializedName: "properties.scanId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, triggerType: { serializedName: "properties.triggerType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "properties.startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { serializedName: "properties.endTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, errors: { serializedName: "properties.errors", @@ -7370,45 +7512,46 @@ export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VulnerabilityAssessmentScanError" - } - } - } + className: "VulnerabilityAssessmentScanError", + }, + }, + }, }, storageContainerPath: { serializedName: "properties.storageContainerPath", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, numberOfFailedSecurityChecks: { serializedName: "properties.numberOfFailedSecurityChecks", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const SqlPoolVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlPoolVulnerabilityAssessmentScansExport", - modelProperties: { - ...ProxyResource.type.modelProperties, - exportedReportLocation: { - serializedName: "properties.exportedReportLocation", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + name: "Number", + }, + }, + }, + }, +}; + +export const SqlPoolVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SqlPoolVulnerabilityAssessmentScansExport", + modelProperties: { + ...ProxyResource.type.modelProperties, + exportedReportLocation: { + serializedName: "properties.exportedReportLocation", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const SqlPoolSecurityAlertPolicy: coreClient.CompositeMapper = { type: { @@ -7420,8 +7563,8 @@ export const SqlPoolSecurityAlertPolicy: coreClient.CompositeMapper = { serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] - } + allowedValues: ["New", "Enabled", "Disabled"], + }, }, disabledAlerts: { serializedName: "properties.disabledAlerts", @@ -7429,10 +7572,10 @@ export const SqlPoolSecurityAlertPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, emailAddresses: { serializedName: "properties.emailAddresses", @@ -7440,67 +7583,68 @@ export const SqlPoolSecurityAlertPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, emailAccountAdmins: { serializedName: "properties.emailAccountAdmins", type: { - name: "Boolean" - } + name: "Boolean", + }, }, storageEndpoint: { serializedName: "properties.storageEndpoint", type: { - name: "String" - } + name: "String", + }, }, storageAccountAccessKey: { serializedName: "properties.storageAccountAccessKey", type: { - name: "String" - } + name: "String", + }, }, retentionDays: { serializedName: "properties.retentionDays", type: { - name: "Number" - } + name: "Number", + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } -}; - -export const SqlPoolVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlPoolVulnerabilityAssessmentRuleBaseline", - modelProperties: { - ...ProxyResource.type.modelProperties, - baselineResults: { - serializedName: "properties.baselineResults", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPoolVulnerabilityAssessmentRuleBaselineItem" - } - } - } - } - } - } -}; + name: "DateTime", + }, + }, + }, + }, +}; + +export const SqlPoolVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SqlPoolVulnerabilityAssessmentRuleBaseline", + modelProperties: { + ...ProxyResource.type.modelProperties, + baselineResults: { + serializedName: "properties.baselineResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlPoolVulnerabilityAssessmentRuleBaselineItem", + }, + }, + }, + }, + }, + }, + }; export const ExtendedSqlPoolBlobAuditingPolicy: coreClient.CompositeMapper = { type: { @@ -7511,33 +7655,33 @@ export const ExtendedSqlPoolBlobAuditingPolicy: coreClient.CompositeMapper = { predicateExpression: { serializedName: "properties.predicateExpression", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, storageEndpoint: { serializedName: "properties.storageEndpoint", type: { - name: "String" - } + name: "String", + }, }, storageAccountAccessKey: { serializedName: "properties.storageAccountAccessKey", type: { - name: "String" - } + name: "String", + }, }, retentionDays: { serializedName: "properties.retentionDays", type: { - name: "Number" - } + name: "Number", + }, }, auditActionsAndGroups: { serializedName: "properties.auditActionsAndGroups", @@ -7545,37 +7689,37 @@ export const ExtendedSqlPoolBlobAuditingPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, storageAccountSubscriptionId: { serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, isStorageSecondaryKeyInUse: { serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isAzureMonitorTargetEnabled: { serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, queueDelayMs: { serializedName: "properties.queueDelayMs", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DataMaskingPolicy: coreClient.CompositeMapper = { @@ -7588,52 +7732,52 @@ export const DataMaskingPolicy: coreClient.CompositeMapper = { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, managedBy: { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dataMaskingState: { serializedName: "properties.dataMaskingState", type: { name: "Enum", - allowedValues: ["Disabled", "Enabled"] - } + allowedValues: ["Disabled", "Enabled"], + }, }, exemptPrincipals: { serializedName: "properties.exemptPrincipals", type: { - name: "String" - } + name: "String", + }, }, applicationPrincipals: { serializedName: "properties.applicationPrincipals", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, maskingLevel: { serializedName: "properties.maskingLevel", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataMaskingRule: coreClient.CompositeMapper = { @@ -7646,93 +7790,93 @@ export const DataMaskingRule: coreClient.CompositeMapper = { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, idPropertiesId: { serializedName: "properties.id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, aliasName: { serializedName: "properties.aliasName", type: { - name: "String" - } + name: "String", + }, }, ruleState: { serializedName: "properties.ruleState", type: { name: "Enum", - allowedValues: ["Disabled", "Enabled"] - } + allowedValues: ["Disabled", "Enabled"], + }, }, schemaName: { serializedName: "properties.schemaName", type: { - name: "String" - } + name: "String", + }, }, tableName: { serializedName: "properties.tableName", type: { - name: "String" - } + name: "String", + }, }, columnName: { serializedName: "properties.columnName", type: { - name: "String" - } + name: "String", + }, }, maskingFunction: { serializedName: "properties.maskingFunction", type: { name: "Enum", - allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] - } + allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"], + }, }, numberFrom: { serializedName: "properties.numberFrom", type: { - name: "String" - } + name: "String", + }, }, numberTo: { serializedName: "properties.numberTo", type: { - name: "String" - } + name: "String", + }, }, prefixSize: { serializedName: "properties.prefixSize", type: { - name: "String" - } + name: "String", + }, }, suffixSize: { serializedName: "properties.suffixSize", type: { - name: "String" - } + name: "String", + }, }, replacementString: { serializedName: "properties.replacementString", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WorkloadGroup: coreClient.CompositeMapper = { @@ -7744,41 +7888,41 @@ export const WorkloadGroup: coreClient.CompositeMapper = { minResourcePercent: { serializedName: "properties.minResourcePercent", type: { - name: "Number" - } + name: "Number", + }, }, maxResourcePercent: { serializedName: "properties.maxResourcePercent", type: { - name: "Number" - } + name: "Number", + }, }, minResourcePercentPerRequest: { serializedName: "properties.minResourcePercentPerRequest", type: { - name: "Number" - } + name: "Number", + }, }, maxResourcePercentPerRequest: { serializedName: "properties.maxResourcePercentPerRequest", type: { - name: "Number" - } + name: "Number", + }, }, importance: { serializedName: "properties.importance", type: { - name: "String" - } + name: "String", + }, }, queryExecutionTimeout: { serializedName: "properties.queryExecutionTimeout", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const WorkloadClassifier: coreClient.CompositeMapper = { @@ -7790,41 +7934,41 @@ export const WorkloadClassifier: coreClient.CompositeMapper = { memberName: { serializedName: "properties.memberName", type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "properties.label", type: { - name: "String" - } + name: "String", + }, }, context: { serializedName: "properties.context", type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "properties.startTime", type: { - name: "String" - } + name: "String", + }, }, endTime: { serializedName: "properties.endTime", type: { - name: "String" - } + name: "String", + }, }, importance: { serializedName: "properties.importance", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { @@ -7837,26 +7981,26 @@ export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, storageEndpoint: { serializedName: "properties.storageEndpoint", type: { - name: "String" - } + name: "String", + }, }, storageAccountAccessKey: { serializedName: "properties.storageAccountAccessKey", type: { - name: "String" - } + name: "String", + }, }, retentionDays: { serializedName: "properties.retentionDays", type: { - name: "Number" - } + name: "Number", + }, }, auditActionsAndGroups: { serializedName: "properties.auditActionsAndGroups", @@ -7864,43 +8008,43 @@ export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, storageAccountSubscriptionId: { serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, isStorageSecondaryKeyInUse: { serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isAzureMonitorTargetEnabled: { serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, queueDelayMs: { serializedName: "properties.queueDelayMs", type: { - name: "Number" - } + name: "Number", + }, }, isDevopsAuditEnabled: { serializedName: "properties.isDevopsAuditEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { @@ -7912,33 +8056,33 @@ export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { predicateExpression: { serializedName: "properties.predicateExpression", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, storageEndpoint: { serializedName: "properties.storageEndpoint", type: { - name: "String" - } + name: "String", + }, }, storageAccountAccessKey: { serializedName: "properties.storageAccountAccessKey", type: { - name: "String" - } + name: "String", + }, }, retentionDays: { serializedName: "properties.retentionDays", type: { - name: "Number" - } + name: "Number", + }, }, auditActionsAndGroups: { serializedName: "properties.auditActionsAndGroups", @@ -7946,43 +8090,43 @@ export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, storageAccountSubscriptionId: { serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, isStorageSecondaryKeyInUse: { serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isAzureMonitorTargetEnabled: { serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, queueDelayMs: { serializedName: "properties.queueDelayMs", type: { - name: "Number" - } + name: "Number", + }, }, isDevopsAuditEnabled: { serializedName: "properties.isDevopsAuditEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { @@ -7995,8 +8139,8 @@ export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] - } + allowedValues: ["New", "Enabled", "Disabled"], + }, }, disabledAlerts: { serializedName: "properties.disabledAlerts", @@ -8004,10 +8148,10 @@ export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, emailAddresses: { serializedName: "properties.emailAddresses", @@ -8015,44 +8159,44 @@ export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, emailAccountAdmins: { serializedName: "properties.emailAccountAdmins", type: { - name: "Boolean" - } + name: "Boolean", + }, }, storageEndpoint: { serializedName: "properties.storageEndpoint", type: { - name: "String" - } + name: "String", + }, }, storageAccountAccessKey: { serializedName: "properties.storageAccountAccessKey", type: { - name: "String" - } + name: "String", + }, }, retentionDays: { serializedName: "properties.retentionDays", type: { - name: "Number" - } + name: "Number", + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { @@ -8064,30 +8208,30 @@ export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { storageContainerPath: { serializedName: "properties.storageContainerPath", type: { - name: "String" - } + name: "String", + }, }, storageContainerSasKey: { serializedName: "properties.storageContainerSasKey", type: { - name: "String" - } + name: "String", + }, }, storageAccountAccessKey: { serializedName: "properties.storageAccountAccessKey", type: { - name: "String" - } + name: "String", + }, }, recurringScans: { serializedName: "properties.recurringScans", type: { name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } - } - } - } + className: "VulnerabilityAssessmentRecurringScansProperties", + }, + }, + }, + }, }; export const EncryptionProtector: coreClient.CompositeMapper = { @@ -8100,51 +8244,51 @@ export const EncryptionProtector: coreClient.CompositeMapper = { serializedName: "kind", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subregion: { serializedName: "properties.subregion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serverKeyName: { serializedName: "properties.serverKeyName", type: { - name: "String" - } + name: "String", + }, }, serverKeyType: { serializedName: "properties.serverKeyType", type: { - name: "String" - } + name: "String", + }, }, uri: { serializedName: "properties.uri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "properties.thumbprint", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RecoverableSqlPool: coreClient.CompositeMapper = { @@ -8157,32 +8301,32 @@ export const RecoverableSqlPool: coreClient.CompositeMapper = { serializedName: "properties.edition", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serviceLevelObjective: { serializedName: "properties.serviceLevelObjective", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, elasticPoolName: { serializedName: "properties.elasticPoolName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, lastAvailableBackupDate: { serializedName: "properties.lastAvailableBackupDate", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const DedicatedSQLminimalTlsSettings: coreClient.CompositeMapper = { @@ -8195,17 +8339,17 @@ export const DedicatedSQLminimalTlsSettings: coreClient.CompositeMapper = { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, minimalTlsVersion: { serializedName: "properties.minimalTlsVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WorkspaceAadAdminInfo: coreClient.CompositeMapper = { @@ -8217,48 +8361,49 @@ export const WorkspaceAadAdminInfo: coreClient.CompositeMapper = { tenantId: { serializedName: "properties.tenantId", type: { - name: "String" - } + name: "String", + }, }, login: { serializedName: "properties.login", type: { - name: "String" - } + name: "String", + }, }, administratorType: { serializedName: "properties.administratorType", type: { - name: "String" - } + name: "String", + }, }, sid: { serializedName: "properties.sid", type: { - name: "String" - } - } - } - } -}; - -export const ManagedIdentitySqlControlSettingsModel: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedIdentitySqlControlSettingsModel", - modelProperties: { - ...ProxyResource.type.modelProperties, - grantSqlControlToManagedIdentity: { - serializedName: "properties.grantSqlControlToManagedIdentity", - type: { - name: "Composite", - className: - "ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ManagedIdentitySqlControlSettingsModel: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedIdentitySqlControlSettingsModel", + modelProperties: { + ...ProxyResource.type.modelProperties, + grantSqlControlToManagedIdentity: { + serializedName: "properties.grantSqlControlToManagedIdentity", + type: { + name: "Composite", + className: + "ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity", + }, + }, + }, + }, + }; export const RestorableDroppedSqlPool: coreClient.CompositeMapper = { type: { @@ -8270,67 +8415,67 @@ export const RestorableDroppedSqlPool: coreClient.CompositeMapper = { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, databaseName: { serializedName: "properties.databaseName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, edition: { serializedName: "properties.edition", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, maxSizeBytes: { serializedName: "properties.maxSizeBytes", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serviceLevelObjective: { serializedName: "properties.serviceLevelObjective", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, elasticPoolName: { serializedName: "properties.elasticPoolName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationDate: { serializedName: "properties.creationDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, deletionDate: { serializedName: "properties.deletionDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, earliestRestoreDate: { serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const AttachedDatabaseConfiguration: coreClient.CompositeMapper = { @@ -8342,34 +8487,34 @@ export const AttachedDatabaseConfiguration: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, databaseName: { serializedName: "properties.databaseName", type: { - name: "String" - } + name: "String", + }, }, kustoPoolResourceId: { serializedName: "properties.clusterResourceId", type: { - name: "String" - } + name: "String", + }, }, attachedDatabaseNames: { serializedName: "properties.attachedDatabaseNames", @@ -8378,26 +8523,26 @@ export const AttachedDatabaseConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, defaultPrincipalsModificationKind: { serializedName: "properties.defaultPrincipalsModificationKind", type: { - name: "String" - } + name: "String", + }, }, tableLevelSharingProperties: { serializedName: "properties.tableLevelSharingProperties", type: { name: "Composite", - className: "TableLevelSharingProperties" - } - } - } - } + className: "TableLevelSharingProperties", + }, + }, + }, + }, }; export const Database: coreClient.CompositeMapper = { @@ -8408,32 +8553,32 @@ export const Database: coreClient.CompositeMapper = { uberParent: "ProxyResource", polymorphicDiscriminator: { serializedName: "kind", - clientName: "kind" + clientName: "kind", }, modelProperties: { ...ProxyResource.type.modelProperties, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", required: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const DataConnection: coreClient.CompositeMapper = { @@ -8444,32 +8589,32 @@ export const DataConnection: coreClient.CompositeMapper = { uberParent: "ProxyResource", polymorphicDiscriminator: { serializedName: "kind", - clientName: "kind" + clientName: "kind", }, modelProperties: { ...ProxyResource.type.modelProperties, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", required: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const ClusterPrincipalAssignment: coreClient.CompositeMapper = { @@ -8482,63 +8627,63 @@ export const ClusterPrincipalAssignment: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, principalId: { serializedName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, role: { serializedName: "properties.role", type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "properties.tenantId", type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "properties.principalType", type: { - name: "String" - } + name: "String", + }, }, tenantName: { serializedName: "properties.tenantName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, principalName: { serializedName: "properties.principalName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, aadObjectId: { serializedName: "properties.aadObjectId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DatabasePrincipalAssignment: coreClient.CompositeMapper = { @@ -8551,63 +8696,63 @@ export const DatabasePrincipalAssignment: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, principalId: { serializedName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, role: { serializedName: "properties.role", type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "properties.tenantId", type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "properties.principalType", type: { - name: "String" - } + name: "String", + }, }, tenantName: { serializedName: "properties.tenantName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, principalName: { serializedName: "properties.principalName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, aadObjectId: { serializedName: "properties.aadObjectId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KustoPoolPrivateLinkResources: coreClient.CompositeMapper = { @@ -8620,15 +8765,15 @@ export const KustoPoolPrivateLinkResources: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, groupId: { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -8637,10 +8782,10 @@ export const KustoPoolPrivateLinkResources: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -8649,20 +8794,20 @@ export const KustoPoolPrivateLinkResources: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkHub: coreClient.CompositeMapper = { @@ -8674,8 +8819,8 @@ export const PrivateLinkHub: coreClient.CompositeMapper = { provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -8685,13 +8830,13 @@ export const PrivateLinkHub: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnectionForPrivateLinkHubBasic" - } - } - } - } - } - } + className: "PrivateEndpointConnectionForPrivateLinkHubBasic", + }, + }, + }, + }, + }, + }, }; export const SqlPool: coreClient.CompositeMapper = { @@ -8704,81 +8849,81 @@ export const SqlPool: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, maxSizeBytes: { serializedName: "properties.maxSizeBytes", type: { - name: "Number" - } + name: "Number", + }, }, collation: { defaultValue: "", serializedName: "properties.collation", type: { - name: "String" - } + name: "String", + }, }, sourceDatabaseId: { serializedName: "properties.sourceDatabaseId", type: { - name: "String" - } + name: "String", + }, }, recoverableDatabaseId: { serializedName: "properties.recoverableDatabaseId", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePointInTime: { serializedName: "properties.restorePointInTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, createMode: { serializedName: "properties.createMode", type: { - name: "String" - } + name: "String", + }, }, creationDate: { serializedName: "properties.creationDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, storageAccountType: { defaultValue: "GRS", serializedName: "properties.storageAccountType", type: { - name: "String" - } + name: "String", + }, }, sourceDatabaseDeletionDate: { serializedName: "properties.sourceDatabaseDeletionDate", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const Workspace: coreClient.CompositeMapper = { @@ -8791,60 +8936,61 @@ export const Workspace: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "ManagedIdentity" - } + className: "ManagedIdentity", + }, }, defaultDataLakeStorage: { serializedName: "properties.defaultDataLakeStorage", type: { name: "Composite", - className: "DataLakeStorageAccountDetails" - } + className: "DataLakeStorageAccountDetails", + }, }, sqlAdministratorLoginPassword: { serializedName: "properties.sqlAdministratorLoginPassword", type: { - name: "String" - } + name: "String", + }, }, managedResourceGroupName: { serializedName: "properties.managedResourceGroupName", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sqlAdministratorLogin: { serializedName: "properties.sqlAdministratorLogin", type: { - name: "String" - } + name: "String", + }, }, virtualNetworkProfile: { serializedName: "properties.virtualNetworkProfile", type: { name: "Composite", - className: "VirtualNetworkProfile" - } + className: "VirtualNetworkProfile", + }, }, connectivityEndpoints: { serializedName: "properties.connectivityEndpoints", + readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, managedVirtualNetwork: { serializedName: "properties.managedVirtualNetwork", type: { - name: "String" - } + name: "String", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -8853,75 +8999,73 @@ export const Workspace: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionDetails" - } + className: "EncryptionDetails", + }, }, workspaceUID: { serializedName: "properties.workspaceUID", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, extraProperties: { serializedName: "properties.extraProperties", readOnly: true, type: { name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } + value: { type: { name: "any" } }, + }, }, managedVirtualNetworkSettings: { serializedName: "properties.managedVirtualNetworkSettings", type: { name: "Composite", - className: "ManagedVirtualNetworkSettings" - } + className: "ManagedVirtualNetworkSettings", + }, }, workspaceRepositoryConfiguration: { serializedName: "properties.workspaceRepositoryConfiguration", type: { name: "Composite", - className: "WorkspaceRepositoryConfiguration" - } + className: "WorkspaceRepositoryConfiguration", + }, }, purviewConfiguration: { serializedName: "properties.purviewConfiguration", type: { name: "Composite", - className: "PurviewConfiguration" - } + className: "PurviewConfiguration", + }, }, adlaResourceId: { serializedName: "properties.adlaResourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, cspWorkspaceAdminProperties: { serializedName: "properties.cspWorkspaceAdminProperties", type: { name: "Composite", - className: "CspWorkspaceAdminProperties" - } + className: "CspWorkspaceAdminProperties", + }, }, settings: { serializedName: "properties.settings", @@ -8929,25 +9073,25 @@ export const Workspace: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, + }, }, azureADOnlyAuthentication: { serializedName: "properties.azureADOnlyAuthentication", type: { - name: "Boolean" - } + name: "Boolean", + }, }, trustedServiceBypassEnabled: { defaultValue: false, serializedName: "properties.trustedServiceBypassEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const BigDataPoolResourceInfo: coreClient.CompositeMapper = { @@ -8959,79 +9103,79 @@ export const BigDataPoolResourceInfo: coreClient.CompositeMapper = { provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, autoScale: { serializedName: "properties.autoScale", type: { name: "Composite", - className: "AutoScaleProperties" - } + className: "AutoScaleProperties", + }, }, creationDate: { serializedName: "properties.creationDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, autoPause: { serializedName: "properties.autoPause", type: { name: "Composite", - className: "AutoPauseProperties" - } + className: "AutoPauseProperties", + }, }, isComputeIsolationEnabled: { serializedName: "properties.isComputeIsolationEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isAutotuneEnabled: { serializedName: "properties.isAutotuneEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, sessionLevelPackagesEnabled: { serializedName: "properties.sessionLevelPackagesEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, cacheSize: { serializedName: "properties.cacheSize", type: { - name: "Number" - } + name: "Number", + }, }, dynamicExecutorAllocation: { serializedName: "properties.dynamicExecutorAllocation", type: { name: "Composite", - className: "DynamicExecutorAllocation" - } + className: "DynamicExecutorAllocation", + }, }, sparkEventsFolder: { serializedName: "properties.sparkEventsFolder", type: { - name: "String" - } + name: "String", + }, }, nodeCount: { serializedName: "properties.nodeCount", type: { - name: "Number" - } + name: "Number", + }, }, libraryRequirements: { serializedName: "properties.libraryRequirements", type: { name: "Composite", - className: "LibraryRequirements" - } + className: "LibraryRequirements", + }, }, customLibraries: { serializedName: "properties.customLibraries", @@ -9040,51 +9184,51 @@ export const BigDataPoolResourceInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LibraryInfo" - } - } - } + className: "LibraryInfo", + }, + }, + }, }, sparkConfigProperties: { serializedName: "properties.sparkConfigProperties", type: { name: "Composite", - className: "SparkConfigProperties" - } + className: "SparkConfigProperties", + }, }, sparkVersion: { serializedName: "properties.sparkVersion", type: { - name: "String" - } + name: "String", + }, }, defaultSparkLogFolder: { serializedName: "properties.defaultSparkLogFolder", type: { - name: "String" - } + name: "String", + }, }, nodeSize: { serializedName: "properties.nodeSize", type: { - name: "String" - } + name: "String", + }, }, nodeSizeFamily: { serializedName: "properties.nodeSizeFamily", type: { - name: "String" - } + name: "String", + }, }, lastSucceededTimestamp: { serializedName: "properties.lastSucceededTimestamp", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const KustoPool: coreClient.CompositeMapper = { @@ -9097,94 +9241,94 @@ export const KustoPool: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "AzureSku" - } + className: "AzureSku", + }, }, etag: { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, state: { serializedName: "properties.state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uri: { serializedName: "properties.uri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dataIngestionUri: { serializedName: "properties.dataIngestionUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, stateReason: { serializedName: "properties.stateReason", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, optimizedAutoscale: { serializedName: "properties.optimizedAutoscale", type: { name: "Composite", - className: "OptimizedAutoscale" - } + className: "OptimizedAutoscale", + }, }, enableStreamingIngest: { defaultValue: false, serializedName: "properties.enableStreamingIngest", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enablePurge: { defaultValue: false, serializedName: "properties.enablePurge", type: { - name: "Boolean" - } + name: "Boolean", + }, }, languageExtensions: { serializedName: "properties.languageExtensions", type: { name: "Composite", - className: "LanguageExtensionsList" - } + className: "LanguageExtensionsList", + }, }, workspaceUID: { serializedName: "properties.workspaceUID", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubResource: coreClient.CompositeMapper = { @@ -9192,9 +9336,9 @@ export const SubResource: coreClient.CompositeMapper = { name: "Composite", className: "SubResource", modelProperties: { - ...AzureEntityResource.type.modelProperties - } - } + ...AzureEntityResource.type.modelProperties, + }, + }, }; export const ReadWriteDatabase: coreClient.CompositeMapper = { @@ -9210,37 +9354,37 @@ export const ReadWriteDatabase: coreClient.CompositeMapper = { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, softDeletePeriod: { serializedName: "properties.softDeletePeriod", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, hotCachePeriod: { serializedName: "properties.hotCachePeriod", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, statistics: { serializedName: "properties.statistics", type: { name: "Composite", - className: "DatabaseStatistics" - } + className: "DatabaseStatistics", + }, }, isFollowed: { serializedName: "properties.isFollowed", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ReadOnlyFollowingDatabase: coreClient.CompositeMapper = { @@ -9256,52 +9400,52 @@ export const ReadOnlyFollowingDatabase: coreClient.CompositeMapper = { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, softDeletePeriod: { serializedName: "properties.softDeletePeriod", readOnly: true, type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, hotCachePeriod: { serializedName: "properties.hotCachePeriod", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, statistics: { serializedName: "properties.statistics", type: { name: "Composite", - className: "DatabaseStatistics" - } + className: "DatabaseStatistics", + }, }, leaderClusterResourceId: { serializedName: "properties.leaderClusterResourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, attachedDatabaseConfigurationName: { serializedName: "properties.attachedDatabaseConfigurationName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, principalsModificationKind: { serializedName: "properties.principalsModificationKind", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EventHubDataConnection: coreClient.CompositeMapper = { @@ -9316,32 +9460,32 @@ export const EventHubDataConnection: coreClient.CompositeMapper = { eventHubResourceId: { serializedName: "properties.eventHubResourceId", type: { - name: "String" - } + name: "String", + }, }, consumerGroup: { serializedName: "properties.consumerGroup", type: { - name: "String" - } + name: "String", + }, }, tableName: { serializedName: "properties.tableName", type: { - name: "String" - } + name: "String", + }, }, mappingRuleName: { serializedName: "properties.mappingRuleName", type: { - name: "String" - } + name: "String", + }, }, dataFormat: { serializedName: "properties.dataFormat", type: { - name: "String" - } + name: "String", + }, }, eventSystemProperties: { serializedName: "properties.eventSystemProperties", @@ -9349,32 +9493,32 @@ export const EventHubDataConnection: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, compression: { serializedName: "properties.compression", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, managedIdentityResourceId: { serializedName: "properties.managedIdentityResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IotHubDataConnection: coreClient.CompositeMapper = { @@ -9389,32 +9533,32 @@ export const IotHubDataConnection: coreClient.CompositeMapper = { iotHubResourceId: { serializedName: "properties.iotHubResourceId", type: { - name: "String" - } + name: "String", + }, }, consumerGroup: { serializedName: "properties.consumerGroup", type: { - name: "String" - } + name: "String", + }, }, tableName: { serializedName: "properties.tableName", type: { - name: "String" - } + name: "String", + }, }, mappingRuleName: { serializedName: "properties.mappingRuleName", type: { - name: "String" - } + name: "String", + }, }, dataFormat: { serializedName: "properties.dataFormat", type: { - name: "String" - } + name: "String", + }, }, eventSystemProperties: { serializedName: "properties.eventSystemProperties", @@ -9422,26 +9566,26 @@ export const IotHubDataConnection: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, sharedAccessPolicyName: { serializedName: "properties.sharedAccessPolicyName", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EventGridDataConnection: coreClient.CompositeMapper = { @@ -9456,60 +9600,60 @@ export const EventGridDataConnection: coreClient.CompositeMapper = { storageAccountResourceId: { serializedName: "properties.storageAccountResourceId", type: { - name: "String" - } + name: "String", + }, }, eventHubResourceId: { serializedName: "properties.eventHubResourceId", type: { - name: "String" - } + name: "String", + }, }, consumerGroup: { serializedName: "properties.consumerGroup", type: { - name: "String" - } + name: "String", + }, }, tableName: { serializedName: "properties.tableName", type: { - name: "String" - } + name: "String", + }, }, mappingRuleName: { serializedName: "properties.mappingRuleName", type: { - name: "String" - } + name: "String", + }, }, dataFormat: { serializedName: "properties.dataFormat", type: { - name: "String" - } + name: "String", + }, }, ignoreFirstRecord: { serializedName: "properties.ignoreFirstRecord", type: { - name: "Boolean" - } + name: "Boolean", + }, }, blobStorageEventType: { serializedName: "properties.blobStorageEventType", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LibraryResource: coreClient.CompositeMapper = { @@ -9521,49 +9665,50 @@ export const LibraryResource: coreClient.CompositeMapper = { namePropertiesName: { serializedName: "properties.name", type: { - name: "String" - } + name: "String", + }, }, path: { serializedName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, containerName: { serializedName: "properties.containerName", type: { - name: "String" - } + name: "String", + }, }, uploadedTimestamp: { serializedName: "properties.uploadedTimestamp", + readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, provisioningStatus: { serializedName: "properties.provisioningStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creatorId: { serializedName: "properties.creatorId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IntegrationRuntimeResource: coreClient.CompositeMapper = { @@ -9576,17 +9721,17 @@ export const IntegrationRuntimeResource: coreClient.CompositeMapper = { serializedName: "properties.type", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SparkConfigurationResource: coreClient.CompositeMapper = { @@ -9598,16 +9743,16 @@ export const SparkConfigurationResource: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, configs: { serializedName: "properties.configs", required: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, annotations: { serializedName: "properties.annotations", @@ -9615,38 +9760,38 @@ export const SparkConfigurationResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, notes: { serializedName: "properties.notes", type: { - name: "String" - } + name: "String", + }, }, createdBy: { serializedName: "properties.createdBy", type: { - name: "String" - } + name: "String", + }, }, created: { serializedName: "properties.created", type: { - name: "DateTime" - } + name: "DateTime", + }, }, configMergeRule: { serializedName: "properties.configMergeRule", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export let discriminators = { @@ -9669,12 +9814,13 @@ export let discriminators = { "CustomSetupBase.EnvironmentVariableSetup": EnvironmentVariableSetup, "CustomSetupBase.ComponentSetup": ComponentSetup, "LinkedIntegrationRuntimeType.Key": LinkedIntegrationRuntimeKeyAuthorization, - "LinkedIntegrationRuntimeType.RBAC": LinkedIntegrationRuntimeRbacAuthorization, + "LinkedIntegrationRuntimeType.RBAC": + LinkedIntegrationRuntimeRbacAuthorization, "ProxyResource.Database": Database, "ProxyResource.DataConnection": DataConnection, "Database.ReadWrite": ReadWriteDatabase, "Database.ReadOnlyFollowing": ReadOnlyFollowingDatabase, "DataConnection.EventHub": EventHubDataConnection, "DataConnection.IotHub": IotHubDataConnection, - "DataConnection.EventGrid": EventGridDataConnection + "DataConnection.EventGrid": EventGridDataConnection, }; diff --git a/sdk/synapse/arm-synapse/src/models/parameters.ts b/sdk/synapse/arm-synapse/src/models/parameters.ts index e7d368e2116f..ca53ece724fb 100644 --- a/sdk/synapse/arm-synapse/src/models/parameters.ts +++ b/sdk/synapse/arm-synapse/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { AzureADOnlyAuthentication as AzureADOnlyAuthenticationMapper, @@ -22,7 +22,6 @@ import { PrivateLinkHub as PrivateLinkHubMapper, SqlPoolPatchInfo as SqlPoolPatchInfoMapper, SqlPool as SqlPoolMapper, - ResourceMoveDefinition as ResourceMoveDefinitionMapper, MetadataSyncConfig as MetadataSyncConfigMapper, GeoBackupPolicy as GeoBackupPolicyMapper, CreateSqlPoolRestorePointDefinition as CreateSqlPoolRestorePointDefinitionMapper, @@ -71,7 +70,7 @@ import { ClusterPrincipalAssignmentCheckNameRequest as ClusterPrincipalAssignmentCheckNameRequestMapper, ClusterPrincipalAssignment as ClusterPrincipalAssignmentMapper, DatabasePrincipalAssignmentCheckNameRequest as DatabasePrincipalAssignmentCheckNameRequestMapper, - DatabasePrincipalAssignment as DatabasePrincipalAssignmentMapper + DatabasePrincipalAssignment as DatabasePrincipalAssignmentMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -81,9 +80,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -92,10 +91,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { @@ -105,23 +104,23 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -129,14 +128,14 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const workspaceName: OperationURLParameter = { @@ -145,9 +144,9 @@ export const workspaceName: OperationURLParameter = { serializedName: "workspaceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const azureADOnlyAuthenticationName: OperationURLParameter = { @@ -156,9 +155,9 @@ export const azureADOnlyAuthenticationName: OperationURLParameter = { serializedName: "azureADOnlyAuthenticationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -168,14 +167,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const azureADOnlyAuthenticationInfo: OperationParameter = { parameterPath: "azureADOnlyAuthenticationInfo", - mapper: AzureADOnlyAuthenticationMapper + mapper: AzureADOnlyAuthenticationMapper, }; export const nextLink: OperationURLParameter = { @@ -184,15 +183,15 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const request: OperationParameter = { parameterPath: "request", - mapper: CheckNameAvailabilityRequestMapper + mapper: CheckNameAvailabilityRequestMapper, }; export const operationId: OperationURLParameter = { @@ -201,14 +200,14 @@ export const operationId: OperationURLParameter = { serializedName: "operationId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ipFirewallRuleInfo: OperationParameter = { parameterPath: "ipFirewallRuleInfo", - mapper: IpFirewallRuleInfoMapper + mapper: IpFirewallRuleInfoMapper, }; export const ruleName: OperationURLParameter = { @@ -217,14 +216,14 @@ export const ruleName: OperationURLParameter = { serializedName: "ruleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const request1: OperationParameter = { parameterPath: "request", - mapper: ReplaceAllIpFirewallRulesRequestMapper + mapper: ReplaceAllIpFirewallRulesRequestMapper, }; export const keyName: OperationURLParameter = { @@ -233,14 +232,14 @@ export const keyName: OperationURLParameter = { serializedName: "keyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const keyProperties: OperationParameter = { parameterPath: "keyProperties", - mapper: KeyMapper + mapper: KeyMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -249,14 +248,14 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const request2: OperationParameter = { parameterPath: "request", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const privateLinkResourceName: OperationURLParameter = { @@ -265,9 +264,9 @@ export const privateLinkResourceName: OperationURLParameter = { serializedName: "privateLinkResourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateLinkHubName: OperationURLParameter = { @@ -276,19 +275,19 @@ export const privateLinkHubName: OperationURLParameter = { serializedName: "privateLinkHubName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateLinkHubPatchInfo: OperationParameter = { parameterPath: "privateLinkHubPatchInfo", - mapper: PrivateLinkHubPatchInfoMapper + mapper: PrivateLinkHubPatchInfoMapper, }; export const privateLinkHubInfo: OperationParameter = { parameterPath: "privateLinkHubInfo", - mapper: PrivateLinkHubMapper + mapper: PrivateLinkHubMapper, }; export const sqlPoolName: OperationURLParameter = { @@ -297,34 +296,29 @@ export const sqlPoolName: OperationURLParameter = { serializedName: "sqlPoolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sqlPoolInfo: OperationParameter = { parameterPath: "sqlPoolInfo", - mapper: SqlPoolPatchInfoMapper + mapper: SqlPoolPatchInfoMapper, }; export const sqlPoolInfo1: OperationParameter = { parameterPath: "sqlPoolInfo", - mapper: SqlPoolMapper -}; - -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: ResourceMoveDefinitionMapper + mapper: SqlPoolMapper, }; export const metadataSyncConfiguration: OperationParameter = { parameterPath: "metadataSyncConfiguration", - mapper: MetadataSyncConfigMapper + mapper: MetadataSyncConfigMapper, }; -export const parameters1: OperationParameter = { +export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: GeoBackupPolicyMapper + mapper: GeoBackupPolicyMapper, }; export const geoBackupPolicyName: OperationURLParameter = { @@ -333,9 +327,9 @@ export const geoBackupPolicyName: OperationURLParameter = { serializedName: "geoBackupPolicyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const dataWarehouseUserActivityName: OperationURLParameter = { @@ -344,14 +338,14 @@ export const dataWarehouseUserActivityName: OperationURLParameter = { serializedName: "dataWarehouseUserActivityName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters2: OperationParameter = { +export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: CreateSqlPoolRestorePointDefinitionMapper + mapper: CreateSqlPoolRestorePointDefinitionMapper, }; export const restorePointName: OperationURLParameter = { @@ -360,9 +354,9 @@ export const restorePointName: OperationURLParameter = { serializedName: "restorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const linkId: OperationURLParameter = { @@ -371,9 +365,9 @@ export const linkId: OperationURLParameter = { serializedName: "linkId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const maintenanceWindowName: OperationQueryParameter = { @@ -382,14 +376,14 @@ export const maintenanceWindowName: OperationQueryParameter = { serializedName: "maintenanceWindowName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters3: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: MaintenanceWindowsMapper + mapper: MaintenanceWindowsMapper, }; export const maintenanceWindowOptionsName: OperationQueryParameter = { @@ -398,9 +392,9 @@ export const maintenanceWindowOptionsName: OperationQueryParameter = { serializedName: "maintenanceWindowOptionsName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const transparentDataEncryptionName: OperationURLParameter = { @@ -409,14 +403,14 @@ export const transparentDataEncryptionName: OperationURLParameter = { serializedName: "transparentDataEncryptionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters4: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: TransparentDataEncryptionMapper + mapper: TransparentDataEncryptionMapper, }; export const blobAuditingPolicyName: OperationURLParameter = { @@ -426,14 +420,14 @@ export const blobAuditingPolicyName: OperationURLParameter = { isConstant: true, serializedName: "blobAuditingPolicyName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters5: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: SqlPoolBlobAuditingPolicyMapper + mapper: SqlPoolBlobAuditingPolicyMapper, }; export const filter: OperationQueryParameter = { @@ -441,14 +435,14 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters6: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: SensitivityLabelUpdateListMapper + mapper: SensitivityLabelUpdateListMapper, }; export const includeDisabledRecommendations: OperationQueryParameter = { @@ -456,9 +450,9 @@ export const includeDisabledRecommendations: OperationQueryParameter = { mapper: { serializedName: "includeDisabledRecommendations", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const skipToken: OperationQueryParameter = { @@ -466,14 +460,14 @@ export const skipToken: OperationQueryParameter = { mapper: { serializedName: "$skipToken", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters7: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: SensitivityLabelMapper + mapper: SensitivityLabelMapper, }; export const schemaName: OperationURLParameter = { @@ -482,9 +476,9 @@ export const schemaName: OperationURLParameter = { serializedName: "schemaName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const tableName: OperationURLParameter = { @@ -493,9 +487,9 @@ export const tableName: OperationURLParameter = { serializedName: "tableName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const columnName: OperationURLParameter = { @@ -504,9 +498,9 @@ export const columnName: OperationURLParameter = { serializedName: "columnName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sensitivityLabelSource: OperationURLParameter = { @@ -516,9 +510,9 @@ export const sensitivityLabelSource: OperationURLParameter = { isConstant: true, serializedName: "sensitivityLabelSource", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sensitivityLabelSource1: OperationURLParameter = { @@ -528,9 +522,9 @@ export const sensitivityLabelSource1: OperationURLParameter = { required: true, type: { name: "Enum", - allowedValues: ["current", "recommended"] - } - } + allowedValues: ["current", "recommended"], + }, + }, }; export const sensitivityLabelSource2: OperationURLParameter = { @@ -540,14 +534,14 @@ export const sensitivityLabelSource2: OperationURLParameter = { isConstant: true, serializedName: "sensitivityLabelSource", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters8: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: RecommendedSensitivityLabelUpdateListMapper + mapper: RecommendedSensitivityLabelUpdateListMapper, }; export const connectionPolicyName: OperationURLParameter = { @@ -556,9 +550,9 @@ export const connectionPolicyName: OperationURLParameter = { serializedName: "connectionPolicyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vulnerabilityAssessmentName: OperationURLParameter = { @@ -567,14 +561,14 @@ export const vulnerabilityAssessmentName: OperationURLParameter = { serializedName: "vulnerabilityAssessmentName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters9: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: SqlPoolVulnerabilityAssessmentMapper + mapper: SqlPoolVulnerabilityAssessmentMapper, }; export const scanId: OperationURLParameter = { @@ -583,9 +577,9 @@ export const scanId: OperationURLParameter = { serializedName: "scanId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const securityAlertPolicyName: OperationURLParameter = { @@ -594,19 +588,19 @@ export const securityAlertPolicyName: OperationURLParameter = { serializedName: "securityAlertPolicyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters10: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: SqlPoolSecurityAlertPolicyMapper + mapper: SqlPoolSecurityAlertPolicyMapper, }; -export const parameters11: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: SqlPoolVulnerabilityAssessmentRuleBaselineMapper + mapper: SqlPoolVulnerabilityAssessmentRuleBaselineMapper, }; export const ruleId: OperationURLParameter = { @@ -615,9 +609,9 @@ export const ruleId: OperationURLParameter = { serializedName: "ruleId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const baselineName: OperationURLParameter = { @@ -627,19 +621,19 @@ export const baselineName: OperationURLParameter = { required: true, type: { name: "Enum", - allowedValues: ["master", "default"] - } - } + allowedValues: ["master", "default"], + }, + }, }; -export const parameters12: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", - mapper: ExtendedSqlPoolBlobAuditingPolicyMapper + mapper: ExtendedSqlPoolBlobAuditingPolicyMapper, }; -export const parameters13: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: DataMaskingPolicyMapper + mapper: DataMaskingPolicyMapper, }; export const dataMaskingPolicyName: OperationURLParameter = { @@ -649,14 +643,14 @@ export const dataMaskingPolicyName: OperationURLParameter = { isConstant: true, serializedName: "dataMaskingPolicyName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters14: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: DataMaskingRuleMapper + mapper: DataMaskingRuleMapper, }; export const dataMaskingRuleName: OperationURLParameter = { @@ -665,9 +659,9 @@ export const dataMaskingRuleName: OperationURLParameter = { serializedName: "dataMaskingRuleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const workloadGroupName: OperationURLParameter = { @@ -676,14 +670,14 @@ export const workloadGroupName: OperationURLParameter = { serializedName: "workloadGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters15: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", - mapper: WorkloadGroupMapper + mapper: WorkloadGroupMapper, }; export const workloadClassifierName: OperationURLParameter = { @@ -692,14 +686,14 @@ export const workloadClassifierName: OperationURLParameter = { serializedName: "workloadClassifierName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters16: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: WorkloadClassifierMapper + mapper: WorkloadClassifierMapper, }; export const blobAuditingPolicyName1: OperationURLParameter = { @@ -708,19 +702,19 @@ export const blobAuditingPolicyName1: OperationURLParameter = { serializedName: "blobAuditingPolicyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters17: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", - mapper: ServerBlobAuditingPolicyMapper + mapper: ServerBlobAuditingPolicyMapper, }; -export const parameters18: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", - mapper: ExtendedServerBlobAuditingPolicyMapper + mapper: ExtendedServerBlobAuditingPolicyMapper, }; export const securityAlertPolicyName1: OperationURLParameter = { @@ -729,19 +723,19 @@ export const securityAlertPolicyName1: OperationURLParameter = { serializedName: "securityAlertPolicyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters19: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", - mapper: ServerSecurityAlertPolicyMapper + mapper: ServerSecurityAlertPolicyMapper, }; -export const parameters20: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: ServerVulnerabilityAssessmentMapper + mapper: ServerVulnerabilityAssessmentMapper, }; export const encryptionProtectorName: OperationURLParameter = { @@ -750,19 +744,19 @@ export const encryptionProtectorName: OperationURLParameter = { serializedName: "encryptionProtectorName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters21: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", - mapper: EncryptionProtectorMapper + mapper: EncryptionProtectorMapper, }; -export const parameters22: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedSQLminimalTlsSettingsMapper + mapper: DedicatedSQLminimalTlsSettingsMapper, }; export const dedicatedSQLminimalTlsSettingsName: OperationURLParameter = { @@ -771,9 +765,9 @@ export const dedicatedSQLminimalTlsSettingsName: OperationURLParameter = { serializedName: "dedicatedSQLminimalTlsSettingsName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const dedicatedSQLminimalTlsSettingsName1: OperationURLParameter = { @@ -782,29 +776,29 @@ export const dedicatedSQLminimalTlsSettingsName1: OperationURLParameter = { serializedName: "dedicatedSQLminimalTlsSettingsName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const workspacePatchInfo: OperationParameter = { parameterPath: "workspacePatchInfo", - mapper: WorkspacePatchInfoMapper + mapper: WorkspacePatchInfoMapper, }; export const workspaceInfo: OperationParameter = { parameterPath: "workspaceInfo", - mapper: WorkspaceMapper + mapper: WorkspaceMapper, }; export const aadAdminInfo: OperationParameter = { parameterPath: "aadAdminInfo", - mapper: WorkspaceAadAdminInfoMapper + mapper: WorkspaceAadAdminInfoMapper, }; export const managedIdentitySqlControlSettings: OperationParameter = { parameterPath: "managedIdentitySqlControlSettings", - mapper: ManagedIdentitySqlControlSettingsModelMapper + mapper: ManagedIdentitySqlControlSettingsModelMapper, }; export const restorableDroppedSqlPoolId: OperationURLParameter = { @@ -813,9 +807,9 @@ export const restorableDroppedSqlPoolId: OperationURLParameter = { serializedName: "restorableDroppedSqlPoolId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion1: OperationQueryParameter = { @@ -825,9 +819,9 @@ export const apiVersion1: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const bigDataPoolName: OperationURLParameter = { @@ -836,19 +830,19 @@ export const bigDataPoolName: OperationURLParameter = { serializedName: "bigDataPoolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const bigDataPoolPatchInfo: OperationParameter = { parameterPath: "bigDataPoolPatchInfo", - mapper: BigDataPoolPatchInfoMapper + mapper: BigDataPoolPatchInfoMapper, }; export const bigDataPoolInfo: OperationParameter = { parameterPath: "bigDataPoolInfo", - mapper: BigDataPoolResourceInfoMapper + mapper: BigDataPoolResourceInfoMapper, }; export const force: OperationQueryParameter = { @@ -857,9 +851,9 @@ export const force: OperationQueryParameter = { defaultValue: false, serializedName: "force", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const libraryName: OperationURLParameter = { @@ -868,14 +862,14 @@ export const libraryName: OperationURLParameter = { serializedName: "libraryName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const updateIntegrationRuntimeRequest: OperationParameter = { parameterPath: "updateIntegrationRuntimeRequest", - mapper: UpdateIntegrationRuntimeRequestMapper + mapper: UpdateIntegrationRuntimeRequestMapper, }; export const integrationRuntimeName: OperationURLParameter = { @@ -884,9 +878,9 @@ export const integrationRuntimeName: OperationURLParameter = { serializedName: "integrationRuntimeName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifNoneMatch: OperationParameter = { @@ -894,14 +888,14 @@ export const ifNoneMatch: OperationParameter = { mapper: { serializedName: "If-None-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const integrationRuntime: OperationParameter = { parameterPath: "integrationRuntime", - mapper: IntegrationRuntimeResourceMapper + mapper: IntegrationRuntimeResourceMapper, }; export const ifMatch: OperationParameter = { @@ -909,9 +903,9 @@ export const ifMatch: OperationParameter = { mapper: { serializedName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nodeName: OperationURLParameter = { @@ -920,24 +914,24 @@ export const nodeName: OperationURLParameter = { serializedName: "nodeName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const getMetadataRequest: OperationParameter = { parameterPath: ["options", "getMetadataRequest"], - mapper: GetSsisObjectMetadataRequestMapper + mapper: GetSsisObjectMetadataRequestMapper, }; export const updateIntegrationRuntimeNodeRequest: OperationParameter = { parameterPath: "updateIntegrationRuntimeNodeRequest", - mapper: UpdateIntegrationRuntimeNodeRequestMapper + mapper: UpdateIntegrationRuntimeNodeRequestMapper, }; export const regenerateKeyParameters: OperationParameter = { parameterPath: "regenerateKeyParameters", - mapper: IntegrationRuntimeRegenerateKeyParametersMapper + mapper: IntegrationRuntimeRegenerateKeyParametersMapper, }; export const integrationRuntimeOperationId: OperationURLParameter = { @@ -946,9 +940,9 @@ export const integrationRuntimeOperationId: OperationURLParameter = { serializedName: "integrationRuntimeOperationId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sparkConfigurationName: OperationURLParameter = { @@ -957,28 +951,28 @@ export const sparkConfigurationName: OperationURLParameter = { serializedName: "sparkConfigurationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const kustoPoolName: OperationParameter = { parameterPath: "kustoPoolName", - mapper: KustoPoolCheckNameRequestMapper + mapper: KustoPoolCheckNameRequestMapper, }; export const location: OperationURLParameter = { parameterPath: "location", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const kustoPoolName1: OperationURLParameter = { @@ -987,39 +981,39 @@ export const kustoPoolName1: OperationURLParameter = { serializedName: "kustoPoolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters23: OperationParameter = { +export const parameters22: OperationParameter = { parameterPath: "parameters", - mapper: KustoPoolMapper + mapper: KustoPoolMapper, }; -export const parameters24: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", - mapper: KustoPoolUpdateMapper + mapper: KustoPoolUpdateMapper, }; export const languageExtensionsToAdd: OperationParameter = { parameterPath: "languageExtensionsToAdd", - mapper: LanguageExtensionsListMapper + mapper: LanguageExtensionsListMapper, }; export const languageExtensionsToRemove: OperationParameter = { parameterPath: "languageExtensionsToRemove", - mapper: LanguageExtensionsListMapper + mapper: LanguageExtensionsListMapper, }; export const followerDatabaseToRemove: OperationParameter = { parameterPath: "followerDatabaseToRemove", - mapper: FollowerDatabaseDefinitionMapper + mapper: FollowerDatabaseDefinitionMapper, }; export const resourceName: OperationParameter = { parameterPath: "resourceName", - mapper: DatabaseCheckNameRequestMapper + mapper: DatabaseCheckNameRequestMapper, }; export const attachedDatabaseConfigurationName: OperationURLParameter = { @@ -1028,14 +1022,14 @@ export const attachedDatabaseConfigurationName: OperationURLParameter = { serializedName: "attachedDatabaseConfigurationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters25: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", - mapper: AttachedDatabaseConfigurationMapper + mapper: AttachedDatabaseConfigurationMapper, }; export const databaseName: OperationURLParameter = { @@ -1044,24 +1038,24 @@ export const databaseName: OperationURLParameter = { serializedName: "databaseName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters26: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseMapper + mapper: DatabaseMapper, }; export const dataConnectionName: OperationParameter = { parameterPath: "dataConnectionName", - mapper: DataConnectionCheckNameRequestMapper + mapper: DataConnectionCheckNameRequestMapper, }; -export const parameters27: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", - mapper: DataConnectionValidationMapper + mapper: DataConnectionValidationMapper, }; export const dataConnectionName1: OperationURLParameter = { @@ -1070,19 +1064,19 @@ export const dataConnectionName1: OperationURLParameter = { serializedName: "dataConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters28: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", - mapper: DataConnectionMapper + mapper: DataConnectionMapper, }; export const principalAssignmentName: OperationParameter = { parameterPath: "principalAssignmentName", - mapper: ClusterPrincipalAssignmentCheckNameRequestMapper + mapper: ClusterPrincipalAssignmentCheckNameRequestMapper, }; export const principalAssignmentName1: OperationURLParameter = { @@ -1091,22 +1085,22 @@ export const principalAssignmentName1: OperationURLParameter = { serializedName: "principalAssignmentName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters29: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", - mapper: ClusterPrincipalAssignmentMapper + mapper: ClusterPrincipalAssignmentMapper, }; export const principalAssignmentName2: OperationParameter = { parameterPath: "principalAssignmentName", - mapper: DatabasePrincipalAssignmentCheckNameRequestMapper + mapper: DatabasePrincipalAssignmentCheckNameRequestMapper, }; -export const parameters30: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", - mapper: DatabasePrincipalAssignmentMapper + mapper: DatabasePrincipalAssignmentMapper, }; diff --git a/sdk/synapse/arm-synapse/src/operations/azureADOnlyAuthentications.ts b/sdk/synapse/arm-synapse/src/operations/azureADOnlyAuthentications.ts index dd0b95114108..dab2821b975d 100644 --- a/sdk/synapse/arm-synapse/src/operations/azureADOnlyAuthentications.ts +++ b/sdk/synapse/arm-synapse/src/operations/azureADOnlyAuthentications.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { AzureADOnlyAuthentication, AzureADOnlyAuthenticationsListNextOptionalParams, @@ -25,13 +29,14 @@ import { AzureADOnlyAuthenticationsGetResponse, AzureADOnlyAuthenticationsCreateOptionalParams, AzureADOnlyAuthenticationsCreateResponse, - AzureADOnlyAuthenticationsListNextResponse + AzureADOnlyAuthenticationsListNextResponse, } from "../models"; /// /** Class containing AzureADOnlyAuthentications operations. */ export class AzureADOnlyAuthenticationsImpl - implements AzureADOnlyAuthentications { + implements AzureADOnlyAuthentications +{ private readonly client: SynapseManagementClient; /** @@ -51,7 +56,7 @@ export class AzureADOnlyAuthenticationsImpl public list( resourceGroupName: string, workspaceName: string, - options?: AzureADOnlyAuthenticationsListOptionalParams + options?: AzureADOnlyAuthenticationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, workspaceName, options); return { @@ -69,9 +74,9 @@ export class AzureADOnlyAuthenticationsImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -79,7 +84,7 @@ export class AzureADOnlyAuthenticationsImpl resourceGroupName: string, workspaceName: string, options?: AzureADOnlyAuthenticationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AzureADOnlyAuthenticationsListResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +100,7 @@ export class AzureADOnlyAuthenticationsImpl resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +112,12 @@ export class AzureADOnlyAuthenticationsImpl private async *listPagingAll( resourceGroupName: string, workspaceName: string, - options?: AzureADOnlyAuthenticationsListOptionalParams + options?: AzureADOnlyAuthenticationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -129,16 +134,16 @@ export class AzureADOnlyAuthenticationsImpl resourceGroupName: string, workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, - options?: AzureADOnlyAuthenticationsGetOptionalParams + options?: AzureADOnlyAuthenticationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, azureADOnlyAuthenticationName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -155,30 +160,29 @@ export class AzureADOnlyAuthenticationsImpl workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, - options?: AzureADOnlyAuthenticationsCreateOptionalParams + options?: AzureADOnlyAuthenticationsCreateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, AzureADOnlyAuthenticationsCreateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -187,8 +191,8 @@ export class AzureADOnlyAuthenticationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -196,26 +200,29 @@ export class AzureADOnlyAuthenticationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo, - options + options, }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOperationSpec, + }); + const poller = await createHttpPoller< + AzureADOnlyAuthenticationsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -234,14 +241,14 @@ export class AzureADOnlyAuthenticationsImpl workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, - options?: AzureADOnlyAuthenticationsCreateOptionalParams + options?: AzureADOnlyAuthenticationsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo, - options + options, ); return poller.pollUntilDone(); } @@ -255,11 +262,11 @@ export class AzureADOnlyAuthenticationsImpl private _list( resourceGroupName: string, workspaceName: string, - options?: AzureADOnlyAuthenticationsListOptionalParams + options?: AzureADOnlyAuthenticationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -274,11 +281,11 @@ export class AzureADOnlyAuthenticationsImpl resourceGroupName: string, workspaceName: string, nextLink: string, - options?: AzureADOnlyAuthenticationsListNextOptionalParams + options?: AzureADOnlyAuthenticationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -286,16 +293,15 @@ export class AzureADOnlyAuthenticationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AzureADOnlyAuthentication + bodyMapper: Mappers.AzureADOnlyAuthentication, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -303,31 +309,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.azureADOnlyAuthenticationName + Parameters.azureADOnlyAuthenticationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AzureADOnlyAuthentication + bodyMapper: Mappers.AzureADOnlyAuthentication, }, 201: { - bodyMapper: Mappers.AzureADOnlyAuthentication + bodyMapper: Mappers.AzureADOnlyAuthentication, }, 202: { - bodyMapper: Mappers.AzureADOnlyAuthentication + bodyMapper: Mappers.AzureADOnlyAuthentication, }, 204: { - bodyMapper: Mappers.AzureADOnlyAuthentication + bodyMapper: Mappers.AzureADOnlyAuthentication, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.azureADOnlyAuthenticationInfo, queryParameters: [Parameters.apiVersion], @@ -336,52 +341,51 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.azureADOnlyAuthenticationName + Parameters.azureADOnlyAuthenticationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AzureADOnlyAuthenticationListResult + bodyMapper: Mappers.AzureADOnlyAuthenticationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AzureADOnlyAuthenticationListResult + bodyMapper: Mappers.AzureADOnlyAuthenticationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts b/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts index 6580ad347c73..385b72e2d723 100644 --- a/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts +++ b/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { BigDataPoolResourceInfo, BigDataPoolsListByWorkspaceNextOptionalParams, @@ -29,7 +33,7 @@ import { BigDataPoolsCreateOrUpdateResponse, BigDataPoolsDeleteOptionalParams, BigDataPoolsDeleteResponse, - BigDataPoolsListByWorkspaceNextResponse + BigDataPoolsListByWorkspaceNextResponse, } from "../models"; /// @@ -54,12 +58,12 @@ export class BigDataPoolsImpl implements BigDataPools { public listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: BigDataPoolsListByWorkspaceOptionalParams + options?: BigDataPoolsListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByWorkspacePagingAll( resourceGroupName, workspaceName, - options + options, ); return { next() { @@ -76,9 +80,9 @@ export class BigDataPoolsImpl implements BigDataPools { resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +90,7 @@ export class BigDataPoolsImpl implements BigDataPools { resourceGroupName: string, workspaceName: string, options?: BigDataPoolsListByWorkspaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BigDataPoolsListByWorkspaceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +98,7 @@ export class BigDataPoolsImpl implements BigDataPools { result = await this._listByWorkspace( resourceGroupName, workspaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +110,7 @@ export class BigDataPoolsImpl implements BigDataPools { resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +122,12 @@ export class BigDataPoolsImpl implements BigDataPools { private async *listByWorkspacePagingAll( resourceGroupName: string, workspaceName: string, - options?: BigDataPoolsListByWorkspaceOptionalParams + options?: BigDataPoolsListByWorkspaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByWorkspacePagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -140,11 +144,11 @@ export class BigDataPoolsImpl implements BigDataPools { resourceGroupName: string, workspaceName: string, bigDataPoolName: string, - options?: BigDataPoolsGetOptionalParams + options?: BigDataPoolsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, bigDataPoolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -161,7 +165,7 @@ export class BigDataPoolsImpl implements BigDataPools { workspaceName: string, bigDataPoolName: string, bigDataPoolPatchInfo: BigDataPoolPatchInfo, - options?: BigDataPoolsUpdateOptionalParams + options?: BigDataPoolsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -169,9 +173,9 @@ export class BigDataPoolsImpl implements BigDataPools { workspaceName, bigDataPoolName, bigDataPoolPatchInfo, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -188,30 +192,29 @@ export class BigDataPoolsImpl implements BigDataPools { workspaceName: string, bigDataPoolName: string, bigDataPoolInfo: BigDataPoolResourceInfo, - options?: BigDataPoolsCreateOrUpdateOptionalParams + options?: BigDataPoolsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BigDataPoolsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -220,8 +223,8 @@ export class BigDataPoolsImpl implements BigDataPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -229,26 +232,29 @@ export class BigDataPoolsImpl implements BigDataPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + BigDataPoolsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -267,14 +273,14 @@ export class BigDataPoolsImpl implements BigDataPools { workspaceName: string, bigDataPoolName: string, bigDataPoolInfo: BigDataPoolResourceInfo, - options?: BigDataPoolsCreateOrUpdateOptionalParams + options?: BigDataPoolsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, - options + options, ); return poller.pollUntilDone(); } @@ -290,30 +296,29 @@ export class BigDataPoolsImpl implements BigDataPools { resourceGroupName: string, workspaceName: string, bigDataPoolName: string, - options?: BigDataPoolsDeleteOptionalParams + options?: BigDataPoolsDeleteOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BigDataPoolsDeleteResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -322,8 +327,8 @@ export class BigDataPoolsImpl implements BigDataPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -331,20 +336,23 @@ export class BigDataPoolsImpl implements BigDataPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, bigDataPoolName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, bigDataPoolName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + BigDataPoolsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -361,13 +369,13 @@ export class BigDataPoolsImpl implements BigDataPools { resourceGroupName: string, workspaceName: string, bigDataPoolName: string, - options?: BigDataPoolsDeleteOptionalParams + options?: BigDataPoolsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, bigDataPoolName, - options + options, ); return poller.pollUntilDone(); } @@ -381,11 +389,11 @@ export class BigDataPoolsImpl implements BigDataPools { private _listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: BigDataPoolsListByWorkspaceOptionalParams + options?: BigDataPoolsListByWorkspaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + listByWorkspaceOperationSpec, ); } @@ -400,11 +408,11 @@ export class BigDataPoolsImpl implements BigDataPools { resourceGroupName: string, workspaceName: string, nextLink: string, - options?: BigDataPoolsListByWorkspaceNextOptionalParams + options?: BigDataPoolsListByWorkspaceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec + listByWorkspaceNextOperationSpec, ); } } @@ -412,16 +420,15 @@ export class BigDataPoolsImpl implements BigDataPools { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BigDataPoolResourceInfo + bodyMapper: Mappers.BigDataPoolResourceInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -429,22 +436,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.bigDataPoolName + Parameters.bigDataPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BigDataPoolResourceInfo + bodyMapper: Mappers.BigDataPoolResourceInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bigDataPoolPatchInfo, queryParameters: [Parameters.apiVersion1], @@ -453,32 +459,31 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.bigDataPoolName + Parameters.bigDataPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BigDataPoolResourceInfo + bodyMapper: Mappers.BigDataPoolResourceInfo, }, 201: { - bodyMapper: Mappers.BigDataPoolResourceInfo + bodyMapper: Mappers.BigDataPoolResourceInfo, }, 202: { - bodyMapper: Mappers.BigDataPoolResourceInfo + bodyMapper: Mappers.BigDataPoolResourceInfo, }, 204: { - bodyMapper: Mappers.BigDataPoolResourceInfo + bodyMapper: Mappers.BigDataPoolResourceInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bigDataPoolInfo, queryParameters: [Parameters.apiVersion1, Parameters.force], @@ -487,32 +492,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.bigDataPoolName + Parameters.bigDataPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.BigDataPoolResourceInfo + bodyMapper: Mappers.BigDataPoolResourceInfo, }, 201: { - bodyMapper: Mappers.BigDataPoolResourceInfo + bodyMapper: Mappers.BigDataPoolResourceInfo, }, 202: { - bodyMapper: Mappers.BigDataPoolResourceInfo + bodyMapper: Mappers.BigDataPoolResourceInfo, }, 204: { - bodyMapper: Mappers.BigDataPoolResourceInfo + bodyMapper: Mappers.BigDataPoolResourceInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -520,51 +524,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.bigDataPoolName + Parameters.bigDataPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BigDataPoolResourceInfoListResult + bodyMapper: Mappers.BigDataPoolResourceInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BigDataPoolResourceInfoListResult + bodyMapper: Mappers.BigDataPoolResourceInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts index e0d3a04f9ef3..a05c61fc31b3 100644 --- a/sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts @@ -16,7 +16,7 @@ import { DataMaskingPoliciesCreateOrUpdateOptionalParams, DataMaskingPoliciesCreateOrUpdateResponse, DataMaskingPoliciesGetOptionalParams, - DataMaskingPoliciesGetResponse + DataMaskingPoliciesGetResponse, } from "../models"; /** Class containing DataMaskingPolicies operations. */ @@ -44,11 +44,11 @@ export class DataMaskingPoliciesImpl implements DataMaskingPolicies { workspaceName: string, sqlPoolName: string, parameters: DataMaskingPolicy, - options?: DataMaskingPoliciesCreateOrUpdateOptionalParams + options?: DataMaskingPoliciesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -63,11 +63,11 @@ export class DataMaskingPoliciesImpl implements DataMaskingPolicies { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: DataMaskingPoliciesGetOptionalParams + options?: DataMaskingPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -75,18 +75,17 @@ export class DataMaskingPoliciesImpl implements DataMaskingPolicies { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DataMaskingPolicy + bodyMapper: Mappers.DataMaskingPolicy, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -94,23 +93,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.dataMaskingPolicyName + Parameters.dataMaskingPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataMaskingPolicy + bodyMapper: Mappers.DataMaskingPolicy, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -119,8 +117,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.dataMaskingPolicyName + Parameters.dataMaskingPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts b/sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts index 45b6803cc091..a8532109ffa3 100644 --- a/sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts +++ b/sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts @@ -19,7 +19,7 @@ import { DataMaskingRulesCreateOrUpdateOptionalParams, DataMaskingRulesCreateOrUpdateResponse, DataMaskingRulesGetOptionalParams, - DataMaskingRulesGetResponse + DataMaskingRulesGetResponse, } from "../models"; /// @@ -46,13 +46,13 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: DataMaskingRulesListBySqlPoolOptionalParams + options?: DataMaskingRulesListBySqlPoolOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySqlPoolPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class DataMaskingRulesImpl implements DataMaskingRules { workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -81,14 +81,14 @@ export class DataMaskingRulesImpl implements DataMaskingRules { workspaceName: string, sqlPoolName: string, options?: DataMaskingRulesListBySqlPoolOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: DataMaskingRulesListBySqlPoolResponse; result = await this._listBySqlPool( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); yield result.value || []; } @@ -97,13 +97,13 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: DataMaskingRulesListBySqlPoolOptionalParams + options?: DataMaskingRulesListBySqlPoolOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySqlPoolPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -124,7 +124,7 @@ export class DataMaskingRulesImpl implements DataMaskingRules { sqlPoolName: string, dataMaskingRuleName: string, parameters: DataMaskingRule, - options?: DataMaskingRulesCreateOrUpdateOptionalParams + options?: DataMaskingRulesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -133,9 +133,9 @@ export class DataMaskingRulesImpl implements DataMaskingRules { sqlPoolName, dataMaskingRuleName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -152,7 +152,7 @@ export class DataMaskingRulesImpl implements DataMaskingRules { workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, - options?: DataMaskingRulesGetOptionalParams + options?: DataMaskingRulesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -160,9 +160,9 @@ export class DataMaskingRulesImpl implements DataMaskingRules { workspaceName, sqlPoolName, dataMaskingRuleName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -177,11 +177,11 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: DataMaskingRulesListBySqlPoolOptionalParams + options?: DataMaskingRulesListBySqlPoolOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listBySqlPoolOperationSpec + listBySqlPoolOperationSpec, ); } } @@ -189,21 +189,20 @@ export class DataMaskingRulesImpl implements DataMaskingRules { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DataMaskingRule + bodyMapper: Mappers.DataMaskingRule, }, 201: { - bodyMapper: Mappers.DataMaskingRule + bodyMapper: Mappers.DataMaskingRule, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -212,23 +211,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.sqlPoolName, Parameters.dataMaskingPolicyName, - Parameters.dataMaskingRuleName + Parameters.dataMaskingRuleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataMaskingRule + bodyMapper: Mappers.DataMaskingRule, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -238,22 +236,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.sqlPoolName, Parameters.dataMaskingPolicyName, - Parameters.dataMaskingRuleName + Parameters.dataMaskingRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySqlPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataMaskingRuleListResult + bodyMapper: Mappers.DataMaskingRuleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -262,8 +259,8 @@ const listBySqlPoolOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.dataMaskingPolicyName + Parameters.dataMaskingPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts index 2fe23a807002..e5faf34382f6 100644 --- a/sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts @@ -22,13 +22,14 @@ import { ExtendedSqlPoolBlobAuditingPoliciesGetResponse, ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateResponse, - ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse + ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse, } from "../models"; /// /** Class containing ExtendedSqlPoolBlobAuditingPolicies operations. */ export class ExtendedSqlPoolBlobAuditingPoliciesImpl - implements ExtendedSqlPoolBlobAuditingPolicies { + implements ExtendedSqlPoolBlobAuditingPolicies +{ private readonly client: SynapseManagementClient; /** @@ -50,13 +51,13 @@ export class ExtendedSqlPoolBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySqlPoolPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -74,9 +75,9 @@ export class ExtendedSqlPoolBlobAuditingPoliciesImpl workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +86,7 @@ export class ExtendedSqlPoolBlobAuditingPoliciesImpl workspaceName: string, sqlPoolName: string, options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +95,7 @@ export class ExtendedSqlPoolBlobAuditingPoliciesImpl resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +108,7 @@ export class ExtendedSqlPoolBlobAuditingPoliciesImpl workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,13 +121,13 @@ export class ExtendedSqlPoolBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySqlPoolPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -143,11 +144,11 @@ export class ExtendedSqlPoolBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams + options?: ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -164,11 +165,11 @@ export class ExtendedSqlPoolBlobAuditingPoliciesImpl workspaceName: string, sqlPoolName: string, parameters: ExtendedSqlPoolBlobAuditingPolicy, - options?: ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams + options?: ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -183,11 +184,11 @@ export class ExtendedSqlPoolBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listBySqlPoolOperationSpec + listBySqlPoolOperationSpec, ); } @@ -204,11 +205,11 @@ export class ExtendedSqlPoolBlobAuditingPoliciesImpl workspaceName: string, sqlPoolName: string, nextLink: string, - options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams + options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listBySqlPoolNextOperationSpec + listBySqlPoolNextOperationSpec, ); } } @@ -216,14 +217,13 @@ export class ExtendedSqlPoolBlobAuditingPoliciesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicy + bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicy, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -232,25 +232,24 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.blobAuditingPolicyName + Parameters.blobAuditingPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicy + bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicy, }, 201: { - bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicy + bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicy, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -258,21 +257,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.blobAuditingPolicyName + Parameters.blobAuditingPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySqlPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicyListResult + bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicyListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -280,19 +278,19 @@ const listBySqlPoolOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySqlPoolNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicyListResult + bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicyListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -300,8 +298,8 @@ const listBySqlPoolNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/get.ts b/sdk/synapse/arm-synapse/src/operations/get.ts index 3f880bbd8d51..ea252205af23 100644 --- a/sdk/synapse/arm-synapse/src/operations/get.ts +++ b/sdk/synapse/arm-synapse/src/operations/get.ts @@ -17,7 +17,7 @@ import { GetIntegrationRuntimeStopOptionalParams, GetIntegrationRuntimeStopResponse, GetIntegrationRuntimeEnableInteractivequeryOptionalParams, - GetIntegrationRuntimeEnableInteractivequeryResponse + GetIntegrationRuntimeEnableInteractivequeryResponse, } from "../models"; /** Class containing Get operations. */ @@ -45,7 +45,7 @@ export class GetImpl implements Get { workspaceName: string, integrationRuntimeName: string, integrationRuntimeOperationId: string, - options?: GetIntegrationRuntimeStartOptionalParams + options?: GetIntegrationRuntimeStartOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -53,9 +53,9 @@ export class GetImpl implements Get { workspaceName, integrationRuntimeName, integrationRuntimeOperationId, - options + options, }, - integrationRuntimeStartOperationSpec + integrationRuntimeStartOperationSpec, ); } @@ -72,7 +72,7 @@ export class GetImpl implements Get { workspaceName: string, integrationRuntimeName: string, integrationRuntimeOperationId: string, - options?: GetIntegrationRuntimeStopOptionalParams + options?: GetIntegrationRuntimeStopOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -80,9 +80,9 @@ export class GetImpl implements Get { workspaceName, integrationRuntimeName, integrationRuntimeOperationId, - options + options, }, - integrationRuntimeStopOperationSpec + integrationRuntimeStopOperationSpec, ); } @@ -99,7 +99,7 @@ export class GetImpl implements Get { workspaceName: string, integrationRuntimeName: string, integrationRuntimeOperationId: string, - options?: GetIntegrationRuntimeEnableInteractivequeryOptionalParams + options?: GetIntegrationRuntimeEnableInteractivequeryOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -107,9 +107,9 @@ export class GetImpl implements Get { workspaceName, integrationRuntimeName, integrationRuntimeOperationId, - options + options, }, - integrationRuntimeEnableInteractivequeryOperationSpec + integrationRuntimeEnableInteractivequeryOperationSpec, ); } } @@ -117,16 +117,15 @@ export class GetImpl implements Get { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const integrationRuntimeStartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start/operationstatuses/{integrationRuntimeOperationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start/operationstatuses/{integrationRuntimeOperationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeOperationStatus + bodyMapper: Mappers.IntegrationRuntimeOperationStatus, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -135,46 +134,21 @@ const integrationRuntimeStartOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName, - Parameters.integrationRuntimeOperationId + Parameters.integrationRuntimeOperationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const integrationRuntimeStopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop/operationstatuses/{integrationRuntimeOperationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop/operationstatuses/{integrationRuntimeOperationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeStopOperationStatus + bodyMapper: Mappers.IntegrationRuntimeStopOperationStatus, }, default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.integrationRuntimeName, - Parameters.integrationRuntimeOperationId - ], - headerParameters: [Parameters.accept], - serializer -}; -const integrationRuntimeEnableInteractivequeryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableinteractivequery/operationstatuses/{integrationRuntimeOperationId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.IntegrationRuntimeEnableinteractivequery + bodyMapper: Mappers.ErrorResponse, }, - default: { - bodyMapper: Mappers.ErrorResponse - } }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -183,8 +157,32 @@ const integrationRuntimeEnableInteractivequeryOperationSpec: coreClient.Operatio Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName, - Parameters.integrationRuntimeOperationId + Parameters.integrationRuntimeOperationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const integrationRuntimeEnableInteractivequeryOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableinteractivequery/operationstatuses/{integrationRuntimeOperationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IntegrationRuntimeEnableinteractivequery, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.integrationRuntimeName, + Parameters.integrationRuntimeOperationId, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeAuthKeysOperations.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeAuthKeysOperations.ts index 8b9841caef9e..bb8433318913 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeAuthKeysOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeAuthKeysOperations.ts @@ -16,12 +16,13 @@ import { IntegrationRuntimeAuthKeysRegenerateOptionalParams, IntegrationRuntimeAuthKeysRegenerateResponse, IntegrationRuntimeAuthKeysListOptionalParams, - IntegrationRuntimeAuthKeysListResponse + IntegrationRuntimeAuthKeysListResponse, } from "../models"; /** Class containing IntegrationRuntimeAuthKeysOperations operations. */ export class IntegrationRuntimeAuthKeysOperationsImpl - implements IntegrationRuntimeAuthKeysOperations { + implements IntegrationRuntimeAuthKeysOperations +{ private readonly client: SynapseManagementClient; /** @@ -46,7 +47,7 @@ export class IntegrationRuntimeAuthKeysOperationsImpl workspaceName: string, integrationRuntimeName: string, regenerateKeyParameters: IntegrationRuntimeRegenerateKeyParameters, - options?: IntegrationRuntimeAuthKeysRegenerateOptionalParams + options?: IntegrationRuntimeAuthKeysRegenerateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -54,9 +55,9 @@ export class IntegrationRuntimeAuthKeysOperationsImpl workspaceName, integrationRuntimeName, regenerateKeyParameters, - options + options, }, - regenerateOperationSpec + regenerateOperationSpec, ); } @@ -71,11 +72,11 @@ export class IntegrationRuntimeAuthKeysOperationsImpl resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeAuthKeysListOptionalParams + options?: IntegrationRuntimeAuthKeysListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, integrationRuntimeName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -83,16 +84,15 @@ export class IntegrationRuntimeAuthKeysOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const regenerateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeAuthKeys + bodyMapper: Mappers.IntegrationRuntimeAuthKeys, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.regenerateKeyParameters, queryParameters: [Parameters.apiVersion1], @@ -101,23 +101,22 @@ const regenerateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeAuthKeys + bodyMapper: Mappers.IntegrationRuntimeAuthKeys, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -125,8 +124,8 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts index a7c6f41410f9..d79d397fc61b 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; import { IntegrationRuntimeConnectionInfosGetOptionalParams, - IntegrationRuntimeConnectionInfosGetResponse + IntegrationRuntimeConnectionInfosGetResponse, } from "../models"; /** Class containing IntegrationRuntimeConnectionInfos operations. */ export class IntegrationRuntimeConnectionInfosImpl - implements IntegrationRuntimeConnectionInfos { + implements IntegrationRuntimeConnectionInfos +{ private readonly client: SynapseManagementClient; /** @@ -40,11 +41,11 @@ export class IntegrationRuntimeConnectionInfosImpl resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeConnectionInfosGetOptionalParams + options?: IntegrationRuntimeConnectionInfosGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, integrationRuntimeName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -52,16 +53,15 @@ export class IntegrationRuntimeConnectionInfosImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeConnectionInfo + bodyMapper: Mappers.IntegrationRuntimeConnectionInfo, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated - } + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -69,8 +69,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeCredentials.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeCredentials.ts index 02a2f2a5ff4a..6075a833cf6f 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeCredentials.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeCredentials.ts @@ -15,7 +15,8 @@ import { IntegrationRuntimeCredentialsSyncOptionalParams } from "../models"; /** Class containing IntegrationRuntimeCredentials operations. */ export class IntegrationRuntimeCredentialsImpl - implements IntegrationRuntimeCredentials { + implements IntegrationRuntimeCredentials +{ private readonly client: SynapseManagementClient; /** @@ -40,11 +41,11 @@ export class IntegrationRuntimeCredentialsImpl resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeCredentialsSyncOptionalParams + options?: IntegrationRuntimeCredentialsSyncOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, integrationRuntimeName, options }, - syncOperationSpec + syncOperationSpec, ); } } @@ -52,14 +53,13 @@ export class IntegrationRuntimeCredentialsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const syncOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -67,8 +67,8 @@ const syncOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeMonitoringDataOperations.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeMonitoringDataOperations.ts index ec15b04d9a33..0aa6170775c1 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeMonitoringDataOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeMonitoringDataOperations.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; import { IntegrationRuntimeMonitoringDataListOptionalParams, - IntegrationRuntimeMonitoringDataListResponse + IntegrationRuntimeMonitoringDataListResponse, } from "../models"; /** Class containing IntegrationRuntimeMonitoringDataOperations operations. */ export class IntegrationRuntimeMonitoringDataOperationsImpl - implements IntegrationRuntimeMonitoringDataOperations { + implements IntegrationRuntimeMonitoringDataOperations +{ private readonly client: SynapseManagementClient; /** @@ -40,11 +41,11 @@ export class IntegrationRuntimeMonitoringDataOperationsImpl resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeMonitoringDataListOptionalParams + options?: IntegrationRuntimeMonitoringDataListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, integrationRuntimeName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -52,16 +53,15 @@ export class IntegrationRuntimeMonitoringDataOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/monitoringData", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/monitoringData", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeMonitoringData + bodyMapper: Mappers.IntegrationRuntimeMonitoringData, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -69,8 +69,8 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodeIpAddressOperations.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodeIpAddressOperations.ts index d884d157c261..ad1236d6cc13 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodeIpAddressOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodeIpAddressOperations.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; import { IntegrationRuntimeNodeIpAddressGetOptionalParams, - IntegrationRuntimeNodeIpAddressGetResponse + IntegrationRuntimeNodeIpAddressGetResponse, } from "../models"; /** Class containing IntegrationRuntimeNodeIpAddressOperations operations. */ export class IntegrationRuntimeNodeIpAddressOperationsImpl - implements IntegrationRuntimeNodeIpAddressOperations { + implements IntegrationRuntimeNodeIpAddressOperations +{ private readonly client: SynapseManagementClient; /** @@ -42,7 +43,7 @@ export class IntegrationRuntimeNodeIpAddressOperationsImpl workspaceName: string, integrationRuntimeName: string, nodeName: string, - options?: IntegrationRuntimeNodeIpAddressGetOptionalParams + options?: IntegrationRuntimeNodeIpAddressGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -50,9 +51,9 @@ export class IntegrationRuntimeNodeIpAddressOperationsImpl workspaceName, integrationRuntimeName, nodeName, - options + options, }, - getOperationSpec + getOperationSpec, ); } } @@ -60,16 +61,15 @@ export class IntegrationRuntimeNodeIpAddressOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeNodeIpAddress + bodyMapper: Mappers.IntegrationRuntimeNodeIpAddress, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -78,8 +78,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName, - Parameters.nodeName + Parameters.nodeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodes.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodes.ts index 3c4ea99f2427..12e41bcc0c47 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodes.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodes.ts @@ -17,7 +17,7 @@ import { UpdateIntegrationRuntimeNodeRequest, IntegrationRuntimeNodesUpdateOptionalParams, IntegrationRuntimeNodesUpdateResponse, - IntegrationRuntimeNodesDeleteOptionalParams + IntegrationRuntimeNodesDeleteOptionalParams, } from "../models"; /** Class containing IntegrationRuntimeNodes operations. */ @@ -45,7 +45,7 @@ export class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { workspaceName: string, integrationRuntimeName: string, nodeName: string, - options?: IntegrationRuntimeNodesGetOptionalParams + options?: IntegrationRuntimeNodesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -53,9 +53,9 @@ export class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { workspaceName, integrationRuntimeName, nodeName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -74,7 +74,7 @@ export class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: UpdateIntegrationRuntimeNodeRequest, - options?: IntegrationRuntimeNodesUpdateOptionalParams + options?: IntegrationRuntimeNodesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -83,9 +83,9 @@ export class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -102,7 +102,7 @@ export class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { workspaceName: string, integrationRuntimeName: string, nodeName: string, - options?: IntegrationRuntimeNodesDeleteOptionalParams + options?: IntegrationRuntimeNodesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -110,9 +110,9 @@ export class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { workspaceName, integrationRuntimeName, nodeName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -120,16 +120,15 @@ export class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SelfHostedIntegrationRuntimeNode + bodyMapper: Mappers.SelfHostedIntegrationRuntimeNode, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -138,22 +137,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName, - Parameters.nodeName + Parameters.nodeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SelfHostedIntegrationRuntimeNode + bodyMapper: Mappers.SelfHostedIntegrationRuntimeNode, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.updateIntegrationRuntimeNodeRequest, queryParameters: [Parameters.apiVersion1], @@ -163,22 +161,21 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName, - Parameters.nodeName + Parameters.nodeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -187,8 +184,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName, - Parameters.nodeName + Parameters.nodeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts index c0734a055dec..1a16fcdc40ee 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts @@ -11,18 +11,23 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { IntegrationRuntimeObjectMetadataListOptionalParams, IntegrationRuntimeObjectMetadataListResponse, IntegrationRuntimeObjectMetadataRefreshOptionalParams, - IntegrationRuntimeObjectMetadataRefreshResponse + IntegrationRuntimeObjectMetadataRefreshResponse, } from "../models"; /** Class containing IntegrationRuntimeObjectMetadata operations. */ export class IntegrationRuntimeObjectMetadataImpl - implements IntegrationRuntimeObjectMetadata { + implements IntegrationRuntimeObjectMetadata +{ private readonly client: SynapseManagementClient; /** @@ -44,11 +49,11 @@ export class IntegrationRuntimeObjectMetadataImpl resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeObjectMetadataListOptionalParams + options?: IntegrationRuntimeObjectMetadataListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, integrationRuntimeName, options }, - listOperationSpec + listOperationSpec, ); } @@ -63,30 +68,29 @@ export class IntegrationRuntimeObjectMetadataImpl resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams + options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IntegrationRuntimeObjectMetadataRefreshResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -95,8 +99,8 @@ export class IntegrationRuntimeObjectMetadataImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -104,20 +108,28 @@ export class IntegrationRuntimeObjectMetadataImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, integrationRuntimeName, options }, - refreshOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + integrationRuntimeName, + options, + }, + spec: refreshOperationSpec, + }); + const poller = await createHttpPoller< + IntegrationRuntimeObjectMetadataRefreshResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -134,13 +146,13 @@ export class IntegrationRuntimeObjectMetadataImpl resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams + options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams, ): Promise { const poller = await this.beginRefresh( resourceGroupName, workspaceName, integrationRuntimeName, - options + options, ); return poller.pollUntilDone(); } @@ -149,16 +161,15 @@ export class IntegrationRuntimeObjectMetadataImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SsisObjectMetadataListResponse + bodyMapper: Mappers.SsisObjectMetadataListResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.getMetadataRequest, queryParameters: [Parameters.apiVersion1], @@ -167,32 +178,31 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const refreshOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SsisObjectMetadataStatusResponse + bodyMapper: Mappers.SsisObjectMetadataStatusResponse, }, 201: { - bodyMapper: Mappers.SsisObjectMetadataStatusResponse + bodyMapper: Mappers.SsisObjectMetadataStatusResponse, }, 202: { - bodyMapper: Mappers.SsisObjectMetadataStatusResponse + bodyMapper: Mappers.SsisObjectMetadataStatusResponse, }, 204: { - bodyMapper: Mappers.SsisObjectMetadataStatusResponse + bodyMapper: Mappers.SsisObjectMetadataStatusResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -200,8 +210,8 @@ const refreshOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeStatusOperations.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeStatusOperations.ts index 535ac9272678..d58368e9dc10 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeStatusOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeStatusOperations.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; import { IntegrationRuntimeStatusGetOptionalParams, - IntegrationRuntimeStatusGetResponse + IntegrationRuntimeStatusGetResponse, } from "../models"; /** Class containing IntegrationRuntimeStatusOperations operations. */ export class IntegrationRuntimeStatusOperationsImpl - implements IntegrationRuntimeStatusOperations { + implements IntegrationRuntimeStatusOperations +{ private readonly client: SynapseManagementClient; /** @@ -40,11 +41,11 @@ export class IntegrationRuntimeStatusOperationsImpl resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeStatusGetOptionalParams + options?: IntegrationRuntimeStatusGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, integrationRuntimeName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -52,16 +53,15 @@ export class IntegrationRuntimeStatusOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getStatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getStatus", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeStatusResponse + bodyMapper: Mappers.IntegrationRuntimeStatusResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -69,8 +69,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts index c9e09d0a4c67..3d00b740c2b9 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { IntegrationRuntimeResource, IntegrationRuntimesListByWorkspaceNextOptionalParams, @@ -36,7 +40,7 @@ import { IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse, IntegrationRuntimesEnableInteractiveQueryOptionalParams, IntegrationRuntimesDisableInteractiveQueryOptionalParams, - IntegrationRuntimesListByWorkspaceNextResponse + IntegrationRuntimesListByWorkspaceNextResponse, } from "../models"; /// @@ -61,12 +65,12 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { public listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: IntegrationRuntimesListByWorkspaceOptionalParams + options?: IntegrationRuntimesListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByWorkspacePagingAll( resourceGroupName, workspaceName, - options + options, ); return { next() { @@ -83,9 +87,9 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -93,7 +97,7 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, options?: IntegrationRuntimesListByWorkspaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: IntegrationRuntimesListByWorkspaceResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +105,7 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { result = await this._listByWorkspace( resourceGroupName, workspaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +117,7 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,12 +129,12 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { private async *listByWorkspacePagingAll( resourceGroupName: string, workspaceName: string, - options?: IntegrationRuntimesListByWorkspaceOptionalParams + options?: IntegrationRuntimesListByWorkspaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByWorkspacePagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -149,7 +153,7 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { workspaceName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: UpdateIntegrationRuntimeRequest, - options?: IntegrationRuntimesUpdateOptionalParams + options?: IntegrationRuntimesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -157,9 +161,9 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -174,11 +178,11 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesGetOptionalParams + options?: IntegrationRuntimesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, integrationRuntimeName, options }, - getOperationSpec + getOperationSpec, ); } @@ -195,30 +199,29 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { workspaceName: string, integrationRuntimeName: string, integrationRuntime: IntegrationRuntimeResource, - options?: IntegrationRuntimesCreateOptionalParams + options?: IntegrationRuntimesCreateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IntegrationRuntimesCreateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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 +230,8 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -236,25 +239,28 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, - options + options, }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOperationSpec, + }); + const poller = await createHttpPoller< + IntegrationRuntimesCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -273,14 +279,14 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { workspaceName: string, integrationRuntimeName: string, integrationRuntime: IntegrationRuntimeResource, - options?: IntegrationRuntimesCreateOptionalParams + options?: IntegrationRuntimesCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, - options + options, ); return poller.pollUntilDone(); } @@ -296,25 +302,24 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesDeleteOptionalParams - ): Promise, void>> { + options?: IntegrationRuntimesDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -323,8 +328,8 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -332,19 +337,24 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, integrationRuntimeName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + integrationRuntimeName, + options, + }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -361,13 +371,13 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesDeleteOptionalParams + options?: IntegrationRuntimesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, integrationRuntimeName, - options + options, ); return poller.pollUntilDone(); } @@ -383,11 +393,11 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesUpgradeOptionalParams + options?: IntegrationRuntimesUpgradeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, integrationRuntimeName, options }, - upgradeOperationSpec + upgradeOperationSpec, ); } @@ -400,11 +410,11 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { private _listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: IntegrationRuntimesListByWorkspaceOptionalParams + options?: IntegrationRuntimesListByWorkspaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + listByWorkspaceOperationSpec, ); } @@ -419,30 +429,29 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesStartOptionalParams + options?: IntegrationRuntimesStartOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IntegrationRuntimesStartResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -451,8 +460,8 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -460,20 +469,28 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, integrationRuntimeName, options }, - startOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + integrationRuntimeName, + options, + }, + spec: startOperationSpec, + }); + const poller = await createHttpPoller< + IntegrationRuntimesStartResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -490,13 +507,13 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesStartOptionalParams + options?: IntegrationRuntimesStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, workspaceName, integrationRuntimeName, - options + options, ); return poller.pollUntilDone(); } @@ -512,25 +529,24 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesStopOptionalParams - ): Promise, void>> { + options?: IntegrationRuntimesStopOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -539,8 +555,8 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -548,19 +564,24 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, integrationRuntimeName, options }, - stopOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + integrationRuntimeName, + options, + }, + spec: stopOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -577,13 +598,13 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesStopOptionalParams + options?: IntegrationRuntimesStopOptionalParams, ): Promise { const poller = await this.beginStop( resourceGroupName, workspaceName, integrationRuntimeName, - options + options, ); return poller.pollUntilDone(); } @@ -599,13 +620,11 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams - ): Promise< - IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse - > { + options?: IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, integrationRuntimeName, options }, - listOutboundNetworkDependenciesEndpointsOperationSpec + listOutboundNetworkDependenciesEndpointsOperationSpec, ); } @@ -620,25 +639,24 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams - ): Promise, void>> { + options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -647,8 +665,8 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -656,19 +674,24 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, integrationRuntimeName, options }, - enableInteractiveQueryOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + integrationRuntimeName, + options, + }, + spec: enableInteractiveQueryOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -685,13 +708,13 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams + options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams, ): Promise { const poller = await this.beginEnableInteractiveQuery( resourceGroupName, workspaceName, integrationRuntimeName, - options + options, ); return poller.pollUntilDone(); } @@ -707,25 +730,24 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams - ): Promise, void>> { + options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -734,8 +756,8 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -743,19 +765,24 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, integrationRuntimeName, options }, - disableInteractiveQueryOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + integrationRuntimeName, + options, + }, + spec: disableInteractiveQueryOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -772,13 +799,13 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams + options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams, ): Promise { const poller = await this.beginDisableInteractiveQuery( resourceGroupName, workspaceName, integrationRuntimeName, - options + options, ); return poller.pollUntilDone(); } @@ -794,11 +821,11 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { resourceGroupName: string, workspaceName: string, nextLink: string, - options?: IntegrationRuntimesListByWorkspaceNextOptionalParams + options?: IntegrationRuntimesListByWorkspaceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec + listByWorkspaceNextOperationSpec, ); } } @@ -806,16 +833,15 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeResource + bodyMapper: Mappers.IntegrationRuntimeResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.updateIntegrationRuntimeRequest, queryParameters: [Parameters.apiVersion1], @@ -824,24 +850,23 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeResource + bodyMapper: Mappers.IntegrationRuntimeResource, }, 304: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -849,31 +874,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept, Parameters.ifNoneMatch], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeResource + bodyMapper: Mappers.IntegrationRuntimeResource, }, 201: { - bodyMapper: Mappers.IntegrationRuntimeResource + bodyMapper: Mappers.IntegrationRuntimeResource, }, 202: { - bodyMapper: Mappers.IntegrationRuntimeResource + bodyMapper: Mappers.IntegrationRuntimeResource, }, 204: { - bodyMapper: Mappers.IntegrationRuntimeResource + bodyMapper: Mappers.IntegrationRuntimeResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.integrationRuntime, queryParameters: [Parameters.apiVersion1], @@ -882,19 +906,18 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", httpMethod: "DELETE", responses: { 200: {}, @@ -902,8 +925,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -911,20 +934,19 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const upgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/upgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/upgrade", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -932,53 +954,51 @@ const upgradeOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeListResponse + bodyMapper: Mappers.IntegrationRuntimeListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated - } + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeStatusResponse + bodyMapper: Mappers.IntegrationRuntimeStatusResponse, }, 201: { - bodyMapper: Mappers.IntegrationRuntimeStatusResponse + bodyMapper: Mappers.IntegrationRuntimeStatusResponse, }, 202: { - bodyMapper: Mappers.IntegrationRuntimeStatusResponse + bodyMapper: Mappers.IntegrationRuntimeStatusResponse, }, 204: { - bodyMapper: Mappers.IntegrationRuntimeStatusResponse + bodyMapper: Mappers.IntegrationRuntimeStatusResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -986,14 +1006,13 @@ const startOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const stopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop", httpMethod: "POST", responses: { 200: {}, @@ -1001,32 +1020,8 @@ const stopOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.integrationRuntimeName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: - Mappers.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse + bodyMapper: Mappers.ErrorResponse, }, - default: { - bodyMapper: Mappers.ErrorResponse - } }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1034,14 +1029,37 @@ const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.Operatio Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.integrationRuntimeName, + ], + headerParameters: [Parameters.accept], + serializer, + }; const enableInteractiveQueryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableInteractiveQuery", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableInteractiveQuery", httpMethod: "POST", responses: { 200: {}, @@ -1049,8 +1067,8 @@ const enableInteractiveQueryOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1058,14 +1076,13 @@ const enableInteractiveQueryOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const disableInteractiveQueryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/disableInteractiveQuery", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/disableInteractiveQuery", httpMethod: "POST", responses: { 200: {}, @@ -1073,8 +1090,8 @@ const disableInteractiveQueryOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1082,29 +1099,29 @@ const disableInteractiveQueryOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.integrationRuntimeName + Parameters.integrationRuntimeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeListResponse + bodyMapper: Mappers.IntegrationRuntimeListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated - } + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts b/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts index 378d8761f4d4..cc17ae0ef8c4 100644 --- a/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts +++ b/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { IpFirewallRuleInfo, IpFirewallRulesListByWorkspaceNextOptionalParams, @@ -29,7 +33,7 @@ import { ReplaceAllIpFirewallRulesRequest, IpFirewallRulesReplaceAllOptionalParams, IpFirewallRulesReplaceAllResponse, - IpFirewallRulesListByWorkspaceNextResponse + IpFirewallRulesListByWorkspaceNextResponse, } from "../models"; /// @@ -54,12 +58,12 @@ export class IpFirewallRulesImpl implements IpFirewallRules { public listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: IpFirewallRulesListByWorkspaceOptionalParams + options?: IpFirewallRulesListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByWorkspacePagingAll( resourceGroupName, workspaceName, - options + options, ); return { next() { @@ -76,9 +80,9 @@ export class IpFirewallRulesImpl implements IpFirewallRules { resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +90,7 @@ export class IpFirewallRulesImpl implements IpFirewallRules { resourceGroupName: string, workspaceName: string, options?: IpFirewallRulesListByWorkspaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: IpFirewallRulesListByWorkspaceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +98,7 @@ export class IpFirewallRulesImpl implements IpFirewallRules { result = await this._listByWorkspace( resourceGroupName, workspaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +110,7 @@ export class IpFirewallRulesImpl implements IpFirewallRules { resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +122,12 @@ export class IpFirewallRulesImpl implements IpFirewallRules { private async *listByWorkspacePagingAll( resourceGroupName: string, workspaceName: string, - options?: IpFirewallRulesListByWorkspaceOptionalParams + options?: IpFirewallRulesListByWorkspaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByWorkspacePagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -138,11 +142,11 @@ export class IpFirewallRulesImpl implements IpFirewallRules { private _listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: IpFirewallRulesListByWorkspaceOptionalParams + options?: IpFirewallRulesListByWorkspaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + listByWorkspaceOperationSpec, ); } @@ -159,30 +163,29 @@ export class IpFirewallRulesImpl implements IpFirewallRules { workspaceName: string, ruleName: string, ipFirewallRuleInfo: IpFirewallRuleInfo, - options?: IpFirewallRulesCreateOrUpdateOptionalParams + options?: IpFirewallRulesCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IpFirewallRulesCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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 +194,8 @@ export class IpFirewallRulesImpl implements IpFirewallRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -200,26 +203,29 @@ export class IpFirewallRulesImpl implements IpFirewallRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + IpFirewallRulesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -238,14 +244,14 @@ export class IpFirewallRulesImpl implements IpFirewallRules { workspaceName: string, ruleName: string, ipFirewallRuleInfo: IpFirewallRuleInfo, - options?: IpFirewallRulesCreateOrUpdateOptionalParams + options?: IpFirewallRulesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, - options + options, ); return poller.pollUntilDone(); } @@ -261,30 +267,29 @@ export class IpFirewallRulesImpl implements IpFirewallRules { resourceGroupName: string, workspaceName: string, ruleName: string, - options?: IpFirewallRulesDeleteOptionalParams + options?: IpFirewallRulesDeleteOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IpFirewallRulesDeleteResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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 +298,8 @@ export class IpFirewallRulesImpl implements IpFirewallRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,20 +307,23 @@ export class IpFirewallRulesImpl implements IpFirewallRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, ruleName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, ruleName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + IpFirewallRulesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -332,13 +340,13 @@ export class IpFirewallRulesImpl implements IpFirewallRules { resourceGroupName: string, workspaceName: string, ruleName: string, - options?: IpFirewallRulesDeleteOptionalParams + options?: IpFirewallRulesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, ruleName, - options + options, ); return poller.pollUntilDone(); } @@ -354,11 +362,11 @@ export class IpFirewallRulesImpl implements IpFirewallRules { resourceGroupName: string, workspaceName: string, ruleName: string, - options?: IpFirewallRulesGetOptionalParams + options?: IpFirewallRulesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, ruleName, options }, - getOperationSpec + getOperationSpec, ); } @@ -373,30 +381,29 @@ export class IpFirewallRulesImpl implements IpFirewallRules { resourceGroupName: string, workspaceName: string, request: ReplaceAllIpFirewallRulesRequest, - options?: IpFirewallRulesReplaceAllOptionalParams + options?: IpFirewallRulesReplaceAllOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IpFirewallRulesReplaceAllResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -405,8 +412,8 @@ export class IpFirewallRulesImpl implements IpFirewallRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -414,20 +421,23 @@ export class IpFirewallRulesImpl implements IpFirewallRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, request, options }, - replaceAllOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, request, options }, + spec: replaceAllOperationSpec, + }); + const poller = await createHttpPoller< + IpFirewallRulesReplaceAllResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -444,13 +454,13 @@ export class IpFirewallRulesImpl implements IpFirewallRules { resourceGroupName: string, workspaceName: string, request: ReplaceAllIpFirewallRulesRequest, - options?: IpFirewallRulesReplaceAllOptionalParams + options?: IpFirewallRulesReplaceAllOptionalParams, ): Promise { const poller = await this.beginReplaceAll( resourceGroupName, workspaceName, request, - options + options, ); return poller.pollUntilDone(); } @@ -466,11 +476,11 @@ export class IpFirewallRulesImpl implements IpFirewallRules { resourceGroupName: string, workspaceName: string, nextLink: string, - options?: IpFirewallRulesListByWorkspaceNextOptionalParams + options?: IpFirewallRulesListByWorkspaceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec + listByWorkspaceNextOperationSpec, ); } } @@ -478,47 +488,45 @@ export class IpFirewallRulesImpl implements IpFirewallRules { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IpFirewallRuleInfoListResult + bodyMapper: Mappers.IpFirewallRuleInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.IpFirewallRuleInfo + bodyMapper: Mappers.IpFirewallRuleInfo, }, 201: { - bodyMapper: Mappers.IpFirewallRuleInfo + bodyMapper: Mappers.IpFirewallRuleInfo, }, 202: { - bodyMapper: Mappers.IpFirewallRuleInfo + bodyMapper: Mappers.IpFirewallRuleInfo, }, 204: { - bodyMapper: Mappers.IpFirewallRuleInfo + bodyMapper: Mappers.IpFirewallRuleInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.ipFirewallRuleInfo, queryParameters: [Parameters.apiVersion], @@ -527,32 +535,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.ruleName + Parameters.ruleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.IpFirewallRuleInfo + bodyMapper: Mappers.IpFirewallRuleInfo, }, 201: { - bodyMapper: Mappers.IpFirewallRuleInfo + bodyMapper: Mappers.IpFirewallRuleInfo, }, 202: { - bodyMapper: Mappers.IpFirewallRuleInfo + bodyMapper: Mappers.IpFirewallRuleInfo, }, 204: { - bodyMapper: Mappers.IpFirewallRuleInfo + bodyMapper: Mappers.IpFirewallRuleInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -560,22 +567,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.ruleName + Parameters.ruleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IpFirewallRuleInfo + bodyMapper: Mappers.IpFirewallRuleInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -583,31 +589,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.ruleName + Parameters.ruleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const replaceAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/replaceAllIpFirewallRules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/replaceAllIpFirewallRules", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse + bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse, }, 201: { - bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse + bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse, }, 202: { - bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse + bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse, }, 204: { - bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse + bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.request1, queryParameters: [Parameters.apiVersion], @@ -615,30 +620,30 @@ const replaceAllOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IpFirewallRuleInfoListResult + bodyMapper: Mappers.IpFirewallRuleInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/keys.ts b/sdk/synapse/arm-synapse/src/operations/keys.ts index 9ba3fecc6c52..fed6fccba709 100644 --- a/sdk/synapse/arm-synapse/src/operations/keys.ts +++ b/sdk/synapse/arm-synapse/src/operations/keys.ts @@ -24,7 +24,7 @@ import { KeysCreateOrUpdateResponse, KeysDeleteOptionalParams, KeysDeleteResponse, - KeysListByWorkspaceNextResponse + KeysListByWorkspaceNextResponse, } from "../models"; /// @@ -49,12 +49,12 @@ export class KeysImpl implements Keys { public listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: KeysListByWorkspaceOptionalParams + options?: KeysListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByWorkspacePagingAll( resourceGroupName, workspaceName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class KeysImpl implements Keys { resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -81,7 +81,7 @@ export class KeysImpl implements Keys { resourceGroupName: string, workspaceName: string, options?: KeysListByWorkspaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: KeysListByWorkspaceResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class KeysImpl implements Keys { result = await this._listByWorkspace( resourceGroupName, workspaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -101,7 +101,7 @@ export class KeysImpl implements Keys { resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +113,12 @@ export class KeysImpl implements Keys { private async *listByWorkspacePagingAll( resourceGroupName: string, workspaceName: string, - options?: KeysListByWorkspaceOptionalParams + options?: KeysListByWorkspaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByWorkspacePagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -133,11 +133,11 @@ export class KeysImpl implements Keys { private _listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: KeysListByWorkspaceOptionalParams + options?: KeysListByWorkspaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + listByWorkspaceOperationSpec, ); } @@ -152,11 +152,11 @@ export class KeysImpl implements Keys { resourceGroupName: string, workspaceName: string, keyName: string, - options?: KeysGetOptionalParams + options?: KeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, keyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -173,11 +173,11 @@ export class KeysImpl implements Keys { workspaceName: string, keyName: string, keyProperties: Key, - options?: KeysCreateOrUpdateOptionalParams + options?: KeysCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, keyName, keyProperties, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -192,11 +192,11 @@ export class KeysImpl implements Keys { resourceGroupName: string, workspaceName: string, keyName: string, - options?: KeysDeleteOptionalParams + options?: KeysDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, keyName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -211,11 +211,11 @@ export class KeysImpl implements Keys { resourceGroupName: string, workspaceName: string, nextLink: string, - options?: KeysListByWorkspaceNextOptionalParams + options?: KeysListByWorkspaceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec + listByWorkspaceNextOperationSpec, ); } } @@ -223,38 +223,36 @@ export class KeysImpl implements Keys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KeyInfoListResult + bodyMapper: Mappers.KeyInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Key + bodyMapper: Mappers.Key, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -262,22 +260,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.keyName + Parameters.keyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Key + bodyMapper: Mappers.Key, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.keyProperties, queryParameters: [Parameters.apiVersion], @@ -286,24 +283,23 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.keyName + Parameters.keyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.Key + bodyMapper: Mappers.Key, }, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -311,29 +307,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.keyName + Parameters.keyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KeyInfoListResult + bodyMapper: Mappers.KeyInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoOperations.ts b/sdk/synapse/arm-synapse/src/operations/kustoOperations.ts index 4c1cb103f365..e976c913c3f5 100644 --- a/sdk/synapse/arm-synapse/src/operations/kustoOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/kustoOperations.ts @@ -18,7 +18,7 @@ import { KustoOperationsListNextOptionalParams, KustoOperationsListOptionalParams, KustoOperationsListResponse, - KustoOperationsListNextResponse + KustoOperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class KustoOperationsImpl implements KustoOperations { * @param options The options parameters. */ public list( - options?: KustoOperationsListOptionalParams + options?: KustoOperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class KustoOperationsImpl implements KustoOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: KustoOperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: KustoOperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class KustoOperationsImpl implements KustoOperations { } private async *listPagingAll( - options?: KustoOperationsListOptionalParams + options?: KustoOperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class KustoOperationsImpl implements KustoOperations { * @param options The options parameters. */ private _list( - options?: KustoOperationsListOptionalParams + options?: KustoOperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class KustoOperationsImpl implements KustoOperations { */ private _listNext( nextLink: string, - options?: KustoOperationsListNextOptionalParams + options?: KustoOperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolAttachedDatabaseConfigurations.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolAttachedDatabaseConfigurations.ts index 3fd10d5540e0..a4c7e1d5de13 100644 --- a/sdk/synapse/arm-synapse/src/operations/kustoPoolAttachedDatabaseConfigurations.ts +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolAttachedDatabaseConfigurations.ts @@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { AttachedDatabaseConfiguration, KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams, @@ -22,13 +26,14 @@ import { KustoPoolAttachedDatabaseConfigurationsGetResponse, KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams, KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse, - KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams + KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams, } from "../models"; /// /** Class containing KustoPoolAttachedDatabaseConfigurations operations. */ export class KustoPoolAttachedDatabaseConfigurationsImpl - implements KustoPoolAttachedDatabaseConfigurations { + implements KustoPoolAttachedDatabaseConfigurations +{ private readonly client: SynapseManagementClient; /** @@ -50,13 +55,13 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByKustoPoolPagingAll( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); return { next() { @@ -74,9 +79,9 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl kustoPoolName, resourceGroupName, options, - settings + settings, ); - } + }, }; } @@ -85,14 +90,14 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl kustoPoolName: string, resourceGroupName: string, options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse; result = await this._listByKustoPool( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); yield result.value || []; } @@ -101,13 +106,13 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByKustoPoolPagingPage( workspaceName, kustoPoolName, resourceGroupName, - options + options, )) { yield* page; } @@ -124,11 +129,11 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams, ): Promise { return this.client.sendOperationRequest( { workspaceName, kustoPoolName, resourceGroupName, options }, - listByKustoPoolOperationSpec + listByKustoPoolOperationSpec, ); } @@ -145,7 +150,7 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, - options?: KustoPoolAttachedDatabaseConfigurationsGetOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -153,9 +158,9 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -174,32 +179,29 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl attachedDatabaseConfigurationName: string, resourceGroupName: string, parameters: AttachedDatabaseConfiguration, - options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -208,8 +210,8 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -217,26 +219,29 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -257,7 +262,7 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl attachedDatabaseConfigurationName: string, resourceGroupName: string, parameters: AttachedDatabaseConfiguration, - options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( workspaceName, @@ -265,7 +270,7 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl attachedDatabaseConfigurationName, resourceGroupName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -283,25 +288,24 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, - options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams - ): Promise, void>> { + options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -310,8 +314,8 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -319,25 +323,25 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - options + options, }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -356,14 +360,14 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, - options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - options + options, ); return poller.pollUntilDone(); } @@ -372,16 +376,15 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByKustoPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AttachedDatabaseConfigurationListResult + bodyMapper: Mappers.AttachedDatabaseConfigurationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -389,22 +392,21 @@ const listByKustoPoolOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AttachedDatabaseConfiguration + bodyMapper: Mappers.AttachedDatabaseConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -413,33 +415,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.attachedDatabaseConfigurationName + Parameters.attachedDatabaseConfigurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AttachedDatabaseConfiguration + bodyMapper: Mappers.AttachedDatabaseConfiguration, }, 201: { - bodyMapper: Mappers.AttachedDatabaseConfiguration + bodyMapper: Mappers.AttachedDatabaseConfiguration, }, 202: { - bodyMapper: Mappers.AttachedDatabaseConfiguration + bodyMapper: Mappers.AttachedDatabaseConfiguration, }, 204: { - bodyMapper: Mappers.AttachedDatabaseConfiguration + bodyMapper: Mappers.AttachedDatabaseConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -447,15 +448,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.attachedDatabaseConfigurationName + Parameters.attachedDatabaseConfigurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -463,8 +463,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -473,8 +473,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.attachedDatabaseConfigurationName + Parameters.attachedDatabaseConfigurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolChildResource.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolChildResource.ts index 08a05495bcce..70d3aa52e4de 100644 --- a/sdk/synapse/arm-synapse/src/operations/kustoPoolChildResource.ts +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolChildResource.ts @@ -14,7 +14,7 @@ import { SynapseManagementClient } from "../synapseManagementClient"; import { DatabaseCheckNameRequest, KustoPoolChildResourceCheckNameAvailabilityOptionalParams, - KustoPoolChildResourceCheckNameAvailabilityResponse + KustoPoolChildResourceCheckNameAvailabilityResponse, } from "../models"; /** Class containing KustoPoolChildResource operations. */ @@ -42,7 +42,7 @@ export class KustoPoolChildResourceImpl implements KustoPoolChildResource { kustoPoolName: string, resourceGroupName: string, resourceName: DatabaseCheckNameRequest, - options?: KustoPoolChildResourceCheckNameAvailabilityOptionalParams + options?: KustoPoolChildResourceCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -50,9 +50,9 @@ export class KustoPoolChildResourceImpl implements KustoPoolChildResource { kustoPoolName, resourceGroupName, resourceName, - options + options, }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } } @@ -60,16 +60,15 @@ export class KustoPoolChildResourceImpl implements KustoPoolChildResource { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameResult + bodyMapper: Mappers.CheckNameResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.resourceName, queryParameters: [Parameters.apiVersion1], @@ -78,9 +77,9 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolDataConnections.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolDataConnections.ts index 5d46d7cc5fd1..fad6c6d74254 100644 --- a/sdk/synapse/arm-synapse/src/operations/kustoPoolDataConnections.ts +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolDataConnections.ts @@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DataConnectionUnion, KustoPoolDataConnectionsListByDatabaseOptionalParams, @@ -30,7 +34,7 @@ import { KustoPoolDataConnectionsCreateOrUpdateResponse, KustoPoolDataConnectionsUpdateOptionalParams, KustoPoolDataConnectionsUpdateResponse, - KustoPoolDataConnectionsDeleteOptionalParams + KustoPoolDataConnectionsDeleteOptionalParams, } from "../models"; /// @@ -59,14 +63,14 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { workspaceName: string, kustoPoolName: string, databaseName: string, - options?: KustoPoolDataConnectionsListByDatabaseOptionalParams + options?: KustoPoolDataConnectionsListByDatabaseOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByDatabasePagingAll( resourceGroupName, workspaceName, kustoPoolName, databaseName, - options + options, ); return { next() { @@ -85,9 +89,9 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName, databaseName, options, - settings + settings, ); - } + }, }; } @@ -97,7 +101,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName: string, databaseName: string, options?: KustoPoolDataConnectionsListByDatabaseOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: KustoPoolDataConnectionsListByDatabaseResponse; result = await this._listByDatabase( @@ -105,7 +109,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { workspaceName, kustoPoolName, databaseName, - options + options, ); yield result.value || []; } @@ -115,14 +119,14 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { workspaceName: string, kustoPoolName: string, databaseName: string, - options?: KustoPoolDataConnectionsListByDatabaseOptionalParams + options?: KustoPoolDataConnectionsListByDatabaseOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByDatabasePagingPage( resourceGroupName, workspaceName, kustoPoolName, databaseName, - options + options, )) { yield* page; } @@ -143,7 +147,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName: string, databaseName: string, dataConnectionName: DataConnectionCheckNameRequest, - options?: KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams + options?: KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -152,9 +156,9 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName, databaseName, dataConnectionName, - options + options, }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -173,32 +177,29 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName: string, databaseName: string, parameters: DataConnectionValidation, - options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams + options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams, ): Promise< - PollerLike< - PollOperationState< - KustoPoolDataConnectionsDataConnectionValidationResponse - >, + SimplePollerLike< + OperationState, KustoPoolDataConnectionsDataConnectionValidationResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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 +208,8 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -216,27 +217,30 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, - options + options, }, - dataConnectionValidationOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: dataConnectionValidationOperationSpec, + }); + const poller = await createHttpPoller< + KustoPoolDataConnectionsDataConnectionValidationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -257,7 +261,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName: string, databaseName: string, parameters: DataConnectionValidation, - options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams + options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams, ): Promise { const poller = await this.beginDataConnectionValidation( resourceGroupName, @@ -265,7 +269,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName, databaseName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -283,7 +287,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { workspaceName: string, kustoPoolName: string, databaseName: string, - options?: KustoPoolDataConnectionsListByDatabaseOptionalParams + options?: KustoPoolDataConnectionsListByDatabaseOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -291,9 +295,9 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { workspaceName, kustoPoolName, databaseName, - options + options, }, - listByDatabaseOperationSpec + listByDatabaseOperationSpec, ); } @@ -312,7 +316,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName: string, databaseName: string, dataConnectionName: string, - options?: KustoPoolDataConnectionsGetOptionalParams + options?: KustoPoolDataConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -321,9 +325,9 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName, databaseName, dataConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -344,30 +348,29 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, - options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams + options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolDataConnectionsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -376,8 +379,8 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -385,27 +388,30 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + KustoPoolDataConnectionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -428,7 +434,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, - options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams + options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -437,7 +443,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { databaseName, dataConnectionName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -459,30 +465,29 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, - options?: KustoPoolDataConnectionsUpdateOptionalParams + options?: KustoPoolDataConnectionsUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolDataConnectionsUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -491,8 +496,8 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -500,27 +505,30 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, - options + options, }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + KustoPoolDataConnectionsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -543,7 +551,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, - options?: KustoPoolDataConnectionsUpdateOptionalParams + options?: KustoPoolDataConnectionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -552,7 +560,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { databaseName, dataConnectionName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -572,25 +580,24 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName: string, databaseName: string, dataConnectionName: string, - options?: KustoPoolDataConnectionsDeleteOptionalParams - ): Promise, void>> { + options?: KustoPoolDataConnectionsDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -599,8 +606,8 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -608,26 +615,26 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - options + options, }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -648,7 +655,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName: string, databaseName: string, dataConnectionName: string, - options?: KustoPoolDataConnectionsDeleteOptionalParams + options?: KustoPoolDataConnectionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -656,7 +663,7 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { kustoPoolName, databaseName, dataConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -665,16 +672,15 @@ export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameResult + bodyMapper: Mappers.CheckNameResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.dataConnectionName, queryParameters: [Parameters.apiVersion1], @@ -684,34 +690,33 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.databaseName + Parameters.databaseName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const dataConnectionValidationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnectionValidation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnectionValidation", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DataConnectionValidationListResult + bodyMapper: Mappers.DataConnectionValidationListResult, }, 201: { - bodyMapper: Mappers.DataConnectionValidationListResult + bodyMapper: Mappers.DataConnectionValidationListResult, }, 202: { - bodyMapper: Mappers.DataConnectionValidationListResult + bodyMapper: Mappers.DataConnectionValidationListResult, }, 204: { - bodyMapper: Mappers.DataConnectionValidationListResult + bodyMapper: Mappers.DataConnectionValidationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -719,23 +724,22 @@ const dataConnectionValidationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.databaseName + Parameters.databaseName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataConnectionListResult + bodyMapper: Mappers.DataConnectionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -744,22 +748,21 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.databaseName + Parameters.databaseName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataConnection + bodyMapper: Mappers.DataConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -769,33 +772,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.kustoPoolName1, Parameters.databaseName, - Parameters.dataConnectionName1 + Parameters.dataConnectionName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DataConnection + bodyMapper: Mappers.DataConnection, }, 201: { - bodyMapper: Mappers.DataConnection + bodyMapper: Mappers.DataConnection, }, 202: { - bodyMapper: Mappers.DataConnection + bodyMapper: Mappers.DataConnection, }, 204: { - bodyMapper: Mappers.DataConnection + bodyMapper: Mappers.DataConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -804,34 +806,33 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.kustoPoolName1, Parameters.databaseName, - Parameters.dataConnectionName1 + Parameters.dataConnectionName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DataConnection + bodyMapper: Mappers.DataConnection, }, 201: { - bodyMapper: Mappers.DataConnection + bodyMapper: Mappers.DataConnection, }, 202: { - bodyMapper: Mappers.DataConnection + bodyMapper: Mappers.DataConnection, }, 204: { - bodyMapper: Mappers.DataConnection + bodyMapper: Mappers.DataConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -840,15 +841,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.kustoPoolName1, Parameters.databaseName, - Parameters.dataConnectionName1 + Parameters.dataConnectionName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -856,8 +856,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -867,8 +867,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.kustoPoolName1, Parameters.databaseName, - Parameters.dataConnectionName1 + Parameters.dataConnectionName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabasePrincipalAssignments.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabasePrincipalAssignments.ts index 984e77e766cf..d9bc968572b4 100644 --- a/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabasePrincipalAssignments.ts +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabasePrincipalAssignments.ts @@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DatabasePrincipalAssignment, KustoPoolDatabasePrincipalAssignmentsListOptionalParams, @@ -25,13 +29,14 @@ import { KustoPoolDatabasePrincipalAssignmentsGetResponse, KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams, KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse, - KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams + KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams, } from "../models"; /// /** Class containing KustoPoolDatabasePrincipalAssignments operations. */ export class KustoPoolDatabasePrincipalAssignmentsImpl - implements KustoPoolDatabasePrincipalAssignments { + implements KustoPoolDatabasePrincipalAssignments +{ private readonly client: SynapseManagementClient; /** @@ -55,14 +60,14 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl kustoPoolName: string, databaseName: string, resourceGroupName: string, - options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( workspaceName, kustoPoolName, databaseName, resourceGroupName, - options + options, ); return { next() { @@ -81,9 +86,9 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl databaseName, resourceGroupName, options, - settings + settings, ); - } + }, }; } @@ -93,7 +98,7 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl databaseName: string, resourceGroupName: string, options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: KustoPoolDatabasePrincipalAssignmentsListResponse; result = await this._list( @@ -101,7 +106,7 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl kustoPoolName, databaseName, resourceGroupName, - options + options, ); yield result.value || []; } @@ -111,14 +116,14 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl kustoPoolName: string, databaseName: string, resourceGroupName: string, - options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( workspaceName, kustoPoolName, databaseName, resourceGroupName, - options + options, )) { yield* page; } @@ -139,10 +144,8 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl databaseName: string, resourceGroupName: string, principalAssignmentName: DatabasePrincipalAssignmentCheckNameRequest, - options?: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams - ): Promise< - KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityResponse - > { + options?: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams, + ): Promise { return this.client.sendOperationRequest( { workspaceName, @@ -150,9 +153,9 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl databaseName, resourceGroupName, principalAssignmentName, - options + options, }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -169,7 +172,7 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl kustoPoolName: string, databaseName: string, resourceGroupName: string, - options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -177,9 +180,9 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl kustoPoolName, databaseName, resourceGroupName, - options + options, }, - listOperationSpec + listOperationSpec, ); } @@ -198,7 +201,7 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl databaseName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolDatabasePrincipalAssignmentsGetOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -207,9 +210,9 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl databaseName, principalAssignmentName, resourceGroupName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -230,32 +233,29 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl principalAssignmentName: string, resourceGroupName: string, parameters: DatabasePrincipalAssignment, - options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -264,8 +264,8 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -273,27 +273,30 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -316,7 +319,7 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl principalAssignmentName: string, resourceGroupName: string, parameters: DatabasePrincipalAssignment, - options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( workspaceName, @@ -325,7 +328,7 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl principalAssignmentName, resourceGroupName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -345,25 +348,24 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl databaseName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams - ): Promise, void>> { + options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -372,8 +374,8 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -381,26 +383,26 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - options + options, }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -421,7 +423,7 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl databaseName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( workspaceName, @@ -429,7 +431,7 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl databaseName, principalAssignmentName, resourceGroupName, - options + options, ); return poller.pollUntilDone(); } @@ -438,16 +440,15 @@ export class KustoPoolDatabasePrincipalAssignmentsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameResult + bodyMapper: Mappers.CheckNameResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.principalAssignmentName2, queryParameters: [Parameters.apiVersion1], @@ -457,23 +458,22 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.databaseName + Parameters.databaseName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabasePrincipalAssignmentListResult + bodyMapper: Mappers.DatabasePrincipalAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -482,22 +482,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.databaseName + Parameters.databaseName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabasePrincipalAssignment + bodyMapper: Mappers.DatabasePrincipalAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -507,33 +506,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.kustoPoolName1, Parameters.databaseName, - Parameters.principalAssignmentName1 + Parameters.principalAssignmentName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DatabasePrincipalAssignment + bodyMapper: Mappers.DatabasePrincipalAssignment, }, 201: { - bodyMapper: Mappers.DatabasePrincipalAssignment + bodyMapper: Mappers.DatabasePrincipalAssignment, }, 202: { - bodyMapper: Mappers.DatabasePrincipalAssignment + bodyMapper: Mappers.DatabasePrincipalAssignment, }, 204: { - bodyMapper: Mappers.DatabasePrincipalAssignment + bodyMapper: Mappers.DatabasePrincipalAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -542,15 +540,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.kustoPoolName1, Parameters.databaseName, - Parameters.principalAssignmentName1 + Parameters.principalAssignmentName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", httpMethod: "DELETE", responses: { 200: {}, @@ -558,8 +555,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -569,8 +566,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.kustoPoolName1, Parameters.databaseName, - Parameters.principalAssignmentName1 + Parameters.principalAssignmentName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabases.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabases.ts index d3cd222e6b1d..cf928b991a6b 100644 --- a/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabases.ts +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabases.ts @@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DatabaseUnion, KustoPoolDatabasesListByKustoPoolOptionalParams, @@ -24,7 +28,7 @@ import { KustoPoolDatabasesCreateOrUpdateResponse, KustoPoolDatabasesUpdateOptionalParams, KustoPoolDatabasesUpdateResponse, - KustoPoolDatabasesDeleteOptionalParams + KustoPoolDatabasesDeleteOptionalParams, } from "../models"; /// @@ -51,13 +55,13 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { resourceGroupName: string, workspaceName: string, kustoPoolName: string, - options?: KustoPoolDatabasesListByKustoPoolOptionalParams + options?: KustoPoolDatabasesListByKustoPoolOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByKustoPoolPagingAll( resourceGroupName, workspaceName, kustoPoolName, - options + options, ); return { next() { @@ -75,9 +79,9 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { workspaceName, kustoPoolName, options, - settings + settings, ); - } + }, }; } @@ -86,14 +90,14 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { workspaceName: string, kustoPoolName: string, options?: KustoPoolDatabasesListByKustoPoolOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: KustoPoolDatabasesListByKustoPoolResponse; result = await this._listByKustoPool( resourceGroupName, workspaceName, kustoPoolName, - options + options, ); yield result.value || []; } @@ -102,13 +106,13 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { resourceGroupName: string, workspaceName: string, kustoPoolName: string, - options?: KustoPoolDatabasesListByKustoPoolOptionalParams + options?: KustoPoolDatabasesListByKustoPoolOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByKustoPoolPagingPage( resourceGroupName, workspaceName, kustoPoolName, - options + options, )) { yield* page; } @@ -125,11 +129,11 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { resourceGroupName: string, workspaceName: string, kustoPoolName: string, - options?: KustoPoolDatabasesListByKustoPoolOptionalParams + options?: KustoPoolDatabasesListByKustoPoolOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, kustoPoolName, options }, - listByKustoPoolOperationSpec + listByKustoPoolOperationSpec, ); } @@ -146,7 +150,7 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { workspaceName: string, kustoPoolName: string, databaseName: string, - options?: KustoPoolDatabasesGetOptionalParams + options?: KustoPoolDatabasesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -154,9 +158,9 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { workspaceName, kustoPoolName, databaseName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -175,30 +179,29 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, - options?: KustoPoolDatabasesCreateOrUpdateOptionalParams + options?: KustoPoolDatabasesCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolDatabasesCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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 +210,8 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -216,26 +219,29 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + KustoPoolDatabasesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -256,7 +262,7 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, - options?: KustoPoolDatabasesCreateOrUpdateOptionalParams + options?: KustoPoolDatabasesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -264,7 +270,7 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { kustoPoolName, databaseName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -284,30 +290,29 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, - options?: KustoPoolDatabasesUpdateOptionalParams + options?: KustoPoolDatabasesUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolDatabasesUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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 +321,8 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -325,26 +330,29 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, - options + options, }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + KustoPoolDatabasesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -365,7 +373,7 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, - options?: KustoPoolDatabasesUpdateOptionalParams + options?: KustoPoolDatabasesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -373,7 +381,7 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { kustoPoolName, databaseName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -391,25 +399,24 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { workspaceName: string, kustoPoolName: string, databaseName: string, - options?: KustoPoolDatabasesDeleteOptionalParams - ): Promise, void>> { + options?: KustoPoolDatabasesDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -418,8 +425,8 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -427,25 +434,25 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, kustoPoolName, databaseName, - options + options, }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -464,14 +471,14 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { workspaceName: string, kustoPoolName: string, databaseName: string, - options?: KustoPoolDatabasesDeleteOptionalParams + options?: KustoPoolDatabasesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, kustoPoolName, databaseName, - options + options, ); return poller.pollUntilDone(); } @@ -480,16 +487,15 @@ export class KustoPoolDatabasesImpl implements KustoPoolDatabases { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByKustoPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabaseListResult + bodyMapper: Mappers.DatabaseListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -497,22 +503,21 @@ const listByKustoPoolOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Database + bodyMapper: Mappers.Database, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -521,33 +526,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.databaseName + Parameters.databaseName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Database + bodyMapper: Mappers.Database, }, 201: { - bodyMapper: Mappers.Database + bodyMapper: Mappers.Database, }, 202: { - bodyMapper: Mappers.Database + bodyMapper: Mappers.Database, }, 204: { - bodyMapper: Mappers.Database + bodyMapper: Mappers.Database, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -555,34 +559,33 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.databaseName + Parameters.databaseName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Database + bodyMapper: Mappers.Database, }, 201: { - bodyMapper: Mappers.Database + bodyMapper: Mappers.Database, }, 202: { - bodyMapper: Mappers.Database + bodyMapper: Mappers.Database, }, 204: { - bodyMapper: Mappers.Database + bodyMapper: Mappers.Database, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -590,15 +593,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.databaseName + Parameters.databaseName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", httpMethod: "DELETE", responses: { 200: {}, @@ -606,8 +608,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -616,8 +618,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.databaseName + Parameters.databaseName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolPrincipalAssignments.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolPrincipalAssignments.ts index fc4e3a86ab74..d5b31cc9db7a 100644 --- a/sdk/synapse/arm-synapse/src/operations/kustoPoolPrincipalAssignments.ts +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolPrincipalAssignments.ts @@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ClusterPrincipalAssignment, KustoPoolPrincipalAssignmentsListOptionalParams, @@ -25,13 +29,14 @@ import { KustoPoolPrincipalAssignmentsGetResponse, KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams, KustoPoolPrincipalAssignmentsCreateOrUpdateResponse, - KustoPoolPrincipalAssignmentsDeleteOptionalParams + KustoPoolPrincipalAssignmentsDeleteOptionalParams, } from "../models"; /// /** Class containing KustoPoolPrincipalAssignments operations. */ export class KustoPoolPrincipalAssignmentsImpl - implements KustoPoolPrincipalAssignments { + implements KustoPoolPrincipalAssignments +{ private readonly client: SynapseManagementClient; /** @@ -53,13 +58,13 @@ export class KustoPoolPrincipalAssignmentsImpl workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolPrincipalAssignmentsListOptionalParams + options?: KustoPoolPrincipalAssignmentsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); return { next() { @@ -77,9 +82,9 @@ export class KustoPoolPrincipalAssignmentsImpl kustoPoolName, resourceGroupName, options, - settings + settings, ); - } + }, }; } @@ -88,14 +93,14 @@ export class KustoPoolPrincipalAssignmentsImpl kustoPoolName: string, resourceGroupName: string, options?: KustoPoolPrincipalAssignmentsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: KustoPoolPrincipalAssignmentsListResponse; result = await this._list( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); yield result.value || []; } @@ -104,13 +109,13 @@ export class KustoPoolPrincipalAssignmentsImpl workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolPrincipalAssignmentsListOptionalParams + options?: KustoPoolPrincipalAssignmentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( workspaceName, kustoPoolName, resourceGroupName, - options + options, )) { yield* page; } @@ -129,7 +134,7 @@ export class KustoPoolPrincipalAssignmentsImpl kustoPoolName: string, resourceGroupName: string, principalAssignmentName: ClusterPrincipalAssignmentCheckNameRequest, - options?: KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams + options?: KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -137,9 +142,9 @@ export class KustoPoolPrincipalAssignmentsImpl kustoPoolName, resourceGroupName, principalAssignmentName, - options + options, }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -154,11 +159,11 @@ export class KustoPoolPrincipalAssignmentsImpl workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolPrincipalAssignmentsListOptionalParams + options?: KustoPoolPrincipalAssignmentsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { workspaceName, kustoPoolName, resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -175,7 +180,7 @@ export class KustoPoolPrincipalAssignmentsImpl kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolPrincipalAssignmentsGetOptionalParams + options?: KustoPoolPrincipalAssignmentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -183,9 +188,9 @@ export class KustoPoolPrincipalAssignmentsImpl kustoPoolName, principalAssignmentName, resourceGroupName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -204,30 +209,29 @@ export class KustoPoolPrincipalAssignmentsImpl principalAssignmentName: string, resourceGroupName: string, parameters: ClusterPrincipalAssignment, - options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams + options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolPrincipalAssignmentsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -236,8 +240,8 @@ export class KustoPoolPrincipalAssignmentsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -245,26 +249,29 @@ export class KustoPoolPrincipalAssignmentsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + KustoPoolPrincipalAssignmentsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -285,7 +292,7 @@ export class KustoPoolPrincipalAssignmentsImpl principalAssignmentName: string, resourceGroupName: string, parameters: ClusterPrincipalAssignment, - options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams + options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( workspaceName, @@ -293,7 +300,7 @@ export class KustoPoolPrincipalAssignmentsImpl principalAssignmentName, resourceGroupName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -311,25 +318,24 @@ export class KustoPoolPrincipalAssignmentsImpl kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams - ): Promise, void>> { + options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -338,8 +344,8 @@ export class KustoPoolPrincipalAssignmentsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -347,25 +353,25 @@ export class KustoPoolPrincipalAssignmentsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, - options + options, }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -384,14 +390,14 @@ export class KustoPoolPrincipalAssignmentsImpl kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams + options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, - options + options, ); return poller.pollUntilDone(); } @@ -400,16 +406,15 @@ export class KustoPoolPrincipalAssignmentsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkPrincipalAssignmentNameAvailability", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkPrincipalAssignmentNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameResult + bodyMapper: Mappers.CheckNameResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.principalAssignmentName, queryParameters: [Parameters.apiVersion1], @@ -418,23 +423,22 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterPrincipalAssignmentListResult + bodyMapper: Mappers.ClusterPrincipalAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -442,22 +446,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterPrincipalAssignment + bodyMapper: Mappers.ClusterPrincipalAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -466,33 +469,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.principalAssignmentName1 + Parameters.principalAssignmentName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ClusterPrincipalAssignment + bodyMapper: Mappers.ClusterPrincipalAssignment, }, 201: { - bodyMapper: Mappers.ClusterPrincipalAssignment + bodyMapper: Mappers.ClusterPrincipalAssignment, }, 202: { - bodyMapper: Mappers.ClusterPrincipalAssignment + bodyMapper: Mappers.ClusterPrincipalAssignment, }, 204: { - bodyMapper: Mappers.ClusterPrincipalAssignment + bodyMapper: Mappers.ClusterPrincipalAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -500,15 +502,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.principalAssignmentName1 + Parameters.principalAssignmentName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", httpMethod: "DELETE", responses: { 200: {}, @@ -516,8 +517,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -526,8 +527,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.kustoPoolName1, - Parameters.principalAssignmentName1 + Parameters.principalAssignmentName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolPrivateLinkResourcesOperations.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolPrivateLinkResourcesOperations.ts index 05774a07cc0a..7e27d5c1f281 100644 --- a/sdk/synapse/arm-synapse/src/operations/kustoPoolPrivateLinkResourcesOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolPrivateLinkResourcesOperations.ts @@ -15,13 +15,14 @@ import { SynapseManagementClient } from "../synapseManagementClient"; import { KustoPoolPrivateLinkResources, KustoPoolPrivateLinkResourcesListOptionalParams, - KustoPoolPrivateLinkResourcesListResponse + KustoPoolPrivateLinkResourcesListResponse, } from "../models"; /// /** Class containing KustoPoolPrivateLinkResourcesOperations operations. */ export class KustoPoolPrivateLinkResourcesOperationsImpl - implements KustoPoolPrivateLinkResourcesOperations { + implements KustoPoolPrivateLinkResourcesOperations +{ private readonly client: SynapseManagementClient; /** @@ -43,13 +44,13 @@ export class KustoPoolPrivateLinkResourcesOperationsImpl resourceGroupName: string, workspaceName: string, kustoPoolName: string, - options?: KustoPoolPrivateLinkResourcesListOptionalParams + options?: KustoPoolPrivateLinkResourcesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, kustoPoolName, - options + options, ); return { next() { @@ -67,9 +68,9 @@ export class KustoPoolPrivateLinkResourcesOperationsImpl workspaceName, kustoPoolName, options, - settings + settings, ); - } + }, }; } @@ -78,14 +79,14 @@ export class KustoPoolPrivateLinkResourcesOperationsImpl workspaceName: string, kustoPoolName: string, options?: KustoPoolPrivateLinkResourcesListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: KustoPoolPrivateLinkResourcesListResponse; result = await this._list( resourceGroupName, workspaceName, kustoPoolName, - options + options, ); yield result.value || []; } @@ -94,13 +95,13 @@ export class KustoPoolPrivateLinkResourcesOperationsImpl resourceGroupName: string, workspaceName: string, kustoPoolName: string, - options?: KustoPoolPrivateLinkResourcesListOptionalParams + options?: KustoPoolPrivateLinkResourcesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, kustoPoolName, - options + options, )) { yield* page; } @@ -117,11 +118,11 @@ export class KustoPoolPrivateLinkResourcesOperationsImpl resourceGroupName: string, workspaceName: string, kustoPoolName: string, - options?: KustoPoolPrivateLinkResourcesListOptionalParams + options?: KustoPoolPrivateLinkResourcesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, kustoPoolName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -129,16 +130,15 @@ export class KustoPoolPrivateLinkResourcesOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResources + bodyMapper: Mappers.PrivateLinkResources, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -146,8 +146,8 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPools.ts b/sdk/synapse/arm-synapse/src/operations/kustoPools.ts index bb7ca735196c..bdfcb37e4b5e 100644 --- a/sdk/synapse/arm-synapse/src/operations/kustoPools.ts +++ b/sdk/synapse/arm-synapse/src/operations/kustoPools.ts @@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { SkuDescription, KustoPoolsListSkusOptionalParams, @@ -46,7 +50,7 @@ import { LanguageExtensionsList, KustoPoolsAddLanguageExtensionsOptionalParams, KustoPoolsRemoveLanguageExtensionsOptionalParams, - KustoPoolsDetachFollowerDatabasesOptionalParams + KustoPoolsDetachFollowerDatabasesOptionalParams, } from "../models"; /// @@ -67,7 +71,7 @@ export class KustoPoolsImpl implements KustoPools { * @param options The options parameters. */ public listSkus( - options?: KustoPoolsListSkusOptionalParams + options?: KustoPoolsListSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSkusPagingAll(options); return { @@ -82,13 +86,13 @@ export class KustoPoolsImpl implements KustoPools { throw new Error("maxPageSize is not supported by this operation."); } return this.listSkusPagingPage(options, settings); - } + }, }; } private async *listSkusPagingPage( options?: KustoPoolsListSkusOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: KustoPoolsListSkusResponse; result = await this._listSkus(options); @@ -96,7 +100,7 @@ export class KustoPoolsImpl implements KustoPools { } private async *listSkusPagingAll( - options?: KustoPoolsListSkusOptionalParams + options?: KustoPoolsListSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSkusPagingPage(options)) { yield* page; @@ -114,13 +118,13 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListSkusByResourceOptionalParams + options?: KustoPoolsListSkusByResourceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSkusByResourcePagingAll( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); return { next() { @@ -138,9 +142,9 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName, resourceGroupName, options, - settings + settings, ); - } + }, }; } @@ -149,14 +153,14 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsListSkusByResourceOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: KustoPoolsListSkusByResourceResponse; result = await this._listSkusByResource( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); yield result.value || []; } @@ -165,13 +169,13 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListSkusByResourceOptionalParams + options?: KustoPoolsListSkusByResourceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSkusByResourcePagingPage( workspaceName, kustoPoolName, resourceGroupName, - options + options, )) { yield* page; } @@ -188,13 +192,13 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListLanguageExtensionsOptionalParams + options?: KustoPoolsListLanguageExtensionsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listLanguageExtensionsPagingAll( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); return { next() { @@ -212,9 +216,9 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName, resourceGroupName, options, - settings + settings, ); - } + }, }; } @@ -223,14 +227,14 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsListLanguageExtensionsOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: KustoPoolsListLanguageExtensionsResponse; result = await this._listLanguageExtensions( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); yield result.value || []; } @@ -239,13 +243,13 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListLanguageExtensionsOptionalParams + options?: KustoPoolsListLanguageExtensionsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listLanguageExtensionsPagingPage( workspaceName, kustoPoolName, resourceGroupName, - options + options, )) { yield* page; } @@ -263,13 +267,13 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListFollowerDatabasesOptionalParams + options?: KustoPoolsListFollowerDatabasesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listFollowerDatabasesPagingAll( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); return { next() { @@ -287,9 +291,9 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName, resourceGroupName, options, - settings + settings, ); - } + }, }; } @@ -298,14 +302,14 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsListFollowerDatabasesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: KustoPoolsListFollowerDatabasesResponse; result = await this._listFollowerDatabases( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); yield result.value || []; } @@ -314,13 +318,13 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListFollowerDatabasesOptionalParams + options?: KustoPoolsListFollowerDatabasesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listFollowerDatabasesPagingPage( workspaceName, kustoPoolName, resourceGroupName, - options + options, )) { yield* page; } @@ -331,7 +335,7 @@ export class KustoPoolsImpl implements KustoPools { * @param options The options parameters. */ private _listSkus( - options?: KustoPoolsListSkusOptionalParams + options?: KustoPoolsListSkusOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listSkusOperationSpec); } @@ -345,11 +349,11 @@ export class KustoPoolsImpl implements KustoPools { checkNameAvailability( location: string, kustoPoolName: KustoPoolCheckNameRequest, - options?: KustoPoolsCheckNameAvailabilityOptionalParams + options?: KustoPoolsCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, kustoPoolName, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -362,11 +366,11 @@ export class KustoPoolsImpl implements KustoPools { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: KustoPoolsListByWorkspaceOptionalParams + options?: KustoPoolsListByWorkspaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + listByWorkspaceOperationSpec, ); } @@ -381,11 +385,11 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsGetOptionalParams + options?: KustoPoolsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { workspaceName, kustoPoolName, resourceGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -402,30 +406,29 @@ export class KustoPoolsImpl implements KustoPools { resourceGroupName: string, kustoPoolName: string, parameters: KustoPool, - options?: KustoPoolsCreateOrUpdateOptionalParams + options?: KustoPoolsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -434,8 +437,8 @@ export class KustoPoolsImpl implements KustoPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -443,19 +446,28 @@ export class KustoPoolsImpl implements KustoPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { workspaceName, resourceGroupName, kustoPoolName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { + workspaceName, + resourceGroupName, + kustoPoolName, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + KustoPoolsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -474,14 +486,14 @@ export class KustoPoolsImpl implements KustoPools { resourceGroupName: string, kustoPoolName: string, parameters: KustoPool, - options?: KustoPoolsCreateOrUpdateOptionalParams + options?: KustoPoolsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( workspaceName, resourceGroupName, kustoPoolName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -499,30 +511,29 @@ export class KustoPoolsImpl implements KustoPools { resourceGroupName: string, kustoPoolName: string, parameters: KustoPoolUpdate, - options?: KustoPoolsUpdateOptionalParams + options?: KustoPoolsUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolsUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -531,8 +542,8 @@ export class KustoPoolsImpl implements KustoPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -540,19 +551,28 @@ export class KustoPoolsImpl implements KustoPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { workspaceName, resourceGroupName, kustoPoolName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { + workspaceName, + resourceGroupName, + kustoPoolName, + parameters, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + KustoPoolsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -571,14 +591,14 @@ export class KustoPoolsImpl implements KustoPools { resourceGroupName: string, kustoPoolName: string, parameters: KustoPoolUpdate, - options?: KustoPoolsUpdateOptionalParams + options?: KustoPoolsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( workspaceName, resourceGroupName, kustoPoolName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -594,25 +614,24 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, resourceGroupName: string, kustoPoolName: string, - options?: KustoPoolsDeleteOptionalParams - ): Promise, void>> { + options?: KustoPoolsDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -621,8 +640,8 @@ export class KustoPoolsImpl implements KustoPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -630,19 +649,19 @@ export class KustoPoolsImpl implements KustoPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { workspaceName, resourceGroupName, kustoPoolName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, resourceGroupName, kustoPoolName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -659,13 +678,13 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, resourceGroupName: string, kustoPoolName: string, - options?: KustoPoolsDeleteOptionalParams + options?: KustoPoolsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( workspaceName, resourceGroupName, kustoPoolName, - options + options, ); return poller.pollUntilDone(); } @@ -681,25 +700,24 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsStopOptionalParams - ): Promise, void>> { + options?: KustoPoolsStopOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -708,8 +726,8 @@ export class KustoPoolsImpl implements KustoPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -717,19 +735,19 @@ export class KustoPoolsImpl implements KustoPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { workspaceName, kustoPoolName, resourceGroupName, options }, - stopOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, kustoPoolName, resourceGroupName, options }, + spec: stopOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -746,13 +764,13 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsStopOptionalParams + options?: KustoPoolsStopOptionalParams, ): Promise { const poller = await this.beginStop( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); return poller.pollUntilDone(); } @@ -768,25 +786,24 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsStartOptionalParams - ): Promise, void>> { + options?: KustoPoolsStartOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -795,8 +812,8 @@ export class KustoPoolsImpl implements KustoPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -804,19 +821,19 @@ export class KustoPoolsImpl implements KustoPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { workspaceName, kustoPoolName, resourceGroupName, options }, - startOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, kustoPoolName, resourceGroupName, options }, + spec: startOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -833,13 +850,13 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsStartOptionalParams + options?: KustoPoolsStartOptionalParams, ): Promise { const poller = await this.beginStart( workspaceName, kustoPoolName, resourceGroupName, - options + options, ); return poller.pollUntilDone(); } @@ -855,11 +872,11 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListSkusByResourceOptionalParams + options?: KustoPoolsListSkusByResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { workspaceName, kustoPoolName, resourceGroupName, options }, - listSkusByResourceOperationSpec + listSkusByResourceOperationSpec, ); } @@ -874,11 +891,11 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListLanguageExtensionsOptionalParams + options?: KustoPoolsListLanguageExtensionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { workspaceName, kustoPoolName, resourceGroupName, options }, - listLanguageExtensionsOperationSpec + listLanguageExtensionsOperationSpec, ); } @@ -895,25 +912,24 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: LanguageExtensionsList, - options?: KustoPoolsAddLanguageExtensionsOptionalParams - ): Promise, void>> { + options?: KustoPoolsAddLanguageExtensionsOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -922,8 +938,8 @@ export class KustoPoolsImpl implements KustoPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -931,25 +947,25 @@ export class KustoPoolsImpl implements KustoPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, - options + options, }, - addLanguageExtensionsOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: addLanguageExtensionsOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -968,14 +984,14 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: LanguageExtensionsList, - options?: KustoPoolsAddLanguageExtensionsOptionalParams + options?: KustoPoolsAddLanguageExtensionsOptionalParams, ): Promise { const poller = await this.beginAddLanguageExtensions( workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, - options + options, ); return poller.pollUntilDone(); } @@ -993,25 +1009,24 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName: string, resourceGroupName: string, languageExtensionsToRemove: LanguageExtensionsList, - options?: KustoPoolsRemoveLanguageExtensionsOptionalParams - ): Promise, void>> { + options?: KustoPoolsRemoveLanguageExtensionsOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -1020,8 +1035,8 @@ export class KustoPoolsImpl implements KustoPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1029,25 +1044,25 @@ export class KustoPoolsImpl implements KustoPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, - options + options, }, - removeLanguageExtensionsOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: removeLanguageExtensionsOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1066,14 +1081,14 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName: string, resourceGroupName: string, languageExtensionsToRemove: LanguageExtensionsList, - options?: KustoPoolsRemoveLanguageExtensionsOptionalParams + options?: KustoPoolsRemoveLanguageExtensionsOptionalParams, ): Promise { const poller = await this.beginRemoveLanguageExtensions( workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, - options + options, ); return poller.pollUntilDone(); } @@ -1090,11 +1105,11 @@ export class KustoPoolsImpl implements KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListFollowerDatabasesOptionalParams + options?: KustoPoolsListFollowerDatabasesOptionalParams, ): Promise { return this.client.sendOperationRequest( { workspaceName, kustoPoolName, resourceGroupName, options }, - listFollowerDatabasesOperationSpec + listFollowerDatabasesOperationSpec, ); } @@ -1111,25 +1126,24 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName: string, resourceGroupName: string, followerDatabaseToRemove: FollowerDatabaseDefinition, - options?: KustoPoolsDetachFollowerDatabasesOptionalParams - ): Promise, void>> { + options?: KustoPoolsDetachFollowerDatabasesOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -1138,8 +1152,8 @@ export class KustoPoolsImpl implements KustoPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1147,25 +1161,25 @@ export class KustoPoolsImpl implements KustoPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, - options + options, }, - detachFollowerDatabasesOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: detachFollowerDatabasesOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1184,14 +1198,14 @@ export class KustoPoolsImpl implements KustoPools { kustoPoolName: string, resourceGroupName: string, followerDatabaseToRemove: FollowerDatabaseDefinition, - options?: KustoPoolsDetachFollowerDatabasesOptionalParams + options?: KustoPoolsDetachFollowerDatabasesOptionalParams, ): Promise { const poller = await this.beginDetachFollowerDatabases( workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, - options + options, ); return poller.pollUntilDone(); } @@ -1204,73 +1218,70 @@ const listSkusOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SkuDescriptionList + bodyMapper: Mappers.SkuDescriptionList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/locations/{location}/kustoPoolCheckNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/locations/{location}/kustoPoolCheckNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameResult + bodyMapper: Mappers.CheckNameResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.kustoPoolName, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KustoPoolListResult + bodyMapper: Mappers.KustoPoolListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KustoPool + bodyMapper: Mappers.KustoPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1278,91 +1289,88 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.KustoPool + bodyMapper: Mappers.KustoPool, }, 201: { - bodyMapper: Mappers.KustoPool + bodyMapper: Mappers.KustoPool, }, 202: { - bodyMapper: Mappers.KustoPool + bodyMapper: Mappers.KustoPool, }, 204: { - bodyMapper: Mappers.KustoPool + bodyMapper: Mappers.KustoPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifNoneMatch, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.KustoPool + bodyMapper: Mappers.KustoPool, }, 201: { - bodyMapper: Mappers.KustoPool + bodyMapper: Mappers.KustoPool, }, 202: { - bodyMapper: Mappers.KustoPool + bodyMapper: Mappers.KustoPool, }, 204: { - bodyMapper: Mappers.KustoPool + bodyMapper: Mappers.KustoPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1370,8 +1378,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1379,14 +1387,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const stopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/stop", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/stop", httpMethod: "POST", responses: { 200: {}, @@ -1394,8 +1401,8 @@ const stopOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1403,14 +1410,13 @@ const stopOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/start", httpMethod: "POST", responses: { 200: {}, @@ -1418,8 +1424,8 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1427,22 +1433,21 @@ const startOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusByResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/skus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListResourceSkusResult + bodyMapper: Mappers.ListResourceSkusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1450,22 +1455,21 @@ const listSkusByResourceOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listLanguageExtensionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listLanguageExtensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listLanguageExtensions", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LanguageExtensionsList + bodyMapper: Mappers.LanguageExtensionsList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1473,14 +1477,13 @@ const listLanguageExtensionsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const addLanguageExtensionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/addLanguageExtensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/addLanguageExtensions", httpMethod: "POST", responses: { 200: {}, @@ -1488,8 +1491,8 @@ const addLanguageExtensionsOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.languageExtensionsToAdd, queryParameters: [Parameters.apiVersion1], @@ -1498,15 +1501,14 @@ const addLanguageExtensionsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const removeLanguageExtensionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/removeLanguageExtensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/removeLanguageExtensions", httpMethod: "POST", responses: { 200: {}, @@ -1514,8 +1516,8 @@ const removeLanguageExtensionsOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.languageExtensionsToRemove, queryParameters: [Parameters.apiVersion1], @@ -1524,23 +1526,22 @@ const removeLanguageExtensionsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listFollowerDatabasesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listFollowerDatabases", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listFollowerDatabases", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.FollowerDatabaseListResult + bodyMapper: Mappers.FollowerDatabaseListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1548,14 +1549,13 @@ const listFollowerDatabasesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const detachFollowerDatabasesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/detachFollowerDatabases", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/detachFollowerDatabases", httpMethod: "POST", responses: { 200: {}, @@ -1563,8 +1563,8 @@ const detachFollowerDatabasesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.followerDatabaseToRemove, queryParameters: [Parameters.apiVersion1], @@ -1573,9 +1573,9 @@ const detachFollowerDatabasesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.kustoPoolName1 + Parameters.kustoPoolName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/libraries.ts b/sdk/synapse/arm-synapse/src/operations/libraries.ts index 1795bd6eeeb6..16c856ac3258 100644 --- a/sdk/synapse/arm-synapse/src/operations/libraries.ts +++ b/sdk/synapse/arm-synapse/src/operations/libraries.ts @@ -18,7 +18,7 @@ import { LibrariesListByWorkspaceNextOptionalParams, LibrariesListByWorkspaceOptionalParams, LibrariesListByWorkspaceResponse, - LibrariesListByWorkspaceNextResponse + LibrariesListByWorkspaceNextResponse, } from "../models"; /// @@ -43,12 +43,12 @@ export class LibrariesImpl implements Libraries { public listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: LibrariesListByWorkspaceOptionalParams + options?: LibrariesListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByWorkspacePagingAll( resourceGroupName, workspaceName, - options + options, ); return { next() { @@ -65,9 +65,9 @@ export class LibrariesImpl implements Libraries { resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class LibrariesImpl implements Libraries { resourceGroupName: string, workspaceName: string, options?: LibrariesListByWorkspaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: LibrariesListByWorkspaceResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class LibrariesImpl implements Libraries { result = await this._listByWorkspace( resourceGroupName, workspaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -95,7 +95,7 @@ export class LibrariesImpl implements Libraries { resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class LibrariesImpl implements Libraries { private async *listByWorkspacePagingAll( resourceGroupName: string, workspaceName: string, - options?: LibrariesListByWorkspaceOptionalParams + options?: LibrariesListByWorkspaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByWorkspacePagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class LibrariesImpl implements Libraries { private _listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: LibrariesListByWorkspaceOptionalParams + options?: LibrariesListByWorkspaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + listByWorkspaceOperationSpec, ); } @@ -146,11 +146,11 @@ export class LibrariesImpl implements Libraries { resourceGroupName: string, workspaceName: string, nextLink: string, - options?: LibrariesListByWorkspaceNextOptionalParams + options?: LibrariesListByWorkspaceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec + listByWorkspaceNextOperationSpec, ); } } @@ -158,45 +158,44 @@ export class LibrariesImpl implements Libraries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LibraryListResponse + bodyMapper: Mappers.LibraryListResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LibraryListResponse + bodyMapper: Mappers.LibraryListResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/library.ts b/sdk/synapse/arm-synapse/src/operations/library.ts index dab4f01d6ac5..6554539c1a42 100644 --- a/sdk/synapse/arm-synapse/src/operations/library.ts +++ b/sdk/synapse/arm-synapse/src/operations/library.ts @@ -36,11 +36,11 @@ export class LibraryImpl implements Library { resourceGroupName: string, libraryName: string, workspaceName: string, - options?: LibraryGetOptionalParams + options?: LibraryGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, libraryName, workspaceName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -48,16 +48,15 @@ export class LibraryImpl implements Library { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries/{libraryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries/{libraryName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LibraryResource + bodyMapper: Mappers.LibraryResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -65,8 +64,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.libraryName + Parameters.libraryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/operations.ts b/sdk/synapse/arm-synapse/src/operations/operations.ts index dced66aef4d5..eb622ffca582 100644 --- a/sdk/synapse/arm-synapse/src/operations/operations.ts +++ b/sdk/synapse/arm-synapse/src/operations/operations.ts @@ -19,7 +19,7 @@ import { OperationsListResponse, OperationsGetLocationHeaderResultOptionalParams, OperationsGetAzureAsyncHeaderResultOptionalParams, - OperationsGetAzureAsyncHeaderResultResponse + OperationsGetAzureAsyncHeaderResultResponse, } from "../models"; /** Class containing Operations operations. */ @@ -41,11 +41,11 @@ export class OperationsImpl implements Operations { */ checkNameAvailability( request: CheckNameAvailabilityRequest, - options?: OperationsCheckNameAvailabilityOptionalParams + options?: OperationsCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { request, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -54,7 +54,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -70,11 +70,11 @@ export class OperationsImpl implements Operations { resourceGroupName: string, workspaceName: string, operationId: string, - options?: OperationsGetLocationHeaderResultOptionalParams + options?: OperationsGetLocationHeaderResultOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, operationId, options }, - getLocationHeaderResultOperationSpec + getLocationHeaderResultOperationSpec, ); } @@ -89,11 +89,11 @@ export class OperationsImpl implements Operations { resourceGroupName: string, workspaceName: string, operationId: string, - options?: OperationsGetAzureAsyncHeaderResultOptionalParams + options?: OperationsGetAzureAsyncHeaderResultOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, operationId, options }, - getAzureAsyncHeaderResultOperationSpec + getAzureAsyncHeaderResultOperationSpec, ); } } @@ -101,23 +101,22 @@ export class OperationsImpl implements Operations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResponse + bodyMapper: Mappers.CheckNameAvailabilityResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.request, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Synapse/operations", @@ -128,22 +127,21 @@ const listOperationSpec: coreClient.OperationSpec = { type: { name: "Sequence", element: { - type: { name: "Composite", className: "AvailableRpOperation" } - } - } - } + type: { name: "Composite", className: "AvailableRpOperation" }, + }, + }, + }, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const getLocationHeaderResultOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationResults/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationResults/{operationId}", httpMethod: "GET", responses: { 200: {}, @@ -151,8 +149,8 @@ const getLocationHeaderResultOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -160,23 +158,22 @@ const getLocationHeaderResultOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAzureAsyncHeaderResultOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationStatuses/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationStatuses/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationResource + bodyMapper: Mappers.OperationResource, }, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -184,8 +181,8 @@ const getAzureAsyncHeaderResultOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnections.ts b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnections.ts index 16f216734444..4aa799b385f8 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnections.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnections.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListNextOptionalParams, @@ -25,13 +29,14 @@ import { PrivateEndpointConnectionsCreateOptionalParams, PrivateEndpointConnectionsCreateResponse, PrivateEndpointConnectionsDeleteOptionalParams, - PrivateEndpointConnectionsListNextResponse + PrivateEndpointConnectionsListNextResponse, } from "../models"; /// /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections { + implements PrivateEndpointConnections +{ private readonly client: SynapseManagementClient; /** @@ -51,7 +56,7 @@ export class PrivateEndpointConnectionsImpl public list( resourceGroupName: string, workspaceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, workspaceName, options); return { @@ -69,9 +74,9 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -79,7 +84,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, workspaceName: string, options?: PrivateEndpointConnectionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionsListResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +100,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +112,12 @@ export class PrivateEndpointConnectionsImpl private async *listPagingAll( resourceGroupName: string, workspaceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -129,16 +134,16 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -155,30 +160,29 @@ export class PrivateEndpointConnectionsImpl workspaceName: string, privateEndpointConnectionName: string, request: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOptionalParams + options?: PrivateEndpointConnectionsCreateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionsCreateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -187,8 +191,8 @@ export class PrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -196,26 +200,29 @@ export class PrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, privateEndpointConnectionName, request, - options + options, }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOperationSpec, + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -234,14 +241,14 @@ export class PrivateEndpointConnectionsImpl workspaceName: string, privateEndpointConnectionName: string, request: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOptionalParams + options?: PrivateEndpointConnectionsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, workspaceName, privateEndpointConnectionName, request, - options + options, ); return poller.pollUntilDone(); } @@ -257,25 +264,24 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>> { + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -284,8 +290,8 @@ export class PrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -293,24 +299,24 @@ export class PrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, privateEndpointConnectionName, - options + options, }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -327,13 +333,13 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -347,11 +353,11 @@ export class PrivateEndpointConnectionsImpl private _list( resourceGroupName: string, workspaceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -366,11 +372,11 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, workspaceName: string, nextLink: string, - options?: PrivateEndpointConnectionsListNextOptionalParams + options?: PrivateEndpointConnectionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -378,16 +384,15 @@ export class PrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -395,31 +400,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.request2, queryParameters: [Parameters.apiVersion], @@ -428,15 +432,14 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -444,8 +447,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -453,51 +456,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionList + bodyMapper: Mappers.PrivateEndpointConnectionList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionList + bodyMapper: Mappers.PrivateEndpointConnectionList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts index bea89033072d..89c985972077 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts @@ -20,13 +20,14 @@ import { PrivateEndpointConnectionsPrivateLinkHubListResponse, PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams, PrivateEndpointConnectionsPrivateLinkHubGetResponse, - PrivateEndpointConnectionsPrivateLinkHubListNextResponse + PrivateEndpointConnectionsPrivateLinkHubListNextResponse, } from "../models"; /// /** Class containing PrivateEndpointConnectionsPrivateLinkHub operations. */ export class PrivateEndpointConnectionsPrivateLinkHubImpl - implements PrivateEndpointConnectionsPrivateLinkHub { + implements PrivateEndpointConnectionsPrivateLinkHub +{ private readonly client: SynapseManagementClient; /** @@ -46,12 +47,12 @@ export class PrivateEndpointConnectionsPrivateLinkHubImpl public list( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams + options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, privateLinkHubName, - options + options, ); return { next() { @@ -68,9 +69,9 @@ export class PrivateEndpointConnectionsPrivateLinkHubImpl resourceGroupName, privateLinkHubName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +79,7 @@ export class PrivateEndpointConnectionsPrivateLinkHubImpl resourceGroupName: string, privateLinkHubName: string, options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionsPrivateLinkHubListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +95,7 @@ export class PrivateEndpointConnectionsPrivateLinkHubImpl resourceGroupName, privateLinkHubName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,12 +107,12 @@ export class PrivateEndpointConnectionsPrivateLinkHubImpl private async *listPagingAll( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams + options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, privateLinkHubName, - options + options, )) { yield* page; } @@ -126,11 +127,11 @@ export class PrivateEndpointConnectionsPrivateLinkHubImpl private _list( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams + options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateLinkHubName, options }, - listOperationSpec + listOperationSpec, ); } @@ -145,16 +146,16 @@ export class PrivateEndpointConnectionsPrivateLinkHubImpl resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams + options?: PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateLinkHubName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -169,11 +170,11 @@ export class PrivateEndpointConnectionsPrivateLinkHubImpl resourceGroupName: string, privateLinkHubName: string, nextLink: string, - options?: PrivateEndpointConnectionsPrivateLinkHubListNextOptionalParams + options?: PrivateEndpointConnectionsPrivateLinkHubListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateLinkHubName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -181,39 +182,37 @@ export class PrivateEndpointConnectionsPrivateLinkHubImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { bodyMapper: - Mappers.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse + Mappers.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.privateLinkHubName + Parameters.privateLinkHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionForPrivateLinkHub + bodyMapper: Mappers.PrivateEndpointConnectionForPrivateLinkHub, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -221,10 +220,10 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.privateEndpointConnectionName, - Parameters.privateLinkHubName + Parameters.privateLinkHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", @@ -232,19 +231,19 @@ const listNextOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: - Mappers.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse + Mappers.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.privateLinkHubName + Parameters.privateLinkHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/privateLinkHubPrivateLinkResources.ts b/sdk/synapse/arm-synapse/src/operations/privateLinkHubPrivateLinkResources.ts index 3073ca7caedd..7d92f9e021ac 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateLinkHubPrivateLinkResources.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateLinkHubPrivateLinkResources.ts @@ -20,13 +20,14 @@ import { PrivateLinkHubPrivateLinkResourcesListResponse, PrivateLinkHubPrivateLinkResourcesGetOptionalParams, PrivateLinkHubPrivateLinkResourcesGetResponse, - PrivateLinkHubPrivateLinkResourcesListNextResponse + PrivateLinkHubPrivateLinkResourcesListNextResponse, } from "../models"; /// /** Class containing PrivateLinkHubPrivateLinkResources operations. */ export class PrivateLinkHubPrivateLinkResourcesImpl - implements PrivateLinkHubPrivateLinkResources { + implements PrivateLinkHubPrivateLinkResources +{ private readonly client: SynapseManagementClient; /** @@ -46,12 +47,12 @@ export class PrivateLinkHubPrivateLinkResourcesImpl public list( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams + options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, privateLinkHubName, - options + options, ); return { next() { @@ -68,9 +69,9 @@ export class PrivateLinkHubPrivateLinkResourcesImpl resourceGroupName, privateLinkHubName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +79,7 @@ export class PrivateLinkHubPrivateLinkResourcesImpl resourceGroupName: string, privateLinkHubName: string, options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateLinkHubPrivateLinkResourcesListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +95,7 @@ export class PrivateLinkHubPrivateLinkResourcesImpl resourceGroupName, privateLinkHubName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,12 +107,12 @@ export class PrivateLinkHubPrivateLinkResourcesImpl private async *listPagingAll( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams + options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, privateLinkHubName, - options + options, )) { yield* page; } @@ -126,11 +127,11 @@ export class PrivateLinkHubPrivateLinkResourcesImpl private _list( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams + options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateLinkHubName, options }, - listOperationSpec + listOperationSpec, ); } @@ -145,16 +146,16 @@ export class PrivateLinkHubPrivateLinkResourcesImpl resourceGroupName: string, privateLinkHubName: string, privateLinkResourceName: string, - options?: PrivateLinkHubPrivateLinkResourcesGetOptionalParams + options?: PrivateLinkHubPrivateLinkResourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateLinkHubName, privateLinkResourceName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -169,11 +170,11 @@ export class PrivateLinkHubPrivateLinkResourcesImpl resourceGroupName: string, privateLinkHubName: string, nextLink: string, - options?: PrivateLinkHubPrivateLinkResourcesListNextOptionalParams + options?: PrivateLinkHubPrivateLinkResourcesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateLinkHubName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -181,38 +182,36 @@ export class PrivateLinkHubPrivateLinkResourcesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.privateLinkHubName + Parameters.privateLinkHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateLinkResources/{privateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateLinkResources/{privateLinkResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResource + bodyMapper: Mappers.PrivateLinkResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -220,29 +219,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.privateLinkResourceName, - Parameters.privateLinkHubName + Parameters.privateLinkHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.privateLinkHubName + Parameters.privateLinkHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/privateLinkHubs.ts b/sdk/synapse/arm-synapse/src/operations/privateLinkHubs.ts index 9ebffa476490..a5715357c6a4 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateLinkHubs.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateLinkHubs.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { PrivateLinkHub, PrivateLinkHubsListByResourceGroupNextOptionalParams, @@ -32,7 +36,7 @@ import { PrivateLinkHubsCreateOrUpdateResponse, PrivateLinkHubsDeleteOptionalParams, PrivateLinkHubsListByResourceGroupNextResponse, - PrivateLinkHubsListNextResponse + PrivateLinkHubsListNextResponse, } from "../models"; /// @@ -55,7 +59,7 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { */ public listByResourceGroup( resourceGroupName: string, - options?: PrivateLinkHubsListByResourceGroupOptionalParams + options?: PrivateLinkHubsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -72,16 +76,16 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: PrivateLinkHubsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateLinkHubsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +100,7 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,11 +111,11 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: PrivateLinkHubsListByResourceGroupOptionalParams + options?: PrivateLinkHubsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -122,7 +126,7 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { * @param options The options parameters. */ public list( - options?: PrivateLinkHubsListOptionalParams + options?: PrivateLinkHubsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -137,13 +141,13 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: PrivateLinkHubsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateLinkHubsListResponse; let continuationToken = settings?.continuationToken; @@ -164,7 +168,7 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { } private async *listPagingAll( - options?: PrivateLinkHubsListOptionalParams + options?: PrivateLinkHubsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -178,11 +182,11 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { */ private _listByResourceGroup( resourceGroupName: string, - options?: PrivateLinkHubsListByResourceGroupOptionalParams + options?: PrivateLinkHubsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -195,11 +199,11 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { get( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateLinkHubsGetOptionalParams + options?: PrivateLinkHubsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateLinkHubName, options }, - getOperationSpec + getOperationSpec, ); } @@ -214,16 +218,16 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { resourceGroupName: string, privateLinkHubName: string, privateLinkHubPatchInfo: PrivateLinkHubPatchInfo, - options?: PrivateLinkHubsUpdateOptionalParams + options?: PrivateLinkHubsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -238,11 +242,11 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { resourceGroupName: string, privateLinkHubName: string, privateLinkHubInfo: PrivateLinkHub, - options?: PrivateLinkHubsCreateOrUpdateOptionalParams + options?: PrivateLinkHubsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateLinkHubName, privateLinkHubInfo, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -255,25 +259,24 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { async beginDelete( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateLinkHubsDeleteOptionalParams - ): Promise, void>> { + options?: PrivateLinkHubsDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -282,8 +285,8 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -291,19 +294,20 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, privateLinkHubName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, privateLinkHubName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -318,12 +322,12 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { async beginDeleteAndWait( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateLinkHubsDeleteOptionalParams + options?: PrivateLinkHubsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, privateLinkHubName, - options + options, ); return poller.pollUntilDone(); } @@ -333,7 +337,7 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { * @param options The options parameters. */ private _list( - options?: PrivateLinkHubsListOptionalParams + options?: PrivateLinkHubsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -347,11 +351,11 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: PrivateLinkHubsListByResourceGroupNextOptionalParams + options?: PrivateLinkHubsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -362,11 +366,11 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { */ private _listNext( nextLink: string, - options?: PrivateLinkHubsListNextOptionalParams + options?: PrivateLinkHubsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -374,62 +378,59 @@ export class PrivateLinkHubsImpl implements PrivateLinkHubs { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkHubInfoListResult + bodyMapper: Mappers.PrivateLinkHubInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkHub + bodyMapper: Mappers.PrivateLinkHub, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.privateLinkHubName + Parameters.privateLinkHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.PrivateLinkHub + bodyMapper: Mappers.PrivateLinkHub, }, 201: { - bodyMapper: Mappers.PrivateLinkHub + bodyMapper: Mappers.PrivateLinkHub, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.privateLinkHubPatchInfo, queryParameters: [Parameters.apiVersion], @@ -437,26 +438,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.privateLinkHubName + Parameters.privateLinkHubName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateLinkHub + bodyMapper: Mappers.PrivateLinkHub, }, 201: { - bodyMapper: Mappers.PrivateLinkHub + bodyMapper: Mappers.PrivateLinkHub, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.privateLinkHubInfo, queryParameters: [Parameters.apiVersion], @@ -464,15 +464,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.privateLinkHubName + Parameters.privateLinkHubName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", httpMethod: "DELETE", responses: { 200: {}, @@ -480,72 +479,71 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.privateLinkHubName + Parameters.privateLinkHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/privateLinkHubs", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/privateLinkHubs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkHubInfoListResult + bodyMapper: Mappers.PrivateLinkHubInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkHubInfoListResult + bodyMapper: Mappers.PrivateLinkHubInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkHubInfoListResult + bodyMapper: Mappers.PrivateLinkHubInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/privateLinkResourcesOperations.ts b/sdk/synapse/arm-synapse/src/operations/privateLinkResourcesOperations.ts index 3068caea205a..10f00717f5f4 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateLinkResourcesOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateLinkResourcesOperations.ts @@ -20,13 +20,14 @@ import { PrivateLinkResourcesListResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse, - PrivateLinkResourcesListNextResponse + PrivateLinkResourcesListNextResponse, } from "../models"; /// /** Class containing PrivateLinkResourcesOperations operations. */ export class PrivateLinkResourcesOperationsImpl - implements PrivateLinkResourcesOperations { + implements PrivateLinkResourcesOperations +{ private readonly client: SynapseManagementClient; /** @@ -46,7 +47,7 @@ export class PrivateLinkResourcesOperationsImpl public list( resourceGroupName: string, workspaceName: string, - options?: PrivateLinkResourcesListOptionalParams + options?: PrivateLinkResourcesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, workspaceName, options); return { @@ -64,9 +65,9 @@ export class PrivateLinkResourcesOperationsImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -74,7 +75,7 @@ export class PrivateLinkResourcesOperationsImpl resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateLinkResourcesListResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +91,7 @@ export class PrivateLinkResourcesOperationsImpl resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -102,12 +103,12 @@ export class PrivateLinkResourcesOperationsImpl private async *listPagingAll( resourceGroupName: string, workspaceName: string, - options?: PrivateLinkResourcesListOptionalParams + options?: PrivateLinkResourcesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -122,11 +123,11 @@ export class PrivateLinkResourcesOperationsImpl private _list( resourceGroupName: string, workspaceName: string, - options?: PrivateLinkResourcesListOptionalParams + options?: PrivateLinkResourcesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -141,11 +142,11 @@ export class PrivateLinkResourcesOperationsImpl resourceGroupName: string, workspaceName: string, privateLinkResourceName: string, - options?: PrivateLinkResourcesGetOptionalParams + options?: PrivateLinkResourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, privateLinkResourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -160,11 +161,11 @@ export class PrivateLinkResourcesOperationsImpl resourceGroupName: string, workspaceName: string, nextLink: string, - options?: PrivateLinkResourcesListNextOptionalParams + options?: PrivateLinkResourcesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -172,38 +173,36 @@ export class PrivateLinkResourcesOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateLinkResources/{privateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateLinkResources/{privateLinkResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResource + bodyMapper: Mappers.PrivateLinkResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -211,29 +210,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.privateLinkResourceName + Parameters.privateLinkResourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/restorableDroppedSqlPools.ts b/sdk/synapse/arm-synapse/src/operations/restorableDroppedSqlPools.ts index 6f5d7c2bff35..20c58dc80e95 100644 --- a/sdk/synapse/arm-synapse/src/operations/restorableDroppedSqlPools.ts +++ b/sdk/synapse/arm-synapse/src/operations/restorableDroppedSqlPools.ts @@ -17,13 +17,14 @@ import { RestorableDroppedSqlPoolsListByWorkspaceOptionalParams, RestorableDroppedSqlPoolsListByWorkspaceResponse, RestorableDroppedSqlPoolsGetOptionalParams, - RestorableDroppedSqlPoolsGetResponse + RestorableDroppedSqlPoolsGetResponse, } from "../models"; /// /** Class containing RestorableDroppedSqlPools operations. */ export class RestorableDroppedSqlPoolsImpl - implements RestorableDroppedSqlPools { + implements RestorableDroppedSqlPools +{ private readonly client: SynapseManagementClient; /** @@ -43,12 +44,12 @@ export class RestorableDroppedSqlPoolsImpl public listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams + options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByWorkspacePagingAll( resourceGroupName, workspaceName, - options + options, ); return { next() { @@ -65,9 +66,9 @@ export class RestorableDroppedSqlPoolsImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -75,13 +76,13 @@ export class RestorableDroppedSqlPoolsImpl resourceGroupName: string, workspaceName: string, options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: RestorableDroppedSqlPoolsListByWorkspaceResponse; result = await this._listByWorkspace( resourceGroupName, workspaceName, - options + options, ); yield result.value || []; } @@ -89,12 +90,12 @@ export class RestorableDroppedSqlPoolsImpl private async *listByWorkspacePagingAll( resourceGroupName: string, workspaceName: string, - options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams + options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByWorkspacePagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -112,11 +113,11 @@ export class RestorableDroppedSqlPoolsImpl resourceGroupName: string, workspaceName: string, restorableDroppedSqlPoolId: string, - options?: RestorableDroppedSqlPoolsGetOptionalParams + options?: RestorableDroppedSqlPoolsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, restorableDroppedSqlPoolId, options }, - getOperationSpec + getOperationSpec, ); } @@ -129,11 +130,11 @@ export class RestorableDroppedSqlPoolsImpl private _listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams + options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + listByWorkspaceOperationSpec, ); } } @@ -141,16 +142,15 @@ export class RestorableDroppedSqlPoolsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/restorableDroppedSqlPools/{restorableDroppedSqlPoolId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/restorableDroppedSqlPools/{restorableDroppedSqlPoolId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorableDroppedSqlPool + bodyMapper: Mappers.RestorableDroppedSqlPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -158,30 +158,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.restorableDroppedSqlPoolId + Parameters.restorableDroppedSqlPoolId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/restorableDroppedSqlPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/restorableDroppedSqlPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorableDroppedSqlPoolListResult + bodyMapper: Mappers.RestorableDroppedSqlPoolListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sparkConfiguration.ts b/sdk/synapse/arm-synapse/src/operations/sparkConfiguration.ts index 721bbdbd90e3..3b00e087442f 100644 --- a/sdk/synapse/arm-synapse/src/operations/sparkConfiguration.ts +++ b/sdk/synapse/arm-synapse/src/operations/sparkConfiguration.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; import { SparkConfigurationGetOptionalParams, - SparkConfigurationGetResponse + SparkConfigurationGetResponse, } from "../models"; /** Class containing SparkConfiguration operations. */ @@ -39,11 +39,11 @@ export class SparkConfigurationImpl implements SparkConfiguration { resourceGroupName: string, sparkConfigurationName: string, workspaceName: string, - options?: SparkConfigurationGetOptionalParams + options?: SparkConfigurationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sparkConfigurationName, workspaceName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -51,16 +51,15 @@ export class SparkConfigurationImpl implements SparkConfiguration { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations/{sparkConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations/{sparkConfigurationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SparkConfigurationResource + bodyMapper: Mappers.SparkConfigurationResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -68,8 +67,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sparkConfigurationName + Parameters.sparkConfigurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sparkConfigurations.ts b/sdk/synapse/arm-synapse/src/operations/sparkConfigurations.ts index 3a71ca5c9496..8643af475dcc 100644 --- a/sdk/synapse/arm-synapse/src/operations/sparkConfigurations.ts +++ b/sdk/synapse/arm-synapse/src/operations/sparkConfigurations.ts @@ -18,7 +18,7 @@ import { SparkConfigurationsListByWorkspaceNextOptionalParams, SparkConfigurationsListByWorkspaceOptionalParams, SparkConfigurationsListByWorkspaceResponse, - SparkConfigurationsListByWorkspaceNextResponse + SparkConfigurationsListByWorkspaceNextResponse, } from "../models"; /// @@ -43,12 +43,12 @@ export class SparkConfigurationsImpl implements SparkConfigurations { public listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: SparkConfigurationsListByWorkspaceOptionalParams + options?: SparkConfigurationsListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByWorkspacePagingAll( resourceGroupName, workspaceName, - options + options, ); return { next() { @@ -65,9 +65,9 @@ export class SparkConfigurationsImpl implements SparkConfigurations { resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class SparkConfigurationsImpl implements SparkConfigurations { resourceGroupName: string, workspaceName: string, options?: SparkConfigurationsListByWorkspaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SparkConfigurationsListByWorkspaceResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class SparkConfigurationsImpl implements SparkConfigurations { result = await this._listByWorkspace( resourceGroupName, workspaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -95,7 +95,7 @@ export class SparkConfigurationsImpl implements SparkConfigurations { resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class SparkConfigurationsImpl implements SparkConfigurations { private async *listByWorkspacePagingAll( resourceGroupName: string, workspaceName: string, - options?: SparkConfigurationsListByWorkspaceOptionalParams + options?: SparkConfigurationsListByWorkspaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByWorkspacePagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class SparkConfigurationsImpl implements SparkConfigurations { private _listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: SparkConfigurationsListByWorkspaceOptionalParams + options?: SparkConfigurationsListByWorkspaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + listByWorkspaceOperationSpec, ); } @@ -146,11 +146,11 @@ export class SparkConfigurationsImpl implements SparkConfigurations { resourceGroupName: string, workspaceName: string, nextLink: string, - options?: SparkConfigurationsListByWorkspaceNextOptionalParams + options?: SparkConfigurationsListByWorkspaceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec + listByWorkspaceNextOperationSpec, ); } } @@ -158,45 +158,44 @@ export class SparkConfigurationsImpl implements SparkConfigurations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SparkConfigurationListResponse + bodyMapper: Mappers.SparkConfigurationListResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SparkConfigurationListResponse + bodyMapper: Mappers.SparkConfigurationListResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts index 7ee54521e7f6..f99d448145e7 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts @@ -22,13 +22,14 @@ import { SqlPoolBlobAuditingPoliciesGetResponse, SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, SqlPoolBlobAuditingPoliciesCreateOrUpdateResponse, - SqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse + SqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse, } from "../models"; /// /** Class containing SqlPoolBlobAuditingPolicies operations. */ export class SqlPoolBlobAuditingPoliciesImpl - implements SqlPoolBlobAuditingPolicies { + implements SqlPoolBlobAuditingPolicies +{ private readonly client: SynapseManagementClient; /** @@ -50,13 +51,13 @@ export class SqlPoolBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySqlPoolPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -74,9 +75,9 @@ export class SqlPoolBlobAuditingPoliciesImpl workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +86,7 @@ export class SqlPoolBlobAuditingPoliciesImpl workspaceName: string, sqlPoolName: string, options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolBlobAuditingPoliciesListBySqlPoolResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +95,7 @@ export class SqlPoolBlobAuditingPoliciesImpl resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +108,7 @@ export class SqlPoolBlobAuditingPoliciesImpl workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,13 +121,13 @@ export class SqlPoolBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySqlPoolPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -143,11 +144,11 @@ export class SqlPoolBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolBlobAuditingPoliciesGetOptionalParams + options?: SqlPoolBlobAuditingPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -164,11 +165,11 @@ export class SqlPoolBlobAuditingPoliciesImpl workspaceName: string, sqlPoolName: string, parameters: SqlPoolBlobAuditingPolicy, - options?: SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams + options?: SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -183,11 +184,11 @@ export class SqlPoolBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listBySqlPoolOperationSpec + listBySqlPoolOperationSpec, ); } @@ -204,11 +205,11 @@ export class SqlPoolBlobAuditingPoliciesImpl workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams + options?: SqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listBySqlPoolNextOperationSpec + listBySqlPoolNextOperationSpec, ); } } @@ -216,14 +217,13 @@ export class SqlPoolBlobAuditingPoliciesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolBlobAuditingPolicy + bodyMapper: Mappers.SqlPoolBlobAuditingPolicy, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -232,25 +232,24 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.blobAuditingPolicyName + Parameters.blobAuditingPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SqlPoolBlobAuditingPolicy + bodyMapper: Mappers.SqlPoolBlobAuditingPolicy, }, 201: { - bodyMapper: Mappers.SqlPoolBlobAuditingPolicy + bodyMapper: Mappers.SqlPoolBlobAuditingPolicy, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -258,21 +257,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.blobAuditingPolicyName + Parameters.blobAuditingPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySqlPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolBlobAuditingPolicyListResult + bodyMapper: Mappers.SqlPoolBlobAuditingPolicyListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -280,19 +278,19 @@ const listBySqlPoolOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySqlPoolNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolBlobAuditingPolicyListResult + bodyMapper: Mappers.SqlPoolBlobAuditingPolicyListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -300,8 +298,8 @@ const listBySqlPoolNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts index 891b150a72ed..e432f86b412e 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; import { SqlPoolColumnsGetOptionalParams, - SqlPoolColumnsGetResponse + SqlPoolColumnsGetResponse, } from "../models"; /** Class containing SqlPoolColumns operations. */ @@ -45,7 +45,7 @@ export class SqlPoolColumnsImpl implements SqlPoolColumns { schemaName: string, tableName: string, columnName: string, - options?: SqlPoolColumnsGetOptionalParams + options?: SqlPoolColumnsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -55,9 +55,9 @@ export class SqlPoolColumnsImpl implements SqlPoolColumns { schemaName, tableName, columnName, - options + options, }, - getOperationSpec + getOperationSpec, ); } } @@ -65,14 +65,13 @@ export class SqlPoolColumnsImpl implements SqlPoolColumns { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolColumn + bodyMapper: Mappers.SqlPoolColumn, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -83,8 +82,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.sqlPoolName, Parameters.schemaName, Parameters.tableName, - Parameters.columnName + Parameters.columnName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolConnectionPolicies.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolConnectionPolicies.ts index 97dbe2226edb..84ade125d5b8 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolConnectionPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolConnectionPolicies.ts @@ -14,12 +14,13 @@ import { SynapseManagementClient } from "../synapseManagementClient"; import { ConnectionPolicyName, SqlPoolConnectionPoliciesGetOptionalParams, - SqlPoolConnectionPoliciesGetResponse + SqlPoolConnectionPoliciesGetResponse, } from "../models"; /** Class containing SqlPoolConnectionPolicies operations. */ export class SqlPoolConnectionPoliciesImpl - implements SqlPoolConnectionPolicies { + implements SqlPoolConnectionPolicies +{ private readonly client: SynapseManagementClient; /** @@ -43,7 +44,7 @@ export class SqlPoolConnectionPoliciesImpl workspaceName: string, sqlPoolName: string, connectionPolicyName: ConnectionPolicyName, - options?: SqlPoolConnectionPoliciesGetOptionalParams + options?: SqlPoolConnectionPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -51,9 +52,9 @@ export class SqlPoolConnectionPoliciesImpl workspaceName, sqlPoolName, connectionPolicyName, - options + options, }, - getOperationSpec + getOperationSpec, ); } } @@ -61,16 +62,15 @@ export class SqlPoolConnectionPoliciesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/connectionPolicies/{connectionPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/connectionPolicies/{connectionPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolConnectionPolicy + bodyMapper: Mappers.SqlPoolConnectionPolicy, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -79,8 +79,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.connectionPolicyName + Parameters.connectionPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolDataWarehouseUserActivities.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolDataWarehouseUserActivities.ts index 244fce25a5a3..3300b3a62656 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolDataWarehouseUserActivities.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolDataWarehouseUserActivities.ts @@ -14,12 +14,13 @@ import { SynapseManagementClient } from "../synapseManagementClient"; import { DataWarehouseUserActivityName, SqlPoolDataWarehouseUserActivitiesGetOptionalParams, - SqlPoolDataWarehouseUserActivitiesGetResponse + SqlPoolDataWarehouseUserActivitiesGetResponse, } from "../models"; /** Class containing SqlPoolDataWarehouseUserActivities operations. */ export class SqlPoolDataWarehouseUserActivitiesImpl - implements SqlPoolDataWarehouseUserActivities { + implements SqlPoolDataWarehouseUserActivities +{ private readonly client: SynapseManagementClient; /** @@ -43,7 +44,7 @@ export class SqlPoolDataWarehouseUserActivitiesImpl workspaceName: string, sqlPoolName: string, dataWarehouseUserActivityName: DataWarehouseUserActivityName, - options?: SqlPoolDataWarehouseUserActivitiesGetOptionalParams + options?: SqlPoolDataWarehouseUserActivitiesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -51,9 +52,9 @@ export class SqlPoolDataWarehouseUserActivitiesImpl workspaceName, sqlPoolName, dataWarehouseUserActivityName, - options + options, }, - getOperationSpec + getOperationSpec, ); } } @@ -61,14 +62,13 @@ export class SqlPoolDataWarehouseUserActivitiesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataWarehouseUserActivities + bodyMapper: Mappers.DataWarehouseUserActivities, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -77,8 +77,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.dataWarehouseUserActivityName + Parameters.dataWarehouseUserActivityName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolGeoBackupPolicies.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolGeoBackupPolicies.ts index c64eb4b69d9f..b2feaeb543f2 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolGeoBackupPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolGeoBackupPolicies.ts @@ -20,7 +20,7 @@ import { SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams, SqlPoolGeoBackupPoliciesCreateOrUpdateResponse, SqlPoolGeoBackupPoliciesGetOptionalParams, - SqlPoolGeoBackupPoliciesGetResponse + SqlPoolGeoBackupPoliciesGetResponse, } from "../models"; /// @@ -47,13 +47,13 @@ export class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolGeoBackupPoliciesListOptionalParams + options?: SqlPoolGeoBackupPoliciesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -82,14 +82,14 @@ export class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { workspaceName: string, sqlPoolName: string, options?: SqlPoolGeoBackupPoliciesListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolGeoBackupPoliciesListResponse; result = await this._list( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); yield result.value || []; } @@ -98,13 +98,13 @@ export class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolGeoBackupPoliciesListOptionalParams + options?: SqlPoolGeoBackupPoliciesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -121,11 +121,11 @@ export class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolGeoBackupPoliciesListOptionalParams + options?: SqlPoolGeoBackupPoliciesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -144,7 +144,7 @@ export class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { sqlPoolName: string, geoBackupPolicyName: GeoBackupPolicyName, parameters: GeoBackupPolicy, - options?: SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams + options?: SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -153,9 +153,9 @@ export class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { sqlPoolName, geoBackupPolicyName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -172,7 +172,7 @@ export class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { workspaceName: string, sqlPoolName: string, geoBackupPolicyName: GeoBackupPolicyName, - options?: SqlPoolGeoBackupPoliciesGetOptionalParams + options?: SqlPoolGeoBackupPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -180,9 +180,9 @@ export class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { workspaceName, sqlPoolName, geoBackupPolicyName, - options + options, }, - getOperationSpec + getOperationSpec, ); } } @@ -190,16 +190,15 @@ export class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicyListResult + bodyMapper: Mappers.GeoBackupPolicyListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -207,27 +206,26 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicy + bodyMapper: Mappers.GeoBackupPolicy, }, 201: { - bodyMapper: Mappers.GeoBackupPolicy + bodyMapper: Mappers.GeoBackupPolicy, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -235,23 +233,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.geoBackupPolicyName + Parameters.geoBackupPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicy + bodyMapper: Mappers.GeoBackupPolicy, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -260,8 +257,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.geoBackupPolicyName + Parameters.geoBackupPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindowOptions.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindowOptions.ts index c42a0070c559..9527db31e228 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindowOptions.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindowOptions.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; import { SqlPoolMaintenanceWindowOptionsGetOptionalParams, - SqlPoolMaintenanceWindowOptionsGetResponse + SqlPoolMaintenanceWindowOptionsGetResponse, } from "../models"; /** Class containing SqlPoolMaintenanceWindowOptions operations. */ export class SqlPoolMaintenanceWindowOptionsImpl - implements SqlPoolMaintenanceWindowOptions { + implements SqlPoolMaintenanceWindowOptions +{ private readonly client: SynapseManagementClient; /** @@ -42,7 +43,7 @@ export class SqlPoolMaintenanceWindowOptionsImpl workspaceName: string, sqlPoolName: string, maintenanceWindowOptionsName: string, - options?: SqlPoolMaintenanceWindowOptionsGetOptionalParams + options?: SqlPoolMaintenanceWindowOptionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -50,9 +51,9 @@ export class SqlPoolMaintenanceWindowOptionsImpl workspaceName, sqlPoolName, maintenanceWindowOptionsName, - options + options, }, - getOperationSpec + getOperationSpec, ); } } @@ -60,26 +61,25 @@ export class SqlPoolMaintenanceWindowOptionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenanceWindowOptions/current", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenanceWindowOptions/current", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MaintenanceWindowOptions + bodyMapper: Mappers.MaintenanceWindowOptions, }, - default: {} + default: {}, }, queryParameters: [ Parameters.apiVersion, - Parameters.maintenanceWindowOptionsName + Parameters.maintenanceWindowOptionsName, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindows.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindows.ts index bbe5028642c7..c21b361243ed 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindows.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindows.ts @@ -15,12 +15,13 @@ import { SqlPoolMaintenanceWindowsGetOptionalParams, SqlPoolMaintenanceWindowsGetResponse, MaintenanceWindows, - SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams + SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams, } from "../models"; /** Class containing SqlPoolMaintenanceWindows operations. */ export class SqlPoolMaintenanceWindowsImpl - implements SqlPoolMaintenanceWindows { + implements SqlPoolMaintenanceWindows +{ private readonly client: SynapseManagementClient; /** @@ -44,7 +45,7 @@ export class SqlPoolMaintenanceWindowsImpl workspaceName: string, sqlPoolName: string, maintenanceWindowName: string, - options?: SqlPoolMaintenanceWindowsGetOptionalParams + options?: SqlPoolMaintenanceWindowsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -52,9 +53,9 @@ export class SqlPoolMaintenanceWindowsImpl workspaceName, sqlPoolName, maintenanceWindowName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -73,7 +74,7 @@ export class SqlPoolMaintenanceWindowsImpl sqlPoolName: string, maintenanceWindowName: string, parameters: MaintenanceWindows, - options?: SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams + options?: SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -82,9 +83,9 @@ export class SqlPoolMaintenanceWindowsImpl sqlPoolName, maintenanceWindowName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } } @@ -92,16 +93,15 @@ export class SqlPoolMaintenanceWindowsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MaintenanceWindows + bodyMapper: Mappers.MaintenanceWindows, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maintenanceWindowName], urlParameters: [ @@ -109,26 +109,25 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current", httpMethod: "PUT", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion, Parameters.maintenanceWindowName], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts index 5cf53874605e..21cb4436b5bc 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts @@ -16,12 +16,13 @@ import { SqlPoolMetadataSyncConfigsGetResponse, MetadataSyncConfig, SqlPoolMetadataSyncConfigsCreateOptionalParams, - SqlPoolMetadataSyncConfigsCreateResponse + SqlPoolMetadataSyncConfigsCreateResponse, } from "../models"; /** Class containing SqlPoolMetadataSyncConfigs operations. */ export class SqlPoolMetadataSyncConfigsImpl - implements SqlPoolMetadataSyncConfigs { + implements SqlPoolMetadataSyncConfigs +{ private readonly client: SynapseManagementClient; /** @@ -43,11 +44,11 @@ export class SqlPoolMetadataSyncConfigsImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolMetadataSyncConfigsGetOptionalParams + options?: SqlPoolMetadataSyncConfigsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -64,7 +65,7 @@ export class SqlPoolMetadataSyncConfigsImpl workspaceName: string, sqlPoolName: string, metadataSyncConfiguration: MetadataSyncConfig, - options?: SqlPoolMetadataSyncConfigsCreateOptionalParams + options?: SqlPoolMetadataSyncConfigsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -72,9 +73,9 @@ export class SqlPoolMetadataSyncConfigsImpl workspaceName, sqlPoolName, metadataSyncConfiguration, - options + options, }, - createOperationSpec + createOperationSpec, ); } } @@ -82,19 +83,18 @@ export class SqlPoolMetadataSyncConfigsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MetadataSyncConfig + bodyMapper: Mappers.MetadataSyncConfig, }, 404: { - isError: true + isError: true, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -102,25 +102,24 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.MetadataSyncConfig + bodyMapper: Mappers.MetadataSyncConfig, }, 404: { - isError: true + isError: true, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.metadataSyncConfiguration, queryParameters: [Parameters.apiVersion], @@ -129,9 +128,9 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts index 52e747f9a54a..3d7274fb7b19 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts @@ -11,11 +11,15 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { SqlPoolOperationResultsGetLocationHeaderResultOptionalParams, - SqlPoolOperationResultsGetLocationHeaderResultResponse + SqlPoolOperationResultsGetLocationHeaderResultResponse, } from "../models"; /** Class containing SqlPoolOperationResults operations. */ @@ -43,32 +47,29 @@ export class SqlPoolOperationResultsImpl implements SqlPoolOperationResults { workspaceName: string, sqlPoolName: string, operationId: string, - options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams + options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams, ): Promise< - PollerLike< - PollOperationState< - SqlPoolOperationResultsGetLocationHeaderResultResponse - >, + SimplePollerLike< + OperationState, SqlPoolOperationResultsGetLocationHeaderResultResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -77,8 +78,8 @@ export class SqlPoolOperationResultsImpl implements SqlPoolOperationResults { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -86,19 +87,28 @@ export class SqlPoolOperationResultsImpl implements SqlPoolOperationResults { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, sqlPoolName, operationId, options }, - getLocationHeaderResultOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + sqlPoolName, + operationId, + options, + }, + spec: getLocationHeaderResultOperationSpec, + }); + const poller = await createHttpPoller< + SqlPoolOperationResultsGetLocationHeaderResultResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -117,14 +127,14 @@ export class SqlPoolOperationResultsImpl implements SqlPoolOperationResults { workspaceName: string, sqlPoolName: string, operationId: string, - options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams + options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams, ): Promise { const poller = await this.beginGetLocationHeaderResult( resourceGroupName, workspaceName, sqlPoolName, operationId, - options + options, ); return poller.pollUntilDone(); } @@ -133,25 +143,24 @@ export class SqlPoolOperationResultsImpl implements SqlPoolOperationResults { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getLocationHeaderResultOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operationResults/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operationResults/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 201: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 202: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 204: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -160,8 +169,8 @@ const getLocationHeaderResultOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.operationId, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolOperations.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolOperations.ts index a0c6d5b792e5..c0528290cb15 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolOperations.ts @@ -18,7 +18,7 @@ import { SqlPoolOperationsListNextOptionalParams, SqlPoolOperationsListOptionalParams, SqlPoolOperationsListResponse, - SqlPoolOperationsListNextResponse + SqlPoolOperationsListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class SqlPoolOperationsImpl implements SqlPoolOperations { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolOperationsListOptionalParams + options?: SqlPoolOperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class SqlPoolOperationsImpl implements SqlPoolOperations { workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class SqlPoolOperationsImpl implements SqlPoolOperations { workspaceName: string, sqlPoolName: string, options?: SqlPoolOperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolOperationsListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class SqlPoolOperationsImpl implements SqlPoolOperations { resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class SqlPoolOperationsImpl implements SqlPoolOperations { workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class SqlPoolOperationsImpl implements SqlPoolOperations { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolOperationsListOptionalParams + options?: SqlPoolOperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class SqlPoolOperationsImpl implements SqlPoolOperations { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolOperationsListOptionalParams + options?: SqlPoolOperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class SqlPoolOperationsImpl implements SqlPoolOperations { workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolOperationsListNextOptionalParams + options?: SqlPoolOperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,14 +171,13 @@ export class SqlPoolOperationsImpl implements SqlPoolOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolBlobAuditingPolicySqlPoolOperationListResult + bodyMapper: Mappers.SqlPoolBlobAuditingPolicySqlPoolOperationListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -186,19 +185,19 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolBlobAuditingPolicySqlPoolOperationListResult + bodyMapper: Mappers.SqlPoolBlobAuditingPolicySqlPoolOperationListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -206,8 +205,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolRecommendedSensitivityLabels.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolRecommendedSensitivityLabels.ts index 1594f5602707..f4fe331aab16 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolRecommendedSensitivityLabels.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolRecommendedSensitivityLabels.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; import { RecommendedSensitivityLabelUpdateList, - SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams + SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams, } from "../models"; /** Class containing SqlPoolRecommendedSensitivityLabels operations. */ export class SqlPoolRecommendedSensitivityLabelsImpl - implements SqlPoolRecommendedSensitivityLabels { + implements SqlPoolRecommendedSensitivityLabels +{ private readonly client: SynapseManagementClient; /** @@ -42,11 +43,11 @@ export class SqlPoolRecommendedSensitivityLabelsImpl workspaceName: string, sqlPoolName: string, parameters: RecommendedSensitivityLabelUpdateList, - options?: SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams + options?: SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } } @@ -54,20 +55,19 @@ export class SqlPoolRecommendedSensitivityLabelsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolReplicationLinks.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolReplicationLinks.ts index 3dc69dc9afae..b775d36dad4c 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolReplicationLinks.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolReplicationLinks.ts @@ -20,7 +20,7 @@ import { SqlPoolReplicationLinksListResponse, SqlPoolReplicationLinksGetByNameOptionalParams, SqlPoolReplicationLinksGetByNameResponse, - SqlPoolReplicationLinksListNextResponse + SqlPoolReplicationLinksListNextResponse, } from "../models"; /// @@ -47,13 +47,13 @@ export class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolReplicationLinksListOptionalParams + options?: SqlPoolReplicationLinksListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { workspaceName: string, sqlPoolName: string, options?: SqlPoolReplicationLinksListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolReplicationLinksListResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +91,7 @@ export class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,13 +117,13 @@ export class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolReplicationLinksListOptionalParams + options?: SqlPoolReplicationLinksListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolReplicationLinksListOptionalParams + options?: SqlPoolReplicationLinksListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -161,11 +161,11 @@ export class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { workspaceName: string, sqlPoolName: string, linkId: string, - options?: SqlPoolReplicationLinksGetByNameOptionalParams + options?: SqlPoolReplicationLinksGetByNameOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, linkId, options }, - getByNameOperationSpec + getByNameOperationSpec, ); } @@ -182,11 +182,11 @@ export class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolReplicationLinksListNextOptionalParams + options?: SqlPoolReplicationLinksListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -194,16 +194,15 @@ export class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReplicationLinkListResult + bodyMapper: Mappers.ReplicationLinkListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -211,22 +210,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByNameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks/{linkId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks/{linkId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReplicationLink + bodyMapper: Mappers.ReplicationLink, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -235,21 +233,21 @@ const getByNameOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.linkId + Parameters.linkId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReplicationLinkListResult + bodyMapper: Mappers.ReplicationLinkListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -257,8 +255,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolRestorePoints.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolRestorePoints.ts index b644185109d2..bdaf4db0ced8 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolRestorePoints.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolRestorePoints.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { RestorePoint, SqlPoolRestorePointsListNextOptionalParams, @@ -26,7 +30,7 @@ import { SqlPoolRestorePointsGetOptionalParams, SqlPoolRestorePointsGetResponse, SqlPoolRestorePointsDeleteOptionalParams, - SqlPoolRestorePointsListNextResponse + SqlPoolRestorePointsListNextResponse, } from "../models"; /// @@ -53,13 +57,13 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolRestorePointsListOptionalParams + options?: SqlPoolRestorePointsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -77,9 +81,9 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +92,7 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { workspaceName: string, sqlPoolName: string, options?: SqlPoolRestorePointsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolRestorePointsListResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +101,7 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +114,7 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,13 +127,13 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolRestorePointsListOptionalParams + options?: SqlPoolRestorePointsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -146,11 +150,11 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolRestorePointsListOptionalParams + options?: SqlPoolRestorePointsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -167,30 +171,29 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { workspaceName: string, sqlPoolName: string, parameters: CreateSqlPoolRestorePointDefinition, - options?: SqlPoolRestorePointsCreateOptionalParams + options?: SqlPoolRestorePointsCreateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolRestorePointsCreateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -199,8 +202,8 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -208,20 +211,29 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + sqlPoolName, + parameters, + options, + }, + spec: createOperationSpec, + }); + const poller = await createHttpPoller< + SqlPoolRestorePointsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -240,14 +252,14 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { workspaceName: string, sqlPoolName: string, parameters: CreateSqlPoolRestorePointDefinition, - options?: SqlPoolRestorePointsCreateOptionalParams + options?: SqlPoolRestorePointsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, workspaceName, sqlPoolName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -265,7 +277,7 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { workspaceName: string, sqlPoolName: string, restorePointName: string, - options?: SqlPoolRestorePointsGetOptionalParams + options?: SqlPoolRestorePointsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -273,9 +285,9 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { workspaceName, sqlPoolName, restorePointName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -292,7 +304,7 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { workspaceName: string, sqlPoolName: string, restorePointName: string, - options?: SqlPoolRestorePointsDeleteOptionalParams + options?: SqlPoolRestorePointsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -300,9 +312,9 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { workspaceName, sqlPoolName, restorePointName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -319,11 +331,11 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolRestorePointsListNextOptionalParams + options?: SqlPoolRestorePointsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -331,16 +343,15 @@ export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointListResult + bodyMapper: Mappers.RestorePointListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -348,52 +359,50 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 201: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 202: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 204: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -402,14 +411,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.restorePointName + Parameters.restorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, queryParameters: [Parameters.apiVersion], @@ -419,20 +427,20 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.restorePointName + Parameters.restorePointName, ], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointListResult + bodyMapper: Mappers.RestorePointListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -440,8 +448,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts index 7cf45a576aea..2f0671933b9d 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts @@ -20,7 +20,7 @@ import { SqlPoolSchemasListResponse, SqlPoolSchemasGetOptionalParams, SqlPoolSchemasGetResponse, - SqlPoolSchemasListNextResponse + SqlPoolSchemasListNextResponse, } from "../models"; /// @@ -47,13 +47,13 @@ export class SqlPoolSchemasImpl implements SqlPoolSchemas { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSchemasListOptionalParams + options?: SqlPoolSchemasListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class SqlPoolSchemasImpl implements SqlPoolSchemas { workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class SqlPoolSchemasImpl implements SqlPoolSchemas { workspaceName: string, sqlPoolName: string, options?: SqlPoolSchemasListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolSchemasListResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +91,7 @@ export class SqlPoolSchemasImpl implements SqlPoolSchemas { resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class SqlPoolSchemasImpl implements SqlPoolSchemas { workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,13 +117,13 @@ export class SqlPoolSchemasImpl implements SqlPoolSchemas { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSchemasListOptionalParams + options?: SqlPoolSchemasListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class SqlPoolSchemasImpl implements SqlPoolSchemas { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSchemasListOptionalParams + options?: SqlPoolSchemasListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -161,11 +161,11 @@ export class SqlPoolSchemasImpl implements SqlPoolSchemas { workspaceName: string, sqlPoolName: string, schemaName: string, - options?: SqlPoolSchemasGetOptionalParams + options?: SqlPoolSchemasGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, schemaName, options }, - getOperationSpec + getOperationSpec, ); } @@ -182,11 +182,11 @@ export class SqlPoolSchemasImpl implements SqlPoolSchemas { workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolSchemasListNextOptionalParams + options?: SqlPoolSchemasListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -194,14 +194,13 @@ export class SqlPoolSchemasImpl implements SqlPoolSchemas { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolSchemaListResult + bodyMapper: Mappers.SqlPoolSchemaListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ @@ -209,20 +208,19 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolSchema + bodyMapper: Mappers.SqlPoolSchema, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -231,19 +229,19 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.schemaName + Parameters.schemaName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolSchemaListResult + bodyMapper: Mappers.SqlPoolSchemaListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -251,8 +249,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolSecurityAlertPolicies.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolSecurityAlertPolicies.ts index 4f96dbc698dd..4c3df285f16c 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolSecurityAlertPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolSecurityAlertPolicies.ts @@ -23,13 +23,14 @@ import { SqlPoolSecurityAlertPoliciesGetResponse, SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams, SqlPoolSecurityAlertPoliciesCreateOrUpdateResponse, - SqlPoolSecurityAlertPoliciesListNextResponse + SqlPoolSecurityAlertPoliciesListNextResponse, } from "../models"; /// /** Class containing SqlPoolSecurityAlertPolicies operations. */ export class SqlPoolSecurityAlertPoliciesImpl - implements SqlPoolSecurityAlertPolicies { + implements SqlPoolSecurityAlertPolicies +{ private readonly client: SynapseManagementClient; /** @@ -51,13 +52,13 @@ export class SqlPoolSecurityAlertPoliciesImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSecurityAlertPoliciesListOptionalParams + options?: SqlPoolSecurityAlertPoliciesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -75,9 +76,9 @@ export class SqlPoolSecurityAlertPoliciesImpl workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +87,7 @@ export class SqlPoolSecurityAlertPoliciesImpl workspaceName: string, sqlPoolName: string, options?: SqlPoolSecurityAlertPoliciesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolSecurityAlertPoliciesListResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +96,7 @@ export class SqlPoolSecurityAlertPoliciesImpl resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class SqlPoolSecurityAlertPoliciesImpl workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,13 +122,13 @@ export class SqlPoolSecurityAlertPoliciesImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSecurityAlertPoliciesListOptionalParams + options?: SqlPoolSecurityAlertPoliciesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -144,11 +145,11 @@ export class SqlPoolSecurityAlertPoliciesImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSecurityAlertPoliciesListOptionalParams + options?: SqlPoolSecurityAlertPoliciesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -165,7 +166,7 @@ export class SqlPoolSecurityAlertPoliciesImpl workspaceName: string, sqlPoolName: string, securityAlertPolicyName: SecurityAlertPolicyName, - options?: SqlPoolSecurityAlertPoliciesGetOptionalParams + options?: SqlPoolSecurityAlertPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -173,9 +174,9 @@ export class SqlPoolSecurityAlertPoliciesImpl workspaceName, sqlPoolName, securityAlertPolicyName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -194,7 +195,7 @@ export class SqlPoolSecurityAlertPoliciesImpl sqlPoolName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: SqlPoolSecurityAlertPolicy, - options?: SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams + options?: SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -203,9 +204,9 @@ export class SqlPoolSecurityAlertPoliciesImpl sqlPoolName, securityAlertPolicyName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -222,11 +223,11 @@ export class SqlPoolSecurityAlertPoliciesImpl workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolSecurityAlertPoliciesListNextOptionalParams + options?: SqlPoolSecurityAlertPoliciesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -234,14 +235,13 @@ export class SqlPoolSecurityAlertPoliciesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListSqlPoolSecurityAlertPolicies + bodyMapper: Mappers.ListSqlPoolSecurityAlertPolicies, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -249,20 +249,19 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolSecurityAlertPolicy + bodyMapper: Mappers.SqlPoolSecurityAlertPolicy, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -271,25 +270,24 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.securityAlertPolicyName + Parameters.securityAlertPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SqlPoolSecurityAlertPolicy + bodyMapper: Mappers.SqlPoolSecurityAlertPolicy, }, 201: { - bodyMapper: Mappers.SqlPoolSecurityAlertPolicy + bodyMapper: Mappers.SqlPoolSecurityAlertPolicy, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -297,20 +295,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.securityAlertPolicyName + Parameters.securityAlertPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListSqlPoolSecurityAlertPolicies + bodyMapper: Mappers.ListSqlPoolSecurityAlertPolicies, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -318,8 +316,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts index b1dad2aefa61..1c086ade6145 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts @@ -32,7 +32,7 @@ import { SqlPoolSensitivityLabelsEnableRecommendationOptionalParams, SqlPoolSensitivityLabelsDisableRecommendationOptionalParams, SqlPoolSensitivityLabelsListCurrentNextResponse, - SqlPoolSensitivityLabelsListRecommendedNextResponse + SqlPoolSensitivityLabelsListRecommendedNextResponse, } from "../models"; /// @@ -59,13 +59,13 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSensitivityLabelsListCurrentOptionalParams + options?: SqlPoolSensitivityLabelsListCurrentOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listCurrentPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -94,7 +94,7 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { workspaceName: string, sqlPoolName: string, options?: SqlPoolSensitivityLabelsListCurrentOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolSensitivityLabelsListCurrentResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,13 +129,13 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSensitivityLabelsListCurrentOptionalParams + options?: SqlPoolSensitivityLabelsListCurrentOptionalParams, ): AsyncIterableIterator { for await (const page of this.listCurrentPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -152,13 +152,13 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams + options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listRecommendedPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -176,9 +176,9 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -187,7 +187,7 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { workspaceName: string, sqlPoolName: string, options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolSensitivityLabelsListRecommendedResponse; let continuationToken = settings?.continuationToken; @@ -196,7 +196,7 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -209,7 +209,7 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -222,13 +222,13 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams + options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams, ): AsyncIterableIterator { for await (const page of this.listRecommendedPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -245,11 +245,11 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSensitivityLabelsListCurrentOptionalParams + options?: SqlPoolSensitivityLabelsListCurrentOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listCurrentOperationSpec + listCurrentOperationSpec, ); } @@ -266,11 +266,11 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { workspaceName: string, sqlPoolName: string, parameters: SensitivityLabelUpdateList, - options?: SqlPoolSensitivityLabelsUpdateOptionalParams + options?: SqlPoolSensitivityLabelsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -285,11 +285,11 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams + options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listRecommendedOperationSpec + listRecommendedOperationSpec, ); } @@ -312,7 +312,7 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { tableName: string, columnName: string, parameters: SensitivityLabel, - options?: SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams + options?: SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -323,9 +323,9 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { tableName, columnName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -346,7 +346,7 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { schemaName: string, tableName: string, columnName: string, - options?: SqlPoolSensitivityLabelsDeleteOptionalParams + options?: SqlPoolSensitivityLabelsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -356,9 +356,9 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { schemaName, tableName, columnName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -381,7 +381,7 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { tableName: string, columnName: string, sensitivityLabelSource: SensitivityLabelSource, - options?: SqlPoolSensitivityLabelsGetOptionalParams + options?: SqlPoolSensitivityLabelsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -392,9 +392,9 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { tableName, columnName, sensitivityLabelSource, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -416,7 +416,7 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { schemaName: string, tableName: string, columnName: string, - options?: SqlPoolSensitivityLabelsEnableRecommendationOptionalParams + options?: SqlPoolSensitivityLabelsEnableRecommendationOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -426,9 +426,9 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { schemaName, tableName, columnName, - options + options, }, - enableRecommendationOperationSpec + enableRecommendationOperationSpec, ); } @@ -449,7 +449,7 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { schemaName: string, tableName: string, columnName: string, - options?: SqlPoolSensitivityLabelsDisableRecommendationOptionalParams + options?: SqlPoolSensitivityLabelsDisableRecommendationOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -459,9 +459,9 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { schemaName, tableName, columnName, - options + options, }, - disableRecommendationOperationSpec + disableRecommendationOperationSpec, ); } @@ -478,11 +478,11 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolSensitivityLabelsListCurrentNextOptionalParams + options?: SqlPoolSensitivityLabelsListCurrentNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listCurrentNextOperationSpec + listCurrentNextOperationSpec, ); } @@ -499,11 +499,11 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolSensitivityLabelsListRecommendedNextOptionalParams + options?: SqlPoolSensitivityLabelsListRecommendedNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listRecommendedNextOperationSpec + listRecommendedNextOperationSpec, ); } } @@ -511,16 +511,15 @@ export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listCurrentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SensitivityLabelListResult + bodyMapper: Mappers.SensitivityLabelListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ @@ -528,69 +527,66 @@ const listCurrentOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listRecommendedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SensitivityLabelListResult + bodyMapper: Mappers.SensitivityLabelListResult, }, - default: {} + default: {}, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, Parameters.includeDisabledRecommendations, - Parameters.skipToken + Parameters.skipToken, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SensitivityLabel + bodyMapper: Mappers.SensitivityLabel, }, 201: { - bodyMapper: Mappers.SensitivityLabel + bodyMapper: Mappers.SensitivityLabel, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -601,15 +597,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource + Parameters.sensitivityLabelSource, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, queryParameters: [Parameters.apiVersion], @@ -622,19 +617,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource + Parameters.sensitivityLabelSource, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SensitivityLabel + bodyMapper: Mappers.SensitivityLabel, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -646,14 +640,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource1 + Parameters.sensitivityLabelSource1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const enableRecommendationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", httpMethod: "POST", responses: { 200: {}, default: {} }, queryParameters: [Parameters.apiVersion], @@ -666,13 +659,12 @@ const enableRecommendationOperationSpec: coreClient.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource2 + Parameters.sensitivityLabelSource2, ], - serializer + serializer, }; const disableRecommendationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", httpMethod: "POST", responses: { 200: {}, default: {} }, queryParameters: [Parameters.apiVersion], @@ -685,20 +677,20 @@ const disableRecommendationOperationSpec: coreClient.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource2 + Parameters.sensitivityLabelSource2, ], - serializer + serializer, }; const listCurrentNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SensitivityLabelListResult + bodyMapper: Mappers.SensitivityLabelListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -706,19 +698,19 @@ const listCurrentNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listRecommendedNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SensitivityLabelListResult + bodyMapper: Mappers.SensitivityLabelListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -726,8 +718,8 @@ const listRecommendedNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolTableColumns.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolTableColumns.ts index 958ff542af71..a277817721b2 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolTableColumns.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolTableColumns.ts @@ -18,7 +18,7 @@ import { SqlPoolTableColumnsListByTableNameNextOptionalParams, SqlPoolTableColumnsListByTableNameOptionalParams, SqlPoolTableColumnsListByTableNameResponse, - SqlPoolTableColumnsListByTableNameNextResponse + SqlPoolTableColumnsListByTableNameNextResponse, } from "../models"; /// @@ -49,7 +49,7 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { sqlPoolName: string, schemaName: string, tableName: string, - options?: SqlPoolTableColumnsListByTableNameOptionalParams + options?: SqlPoolTableColumnsListByTableNameOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTableNamePagingAll( resourceGroupName, @@ -57,7 +57,7 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { sqlPoolName, schemaName, tableName, - options + options, ); return { next() { @@ -77,9 +77,9 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { schemaName, tableName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { schemaName: string, tableName: string, options?: SqlPoolTableColumnsListByTableNameOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolTableColumnsListByTableNameResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { sqlPoolName, schemaName, tableName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { schemaName, tableName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -131,7 +131,7 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { sqlPoolName: string, schemaName: string, tableName: string, - options?: SqlPoolTableColumnsListByTableNameOptionalParams + options?: SqlPoolTableColumnsListByTableNameOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTableNamePagingPage( resourceGroupName, @@ -139,7 +139,7 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { sqlPoolName, schemaName, tableName, - options + options, )) { yield* page; } @@ -160,7 +160,7 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { sqlPoolName: string, schemaName: string, tableName: string, - options?: SqlPoolTableColumnsListByTableNameOptionalParams + options?: SqlPoolTableColumnsListByTableNameOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -169,9 +169,9 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { sqlPoolName, schemaName, tableName, - options + options, }, - listByTableNameOperationSpec + listByTableNameOperationSpec, ); } @@ -192,7 +192,7 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { schemaName: string, tableName: string, nextLink: string, - options?: SqlPoolTableColumnsListByTableNameNextOptionalParams + options?: SqlPoolTableColumnsListByTableNameNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -202,9 +202,9 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { schemaName, tableName, nextLink, - options + options, }, - listByTableNameNextOperationSpec + listByTableNameNextOperationSpec, ); } } @@ -212,14 +212,13 @@ export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByTableNameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolColumnListResult + bodyMapper: Mappers.SqlPoolColumnListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ @@ -229,19 +228,19 @@ const listByTableNameOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.sqlPoolName, Parameters.schemaName, - Parameters.tableName + Parameters.tableName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTableNameNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolColumnListResult + bodyMapper: Mappers.SqlPoolColumnListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -251,8 +250,8 @@ const listByTableNameNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.sqlPoolName, Parameters.schemaName, - Parameters.tableName + Parameters.tableName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts index c78665896c07..cf494e356f4b 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts @@ -20,7 +20,7 @@ import { SqlPoolTablesListBySchemaResponse, SqlPoolTablesGetOptionalParams, SqlPoolTablesGetResponse, - SqlPoolTablesListBySchemaNextResponse + SqlPoolTablesListBySchemaNextResponse, } from "../models"; /// @@ -49,14 +49,14 @@ export class SqlPoolTablesImpl implements SqlPoolTables { workspaceName: string, sqlPoolName: string, schemaName: string, - options?: SqlPoolTablesListBySchemaOptionalParams + options?: SqlPoolTablesListBySchemaOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySchemaPagingAll( resourceGroupName, workspaceName, sqlPoolName, schemaName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class SqlPoolTablesImpl implements SqlPoolTables { sqlPoolName, schemaName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class SqlPoolTablesImpl implements SqlPoolTables { sqlPoolName: string, schemaName: string, options?: SqlPoolTablesListBySchemaOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolTablesListBySchemaResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class SqlPoolTablesImpl implements SqlPoolTables { workspaceName, sqlPoolName, schemaName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +111,7 @@ export class SqlPoolTablesImpl implements SqlPoolTables { sqlPoolName, schemaName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,14 +125,14 @@ export class SqlPoolTablesImpl implements SqlPoolTables { workspaceName: string, sqlPoolName: string, schemaName: string, - options?: SqlPoolTablesListBySchemaOptionalParams + options?: SqlPoolTablesListBySchemaOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySchemaPagingPage( resourceGroupName, workspaceName, sqlPoolName, schemaName, - options + options, )) { yield* page; } @@ -151,11 +151,11 @@ export class SqlPoolTablesImpl implements SqlPoolTables { workspaceName: string, sqlPoolName: string, schemaName: string, - options?: SqlPoolTablesListBySchemaOptionalParams + options?: SqlPoolTablesListBySchemaOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, schemaName, options }, - listBySchemaOperationSpec + listBySchemaOperationSpec, ); } @@ -174,7 +174,7 @@ export class SqlPoolTablesImpl implements SqlPoolTables { sqlPoolName: string, schemaName: string, tableName: string, - options?: SqlPoolTablesGetOptionalParams + options?: SqlPoolTablesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -183,9 +183,9 @@ export class SqlPoolTablesImpl implements SqlPoolTables { sqlPoolName, schemaName, tableName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -204,7 +204,7 @@ export class SqlPoolTablesImpl implements SqlPoolTables { sqlPoolName: string, schemaName: string, nextLink: string, - options?: SqlPoolTablesListBySchemaNextOptionalParams + options?: SqlPoolTablesListBySchemaNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -213,9 +213,9 @@ export class SqlPoolTablesImpl implements SqlPoolTables { sqlPoolName, schemaName, nextLink, - options + options, }, - listBySchemaNextOperationSpec + listBySchemaNextOperationSpec, ); } } @@ -223,14 +223,13 @@ export class SqlPoolTablesImpl implements SqlPoolTables { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySchemaOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolTableListResult + bodyMapper: Mappers.SqlPoolTableListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ @@ -239,20 +238,19 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.schemaName + Parameters.schemaName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolTable + bodyMapper: Mappers.SqlPoolTable, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -262,19 +260,19 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.sqlPoolName, Parameters.schemaName, - Parameters.tableName + Parameters.tableName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySchemaNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolTableListResult + bodyMapper: Mappers.SqlPoolTableListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -283,8 +281,8 @@ const listBySchemaNextOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.nextLink, Parameters.sqlPoolName, - Parameters.schemaName + Parameters.schemaName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts index ea275d6ec2c8..fe2c1101a9a7 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts @@ -23,13 +23,14 @@ import { SqlPoolTransparentDataEncryptionsGetResponse, SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams, SqlPoolTransparentDataEncryptionsCreateOrUpdateResponse, - SqlPoolTransparentDataEncryptionsListNextResponse + SqlPoolTransparentDataEncryptionsListNextResponse, } from "../models"; /// /** Class containing SqlPoolTransparentDataEncryptions operations. */ export class SqlPoolTransparentDataEncryptionsImpl - implements SqlPoolTransparentDataEncryptions { + implements SqlPoolTransparentDataEncryptions +{ private readonly client: SynapseManagementClient; /** @@ -51,13 +52,13 @@ export class SqlPoolTransparentDataEncryptionsImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolTransparentDataEncryptionsListOptionalParams + options?: SqlPoolTransparentDataEncryptionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -75,9 +76,9 @@ export class SqlPoolTransparentDataEncryptionsImpl workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +87,7 @@ export class SqlPoolTransparentDataEncryptionsImpl workspaceName: string, sqlPoolName: string, options?: SqlPoolTransparentDataEncryptionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolTransparentDataEncryptionsListResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +96,7 @@ export class SqlPoolTransparentDataEncryptionsImpl resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class SqlPoolTransparentDataEncryptionsImpl workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,13 +122,13 @@ export class SqlPoolTransparentDataEncryptionsImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolTransparentDataEncryptionsListOptionalParams + options?: SqlPoolTransparentDataEncryptionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -146,7 +147,7 @@ export class SqlPoolTransparentDataEncryptionsImpl workspaceName: string, sqlPoolName: string, transparentDataEncryptionName: TransparentDataEncryptionName, - options?: SqlPoolTransparentDataEncryptionsGetOptionalParams + options?: SqlPoolTransparentDataEncryptionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -154,9 +155,9 @@ export class SqlPoolTransparentDataEncryptionsImpl workspaceName, sqlPoolName, transparentDataEncryptionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -175,7 +176,7 @@ export class SqlPoolTransparentDataEncryptionsImpl sqlPoolName: string, transparentDataEncryptionName: TransparentDataEncryptionName, parameters: TransparentDataEncryption, - options?: SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams + options?: SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -184,9 +185,9 @@ export class SqlPoolTransparentDataEncryptionsImpl sqlPoolName, transparentDataEncryptionName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -201,11 +202,11 @@ export class SqlPoolTransparentDataEncryptionsImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolTransparentDataEncryptionsListOptionalParams + options?: SqlPoolTransparentDataEncryptionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -222,11 +223,11 @@ export class SqlPoolTransparentDataEncryptionsImpl workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolTransparentDataEncryptionsListNextOptionalParams + options?: SqlPoolTransparentDataEncryptionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -234,16 +235,15 @@ export class SqlPoolTransparentDataEncryptionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TransparentDataEncryption + bodyMapper: Mappers.TransparentDataEncryption, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated - } + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -252,27 +252,26 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.transparentDataEncryptionName + Parameters.transparentDataEncryptionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TransparentDataEncryption + bodyMapper: Mappers.TransparentDataEncryption, }, 201: { - bodyMapper: Mappers.TransparentDataEncryption + bodyMapper: Mappers.TransparentDataEncryption, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -280,21 +279,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.transparentDataEncryptionName + Parameters.transparentDataEncryptionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TransparentDataEncryptionListResult + bodyMapper: Mappers.TransparentDataEncryptionListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -302,19 +300,19 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TransparentDataEncryptionListResult + bodyMapper: Mappers.TransparentDataEncryptionListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -322,8 +320,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolUsages.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolUsages.ts index 10207dc8440a..d089723a646f 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolUsages.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolUsages.ts @@ -18,7 +18,7 @@ import { SqlPoolUsagesListNextOptionalParams, SqlPoolUsagesListOptionalParams, SqlPoolUsagesListResponse, - SqlPoolUsagesListNextResponse + SqlPoolUsagesListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class SqlPoolUsagesImpl implements SqlPoolUsages { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolUsagesListOptionalParams + options?: SqlPoolUsagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class SqlPoolUsagesImpl implements SqlPoolUsages { workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class SqlPoolUsagesImpl implements SqlPoolUsages { workspaceName: string, sqlPoolName: string, options?: SqlPoolUsagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolUsagesListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class SqlPoolUsagesImpl implements SqlPoolUsages { resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class SqlPoolUsagesImpl implements SqlPoolUsages { workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class SqlPoolUsagesImpl implements SqlPoolUsages { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolUsagesListOptionalParams + options?: SqlPoolUsagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class SqlPoolUsagesImpl implements SqlPoolUsages { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolUsagesListOptionalParams + options?: SqlPoolUsagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class SqlPoolUsagesImpl implements SqlPoolUsages { workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolUsagesListNextOptionalParams + options?: SqlPoolUsagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,16 +171,15 @@ export class SqlPoolUsagesImpl implements SqlPoolUsages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/usages", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/usages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolUsageListResult + bodyMapper: Mappers.SqlPoolUsageListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -188,21 +187,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolUsageListResult + bodyMapper: Mappers.SqlPoolUsageListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -210,8 +209,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts index d18e42487bbc..c4753ae33144 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts @@ -19,12 +19,13 @@ import { SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse, SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams, SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams, - SqlPoolVulnerabilityAssessmentRuleBaselinesGetResponse + SqlPoolVulnerabilityAssessmentRuleBaselinesGetResponse, } from "../models"; /** Class containing SqlPoolVulnerabilityAssessmentRuleBaselines operations. */ export class SqlPoolVulnerabilityAssessmentRuleBaselinesImpl - implements SqlPoolVulnerabilityAssessmentRuleBaselines { + implements SqlPoolVulnerabilityAssessmentRuleBaselines +{ private readonly client: SynapseManagementClient; /** @@ -55,10 +56,8 @@ export class SqlPoolVulnerabilityAssessmentRuleBaselinesImpl ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, parameters: SqlPoolVulnerabilityAssessmentRuleBaseline, - options?: SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams - ): Promise< - SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse - > { + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -68,9 +67,9 @@ export class SqlPoolVulnerabilityAssessmentRuleBaselinesImpl ruleId, baselineName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -92,7 +91,7 @@ export class SqlPoolVulnerabilityAssessmentRuleBaselinesImpl vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, - options?: SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -102,9 +101,9 @@ export class SqlPoolVulnerabilityAssessmentRuleBaselinesImpl vulnerabilityAssessmentName, ruleId, baselineName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -126,7 +125,7 @@ export class SqlPoolVulnerabilityAssessmentRuleBaselinesImpl vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, - options?: SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -136,9 +135,9 @@ export class SqlPoolVulnerabilityAssessmentRuleBaselinesImpl vulnerabilityAssessmentName, ruleId, baselineName, - options + options, }, - getOperationSpec + getOperationSpec, ); } } @@ -146,16 +145,15 @@ export class SqlPoolVulnerabilityAssessmentRuleBaselinesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentRuleBaseline + bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentRuleBaseline, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -165,15 +163,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.sqlPoolName, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, queryParameters: [Parameters.apiVersion], @@ -185,19 +182,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.sqlPoolName, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentRuleBaseline + bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentRuleBaseline, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -208,8 +204,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.sqlPoolName, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts index 06b95d84ec42..aaf32ba47ddc 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { VulnerabilityAssessmentScanRecord, VulnerabilityAssessmentName, @@ -26,13 +30,14 @@ import { SqlPoolVulnerabilityAssessmentScansExportResponse, SqlPoolVulnerabilityAssessmentScansGetOptionalParams, SqlPoolVulnerabilityAssessmentScansGetResponse, - SqlPoolVulnerabilityAssessmentScansListNextResponse + SqlPoolVulnerabilityAssessmentScansListNextResponse, } from "../models"; /// /** Class containing SqlPoolVulnerabilityAssessmentScans operations. */ export class SqlPoolVulnerabilityAssessmentScansImpl - implements SqlPoolVulnerabilityAssessmentScans { + implements SqlPoolVulnerabilityAssessmentScans +{ private readonly client: SynapseManagementClient; /** @@ -56,14 +61,14 @@ export class SqlPoolVulnerabilityAssessmentScansImpl workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams + options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, - options + options, ); return { next() { @@ -82,9 +87,9 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName, vulnerabilityAssessmentName, options, - settings + settings, ); - } + }, }; } @@ -94,7 +99,7 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolVulnerabilityAssessmentScansListResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +109,7 @@ export class SqlPoolVulnerabilityAssessmentScansImpl workspaceName, sqlPoolName, vulnerabilityAssessmentName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -118,7 +123,7 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName, vulnerabilityAssessmentName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -132,14 +137,14 @@ export class SqlPoolVulnerabilityAssessmentScansImpl workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams + options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, - options + options, )) { yield* page; } @@ -158,7 +163,7 @@ export class SqlPoolVulnerabilityAssessmentScansImpl workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams + options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -166,9 +171,9 @@ export class SqlPoolVulnerabilityAssessmentScansImpl workspaceName, sqlPoolName, vulnerabilityAssessmentName, - options + options, }, - listOperationSpec + listOperationSpec, ); } @@ -187,25 +192,24 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise, void>> { + options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -214,8 +218,8 @@ export class SqlPoolVulnerabilityAssessmentScansImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -223,26 +227,26 @@ export class SqlPoolVulnerabilityAssessmentScansImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, - options + options, }, - initiateScanOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: initiateScanOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -263,7 +267,7 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams + options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams, ): Promise { const poller = await this.beginInitiateScan( resourceGroupName, @@ -271,7 +275,7 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName, vulnerabilityAssessmentName, scanId, - options + options, ); return poller.pollUntilDone(); } @@ -291,7 +295,7 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: SqlPoolVulnerabilityAssessmentScansExportOptionalParams + options?: SqlPoolVulnerabilityAssessmentScansExportOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -300,9 +304,9 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName, vulnerabilityAssessmentName, scanId, - options + options, }, - exportOperationSpec + exportOperationSpec, ); } @@ -321,7 +325,7 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: SqlPoolVulnerabilityAssessmentScansGetOptionalParams + options?: SqlPoolVulnerabilityAssessmentScansGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -330,9 +334,9 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName, vulnerabilityAssessmentName, scanId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -351,7 +355,7 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, nextLink: string, - options?: SqlPoolVulnerabilityAssessmentScansListNextOptionalParams + options?: SqlPoolVulnerabilityAssessmentScansListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -360,9 +364,9 @@ export class SqlPoolVulnerabilityAssessmentScansImpl sqlPoolName, vulnerabilityAssessmentName, nextLink, - options + options, }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -370,14 +374,13 @@ export class SqlPoolVulnerabilityAssessmentScansImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -386,14 +389,13 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.vulnerabilityAssessmentName + Parameters.vulnerabilityAssessmentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const initiateScanOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, queryParameters: [Parameters.apiVersion], @@ -404,22 +406,21 @@ const initiateScanOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.sqlPoolName, Parameters.vulnerabilityAssessmentName, - Parameters.scanId + Parameters.scanId, ], - serializer + serializer, }; const exportOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentScansExport + bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentScansExport, }, 201: { - bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentScansExport + bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentScansExport, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -429,20 +430,19 @@ const exportOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.sqlPoolName, Parameters.vulnerabilityAssessmentName, - Parameters.scanId + Parameters.scanId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecord + bodyMapper: Mappers.VulnerabilityAssessmentScanRecord, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -452,19 +452,19 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.sqlPoolName, Parameters.vulnerabilityAssessmentName, - Parameters.scanId + Parameters.scanId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -473,8 +473,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.nextLink, Parameters.sqlPoolName, - Parameters.vulnerabilityAssessmentName + Parameters.vulnerabilityAssessmentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessments.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessments.ts index 765e126f19b9..10531d62ee9b 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessments.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessments.ts @@ -24,13 +24,14 @@ import { SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams, SqlPoolVulnerabilityAssessmentsCreateOrUpdateResponse, SqlPoolVulnerabilityAssessmentsDeleteOptionalParams, - SqlPoolVulnerabilityAssessmentsListNextResponse + SqlPoolVulnerabilityAssessmentsListNextResponse, } from "../models"; /// /** Class containing SqlPoolVulnerabilityAssessments operations. */ export class SqlPoolVulnerabilityAssessmentsImpl - implements SqlPoolVulnerabilityAssessments { + implements SqlPoolVulnerabilityAssessments +{ private readonly client: SynapseManagementClient; /** @@ -52,13 +53,13 @@ export class SqlPoolVulnerabilityAssessmentsImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolVulnerabilityAssessmentsListOptionalParams + options?: SqlPoolVulnerabilityAssessmentsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -76,9 +77,9 @@ export class SqlPoolVulnerabilityAssessmentsImpl workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +88,7 @@ export class SqlPoolVulnerabilityAssessmentsImpl workspaceName: string, sqlPoolName: string, options?: SqlPoolVulnerabilityAssessmentsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolVulnerabilityAssessmentsListResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class SqlPoolVulnerabilityAssessmentsImpl resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +110,7 @@ export class SqlPoolVulnerabilityAssessmentsImpl workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,13 +123,13 @@ export class SqlPoolVulnerabilityAssessmentsImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolVulnerabilityAssessmentsListOptionalParams + options?: SqlPoolVulnerabilityAssessmentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -145,11 +146,11 @@ export class SqlPoolVulnerabilityAssessmentsImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolVulnerabilityAssessmentsListOptionalParams + options?: SqlPoolVulnerabilityAssessmentsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -166,7 +167,7 @@ export class SqlPoolVulnerabilityAssessmentsImpl workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: SqlPoolVulnerabilityAssessmentsGetOptionalParams + options?: SqlPoolVulnerabilityAssessmentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -174,9 +175,9 @@ export class SqlPoolVulnerabilityAssessmentsImpl workspaceName, sqlPoolName, vulnerabilityAssessmentName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -195,7 +196,7 @@ export class SqlPoolVulnerabilityAssessmentsImpl sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: SqlPoolVulnerabilityAssessment, - options?: SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams + options?: SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -204,9 +205,9 @@ export class SqlPoolVulnerabilityAssessmentsImpl sqlPoolName, vulnerabilityAssessmentName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -223,7 +224,7 @@ export class SqlPoolVulnerabilityAssessmentsImpl workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: SqlPoolVulnerabilityAssessmentsDeleteOptionalParams + options?: SqlPoolVulnerabilityAssessmentsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -231,9 +232,9 @@ export class SqlPoolVulnerabilityAssessmentsImpl workspaceName, sqlPoolName, vulnerabilityAssessmentName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -250,11 +251,11 @@ export class SqlPoolVulnerabilityAssessmentsImpl workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolVulnerabilityAssessmentsListNextOptionalParams + options?: SqlPoolVulnerabilityAssessmentsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -262,14 +263,13 @@ export class SqlPoolVulnerabilityAssessmentsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentListResult + bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -277,20 +277,19 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolVulnerabilityAssessment + bodyMapper: Mappers.SqlPoolVulnerabilityAssessment, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -299,25 +298,24 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.vulnerabilityAssessmentName + Parameters.vulnerabilityAssessmentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SqlPoolVulnerabilityAssessment + bodyMapper: Mappers.SqlPoolVulnerabilityAssessment, }, 201: { - bodyMapper: Mappers.SqlPoolVulnerabilityAssessment + bodyMapper: Mappers.SqlPoolVulnerabilityAssessment, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -325,15 +323,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.vulnerabilityAssessmentName + Parameters.vulnerabilityAssessmentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, queryParameters: [Parameters.apiVersion], @@ -343,18 +340,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.vulnerabilityAssessmentName + Parameters.vulnerabilityAssessmentName, ], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentListResult + bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -362,8 +359,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadClassifier.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadClassifier.ts index 535f0427c99b..9fe8ec44c9a8 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadClassifier.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadClassifier.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { WorkloadClassifier, SqlPoolWorkloadClassifierListNextOptionalParams, @@ -25,13 +29,14 @@ import { SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams, SqlPoolWorkloadClassifierCreateOrUpdateResponse, SqlPoolWorkloadClassifierDeleteOptionalParams, - SqlPoolWorkloadClassifierListNextResponse + SqlPoolWorkloadClassifierListNextResponse, } from "../models"; /// /** Class containing SqlPoolWorkloadClassifier operations. */ export class SqlPoolWorkloadClassifierImpl - implements SqlPoolWorkloadClassifier { + implements SqlPoolWorkloadClassifier +{ private readonly client: SynapseManagementClient; /** @@ -55,14 +60,14 @@ export class SqlPoolWorkloadClassifierImpl workspaceName: string, sqlPoolName: string, workloadGroupName: string, - options?: SqlPoolWorkloadClassifierListOptionalParams + options?: SqlPoolWorkloadClassifierListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, - options + options, ); return { next() { @@ -81,9 +86,9 @@ export class SqlPoolWorkloadClassifierImpl sqlPoolName, workloadGroupName, options, - settings + settings, ); - } + }, }; } @@ -93,7 +98,7 @@ export class SqlPoolWorkloadClassifierImpl sqlPoolName: string, workloadGroupName: string, options?: SqlPoolWorkloadClassifierListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolWorkloadClassifierListResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +108,7 @@ export class SqlPoolWorkloadClassifierImpl workspaceName, sqlPoolName, workloadGroupName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -117,7 +122,7 @@ export class SqlPoolWorkloadClassifierImpl sqlPoolName, workloadGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -131,14 +136,14 @@ export class SqlPoolWorkloadClassifierImpl workspaceName: string, sqlPoolName: string, workloadGroupName: string, - options?: SqlPoolWorkloadClassifierListOptionalParams + options?: SqlPoolWorkloadClassifierListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, - options + options, )) { yield* page; } @@ -159,7 +164,7 @@ export class SqlPoolWorkloadClassifierImpl sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, - options?: SqlPoolWorkloadClassifierGetOptionalParams + options?: SqlPoolWorkloadClassifierGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -168,9 +173,9 @@ export class SqlPoolWorkloadClassifierImpl sqlPoolName, workloadGroupName, workloadClassifierName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -191,30 +196,29 @@ export class SqlPoolWorkloadClassifierImpl workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, - options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams + options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolWorkloadClassifierCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -223,8 +227,8 @@ export class SqlPoolWorkloadClassifierImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -232,27 +236,30 @@ export class SqlPoolWorkloadClassifierImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + SqlPoolWorkloadClassifierCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -275,7 +282,7 @@ export class SqlPoolWorkloadClassifierImpl workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, - options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams + options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -284,7 +291,7 @@ export class SqlPoolWorkloadClassifierImpl workloadGroupName, workloadClassifierName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -304,25 +311,24 @@ export class SqlPoolWorkloadClassifierImpl sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, - options?: SqlPoolWorkloadClassifierDeleteOptionalParams - ): Promise, void>> { + options?: SqlPoolWorkloadClassifierDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -331,8 +337,8 @@ export class SqlPoolWorkloadClassifierImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -340,26 +346,26 @@ export class SqlPoolWorkloadClassifierImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, - options + options, }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -380,7 +386,7 @@ export class SqlPoolWorkloadClassifierImpl sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, - options?: SqlPoolWorkloadClassifierDeleteOptionalParams + options?: SqlPoolWorkloadClassifierDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -388,7 +394,7 @@ export class SqlPoolWorkloadClassifierImpl sqlPoolName, workloadGroupName, workloadClassifierName, - options + options, ); return poller.pollUntilDone(); } @@ -406,7 +412,7 @@ export class SqlPoolWorkloadClassifierImpl workspaceName: string, sqlPoolName: string, workloadGroupName: string, - options?: SqlPoolWorkloadClassifierListOptionalParams + options?: SqlPoolWorkloadClassifierListOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -414,9 +420,9 @@ export class SqlPoolWorkloadClassifierImpl workspaceName, sqlPoolName, workloadGroupName, - options + options, }, - listOperationSpec + listOperationSpec, ); } @@ -435,7 +441,7 @@ export class SqlPoolWorkloadClassifierImpl sqlPoolName: string, workloadGroupName: string, nextLink: string, - options?: SqlPoolWorkloadClassifierListNextOptionalParams + options?: SqlPoolWorkloadClassifierListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -444,9 +450,9 @@ export class SqlPoolWorkloadClassifierImpl sqlPoolName, workloadGroupName, nextLink, - options + options, }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -454,14 +460,13 @@ export class SqlPoolWorkloadClassifierImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkloadClassifier + bodyMapper: Mappers.WorkloadClassifier, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -471,31 +476,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.sqlPoolName, Parameters.workloadGroupName, - Parameters.workloadClassifierName + Parameters.workloadClassifierName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.WorkloadClassifier + bodyMapper: Mappers.WorkloadClassifier, }, 201: { - bodyMapper: Mappers.WorkloadClassifier + bodyMapper: Mappers.WorkloadClassifier, }, 202: { - bodyMapper: Mappers.WorkloadClassifier + bodyMapper: Mappers.WorkloadClassifier, }, 204: { - bodyMapper: Mappers.WorkloadClassifier + bodyMapper: Mappers.WorkloadClassifier, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -504,15 +508,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.sqlPoolName, Parameters.workloadGroupName, - Parameters.workloadClassifierName + Parameters.workloadClassifierName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, queryParameters: [Parameters.apiVersion], @@ -523,19 +526,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.sqlPoolName, Parameters.workloadGroupName, - Parameters.workloadClassifierName + Parameters.workloadClassifierName, ], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkloadClassifierListResult + bodyMapper: Mappers.WorkloadClassifierListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -544,19 +546,19 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.workloadGroupName + Parameters.workloadGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkloadClassifierListResult + bodyMapper: Mappers.WorkloadClassifierListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -565,8 +567,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.nextLink, Parameters.sqlPoolName, - Parameters.workloadGroupName + Parameters.workloadGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadGroup.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadGroup.ts index 4eea79233b8a..fba2b4e7b2a4 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadGroup.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadGroup.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { WorkloadGroup, SqlPoolWorkloadGroupListNextOptionalParams, @@ -25,7 +29,7 @@ import { SqlPoolWorkloadGroupCreateOrUpdateOptionalParams, SqlPoolWorkloadGroupCreateOrUpdateResponse, SqlPoolWorkloadGroupDeleteOptionalParams, - SqlPoolWorkloadGroupListNextResponse + SqlPoolWorkloadGroupListNextResponse, } from "../models"; /// @@ -52,13 +56,13 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolWorkloadGroupListOptionalParams + options?: SqlPoolWorkloadGroupListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return { next() { @@ -76,9 +80,9 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { workspaceName, sqlPoolName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +91,7 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { workspaceName: string, sqlPoolName: string, options?: SqlPoolWorkloadGroupListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolWorkloadGroupListResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +100,7 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { resourceGroupName, workspaceName, sqlPoolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +113,7 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { workspaceName, sqlPoolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,13 +126,13 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolWorkloadGroupListOptionalParams + options?: SqlPoolWorkloadGroupListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, sqlPoolName, - options + options, )) { yield* page; } @@ -147,7 +151,7 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { workspaceName: string, sqlPoolName: string, workloadGroupName: string, - options?: SqlPoolWorkloadGroupGetOptionalParams + options?: SqlPoolWorkloadGroupGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -155,9 +159,9 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { workspaceName, sqlPoolName, workloadGroupName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -176,30 +180,29 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { sqlPoolName: string, workloadGroupName: string, parameters: WorkloadGroup, - options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams + options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolWorkloadGroupCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -208,8 +211,8 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -217,26 +220,29 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + SqlPoolWorkloadGroupCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -257,7 +263,7 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { sqlPoolName: string, workloadGroupName: string, parameters: WorkloadGroup, - options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams + options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -265,7 +271,7 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { sqlPoolName, workloadGroupName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -283,25 +289,24 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { workspaceName: string, sqlPoolName: string, workloadGroupName: string, - options?: SqlPoolWorkloadGroupDeleteOptionalParams - ): Promise, void>> { + options?: SqlPoolWorkloadGroupDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -310,8 +315,8 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -319,25 +324,25 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, - options + options, }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -356,14 +361,14 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { workspaceName: string, sqlPoolName: string, workloadGroupName: string, - options?: SqlPoolWorkloadGroupDeleteOptionalParams + options?: SqlPoolWorkloadGroupDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, - options + options, ); return poller.pollUntilDone(); } @@ -379,11 +384,11 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolWorkloadGroupListOptionalParams + options?: SqlPoolWorkloadGroupListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -400,11 +405,11 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { workspaceName: string, sqlPoolName: string, nextLink: string, - options?: SqlPoolWorkloadGroupListNextOptionalParams + options?: SqlPoolWorkloadGroupListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -412,14 +417,13 @@ export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkloadGroup + bodyMapper: Mappers.WorkloadGroup, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -428,31 +432,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.workloadGroupName + Parameters.workloadGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.WorkloadGroup + bodyMapper: Mappers.WorkloadGroup, }, 201: { - bodyMapper: Mappers.WorkloadGroup + bodyMapper: Mappers.WorkloadGroup, }, 202: { - bodyMapper: Mappers.WorkloadGroup + bodyMapper: Mappers.WorkloadGroup, }, 204: { - bodyMapper: Mappers.WorkloadGroup + bodyMapper: Mappers.WorkloadGroup, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -460,15 +463,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.workloadGroupName + Parameters.workloadGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, queryParameters: [Parameters.apiVersion], @@ -478,19 +480,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.workloadGroupName + Parameters.workloadGroupName, ], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkloadGroupListResult + bodyMapper: Mappers.WorkloadGroupListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -498,19 +499,19 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkloadGroupListResult + bodyMapper: Mappers.WorkloadGroupListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, @@ -518,8 +519,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName, Parameters.nextLink, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPools.ts b/sdk/synapse/arm-synapse/src/operations/sqlPools.ts index 2cb28af757a7..d11af62e8404 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPools.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPools.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { SqlPool, SqlPoolsListByWorkspaceNextOptionalParams, @@ -33,9 +37,7 @@ import { SqlPoolsPauseResponse, SqlPoolsResumeOptionalParams, SqlPoolsResumeResponse, - ResourceMoveDefinition, - SqlPoolsRenameOptionalParams, - SqlPoolsListByWorkspaceNextResponse + SqlPoolsListByWorkspaceNextResponse, } from "../models"; /// @@ -60,12 +62,12 @@ export class SqlPoolsImpl implements SqlPools { public listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: SqlPoolsListByWorkspaceOptionalParams + options?: SqlPoolsListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByWorkspacePagingAll( resourceGroupName, workspaceName, - options + options, ); return { next() { @@ -82,9 +84,9 @@ export class SqlPoolsImpl implements SqlPools { resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -92,7 +94,7 @@ export class SqlPoolsImpl implements SqlPools { resourceGroupName: string, workspaceName: string, options?: SqlPoolsListByWorkspaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SqlPoolsListByWorkspaceResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +102,7 @@ export class SqlPoolsImpl implements SqlPools { result = await this._listByWorkspace( resourceGroupName, workspaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -112,7 +114,7 @@ export class SqlPoolsImpl implements SqlPools { resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,12 +126,12 @@ export class SqlPoolsImpl implements SqlPools { private async *listByWorkspacePagingAll( resourceGroupName: string, workspaceName: string, - options?: SqlPoolsListByWorkspaceOptionalParams + options?: SqlPoolsListByWorkspaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByWorkspacePagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -146,11 +148,11 @@ export class SqlPoolsImpl implements SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsGetOptionalParams + options?: SqlPoolsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -167,30 +169,29 @@ export class SqlPoolsImpl implements SqlPools { workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPoolPatchInfo, - options?: SqlPoolsUpdateOptionalParams + options?: SqlPoolsUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolsUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -199,8 +200,8 @@ export class SqlPoolsImpl implements SqlPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -208,19 +209,28 @@ export class SqlPoolsImpl implements SqlPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + sqlPoolName, + sqlPoolInfo, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + SqlPoolsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -239,14 +249,14 @@ export class SqlPoolsImpl implements SqlPools { workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPoolPatchInfo, - options?: SqlPoolsUpdateOptionalParams + options?: SqlPoolsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, - options + options, ); return poller.pollUntilDone(); } @@ -264,30 +274,29 @@ export class SqlPoolsImpl implements SqlPools { workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPool, - options?: SqlPoolsCreateOptionalParams + options?: SqlPoolsCreateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolsCreateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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 +305,8 @@ export class SqlPoolsImpl implements SqlPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -305,20 +314,29 @@ export class SqlPoolsImpl implements SqlPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + sqlPoolName, + sqlPoolInfo, + options, + }, + spec: createOperationSpec, + }); + const poller = await createHttpPoller< + SqlPoolsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -337,14 +355,14 @@ export class SqlPoolsImpl implements SqlPools { workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPool, - options?: SqlPoolsCreateOptionalParams + options?: SqlPoolsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, - options + options, ); return poller.pollUntilDone(); } @@ -360,30 +378,29 @@ export class SqlPoolsImpl implements SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsDeleteOptionalParams + options?: SqlPoolsDeleteOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolsDeleteResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -392,8 +409,8 @@ export class SqlPoolsImpl implements SqlPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -401,20 +418,23 @@ export class SqlPoolsImpl implements SqlPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, sqlPoolName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, sqlPoolName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + SqlPoolsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -431,13 +451,13 @@ export class SqlPoolsImpl implements SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsDeleteOptionalParams + options?: SqlPoolsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return poller.pollUntilDone(); } @@ -451,11 +471,11 @@ export class SqlPoolsImpl implements SqlPools { private _listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: SqlPoolsListByWorkspaceOptionalParams + options?: SqlPoolsListByWorkspaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + listByWorkspaceOperationSpec, ); } @@ -470,27 +490,29 @@ export class SqlPoolsImpl implements SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsPauseOptionalParams + options?: SqlPoolsPauseOptionalParams, ): Promise< - PollerLike, SqlPoolsPauseResponse> + SimplePollerLike< + OperationState, + SqlPoolsPauseResponse + > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -499,8 +521,8 @@ export class SqlPoolsImpl implements SqlPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -508,20 +530,23 @@ export class SqlPoolsImpl implements SqlPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, sqlPoolName, options }, - pauseOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, sqlPoolName, options }, + spec: pauseOperationSpec, + }); + const poller = await createHttpPoller< + SqlPoolsPauseResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -538,13 +563,13 @@ export class SqlPoolsImpl implements SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsPauseOptionalParams + options?: SqlPoolsPauseOptionalParams, ): Promise { const poller = await this.beginPause( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return poller.pollUntilDone(); } @@ -560,30 +585,29 @@ export class SqlPoolsImpl implements SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsResumeOptionalParams + options?: SqlPoolsResumeOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolsResumeResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -592,8 +616,8 @@ export class SqlPoolsImpl implements SqlPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -601,20 +625,23 @@ export class SqlPoolsImpl implements SqlPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, sqlPoolName, options }, - resumeOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, sqlPoolName, options }, + spec: resumeOperationSpec, + }); + const poller = await createHttpPoller< + SqlPoolsResumeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -631,38 +658,17 @@ export class SqlPoolsImpl implements SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsResumeOptionalParams + options?: SqlPoolsResumeOptionalParams, ): Promise { const poller = await this.beginResume( resourceGroupName, workspaceName, sqlPoolName, - options + options, ); return poller.pollUntilDone(); } - /** - * Rename a SQL pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name - * @param parameters The resource move definition for renaming this Sql pool. - * @param options The options parameters. - */ - rename( - resourceGroupName: string, - workspaceName: string, - sqlPoolName: string, - parameters: ResourceMoveDefinition, - options?: SqlPoolsRenameOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, - renameOperationSpec - ); - } - /** * ListByWorkspaceNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -674,11 +680,11 @@ export class SqlPoolsImpl implements SqlPools { resourceGroupName: string, workspaceName: string, nextLink: string, - options?: SqlPoolsListByWorkspaceNextOptionalParams + options?: SqlPoolsListByWorkspaceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec + listByWorkspaceNextOperationSpec, ); } } @@ -686,16 +692,15 @@ export class SqlPoolsImpl implements SqlPools { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -703,31 +708,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 201: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 202: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 204: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.sqlPoolInfo, queryParameters: [Parameters.apiVersion], @@ -736,35 +740,34 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 201: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 202: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 204: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 404: { - isError: true + isError: true, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.sqlPoolInfo1, queryParameters: [Parameters.apiVersion], @@ -773,32 +776,31 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 201: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 202: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 204: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -806,53 +808,51 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolInfoListResult + bodyMapper: Mappers.SqlPoolInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const pauseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/pause", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/pause", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 201: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 202: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 204: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -860,31 +860,30 @@ const pauseOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const resumeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/resume", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/resume", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 201: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 202: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, 204: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -892,47 +891,29 @@ const resumeOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer -}; -const renameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/move", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - headerParameters: [Parameters.contentType], - mediaType: "json", - serializer + serializer, }; const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolInfoListResult + bodyMapper: Mappers.SqlPoolInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceAadAdmins.ts b/sdk/synapse/arm-synapse/src/operations/workspaceAadAdmins.ts index aea466778022..2a673be420e3 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceAadAdmins.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceAadAdmins.ts @@ -11,15 +11,19 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { WorkspaceAadAdminsGetOptionalParams, WorkspaceAadAdminsGetResponse, WorkspaceAadAdminInfo, WorkspaceAadAdminsCreateOrUpdateOptionalParams, WorkspaceAadAdminsCreateOrUpdateResponse, - WorkspaceAadAdminsDeleteOptionalParams + WorkspaceAadAdminsDeleteOptionalParams, } from "../models"; /** Class containing WorkspaceAadAdmins operations. */ @@ -43,11 +47,11 @@ export class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { get( resourceGroupName: string, workspaceName: string, - options?: WorkspaceAadAdminsGetOptionalParams + options?: WorkspaceAadAdminsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -62,30 +66,29 @@ export class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, - options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams + options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspaceAadAdminsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -94,8 +97,8 @@ export class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -103,20 +106,23 @@ export class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, aadAdminInfo, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, aadAdminInfo, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceAadAdminsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -133,13 +139,13 @@ export class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, - options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams + options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, aadAdminInfo, - options + options, ); return poller.pollUntilDone(); } @@ -153,25 +159,24 @@ export class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { async beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspaceAadAdminsDeleteOptionalParams - ): Promise, void>> { + options?: WorkspaceAadAdminsDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -180,8 +185,8 @@ export class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -189,20 +194,20 @@ export class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -217,12 +222,12 @@ export class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { async beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspaceAadAdminsDeleteOptionalParams + options?: WorkspaceAadAdminsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, - options + options, ); return poller.pollUntilDone(); } @@ -231,47 +236,45 @@ export class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceAadAdminInfo + bodyMapper: Mappers.WorkspaceAadAdminInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.WorkspaceAadAdminInfo + bodyMapper: Mappers.WorkspaceAadAdminInfo, }, 201: { - bodyMapper: Mappers.WorkspaceAadAdminInfo + bodyMapper: Mappers.WorkspaceAadAdminInfo, }, 202: { - bodyMapper: Mappers.WorkspaceAadAdminInfo + bodyMapper: Mappers.WorkspaceAadAdminInfo, }, 204: { - bodyMapper: Mappers.WorkspaceAadAdminInfo + bodyMapper: Mappers.WorkspaceAadAdminInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.aadAdminInfo, queryParameters: [Parameters.apiVersion], @@ -279,15 +282,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", httpMethod: "DELETE", responses: { 200: {}, @@ -295,16 +297,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedIdentitySqlControlSettings.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedIdentitySqlControlSettings.ts index 054d64985f40..ba8386460bb8 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedIdentitySqlControlSettings.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedIdentitySqlControlSettings.ts @@ -11,19 +11,24 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams, WorkspaceManagedIdentitySqlControlSettingsGetResponse, ManagedIdentitySqlControlSettingsModel, WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams, - WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse + WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse, } from "../models"; /** Class containing WorkspaceManagedIdentitySqlControlSettings operations. */ export class WorkspaceManagedIdentitySqlControlSettingsImpl - implements WorkspaceManagedIdentitySqlControlSettings { + implements WorkspaceManagedIdentitySqlControlSettings +{ private readonly client: SynapseManagementClient; /** @@ -43,11 +48,11 @@ export class WorkspaceManagedIdentitySqlControlSettingsImpl get( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams + options?: WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -62,32 +67,29 @@ export class WorkspaceManagedIdentitySqlControlSettingsImpl resourceGroupName: string, workspaceName: string, managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, - options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams + options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -96,8 +98,8 @@ export class WorkspaceManagedIdentitySqlControlSettingsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -105,25 +107,28 @@ export class WorkspaceManagedIdentitySqlControlSettingsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, managedIdentitySqlControlSettings, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -140,13 +145,13 @@ export class WorkspaceManagedIdentitySqlControlSettingsImpl resourceGroupName: string, workspaceName: string, managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, - options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams + options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, managedIdentitySqlControlSettings, - options + options, ); return poller.pollUntilDone(); } @@ -155,47 +160,45 @@ export class WorkspaceManagedIdentitySqlControlSettingsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/managedIdentitySqlControlSettings/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/managedIdentitySqlControlSettings/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel + bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/managedIdentitySqlControlSettings/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/managedIdentitySqlControlSettings/default", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel + bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel, }, 201: { - bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel + bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel, }, 202: { - bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel + bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel, }, 204: { - bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel + bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.managedIdentitySqlControlSettings, queryParameters: [Parameters.apiVersion], @@ -203,9 +206,9 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerBlobAuditingPolicies.ts index e9bca34fa75e..bf8259bd51d1 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerBlobAuditingPolicies.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ServerBlobAuditingPolicy, WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextOptionalParams, @@ -25,13 +29,14 @@ import { WorkspaceManagedSqlServerBlobAuditingPoliciesGetResponse, WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse, - WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextResponse + WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextResponse, } from "../models"; /// /** Class containing WorkspaceManagedSqlServerBlobAuditingPolicies operations. */ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl - implements WorkspaceManagedSqlServerBlobAuditingPolicies { + implements WorkspaceManagedSqlServerBlobAuditingPolicies +{ private readonly client: SynapseManagementClient; /** @@ -51,12 +56,12 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl public listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByWorkspacePagingAll( resourceGroupName, workspaceName, - options + options, ); return { next() { @@ -73,9 +78,9 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +88,7 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +96,7 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl result = await this._listByWorkspace( resourceGroupName, workspaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -103,7 +108,7 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,12 +120,12 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl private async *listByWorkspacePagingAll( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByWorkspacePagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -137,11 +142,11 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, - options?: WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, blobAuditingPolicyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -158,32 +163,29 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ServerBlobAuditingPolicy, - options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -192,8 +194,8 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -201,25 +203,28 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -238,16 +243,14 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ServerBlobAuditingPolicy, - options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse - > { + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, + ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -261,13 +264,11 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl private _listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams - ): Promise< - WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceResponse - > { + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + listByWorkspaceOperationSpec, ); } @@ -282,13 +283,11 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, nextLink: string, - options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextOptionalParams - ): Promise< - WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextResponse - > { + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec + listByWorkspaceNextOperationSpec, ); } } @@ -296,14 +295,13 @@ export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings/{blobAuditingPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings/{blobAuditingPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerBlobAuditingPolicy + bodyMapper: Mappers.ServerBlobAuditingPolicy, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -311,79 +309,77 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.blobAuditingPolicyName1 + Parameters.blobAuditingPolicyName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings/{blobAuditingPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings/{blobAuditingPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ServerBlobAuditingPolicy + bodyMapper: Mappers.ServerBlobAuditingPolicy, }, 201: { - bodyMapper: Mappers.ServerBlobAuditingPolicy + bodyMapper: Mappers.ServerBlobAuditingPolicy, }, 202: { - bodyMapper: Mappers.ServerBlobAuditingPolicy + bodyMapper: Mappers.ServerBlobAuditingPolicy, }, 204: { - bodyMapper: Mappers.ServerBlobAuditingPolicy + bodyMapper: Mappers.ServerBlobAuditingPolicy, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.blobAuditingPolicyName1 + Parameters.blobAuditingPolicyName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerBlobAuditingPolicyListResult + bodyMapper: Mappers.ServerBlobAuditingPolicyListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerBlobAuditingPolicyListResult + bodyMapper: Mappers.ServerBlobAuditingPolicyListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.ts index a73f4ab3f4f8..18f1c678702b 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DedicatedSQLminimalTlsSettings, WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListNextOptionalParams, @@ -25,13 +29,14 @@ import { WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse, WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetOptionalParams, WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetResponse, - WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListNextResponse + WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListNextResponse, } from "../models"; /// /** Class containing WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettings operations. */ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl - implements WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettings { + implements WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettings +{ private readonly client: SynapseManagementClient; /** @@ -51,7 +56,7 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl public list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams + options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, workspaceName, options); return { @@ -69,9 +74,9 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -79,7 +84,7 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +100,7 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +112,12 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl private async *listPagingAll( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams + options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -131,32 +136,29 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl workspaceName: string, dedicatedSQLminimalTlsSettingsName: DedicatedSQLMinimalTlsSettingsName, parameters: DedicatedSQLminimalTlsSettings, - options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams + options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -165,8 +167,8 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -174,25 +176,28 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, - options + options, }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -211,16 +216,14 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl workspaceName: string, dedicatedSQLminimalTlsSettingsName: DedicatedSQLMinimalTlsSettingsName, parameters: DedicatedSQLminimalTlsSettings, - options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse - > { + options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams, + ): Promise { const poller = await this.beginUpdate( resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -236,18 +239,16 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl resourceGroupName: string, workspaceName: string, dedicatedSQLminimalTlsSettingsName: string, - options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetOptionalParams - ): Promise< - WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetResponse - > { + options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -260,13 +261,11 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl private _list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams - ): Promise< - WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListResponse - > { + options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -281,13 +280,11 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl resourceGroupName: string, workspaceName: string, nextLink: string, - options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListNextOptionalParams - ): Promise< - WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListNextResponse - > { + options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -295,50 +292,48 @@ export class WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DedicatedSQLminimalTlsSettings + bodyMapper: Mappers.DedicatedSQLminimalTlsSettings, }, 201: { - bodyMapper: Mappers.DedicatedSQLminimalTlsSettings + bodyMapper: Mappers.DedicatedSQLminimalTlsSettings, }, 202: { - bodyMapper: Mappers.DedicatedSQLminimalTlsSettings + bodyMapper: Mappers.DedicatedSQLminimalTlsSettings, }, 204: { - bodyMapper: Mappers.DedicatedSQLminimalTlsSettings + bodyMapper: Mappers.DedicatedSQLminimalTlsSettings, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.dedicatedSQLminimalTlsSettingsName + Parameters.dedicatedSQLminimalTlsSettingsName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedSQLminimalTlsSettings + bodyMapper: Mappers.DedicatedSQLminimalTlsSettings, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -346,51 +341,50 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.dedicatedSQLminimalTlsSettingsName1 + Parameters.dedicatedSQLminimalTlsSettingsName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedSQLminimalTlsSettingsListResult + bodyMapper: Mappers.DedicatedSQLminimalTlsSettingsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedSQLminimalTlsSettingsListResult + bodyMapper: Mappers.DedicatedSQLminimalTlsSettingsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerEncryptionProtector.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerEncryptionProtector.ts index 23cdb5a8a07b..1fa095fe5b85 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerEncryptionProtector.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerEncryptionProtector.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { EncryptionProtector, WorkspaceManagedSqlServerEncryptionProtectorListNextOptionalParams, @@ -26,13 +30,14 @@ import { WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams, WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse, WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams, - WorkspaceManagedSqlServerEncryptionProtectorListNextResponse + WorkspaceManagedSqlServerEncryptionProtectorListNextResponse, } from "../models"; /// /** Class containing WorkspaceManagedSqlServerEncryptionProtector operations. */ export class WorkspaceManagedSqlServerEncryptionProtectorImpl - implements WorkspaceManagedSqlServerEncryptionProtector { + implements WorkspaceManagedSqlServerEncryptionProtector +{ private readonly client: SynapseManagementClient; /** @@ -52,7 +57,7 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl public list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams + options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, workspaceName, options); return { @@ -70,9 +75,9 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +85,7 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspaceManagedSqlServerEncryptionProtectorListResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +101,7 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -108,12 +113,12 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl private async *listPagingAll( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams + options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -130,11 +135,11 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams + options?: WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, encryptionProtectorName, options }, - getOperationSpec + getOperationSpec, ); } @@ -151,32 +156,29 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl workspaceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: EncryptionProtector, - options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams + options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -185,8 +187,8 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -194,25 +196,28 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, encryptionProtectorName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -231,16 +236,14 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl workspaceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: EncryptionProtector, - options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse - > { + options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams, + ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, encryptionProtectorName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -254,11 +257,11 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl private _list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams + options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -273,25 +276,24 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams - ): Promise, void>> { + options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -300,8 +302,8 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -309,19 +311,24 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, encryptionProtectorName, options }, - revalidateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + encryptionProtectorName, + options, + }, + spec: revalidateOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -338,13 +345,13 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams + options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams, ): Promise { const poller = await this.beginRevalidate( resourceGroupName, workspaceName, encryptionProtectorName, - options + options, ); return poller.pollUntilDone(); } @@ -360,11 +367,11 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl resourceGroupName: string, workspaceName: string, nextLink: string, - options?: WorkspaceManagedSqlServerEncryptionProtectorListNextOptionalParams + options?: WorkspaceManagedSqlServerEncryptionProtectorListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -372,16 +379,15 @@ export class WorkspaceManagedSqlServerEncryptionProtectorImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EncryptionProtector + bodyMapper: Mappers.EncryptionProtector, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -389,68 +395,65 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.encryptionProtectorName + Parameters.encryptionProtectorName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.EncryptionProtector + bodyMapper: Mappers.EncryptionProtector, }, 201: { - bodyMapper: Mappers.EncryptionProtector + bodyMapper: Mappers.EncryptionProtector, }, 202: { - bodyMapper: Mappers.EncryptionProtector + bodyMapper: Mappers.EncryptionProtector, }, 204: { - bodyMapper: Mappers.EncryptionProtector + bodyMapper: Mappers.EncryptionProtector, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.encryptionProtectorName + Parameters.encryptionProtectorName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EncryptionProtectorListResult + bodyMapper: Mappers.EncryptionProtectorListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const revalidateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}/revalidate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}/revalidate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, queryParameters: [Parameters.apiVersion], @@ -459,26 +462,26 @@ const revalidateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.encryptionProtectorName + Parameters.encryptionProtectorName, ], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EncryptionProtectorListResult + bodyMapper: Mappers.EncryptionProtectorListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts index 38de1d3bbca6..9908dd6accd8 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ExtendedServerBlobAuditingPolicy, WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextOptionalParams, @@ -25,13 +29,14 @@ import { WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetResponse, WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams, WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse, - WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextResponse + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextResponse, } from "../models"; /// /** Class containing WorkspaceManagedSqlServerExtendedBlobAuditingPolicies operations. */ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl - implements WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { + implements WorkspaceManagedSqlServerExtendedBlobAuditingPolicies +{ private readonly client: SynapseManagementClient; /** @@ -51,12 +56,12 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl public listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByWorkspacePagingAll( resourceGroupName, workspaceName, - options + options, ); return { next() { @@ -73,9 +78,9 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +88,7 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +96,7 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl result = await this._listByWorkspace( resourceGroupName, workspaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -103,7 +108,7 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,12 +120,12 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl private async *listByWorkspacePagingAll( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByWorkspacePagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -137,11 +142,11 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, - options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, blobAuditingPolicyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -158,32 +163,29 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ExtendedServerBlobAuditingPolicy, - options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -192,8 +194,8 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -201,25 +203,28 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -238,16 +243,14 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ExtendedServerBlobAuditingPolicy, - options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse - > { + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams, + ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -261,13 +264,11 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl private _listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams - ): Promise< - WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceResponse - > { + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + listByWorkspaceOperationSpec, ); } @@ -282,13 +283,11 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl resourceGroupName: string, workspaceName: string, nextLink: string, - options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextOptionalParams - ): Promise< - WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextResponse - > { + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec + listByWorkspaceNextOperationSpec, ); } } @@ -296,14 +295,13 @@ export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -311,79 +309,77 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.blobAuditingPolicyName1 + Parameters.blobAuditingPolicyName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy, }, 201: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy, }, 202: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy, }, 204: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.blobAuditingPolicyName1 + Parameters.blobAuditingPolicyName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerRecoverableSqlPools.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerRecoverableSqlPools.ts index d0a255241ea3..fa4d5105cc3e 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerRecoverableSqlPools.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerRecoverableSqlPools.ts @@ -20,13 +20,14 @@ import { WorkspaceManagedSqlServerRecoverableSqlPoolsListResponse, WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams, WorkspaceManagedSqlServerRecoverableSqlPoolsGetResponse, - WorkspaceManagedSqlServerRecoverableSqlPoolsListNextResponse + WorkspaceManagedSqlServerRecoverableSqlPoolsListNextResponse, } from "../models"; /// /** Class containing WorkspaceManagedSqlServerRecoverableSqlPools operations. */ export class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl - implements WorkspaceManagedSqlServerRecoverableSqlPools { + implements WorkspaceManagedSqlServerRecoverableSqlPools +{ private readonly client: SynapseManagementClient; /** @@ -46,7 +47,7 @@ export class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl public list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, workspaceName, options); return { @@ -64,9 +65,9 @@ export class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -74,7 +75,7 @@ export class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspaceManagedSqlServerRecoverableSqlPoolsListResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +91,7 @@ export class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -102,12 +103,12 @@ export class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl private async *listPagingAll( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -122,11 +123,11 @@ export class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl private _list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -141,11 +142,11 @@ export class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -160,11 +161,11 @@ export class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl resourceGroupName: string, workspaceName: string, nextLink: string, - options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListNextOptionalParams + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -172,34 +173,32 @@ export class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/recoverableSqlPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/recoverableSqlPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RecoverableSqlPoolListResult + bodyMapper: Mappers.RecoverableSqlPoolListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/recoverableSqlPools/{sqlPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/recoverableSqlPools/{sqlPoolName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RecoverableSqlPool + bodyMapper: Mappers.RecoverableSqlPool, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -207,27 +206,27 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName + Parameters.sqlPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RecoverableSqlPoolListResult + bodyMapper: Mappers.RecoverableSqlPoolListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerSecurityAlertPolicy.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerSecurityAlertPolicy.ts index 1edb35ca0128..ad33c9431b03 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerSecurityAlertPolicy.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerSecurityAlertPolicy.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ServerSecurityAlertPolicy, WorkspaceManagedSqlServerSecurityAlertPolicyListNextOptionalParams, @@ -25,13 +29,14 @@ import { WorkspaceManagedSqlServerSecurityAlertPolicyGetResponse, WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams, WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse, - WorkspaceManagedSqlServerSecurityAlertPolicyListNextResponse + WorkspaceManagedSqlServerSecurityAlertPolicyListNextResponse, } from "../models"; /// /** Class containing WorkspaceManagedSqlServerSecurityAlertPolicy operations. */ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl - implements WorkspaceManagedSqlServerSecurityAlertPolicy { + implements WorkspaceManagedSqlServerSecurityAlertPolicy +{ private readonly client: SynapseManagementClient; /** @@ -51,7 +56,7 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl public list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams + options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, workspaceName, options); return { @@ -69,9 +74,9 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -79,7 +84,7 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspaceManagedSqlServerSecurityAlertPolicyListResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +100,7 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +112,12 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl private async *listPagingAll( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams + options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -129,11 +134,11 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl resourceGroupName: string, workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, - options?: WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams + options?: WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, securityAlertPolicyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -150,32 +155,29 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, - options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams + options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -184,8 +186,8 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -193,25 +195,28 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, securityAlertPolicyName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -230,16 +235,14 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, - options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse - > { + options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams, + ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, securityAlertPolicyName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -253,11 +256,11 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl private _list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams + options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -272,11 +275,11 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl resourceGroupName: string, workspaceName: string, nextLink: string, - options?: WorkspaceManagedSqlServerSecurityAlertPolicyListNextOptionalParams + options?: WorkspaceManagedSqlServerSecurityAlertPolicyListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -284,14 +287,13 @@ export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerSecurityAlertPolicy + bodyMapper: Mappers.ServerSecurityAlertPolicy, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -299,79 +301,77 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.securityAlertPolicyName1 + Parameters.securityAlertPolicyName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ServerSecurityAlertPolicy + bodyMapper: Mappers.ServerSecurityAlertPolicy, }, 201: { - bodyMapper: Mappers.ServerSecurityAlertPolicy + bodyMapper: Mappers.ServerSecurityAlertPolicy, }, 202: { - bodyMapper: Mappers.ServerSecurityAlertPolicy + bodyMapper: Mappers.ServerSecurityAlertPolicy, }, 204: { - bodyMapper: Mappers.ServerSecurityAlertPolicy + bodyMapper: Mappers.ServerSecurityAlertPolicy, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.securityAlertPolicyName1 + Parameters.securityAlertPolicyName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerSecurityAlertPolicyListResult + bodyMapper: Mappers.ServerSecurityAlertPolicyListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerSecurityAlertPolicyListResult + bodyMapper: Mappers.ServerSecurityAlertPolicyListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerUsages.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerUsages.ts index 6bcd2b669ff1..4c0d0cb1b26a 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerUsages.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerUsages.ts @@ -18,13 +18,14 @@ import { WorkspaceManagedSqlServerUsagesListNextOptionalParams, WorkspaceManagedSqlServerUsagesListOptionalParams, WorkspaceManagedSqlServerUsagesListResponse, - WorkspaceManagedSqlServerUsagesListNextResponse + WorkspaceManagedSqlServerUsagesListNextResponse, } from "../models"; /// /** Class containing WorkspaceManagedSqlServerUsages operations. */ export class WorkspaceManagedSqlServerUsagesImpl - implements WorkspaceManagedSqlServerUsages { + implements WorkspaceManagedSqlServerUsages +{ private readonly client: SynapseManagementClient; /** @@ -44,7 +45,7 @@ export class WorkspaceManagedSqlServerUsagesImpl public list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerUsagesListOptionalParams + options?: WorkspaceManagedSqlServerUsagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, workspaceName, options); return { @@ -62,9 +63,9 @@ export class WorkspaceManagedSqlServerUsagesImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -72,7 +73,7 @@ export class WorkspaceManagedSqlServerUsagesImpl resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerUsagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspaceManagedSqlServerUsagesListResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +89,7 @@ export class WorkspaceManagedSqlServerUsagesImpl resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -100,12 +101,12 @@ export class WorkspaceManagedSqlServerUsagesImpl private async *listPagingAll( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerUsagesListOptionalParams + options?: WorkspaceManagedSqlServerUsagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -120,11 +121,11 @@ export class WorkspaceManagedSqlServerUsagesImpl private _list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerUsagesListOptionalParams + options?: WorkspaceManagedSqlServerUsagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -139,11 +140,11 @@ export class WorkspaceManagedSqlServerUsagesImpl resourceGroupName: string, workspaceName: string, nextLink: string, - options?: WorkspaceManagedSqlServerUsagesListNextOptionalParams + options?: WorkspaceManagedSqlServerUsagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -151,41 +152,40 @@ export class WorkspaceManagedSqlServerUsagesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlUsages", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlUsages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerUsageListResult + bodyMapper: Mappers.ServerUsageListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerUsageListResult + bodyMapper: Mappers.ServerUsageListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerVulnerabilityAssessments.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerVulnerabilityAssessments.ts index 56bc8ac49638..fe55dbed3d37 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerVulnerabilityAssessments.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerVulnerabilityAssessments.ts @@ -24,13 +24,14 @@ import { WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams, WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse, WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams, - WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextResponse + WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextResponse, } from "../models"; /// /** Class containing WorkspaceManagedSqlServerVulnerabilityAssessments operations. */ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl - implements WorkspaceManagedSqlServerVulnerabilityAssessments { + implements WorkspaceManagedSqlServerVulnerabilityAssessments +{ private readonly client: SynapseManagementClient; /** @@ -50,7 +51,7 @@ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl public list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, workspaceName, options); return { @@ -68,9 +69,9 @@ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl resourceGroupName, workspaceName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +79,7 @@ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspaceManagedSqlServerVulnerabilityAssessmentsListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +95,7 @@ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl resourceGroupName, workspaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,12 +107,12 @@ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl private async *listPagingAll( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, workspaceName, - options + options, )) { yield* page; } @@ -128,16 +129,16 @@ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl resourceGroupName: string, workspaceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, vulnerabilityAssessmentName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -154,19 +155,17 @@ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl workspaceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: ServerVulnerabilityAssessment, - options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse - > { + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -181,16 +180,16 @@ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl resourceGroupName: string, workspaceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, vulnerabilityAssessmentName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -203,11 +202,11 @@ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl private _list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -222,13 +221,11 @@ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl resourceGroupName: string, workspaceName: string, nextLink: string, - options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextOptionalParams - ): Promise< - WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextResponse - > { + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -236,14 +233,13 @@ export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerVulnerabilityAssessment + bodyMapper: Mappers.ServerVulnerabilityAssessment, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -251,40 +247,38 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.vulnerabilityAssessmentName + Parameters.vulnerabilityAssessmentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ServerVulnerabilityAssessment + bodyMapper: Mappers.ServerVulnerabilityAssessment, }, 201: { - bodyMapper: Mappers.ServerVulnerabilityAssessment + bodyMapper: Mappers.ServerVulnerabilityAssessment, }, - default: {} + default: {}, }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.vulnerabilityAssessmentName + Parameters.vulnerabilityAssessmentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, queryParameters: [Parameters.apiVersion], @@ -293,46 +287,45 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.vulnerabilityAssessmentName + Parameters.vulnerabilityAssessmentName, ], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult + bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult + bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult, }, - default: {} + default: {}, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceSqlAadAdmins.ts b/sdk/synapse/arm-synapse/src/operations/workspaceSqlAadAdmins.ts index edf585b48c5a..248e92b05dd3 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceSqlAadAdmins.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceSqlAadAdmins.ts @@ -11,15 +11,19 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { WorkspaceSqlAadAdminsGetOptionalParams, WorkspaceSqlAadAdminsGetResponse, WorkspaceAadAdminInfo, WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams, WorkspaceSqlAadAdminsCreateOrUpdateResponse, - WorkspaceSqlAadAdminsDeleteOptionalParams + WorkspaceSqlAadAdminsDeleteOptionalParams, } from "../models"; /** Class containing WorkspaceSqlAadAdmins operations. */ @@ -43,11 +47,11 @@ export class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { get( resourceGroupName: string, workspaceName: string, - options?: WorkspaceSqlAadAdminsGetOptionalParams + options?: WorkspaceSqlAadAdminsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -62,30 +66,29 @@ export class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, - options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams + options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspaceSqlAadAdminsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -94,8 +97,8 @@ export class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -103,20 +106,23 @@ export class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, aadAdminInfo, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, aadAdminInfo, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceSqlAadAdminsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -133,13 +139,13 @@ export class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, - options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams + options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, aadAdminInfo, - options + options, ); return poller.pollUntilDone(); } @@ -153,25 +159,24 @@ export class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { async beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspaceSqlAadAdminsDeleteOptionalParams - ): Promise, void>> { + options?: WorkspaceSqlAadAdminsDeleteOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -180,8 +185,8 @@ export class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -189,20 +194,20 @@ export class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -217,12 +222,12 @@ export class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { async beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspaceSqlAadAdminsDeleteOptionalParams + options?: WorkspaceSqlAadAdminsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, - options + options, ); return poller.pollUntilDone(); } @@ -231,47 +236,45 @@ export class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceAadAdminInfo + bodyMapper: Mappers.WorkspaceAadAdminInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.WorkspaceAadAdminInfo + bodyMapper: Mappers.WorkspaceAadAdminInfo, }, 201: { - bodyMapper: Mappers.WorkspaceAadAdminInfo + bodyMapper: Mappers.WorkspaceAadAdminInfo, }, 202: { - bodyMapper: Mappers.WorkspaceAadAdminInfo + bodyMapper: Mappers.WorkspaceAadAdminInfo, }, 204: { - bodyMapper: Mappers.WorkspaceAadAdminInfo + bodyMapper: Mappers.WorkspaceAadAdminInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.aadAdminInfo, queryParameters: [Parameters.apiVersion], @@ -279,15 +282,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", httpMethod: "DELETE", responses: { 200: {}, @@ -295,16 +297,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaces.ts b/sdk/synapse/arm-synapse/src/operations/workspaces.ts index 188c5fa8f0df..528b5faa1404 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaces.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaces.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SynapseManagementClient } from "../synapseManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Workspace, WorkspacesListByResourceGroupNextOptionalParams, @@ -33,7 +37,7 @@ import { WorkspacesDeleteOptionalParams, WorkspacesDeleteResponse, WorkspacesListByResourceGroupNextResponse, - WorkspacesListNextResponse + WorkspacesListNextResponse, } from "../models"; /// @@ -56,7 +60,7 @@ export class WorkspacesImpl implements Workspaces { */ public listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -73,16 +77,16 @@ export class WorkspacesImpl implements Workspaces { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspacesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +101,7 @@ export class WorkspacesImpl implements Workspaces { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -108,11 +112,11 @@ export class WorkspacesImpl implements Workspaces { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -123,7 +127,7 @@ export class WorkspacesImpl implements Workspaces { * @param options The options parameters. */ public list( - options?: WorkspacesListOptionalParams + options?: WorkspacesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -138,13 +142,13 @@ export class WorkspacesImpl implements Workspaces { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: WorkspacesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspacesListResponse; let continuationToken = settings?.continuationToken; @@ -165,7 +169,7 @@ export class WorkspacesImpl implements Workspaces { } private async *listPagingAll( - options?: WorkspacesListOptionalParams + options?: WorkspacesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -179,11 +183,11 @@ export class WorkspacesImpl implements Workspaces { */ private _listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -196,11 +200,11 @@ export class WorkspacesImpl implements Workspaces { get( resourceGroupName: string, workspaceName: string, - options?: WorkspacesGetOptionalParams + options?: WorkspacesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -215,30 +219,29 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, workspacePatchInfo: WorkspacePatchInfo, - options?: WorkspacesUpdateOptionalParams + options?: WorkspacesUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -247,8 +250,8 @@ export class WorkspacesImpl implements Workspaces { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -256,20 +259,23 @@ export class WorkspacesImpl implements Workspaces { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, workspacePatchInfo, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, workspacePatchInfo, options }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspacesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -286,13 +292,13 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, workspacePatchInfo: WorkspacePatchInfo, - options?: WorkspacesUpdateOptionalParams + options?: WorkspacesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, workspaceName, workspacePatchInfo, - options + options, ); return poller.pollUntilDone(); } @@ -308,30 +314,29 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, workspaceInfo: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -340,8 +345,8 @@ export class WorkspacesImpl implements Workspaces { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -349,20 +354,23 @@ export class WorkspacesImpl implements Workspaces { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, workspaceInfo, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, workspaceInfo, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspacesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -379,13 +387,13 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, workspaceInfo: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, workspaceInfo, - options + options, ); return poller.pollUntilDone(); } @@ -399,30 +407,29 @@ export class WorkspacesImpl implements Workspaces { async beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesDeleteResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -431,8 +438,8 @@ export class WorkspacesImpl implements Workspaces { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -440,20 +447,23 @@ export class WorkspacesImpl implements Workspaces { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + WorkspacesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -468,12 +478,12 @@ export class WorkspacesImpl implements Workspaces { async beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, - options + options, ); return poller.pollUntilDone(); } @@ -483,7 +493,7 @@ export class WorkspacesImpl implements Workspaces { * @param options The options parameters. */ private _list( - options?: WorkspacesListOptionalParams + options?: WorkspacesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -497,11 +507,11 @@ export class WorkspacesImpl implements Workspaces { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: WorkspacesListByResourceGroupNextOptionalParams + options?: WorkspacesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -512,11 +522,11 @@ export class WorkspacesImpl implements Workspaces { */ private _listNext( nextLink: string, - options?: WorkspacesListNextOptionalParams + options?: WorkspacesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -524,68 +534,65 @@ export class WorkspacesImpl implements Workspaces { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceInfoListResult + bodyMapper: Mappers.WorkspaceInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, 201: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, 202: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, 204: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.workspacePatchInfo, queryParameters: [Parameters.apiVersion], @@ -593,32 +600,31 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, 201: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, 202: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, 204: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.workspaceInfo, queryParameters: [Parameters.apiVersion], @@ -626,96 +632,94 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, 201: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, 202: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, 204: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/workspaces", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/workspaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceInfoListResult + bodyMapper: Mappers.WorkspaceInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceInfoListResult + bodyMapper: Mappers.WorkspaceInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceInfoListResult + bodyMapper: Mappers.WorkspaceInfoListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/azureADOnlyAuthentications.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/azureADOnlyAuthentications.ts index dfd79b419286..d0f826d7367c 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/azureADOnlyAuthentications.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/azureADOnlyAuthentications.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { AzureADOnlyAuthentication, AzureADOnlyAuthenticationsListOptionalParams, @@ -15,7 +15,7 @@ import { AzureADOnlyAuthenticationsGetOptionalParams, AzureADOnlyAuthenticationsGetResponse, AzureADOnlyAuthenticationsCreateOptionalParams, - AzureADOnlyAuthenticationsCreateResponse + AzureADOnlyAuthenticationsCreateResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface AzureADOnlyAuthentications { list( resourceGroupName: string, workspaceName: string, - options?: AzureADOnlyAuthenticationsListOptionalParams + options?: AzureADOnlyAuthenticationsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a Azure Active Directory only authentication property @@ -43,7 +43,7 @@ export interface AzureADOnlyAuthentications { resourceGroupName: string, workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, - options?: AzureADOnlyAuthenticationsGetOptionalParams + options?: AzureADOnlyAuthenticationsGetOptionalParams, ): Promise; /** * Create or Update a Azure Active Directory only authentication property for the workspaces @@ -58,10 +58,10 @@ export interface AzureADOnlyAuthentications { workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, - options?: AzureADOnlyAuthenticationsCreateOptionalParams + options?: AzureADOnlyAuthenticationsCreateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, AzureADOnlyAuthenticationsCreateResponse > >; @@ -78,6 +78,6 @@ export interface AzureADOnlyAuthentications { workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, - options?: AzureADOnlyAuthenticationsCreateOptionalParams + options?: AzureADOnlyAuthenticationsCreateOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/bigDataPools.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/bigDataPools.ts index 7c62516764f7..ecc8e2dfaeec 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/bigDataPools.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/bigDataPools.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { BigDataPoolResourceInfo, BigDataPoolsListByWorkspaceOptionalParams, @@ -19,7 +19,7 @@ import { BigDataPoolsCreateOrUpdateOptionalParams, BigDataPoolsCreateOrUpdateResponse, BigDataPoolsDeleteOptionalParams, - BigDataPoolsDeleteResponse + BigDataPoolsDeleteResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface BigDataPools { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: BigDataPoolsListByWorkspaceOptionalParams + options?: BigDataPoolsListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Get a Big Data pool. @@ -47,7 +47,7 @@ export interface BigDataPools { resourceGroupName: string, workspaceName: string, bigDataPoolName: string, - options?: BigDataPoolsGetOptionalParams + options?: BigDataPoolsGetOptionalParams, ): Promise; /** * Patch a Big Data pool. @@ -62,7 +62,7 @@ export interface BigDataPools { workspaceName: string, bigDataPoolName: string, bigDataPoolPatchInfo: BigDataPoolPatchInfo, - options?: BigDataPoolsUpdateOptionalParams + options?: BigDataPoolsUpdateOptionalParams, ): Promise; /** * Create a new Big Data pool. @@ -77,10 +77,10 @@ export interface BigDataPools { workspaceName: string, bigDataPoolName: string, bigDataPoolInfo: BigDataPoolResourceInfo, - options?: BigDataPoolsCreateOrUpdateOptionalParams + options?: BigDataPoolsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BigDataPoolsCreateOrUpdateResponse > >; @@ -97,7 +97,7 @@ export interface BigDataPools { workspaceName: string, bigDataPoolName: string, bigDataPoolInfo: BigDataPoolResourceInfo, - options?: BigDataPoolsCreateOrUpdateOptionalParams + options?: BigDataPoolsCreateOrUpdateOptionalParams, ): Promise; /** * Delete a Big Data pool from the workspace. @@ -110,10 +110,10 @@ export interface BigDataPools { resourceGroupName: string, workspaceName: string, bigDataPoolName: string, - options?: BigDataPoolsDeleteOptionalParams + options?: BigDataPoolsDeleteOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BigDataPoolsDeleteResponse > >; @@ -128,6 +128,6 @@ export interface BigDataPools { resourceGroupName: string, workspaceName: string, bigDataPoolName: string, - options?: BigDataPoolsDeleteOptionalParams + options?: BigDataPoolsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingPolicies.ts index 421130ed1ea0..b1cb93aa629c 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingPolicies.ts @@ -11,7 +11,7 @@ import { DataMaskingPoliciesCreateOrUpdateOptionalParams, DataMaskingPoliciesCreateOrUpdateResponse, DataMaskingPoliciesGetOptionalParams, - DataMaskingPoliciesGetResponse + DataMaskingPoliciesGetResponse, } from "../models"; /** Interface representing a DataMaskingPolicies. */ @@ -29,7 +29,7 @@ export interface DataMaskingPolicies { workspaceName: string, sqlPoolName: string, parameters: DataMaskingPolicy, - options?: DataMaskingPoliciesCreateOrUpdateOptionalParams + options?: DataMaskingPoliciesCreateOrUpdateOptionalParams, ): Promise; /** * Gets a Sql pool data masking policy. @@ -42,6 +42,6 @@ export interface DataMaskingPolicies { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: DataMaskingPoliciesGetOptionalParams + options?: DataMaskingPoliciesGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingRules.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingRules.ts index 765ac2023826..cc02850c86c6 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingRules.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingRules.ts @@ -13,7 +13,7 @@ import { DataMaskingRulesCreateOrUpdateOptionalParams, DataMaskingRulesCreateOrUpdateResponse, DataMaskingRulesGetOptionalParams, - DataMaskingRulesGetResponse + DataMaskingRulesGetResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface DataMaskingRules { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: DataMaskingRulesListBySqlPoolOptionalParams + options?: DataMaskingRulesListBySqlPoolOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a Sql pool data masking rule. @@ -47,7 +47,7 @@ export interface DataMaskingRules { sqlPoolName: string, dataMaskingRuleName: string, parameters: DataMaskingRule, - options?: DataMaskingRulesCreateOrUpdateOptionalParams + options?: DataMaskingRulesCreateOrUpdateOptionalParams, ): Promise; /** * Gets the specific Sql pool data masking rule. @@ -62,6 +62,6 @@ export interface DataMaskingRules { workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, - options?: DataMaskingRulesGetOptionalParams + options?: DataMaskingRulesGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/extendedSqlPoolBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/extendedSqlPoolBlobAuditingPolicies.ts index 0e6ddb732e9a..a5a10f305648 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/extendedSqlPoolBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/extendedSqlPoolBlobAuditingPolicies.ts @@ -13,7 +13,7 @@ import { ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams, ExtendedSqlPoolBlobAuditingPoliciesGetResponse, ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, - ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateResponse + ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface ExtendedSqlPoolBlobAuditingPolicies { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, ): PagedAsyncIterableIterator; /** * Gets an extended Sql pool's blob auditing policy. @@ -43,7 +43,7 @@ export interface ExtendedSqlPoolBlobAuditingPolicies { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams + options?: ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams, ): Promise; /** * Creates or updates an extended Sql pool's blob auditing policy. @@ -58,6 +58,6 @@ export interface ExtendedSqlPoolBlobAuditingPolicies { workspaceName: string, sqlPoolName: string, parameters: ExtendedSqlPoolBlobAuditingPolicy, - options?: ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams + options?: ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/get.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/get.ts index 29416e98fd9f..866e9ae39248 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/get.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/get.ts @@ -12,7 +12,7 @@ import { GetIntegrationRuntimeStopOptionalParams, GetIntegrationRuntimeStopResponse, GetIntegrationRuntimeEnableInteractivequeryOptionalParams, - GetIntegrationRuntimeEnableInteractivequeryResponse + GetIntegrationRuntimeEnableInteractivequeryResponse, } from "../models"; /** Interface representing a Get. */ @@ -30,7 +30,7 @@ export interface Get { workspaceName: string, integrationRuntimeName: string, integrationRuntimeOperationId: string, - options?: GetIntegrationRuntimeStartOptionalParams + options?: GetIntegrationRuntimeStartOptionalParams, ): Promise; /** * Get an integration runtime stop operation status @@ -45,7 +45,7 @@ export interface Get { workspaceName: string, integrationRuntimeName: string, integrationRuntimeOperationId: string, - options?: GetIntegrationRuntimeStopOptionalParams + options?: GetIntegrationRuntimeStopOptionalParams, ): Promise; /** * Get an integration runtime enable interactivequery operation status @@ -60,6 +60,6 @@ export interface Get { workspaceName: string, integrationRuntimeName: string, integrationRuntimeOperationId: string, - options?: GetIntegrationRuntimeEnableInteractivequeryOptionalParams + options?: GetIntegrationRuntimeEnableInteractivequeryOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeAuthKeysOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeAuthKeysOperations.ts index 1a1e08c273d9..2532e08b8159 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeAuthKeysOperations.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeAuthKeysOperations.ts @@ -11,7 +11,7 @@ import { IntegrationRuntimeAuthKeysRegenerateOptionalParams, IntegrationRuntimeAuthKeysRegenerateResponse, IntegrationRuntimeAuthKeysListOptionalParams, - IntegrationRuntimeAuthKeysListResponse + IntegrationRuntimeAuthKeysListResponse, } from "../models"; /** Interface representing a IntegrationRuntimeAuthKeysOperations. */ @@ -30,7 +30,7 @@ export interface IntegrationRuntimeAuthKeysOperations { workspaceName: string, integrationRuntimeName: string, regenerateKeyParameters: IntegrationRuntimeRegenerateKeyParameters, - options?: IntegrationRuntimeAuthKeysRegenerateOptionalParams + options?: IntegrationRuntimeAuthKeysRegenerateOptionalParams, ): Promise; /** * List authentication keys in an integration runtime @@ -43,6 +43,6 @@ export interface IntegrationRuntimeAuthKeysOperations { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeAuthKeysListOptionalParams + options?: IntegrationRuntimeAuthKeysListOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeConnectionInfos.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeConnectionInfos.ts index 7000bc57eae7..38de56fc6c19 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeConnectionInfos.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeConnectionInfos.ts @@ -8,7 +8,7 @@ import { IntegrationRuntimeConnectionInfosGetOptionalParams, - IntegrationRuntimeConnectionInfosGetResponse + IntegrationRuntimeConnectionInfosGetResponse, } from "../models"; /** Interface representing a IntegrationRuntimeConnectionInfos. */ @@ -24,6 +24,6 @@ export interface IntegrationRuntimeConnectionInfos { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeConnectionInfosGetOptionalParams + options?: IntegrationRuntimeConnectionInfosGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeCredentials.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeCredentials.ts index c45441dc83e4..cc32c99dfd0e 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeCredentials.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeCredentials.ts @@ -24,6 +24,6 @@ export interface IntegrationRuntimeCredentials { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeCredentialsSyncOptionalParams + options?: IntegrationRuntimeCredentialsSyncOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeMonitoringDataOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeMonitoringDataOperations.ts index 23a897c0602a..9926fd1239df 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeMonitoringDataOperations.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeMonitoringDataOperations.ts @@ -8,7 +8,7 @@ import { IntegrationRuntimeMonitoringDataListOptionalParams, - IntegrationRuntimeMonitoringDataListResponse + IntegrationRuntimeMonitoringDataListResponse, } from "../models"; /** Interface representing a IntegrationRuntimeMonitoringDataOperations. */ @@ -24,6 +24,6 @@ export interface IntegrationRuntimeMonitoringDataOperations { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeMonitoringDataListOptionalParams + options?: IntegrationRuntimeMonitoringDataListOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodeIpAddressOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodeIpAddressOperations.ts index a6b82d2d67cf..156ebf56f6c5 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodeIpAddressOperations.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodeIpAddressOperations.ts @@ -8,7 +8,7 @@ import { IntegrationRuntimeNodeIpAddressGetOptionalParams, - IntegrationRuntimeNodeIpAddressGetResponse + IntegrationRuntimeNodeIpAddressGetResponse, } from "../models"; /** Interface representing a IntegrationRuntimeNodeIpAddressOperations. */ @@ -26,6 +26,6 @@ export interface IntegrationRuntimeNodeIpAddressOperations { workspaceName: string, integrationRuntimeName: string, nodeName: string, - options?: IntegrationRuntimeNodeIpAddressGetOptionalParams + options?: IntegrationRuntimeNodeIpAddressGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodes.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodes.ts index 7e1894f9d20a..9a4736d8a55c 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodes.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodes.ts @@ -12,7 +12,7 @@ import { UpdateIntegrationRuntimeNodeRequest, IntegrationRuntimeNodesUpdateOptionalParams, IntegrationRuntimeNodesUpdateResponse, - IntegrationRuntimeNodesDeleteOptionalParams + IntegrationRuntimeNodesDeleteOptionalParams, } from "../models"; /** Interface representing a IntegrationRuntimeNodes. */ @@ -30,7 +30,7 @@ export interface IntegrationRuntimeNodes { workspaceName: string, integrationRuntimeName: string, nodeName: string, - options?: IntegrationRuntimeNodesGetOptionalParams + options?: IntegrationRuntimeNodesGetOptionalParams, ): Promise; /** * Create an integration runtime node @@ -47,7 +47,7 @@ export interface IntegrationRuntimeNodes { integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: UpdateIntegrationRuntimeNodeRequest, - options?: IntegrationRuntimeNodesUpdateOptionalParams + options?: IntegrationRuntimeNodesUpdateOptionalParams, ): Promise; /** * Delete an integration runtime node @@ -62,6 +62,6 @@ export interface IntegrationRuntimeNodes { workspaceName: string, integrationRuntimeName: string, nodeName: string, - options?: IntegrationRuntimeNodesDeleteOptionalParams + options?: IntegrationRuntimeNodesDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts index c7b5f8ba3096..fbb3b6517f68 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { IntegrationRuntimeObjectMetadataListOptionalParams, IntegrationRuntimeObjectMetadataListResponse, IntegrationRuntimeObjectMetadataRefreshOptionalParams, - IntegrationRuntimeObjectMetadataRefreshResponse + IntegrationRuntimeObjectMetadataRefreshResponse, } from "../models"; /** Interface representing a IntegrationRuntimeObjectMetadata. */ @@ -27,7 +27,7 @@ export interface IntegrationRuntimeObjectMetadata { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeObjectMetadataListOptionalParams + options?: IntegrationRuntimeObjectMetadataListOptionalParams, ): Promise; /** * Refresh the object metadata in an integration runtime @@ -40,10 +40,10 @@ export interface IntegrationRuntimeObjectMetadata { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams + options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IntegrationRuntimeObjectMetadataRefreshResponse > >; @@ -58,6 +58,6 @@ export interface IntegrationRuntimeObjectMetadata { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams + options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeStatusOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeStatusOperations.ts index 56ad60cad7b7..f16d7cdaac8d 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeStatusOperations.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeStatusOperations.ts @@ -8,7 +8,7 @@ import { IntegrationRuntimeStatusGetOptionalParams, - IntegrationRuntimeStatusGetResponse + IntegrationRuntimeStatusGetResponse, } from "../models"; /** Interface representing a IntegrationRuntimeStatusOperations. */ @@ -24,6 +24,6 @@ export interface IntegrationRuntimeStatusOperations { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimeStatusGetOptionalParams + options?: IntegrationRuntimeStatusGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimes.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimes.ts index 954bec8933a7..710bf305376a 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimes.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimes.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { IntegrationRuntimeResource, IntegrationRuntimesListByWorkspaceOptionalParams, @@ -26,7 +26,7 @@ import { IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams, IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse, IntegrationRuntimesEnableInteractiveQueryOptionalParams, - IntegrationRuntimesDisableInteractiveQueryOptionalParams + IntegrationRuntimesDisableInteractiveQueryOptionalParams, } from "../models"; /// @@ -41,7 +41,7 @@ export interface IntegrationRuntimes { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: IntegrationRuntimesListByWorkspaceOptionalParams + options?: IntegrationRuntimesListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Update an integration runtime @@ -56,7 +56,7 @@ export interface IntegrationRuntimes { workspaceName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: UpdateIntegrationRuntimeRequest, - options?: IntegrationRuntimesUpdateOptionalParams + options?: IntegrationRuntimesUpdateOptionalParams, ): Promise; /** * Get an integration runtime @@ -69,7 +69,7 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesGetOptionalParams + options?: IntegrationRuntimesGetOptionalParams, ): Promise; /** * Create an integration runtime @@ -84,10 +84,10 @@ export interface IntegrationRuntimes { workspaceName: string, integrationRuntimeName: string, integrationRuntime: IntegrationRuntimeResource, - options?: IntegrationRuntimesCreateOptionalParams + options?: IntegrationRuntimesCreateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IntegrationRuntimesCreateResponse > >; @@ -104,7 +104,7 @@ export interface IntegrationRuntimes { workspaceName: string, integrationRuntimeName: string, integrationRuntime: IntegrationRuntimeResource, - options?: IntegrationRuntimesCreateOptionalParams + options?: IntegrationRuntimesCreateOptionalParams, ): Promise; /** * Delete an integration runtime @@ -117,8 +117,8 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesDeleteOptionalParams - ): Promise, void>>; + options?: IntegrationRuntimesDeleteOptionalParams, + ): Promise, void>>; /** * Delete an integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -130,7 +130,7 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesDeleteOptionalParams + options?: IntegrationRuntimesDeleteOptionalParams, ): Promise; /** * Upgrade an integration runtime @@ -143,7 +143,7 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesUpgradeOptionalParams + options?: IntegrationRuntimesUpgradeOptionalParams, ): Promise; /** * Start an integration runtime @@ -156,10 +156,10 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesStartOptionalParams + options?: IntegrationRuntimesStartOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IntegrationRuntimesStartResponse > >; @@ -174,7 +174,7 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesStartOptionalParams + options?: IntegrationRuntimesStartOptionalParams, ): Promise; /** * Stop an integration runtime @@ -187,8 +187,8 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesStopOptionalParams - ): Promise, void>>; + options?: IntegrationRuntimesStopOptionalParams, + ): Promise, void>>; /** * Stop an integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -200,7 +200,7 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesStopOptionalParams + options?: IntegrationRuntimesStopOptionalParams, ): Promise; /** * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. @@ -213,10 +213,8 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams - ): Promise< - IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse - >; + options?: IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams, + ): Promise; /** * Enable interactive query in integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -228,8 +226,8 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams - ): Promise, void>>; + options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams, + ): Promise, void>>; /** * Enable interactive query in integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -241,7 +239,7 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams + options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams, ): Promise; /** * Disable interactive query in integration runtime @@ -254,8 +252,8 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams - ): Promise, void>>; + options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams, + ): Promise, void>>; /** * Disable interactive query in integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -267,6 +265,6 @@ export interface IntegrationRuntimes { resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, - options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams + options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/ipFirewallRules.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/ipFirewallRules.ts index 675e43c4219b..dbeb936be998 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/ipFirewallRules.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/ipFirewallRules.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { IpFirewallRuleInfo, IpFirewallRulesListByWorkspaceOptionalParams, @@ -19,7 +19,7 @@ import { IpFirewallRulesGetResponse, ReplaceAllIpFirewallRulesRequest, IpFirewallRulesReplaceAllOptionalParams, - IpFirewallRulesReplaceAllResponse + IpFirewallRulesReplaceAllResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface IpFirewallRules { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: IpFirewallRulesListByWorkspaceOptionalParams + options?: IpFirewallRulesListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a firewall rule @@ -49,10 +49,10 @@ export interface IpFirewallRules { workspaceName: string, ruleName: string, ipFirewallRuleInfo: IpFirewallRuleInfo, - options?: IpFirewallRulesCreateOrUpdateOptionalParams + options?: IpFirewallRulesCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IpFirewallRulesCreateOrUpdateResponse > >; @@ -69,7 +69,7 @@ export interface IpFirewallRules { workspaceName: string, ruleName: string, ipFirewallRuleInfo: IpFirewallRuleInfo, - options?: IpFirewallRulesCreateOrUpdateOptionalParams + options?: IpFirewallRulesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a firewall rule @@ -82,10 +82,10 @@ export interface IpFirewallRules { resourceGroupName: string, workspaceName: string, ruleName: string, - options?: IpFirewallRulesDeleteOptionalParams + options?: IpFirewallRulesDeleteOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IpFirewallRulesDeleteResponse > >; @@ -100,7 +100,7 @@ export interface IpFirewallRules { resourceGroupName: string, workspaceName: string, ruleName: string, - options?: IpFirewallRulesDeleteOptionalParams + options?: IpFirewallRulesDeleteOptionalParams, ): Promise; /** * Get a firewall rule @@ -113,7 +113,7 @@ export interface IpFirewallRules { resourceGroupName: string, workspaceName: string, ruleName: string, - options?: IpFirewallRulesGetOptionalParams + options?: IpFirewallRulesGetOptionalParams, ): Promise; /** * Replaces firewall rules @@ -126,10 +126,10 @@ export interface IpFirewallRules { resourceGroupName: string, workspaceName: string, request: ReplaceAllIpFirewallRulesRequest, - options?: IpFirewallRulesReplaceAllOptionalParams + options?: IpFirewallRulesReplaceAllOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IpFirewallRulesReplaceAllResponse > >; @@ -144,6 +144,6 @@ export interface IpFirewallRules { resourceGroupName: string, workspaceName: string, request: ReplaceAllIpFirewallRulesRequest, - options?: IpFirewallRulesReplaceAllOptionalParams + options?: IpFirewallRulesReplaceAllOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/keys.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/keys.ts index 36d4b090746e..2c0c218beaa6 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/keys.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/keys.ts @@ -15,7 +15,7 @@ import { KeysCreateOrUpdateOptionalParams, KeysCreateOrUpdateResponse, KeysDeleteOptionalParams, - KeysDeleteResponse + KeysDeleteResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface Keys { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: KeysListByWorkspaceOptionalParams + options?: KeysListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a workspace key @@ -43,7 +43,7 @@ export interface Keys { resourceGroupName: string, workspaceName: string, keyName: string, - options?: KeysGetOptionalParams + options?: KeysGetOptionalParams, ): Promise; /** * Creates or updates a workspace key @@ -58,7 +58,7 @@ export interface Keys { workspaceName: string, keyName: string, keyProperties: Key, - options?: KeysCreateOrUpdateOptionalParams + options?: KeysCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a workspace key @@ -71,6 +71,6 @@ export interface Keys { resourceGroupName: string, workspaceName: string, keyName: string, - options?: KeysDeleteOptionalParams + options?: KeysDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoOperations.ts index 0f1f94d0392c..0431a35ee00e 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoOperations.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoOperations.ts @@ -17,6 +17,6 @@ export interface KustoOperations { * @param options The options parameters. */ list( - options?: KustoOperationsListOptionalParams + options?: KustoOperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolAttachedDatabaseConfigurations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolAttachedDatabaseConfigurations.ts index 4f28006d9178..6d602eb6aaa5 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolAttachedDatabaseConfigurations.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolAttachedDatabaseConfigurations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { AttachedDatabaseConfiguration, KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams, @@ -15,7 +15,7 @@ import { KustoPoolAttachedDatabaseConfigurationsGetResponse, KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams, KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse, - KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams + KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams, } from "../models"; /// @@ -32,7 +32,7 @@ export interface KustoPoolAttachedDatabaseConfigurations { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams, ): PagedAsyncIterableIterator; /** * Returns an attached database configuration. @@ -47,7 +47,7 @@ export interface KustoPoolAttachedDatabaseConfigurations { kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, - options?: KustoPoolAttachedDatabaseConfigurationsGetOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsGetOptionalParams, ): Promise; /** * Creates or updates an attached database configuration. @@ -64,12 +64,10 @@ export interface KustoPoolAttachedDatabaseConfigurations { attachedDatabaseConfigurationName: string, resourceGroupName: string, parameters: AttachedDatabaseConfiguration, - options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse > >; @@ -88,7 +86,7 @@ export interface KustoPoolAttachedDatabaseConfigurations { attachedDatabaseConfigurationName: string, resourceGroupName: string, parameters: AttachedDatabaseConfiguration, - options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the attached database configuration with the given name. @@ -103,8 +101,8 @@ export interface KustoPoolAttachedDatabaseConfigurations { kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, - options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams - ): Promise, void>>; + options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams, + ): Promise, void>>; /** * Deletes the attached database configuration with the given name. * @param workspaceName The name of the workspace. @@ -118,6 +116,6 @@ export interface KustoPoolAttachedDatabaseConfigurations { kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, - options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams + options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolChildResource.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolChildResource.ts index d240c0e6359d..39832ed31454 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolChildResource.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolChildResource.ts @@ -9,7 +9,7 @@ import { DatabaseCheckNameRequest, KustoPoolChildResourceCheckNameAvailabilityOptionalParams, - KustoPoolChildResourceCheckNameAvailabilityResponse + KustoPoolChildResourceCheckNameAvailabilityResponse, } from "../models"; /** Interface representing a KustoPoolChildResource. */ @@ -27,6 +27,6 @@ export interface KustoPoolChildResource { kustoPoolName: string, resourceGroupName: string, resourceName: DatabaseCheckNameRequest, - options?: KustoPoolChildResourceCheckNameAvailabilityOptionalParams + options?: KustoPoolChildResourceCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDataConnections.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDataConnections.ts index a2177606496e..9088ed0cf0de 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDataConnections.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDataConnections.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DataConnectionUnion, KustoPoolDataConnectionsListByDatabaseOptionalParams, @@ -23,7 +23,7 @@ import { KustoPoolDataConnectionsCreateOrUpdateResponse, KustoPoolDataConnectionsUpdateOptionalParams, KustoPoolDataConnectionsUpdateResponse, - KustoPoolDataConnectionsDeleteOptionalParams + KustoPoolDataConnectionsDeleteOptionalParams, } from "../models"; /// @@ -42,7 +42,7 @@ export interface KustoPoolDataConnections { workspaceName: string, kustoPoolName: string, databaseName: string, - options?: KustoPoolDataConnectionsListByDatabaseOptionalParams + options?: KustoPoolDataConnectionsListByDatabaseOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that the data connection name is valid and is not already in use. @@ -59,7 +59,7 @@ export interface KustoPoolDataConnections { kustoPoolName: string, databaseName: string, dataConnectionName: DataConnectionCheckNameRequest, - options?: KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams + options?: KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams, ): Promise; /** * Checks that the data connection parameters are valid. @@ -76,12 +76,10 @@ export interface KustoPoolDataConnections { kustoPoolName: string, databaseName: string, parameters: DataConnectionValidation, - options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams + options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams, ): Promise< - PollerLike< - PollOperationState< - KustoPoolDataConnectionsDataConnectionValidationResponse - >, + SimplePollerLike< + OperationState, KustoPoolDataConnectionsDataConnectionValidationResponse > >; @@ -100,7 +98,7 @@ export interface KustoPoolDataConnections { kustoPoolName: string, databaseName: string, parameters: DataConnectionValidation, - options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams + options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams, ): Promise; /** * Returns a data connection. @@ -117,7 +115,7 @@ export interface KustoPoolDataConnections { kustoPoolName: string, databaseName: string, dataConnectionName: string, - options?: KustoPoolDataConnectionsGetOptionalParams + options?: KustoPoolDataConnectionsGetOptionalParams, ): Promise; /** * Creates or updates a data connection. @@ -136,10 +134,10 @@ export interface KustoPoolDataConnections { databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, - options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams + options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolDataConnectionsCreateOrUpdateResponse > >; @@ -160,7 +158,7 @@ export interface KustoPoolDataConnections { databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, - options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams + options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams, ): Promise; /** * Updates a data connection. @@ -179,10 +177,10 @@ export interface KustoPoolDataConnections { databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, - options?: KustoPoolDataConnectionsUpdateOptionalParams + options?: KustoPoolDataConnectionsUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolDataConnectionsUpdateResponse > >; @@ -203,7 +201,7 @@ export interface KustoPoolDataConnections { databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, - options?: KustoPoolDataConnectionsUpdateOptionalParams + options?: KustoPoolDataConnectionsUpdateOptionalParams, ): Promise; /** * Deletes the data connection with the given name. @@ -220,8 +218,8 @@ export interface KustoPoolDataConnections { kustoPoolName: string, databaseName: string, dataConnectionName: string, - options?: KustoPoolDataConnectionsDeleteOptionalParams - ): Promise, void>>; + options?: KustoPoolDataConnectionsDeleteOptionalParams, + ): Promise, void>>; /** * Deletes the data connection with the given name. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -237,6 +235,6 @@ export interface KustoPoolDataConnections { kustoPoolName: string, databaseName: string, dataConnectionName: string, - options?: KustoPoolDataConnectionsDeleteOptionalParams + options?: KustoPoolDataConnectionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabasePrincipalAssignments.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabasePrincipalAssignments.ts index 777bb3f08bc3..2a5f0ef59499 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabasePrincipalAssignments.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabasePrincipalAssignments.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DatabasePrincipalAssignment, KustoPoolDatabasePrincipalAssignmentsListOptionalParams, @@ -18,7 +18,7 @@ import { KustoPoolDatabasePrincipalAssignmentsGetResponse, KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams, KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse, - KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams + KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface KustoPoolDatabasePrincipalAssignments { kustoPoolName: string, databaseName: string, resourceGroupName: string, - options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that the database principal assignment is valid and is not already in use. @@ -54,10 +54,8 @@ export interface KustoPoolDatabasePrincipalAssignments { databaseName: string, resourceGroupName: string, principalAssignmentName: DatabasePrincipalAssignmentCheckNameRequest, - options?: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams - ): Promise< - KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityResponse - >; + options?: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams, + ): Promise; /** * Gets a Kusto pool database principalAssignment. * @param workspaceName The name of the workspace. @@ -73,7 +71,7 @@ export interface KustoPoolDatabasePrincipalAssignments { databaseName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolDatabasePrincipalAssignmentsGetOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsGetOptionalParams, ): Promise; /** * Creates a Kusto pool database principalAssignment. @@ -92,12 +90,10 @@ export interface KustoPoolDatabasePrincipalAssignments { principalAssignmentName: string, resourceGroupName: string, parameters: DatabasePrincipalAssignment, - options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse > >; @@ -118,7 +114,7 @@ export interface KustoPoolDatabasePrincipalAssignments { principalAssignmentName: string, resourceGroupName: string, parameters: DatabasePrincipalAssignment, - options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a Kusto pool principalAssignment. @@ -135,8 +131,8 @@ export interface KustoPoolDatabasePrincipalAssignments { databaseName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams - ): Promise, void>>; + options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams, + ): Promise, void>>; /** * Deletes a Kusto pool principalAssignment. * @param workspaceName The name of the workspace. @@ -152,6 +148,6 @@ export interface KustoPoolDatabasePrincipalAssignments { databaseName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams + options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabases.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabases.ts index 3dcc499baaa4..9364abf0d93f 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabases.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabases.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DatabaseUnion, KustoPoolDatabasesListByKustoPoolOptionalParams, @@ -17,7 +17,7 @@ import { KustoPoolDatabasesCreateOrUpdateResponse, KustoPoolDatabasesUpdateOptionalParams, KustoPoolDatabasesUpdateResponse, - KustoPoolDatabasesDeleteOptionalParams + KustoPoolDatabasesDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface KustoPoolDatabases { resourceGroupName: string, workspaceName: string, kustoPoolName: string, - options?: KustoPoolDatabasesListByKustoPoolOptionalParams + options?: KustoPoolDatabasesListByKustoPoolOptionalParams, ): PagedAsyncIterableIterator; /** * Returns a database. @@ -49,7 +49,7 @@ export interface KustoPoolDatabases { workspaceName: string, kustoPoolName: string, databaseName: string, - options?: KustoPoolDatabasesGetOptionalParams + options?: KustoPoolDatabasesGetOptionalParams, ): Promise; /** * Creates or updates a database. @@ -66,10 +66,10 @@ export interface KustoPoolDatabases { kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, - options?: KustoPoolDatabasesCreateOrUpdateOptionalParams + options?: KustoPoolDatabasesCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolDatabasesCreateOrUpdateResponse > >; @@ -88,7 +88,7 @@ export interface KustoPoolDatabases { kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, - options?: KustoPoolDatabasesCreateOrUpdateOptionalParams + options?: KustoPoolDatabasesCreateOrUpdateOptionalParams, ): Promise; /** * Updates a database. @@ -105,10 +105,10 @@ export interface KustoPoolDatabases { kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, - options?: KustoPoolDatabasesUpdateOptionalParams + options?: KustoPoolDatabasesUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolDatabasesUpdateResponse > >; @@ -127,7 +127,7 @@ export interface KustoPoolDatabases { kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, - options?: KustoPoolDatabasesUpdateOptionalParams + options?: KustoPoolDatabasesUpdateOptionalParams, ): Promise; /** * Deletes the database with the given name. @@ -142,8 +142,8 @@ export interface KustoPoolDatabases { workspaceName: string, kustoPoolName: string, databaseName: string, - options?: KustoPoolDatabasesDeleteOptionalParams - ): Promise, void>>; + options?: KustoPoolDatabasesDeleteOptionalParams, + ): Promise, void>>; /** * Deletes the database with the given name. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -157,6 +157,6 @@ export interface KustoPoolDatabases { workspaceName: string, kustoPoolName: string, databaseName: string, - options?: KustoPoolDatabasesDeleteOptionalParams + options?: KustoPoolDatabasesDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrincipalAssignments.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrincipalAssignments.ts index 54bb84beade0..a6e719766833 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrincipalAssignments.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrincipalAssignments.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ClusterPrincipalAssignment, KustoPoolPrincipalAssignmentsListOptionalParams, @@ -18,7 +18,7 @@ import { KustoPoolPrincipalAssignmentsGetResponse, KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams, KustoPoolPrincipalAssignmentsCreateOrUpdateResponse, - KustoPoolPrincipalAssignmentsDeleteOptionalParams + KustoPoolPrincipalAssignmentsDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface KustoPoolPrincipalAssignments { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolPrincipalAssignmentsListOptionalParams + options?: KustoPoolPrincipalAssignmentsListOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that the principal assignment name is valid and is not already in use. @@ -50,7 +50,7 @@ export interface KustoPoolPrincipalAssignments { kustoPoolName: string, resourceGroupName: string, principalAssignmentName: ClusterPrincipalAssignmentCheckNameRequest, - options?: KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams + options?: KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams, ): Promise; /** * Gets a Kusto pool principalAssignment. @@ -65,7 +65,7 @@ export interface KustoPoolPrincipalAssignments { kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolPrincipalAssignmentsGetOptionalParams + options?: KustoPoolPrincipalAssignmentsGetOptionalParams, ): Promise; /** * Create a Kusto pool principalAssignment. @@ -82,10 +82,10 @@ export interface KustoPoolPrincipalAssignments { principalAssignmentName: string, resourceGroupName: string, parameters: ClusterPrincipalAssignment, - options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams + options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolPrincipalAssignmentsCreateOrUpdateResponse > >; @@ -104,7 +104,7 @@ export interface KustoPoolPrincipalAssignments { principalAssignmentName: string, resourceGroupName: string, parameters: ClusterPrincipalAssignment, - options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams + options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a Kusto pool principalAssignment. @@ -119,8 +119,8 @@ export interface KustoPoolPrincipalAssignments { kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams - ): Promise, void>>; + options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams, + ): Promise, void>>; /** * Deletes a Kusto pool principalAssignment. * @param workspaceName The name of the workspace. @@ -134,6 +134,6 @@ export interface KustoPoolPrincipalAssignments { kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, - options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams + options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.ts index dd2bc51bc171..d1f2287dfee5 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { KustoPoolPrivateLinkResources, - KustoPoolPrivateLinkResourcesListOptionalParams + KustoPoolPrivateLinkResourcesListOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface KustoPoolPrivateLinkResourcesOperations { resourceGroupName: string, workspaceName: string, kustoPoolName: string, - options?: KustoPoolPrivateLinkResourcesListOptionalParams + options?: KustoPoolPrivateLinkResourcesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPools.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPools.ts index c7d83cc0c53d..24c09a4e7e6e 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPools.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPools.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SkuDescription, KustoPoolsListSkusOptionalParams, @@ -36,7 +36,7 @@ import { LanguageExtensionsList, KustoPoolsAddLanguageExtensionsOptionalParams, KustoPoolsRemoveLanguageExtensionsOptionalParams, - KustoPoolsDetachFollowerDatabasesOptionalParams + KustoPoolsDetachFollowerDatabasesOptionalParams, } from "../models"; /// @@ -47,7 +47,7 @@ export interface KustoPools { * @param options The options parameters. */ listSkus( - options?: KustoPoolsListSkusOptionalParams + options?: KustoPoolsListSkusOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the SKUs available for the provided resource. @@ -60,7 +60,7 @@ export interface KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListSkusByResourceOptionalParams + options?: KustoPoolsListSkusByResourceOptionalParams, ): PagedAsyncIterableIterator; /** * Returns a list of language extensions that can run within KQL queries. @@ -73,7 +73,7 @@ export interface KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListLanguageExtensionsOptionalParams + options?: KustoPoolsListLanguageExtensionsOptionalParams, ): PagedAsyncIterableIterator; /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto @@ -87,7 +87,7 @@ export interface KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsListFollowerDatabasesOptionalParams + options?: KustoPoolsListFollowerDatabasesOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that the kusto pool name is valid and is not already in use. @@ -98,7 +98,7 @@ export interface KustoPools { checkNameAvailability( location: string, kustoPoolName: KustoPoolCheckNameRequest, - options?: KustoPoolsCheckNameAvailabilityOptionalParams + options?: KustoPoolsCheckNameAvailabilityOptionalParams, ): Promise; /** * List all Kusto pools @@ -109,7 +109,7 @@ export interface KustoPools { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: KustoPoolsListByWorkspaceOptionalParams + options?: KustoPoolsListByWorkspaceOptionalParams, ): Promise; /** * Gets a Kusto pool. @@ -122,7 +122,7 @@ export interface KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsGetOptionalParams + options?: KustoPoolsGetOptionalParams, ): Promise; /** * Create or update a Kusto pool. @@ -137,10 +137,10 @@ export interface KustoPools { resourceGroupName: string, kustoPoolName: string, parameters: KustoPool, - options?: KustoPoolsCreateOrUpdateOptionalParams + options?: KustoPoolsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolsCreateOrUpdateResponse > >; @@ -157,7 +157,7 @@ export interface KustoPools { resourceGroupName: string, kustoPoolName: string, parameters: KustoPool, - options?: KustoPoolsCreateOrUpdateOptionalParams + options?: KustoPoolsCreateOrUpdateOptionalParams, ): Promise; /** * Update a Kusto Kusto Pool. @@ -172,10 +172,10 @@ export interface KustoPools { resourceGroupName: string, kustoPoolName: string, parameters: KustoPoolUpdate, - options?: KustoPoolsUpdateOptionalParams + options?: KustoPoolsUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, KustoPoolsUpdateResponse > >; @@ -192,7 +192,7 @@ export interface KustoPools { resourceGroupName: string, kustoPoolName: string, parameters: KustoPoolUpdate, - options?: KustoPoolsUpdateOptionalParams + options?: KustoPoolsUpdateOptionalParams, ): Promise; /** * Deletes a Kusto pool. @@ -205,8 +205,8 @@ export interface KustoPools { workspaceName: string, resourceGroupName: string, kustoPoolName: string, - options?: KustoPoolsDeleteOptionalParams - ): Promise, void>>; + options?: KustoPoolsDeleteOptionalParams, + ): Promise, void>>; /** * Deletes a Kusto pool. * @param workspaceName The name of the workspace. @@ -218,7 +218,7 @@ export interface KustoPools { workspaceName: string, resourceGroupName: string, kustoPoolName: string, - options?: KustoPoolsDeleteOptionalParams + options?: KustoPoolsDeleteOptionalParams, ): Promise; /** * Stops a Kusto pool. @@ -231,8 +231,8 @@ export interface KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsStopOptionalParams - ): Promise, void>>; + options?: KustoPoolsStopOptionalParams, + ): Promise, void>>; /** * Stops a Kusto pool. * @param workspaceName The name of the workspace. @@ -244,7 +244,7 @@ export interface KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsStopOptionalParams + options?: KustoPoolsStopOptionalParams, ): Promise; /** * Starts a Kusto pool. @@ -257,8 +257,8 @@ export interface KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsStartOptionalParams - ): Promise, void>>; + options?: KustoPoolsStartOptionalParams, + ): Promise, void>>; /** * Starts a Kusto pool. * @param workspaceName The name of the workspace. @@ -270,7 +270,7 @@ export interface KustoPools { workspaceName: string, kustoPoolName: string, resourceGroupName: string, - options?: KustoPoolsStartOptionalParams + options?: KustoPoolsStartOptionalParams, ): Promise; /** * Add a list of language extensions that can run within KQL queries. @@ -285,8 +285,8 @@ export interface KustoPools { kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: LanguageExtensionsList, - options?: KustoPoolsAddLanguageExtensionsOptionalParams - ): Promise, void>>; + options?: KustoPoolsAddLanguageExtensionsOptionalParams, + ): Promise, void>>; /** * Add a list of language extensions that can run within KQL queries. * @param workspaceName The name of the workspace. @@ -300,7 +300,7 @@ export interface KustoPools { kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: LanguageExtensionsList, - options?: KustoPoolsAddLanguageExtensionsOptionalParams + options?: KustoPoolsAddLanguageExtensionsOptionalParams, ): Promise; /** * Remove a list of language extensions that can run within KQL queries. @@ -315,8 +315,8 @@ export interface KustoPools { kustoPoolName: string, resourceGroupName: string, languageExtensionsToRemove: LanguageExtensionsList, - options?: KustoPoolsRemoveLanguageExtensionsOptionalParams - ): Promise, void>>; + options?: KustoPoolsRemoveLanguageExtensionsOptionalParams, + ): Promise, void>>; /** * Remove a list of language extensions that can run within KQL queries. * @param workspaceName The name of the workspace. @@ -330,7 +330,7 @@ export interface KustoPools { kustoPoolName: string, resourceGroupName: string, languageExtensionsToRemove: LanguageExtensionsList, - options?: KustoPoolsRemoveLanguageExtensionsOptionalParams + options?: KustoPoolsRemoveLanguageExtensionsOptionalParams, ): Promise; /** * Detaches all followers of a database owned by this Kusto Pool. @@ -345,8 +345,8 @@ export interface KustoPools { kustoPoolName: string, resourceGroupName: string, followerDatabaseToRemove: FollowerDatabaseDefinition, - options?: KustoPoolsDetachFollowerDatabasesOptionalParams - ): Promise, void>>; + options?: KustoPoolsDetachFollowerDatabasesOptionalParams, + ): Promise, void>>; /** * Detaches all followers of a database owned by this Kusto Pool. * @param workspaceName The name of the workspace. @@ -360,6 +360,6 @@ export interface KustoPools { kustoPoolName: string, resourceGroupName: string, followerDatabaseToRemove: FollowerDatabaseDefinition, - options?: KustoPoolsDetachFollowerDatabasesOptionalParams + options?: KustoPoolsDetachFollowerDatabasesOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/libraries.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/libraries.ts index e5f381555adc..50726e4833e3 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/libraries.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/libraries.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LibraryResource, - LibrariesListByWorkspaceOptionalParams + LibrariesListByWorkspaceOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface Libraries { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: LibrariesListByWorkspaceOptionalParams + options?: LibrariesListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/library.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/library.ts index ae576736df04..97c4116696e0 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/library.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/library.ts @@ -21,6 +21,6 @@ export interface Library { resourceGroupName: string, libraryName: string, workspaceName: string, - options?: LibraryGetOptionalParams + options?: LibraryGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/operations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/operations.ts index dad3b6b1d5eb..bbfb46fe2f75 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/operations.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/operations.ts @@ -14,7 +14,7 @@ import { OperationsListResponse, OperationsGetLocationHeaderResultOptionalParams, OperationsGetAzureAsyncHeaderResultOptionalParams, - OperationsGetAzureAsyncHeaderResultResponse + OperationsGetAzureAsyncHeaderResultResponse, } from "../models"; /** Interface representing a Operations. */ @@ -26,7 +26,7 @@ export interface Operations { */ checkNameAvailability( request: CheckNameAvailabilityRequest, - options?: OperationsCheckNameAvailabilityOptionalParams + options?: OperationsCheckNameAvailabilityOptionalParams, ): Promise; /** * Get all available operations @@ -44,7 +44,7 @@ export interface Operations { resourceGroupName: string, workspaceName: string, operationId: string, - options?: OperationsGetLocationHeaderResultOptionalParams + options?: OperationsGetLocationHeaderResultOptionalParams, ): Promise; /** * Get the status of an operation @@ -57,6 +57,6 @@ export interface Operations { resourceGroupName: string, workspaceName: string, operationId: string, - options?: OperationsGetAzureAsyncHeaderResultOptionalParams + options?: OperationsGetAzureAsyncHeaderResultOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnections.ts index fc2cb339e0d8..b97a539f9da0 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnections.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListOptionalParams, @@ -15,7 +15,7 @@ import { PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOptionalParams, PrivateEndpointConnectionsCreateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface PrivateEndpointConnections { list( resourceGroupName: string, workspaceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a private endpoint connection. @@ -43,7 +43,7 @@ export interface PrivateEndpointConnections { resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise; /** * Approve or reject a private endpoint connection. @@ -58,10 +58,10 @@ export interface PrivateEndpointConnections { workspaceName: string, privateEndpointConnectionName: string, request: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOptionalParams + options?: PrivateEndpointConnectionsCreateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionsCreateResponse > >; @@ -78,7 +78,7 @@ export interface PrivateEndpointConnections { workspaceName: string, privateEndpointConnectionName: string, request: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOptionalParams + options?: PrivateEndpointConnectionsCreateOptionalParams, ): Promise; /** * Delete a private endpoint connection. @@ -91,8 +91,8 @@ export interface PrivateEndpointConnections { resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>>; + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise, void>>; /** * Delete a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -104,6 +104,6 @@ export interface PrivateEndpointConnections { resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnectionsPrivateLinkHub.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnectionsPrivateLinkHub.ts index 1797d1771fb1..80d3b8be4470 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnectionsPrivateLinkHub.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnectionsPrivateLinkHub.ts @@ -11,7 +11,7 @@ import { PrivateEndpointConnectionForPrivateLinkHub, PrivateEndpointConnectionsPrivateLinkHubListOptionalParams, PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams, - PrivateEndpointConnectionsPrivateLinkHubGetResponse + PrivateEndpointConnectionsPrivateLinkHubGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface PrivateEndpointConnectionsPrivateLinkHub { list( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams + options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams, ): PagedAsyncIterableIterator; /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name @@ -39,6 +39,6 @@ export interface PrivateEndpointConnectionsPrivateLinkHub { resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams + options?: PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubPrivateLinkResources.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubPrivateLinkResources.ts index b8fec922549d..890405561d15 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubPrivateLinkResources.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubPrivateLinkResources.ts @@ -11,7 +11,7 @@ import { PrivateLinkResource, PrivateLinkHubPrivateLinkResourcesListOptionalParams, PrivateLinkHubPrivateLinkResourcesGetOptionalParams, - PrivateLinkHubPrivateLinkResourcesGetResponse + PrivateLinkHubPrivateLinkResourcesGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface PrivateLinkHubPrivateLinkResources { list( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams + options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get private link resource in private link hub @@ -39,6 +39,6 @@ export interface PrivateLinkHubPrivateLinkResources { resourceGroupName: string, privateLinkHubName: string, privateLinkResourceName: string, - options?: PrivateLinkHubPrivateLinkResourcesGetOptionalParams + options?: PrivateLinkHubPrivateLinkResourcesGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubs.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubs.ts index 6395a9d70f43..2fcba60ace54 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubs.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubs.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { PrivateLinkHub, PrivateLinkHubsListByResourceGroupOptionalParams, @@ -19,7 +19,7 @@ import { PrivateLinkHubsUpdateResponse, PrivateLinkHubsCreateOrUpdateOptionalParams, PrivateLinkHubsCreateOrUpdateResponse, - PrivateLinkHubsDeleteOptionalParams + PrivateLinkHubsDeleteOptionalParams, } from "../models"; /// @@ -32,14 +32,14 @@ export interface PrivateLinkHubs { */ listByResourceGroup( resourceGroupName: string, - options?: PrivateLinkHubsListByResourceGroupOptionalParams + options?: PrivateLinkHubsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Returns a list of privateLinkHubs in a subscription * @param options The options parameters. */ list( - options?: PrivateLinkHubsListOptionalParams + options?: PrivateLinkHubsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a privateLinkHub @@ -50,7 +50,7 @@ export interface PrivateLinkHubs { get( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateLinkHubsGetOptionalParams + options?: PrivateLinkHubsGetOptionalParams, ): Promise; /** * Updates a privateLinkHub @@ -63,7 +63,7 @@ export interface PrivateLinkHubs { resourceGroupName: string, privateLinkHubName: string, privateLinkHubPatchInfo: PrivateLinkHubPatchInfo, - options?: PrivateLinkHubsUpdateOptionalParams + options?: PrivateLinkHubsUpdateOptionalParams, ): Promise; /** * Creates or updates a privateLinkHub @@ -76,7 +76,7 @@ export interface PrivateLinkHubs { resourceGroupName: string, privateLinkHubName: string, privateLinkHubInfo: PrivateLinkHub, - options?: PrivateLinkHubsCreateOrUpdateOptionalParams + options?: PrivateLinkHubsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a privateLinkHub @@ -87,8 +87,8 @@ export interface PrivateLinkHubs { beginDelete( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateLinkHubsDeleteOptionalParams - ): Promise, void>>; + options?: PrivateLinkHubsDeleteOptionalParams, + ): Promise, void>>; /** * Deletes a privateLinkHub * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -98,6 +98,6 @@ export interface PrivateLinkHubs { beginDeleteAndWait( resourceGroupName: string, privateLinkHubName: string, - options?: PrivateLinkHubsDeleteOptionalParams + options?: PrivateLinkHubsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResourcesOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResourcesOperations.ts index 73d126d2483d..240193ca9fda 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResourcesOperations.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResourcesOperations.ts @@ -11,7 +11,7 @@ import { PrivateLinkResource, PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesGetOptionalParams, - PrivateLinkResourcesGetResponse + PrivateLinkResourcesGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface PrivateLinkResourcesOperations { list( resourceGroupName: string, workspaceName: string, - options?: PrivateLinkResourcesListOptionalParams + options?: PrivateLinkResourcesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get private link resource in workspace @@ -39,6 +39,6 @@ export interface PrivateLinkResourcesOperations { resourceGroupName: string, workspaceName: string, privateLinkResourceName: string, - options?: PrivateLinkResourcesGetOptionalParams + options?: PrivateLinkResourcesGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/restorableDroppedSqlPools.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/restorableDroppedSqlPools.ts index 8bba0d630cda..c047b33fbe56 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/restorableDroppedSqlPools.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/restorableDroppedSqlPools.ts @@ -11,7 +11,7 @@ import { RestorableDroppedSqlPool, RestorableDroppedSqlPoolsListByWorkspaceOptionalParams, RestorableDroppedSqlPoolsGetOptionalParams, - RestorableDroppedSqlPoolsGetResponse + RestorableDroppedSqlPoolsGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface RestorableDroppedSqlPools { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams + options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a deleted sql pool that can be restored @@ -40,6 +40,6 @@ export interface RestorableDroppedSqlPools { resourceGroupName: string, workspaceName: string, restorableDroppedSqlPoolId: string, - options?: RestorableDroppedSqlPoolsGetOptionalParams + options?: RestorableDroppedSqlPoolsGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfiguration.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfiguration.ts index 3ac06c554694..db6cc073ea65 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfiguration.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfiguration.ts @@ -8,7 +8,7 @@ import { SparkConfigurationGetOptionalParams, - SparkConfigurationGetResponse + SparkConfigurationGetResponse, } from "../models"; /** Interface representing a SparkConfiguration. */ @@ -24,6 +24,6 @@ export interface SparkConfiguration { resourceGroupName: string, sparkConfigurationName: string, workspaceName: string, - options?: SparkConfigurationGetOptionalParams + options?: SparkConfigurationGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfigurations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfigurations.ts index 10fe10bb48bd..75a1bce10c88 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfigurations.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfigurations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SparkConfigurationResource, - SparkConfigurationsListByWorkspaceOptionalParams + SparkConfigurationsListByWorkspaceOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface SparkConfigurations { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: SparkConfigurationsListByWorkspaceOptionalParams + options?: SparkConfigurationsListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolBlobAuditingPolicies.ts index da9a55046790..4c200cc766b8 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolBlobAuditingPolicies.ts @@ -13,7 +13,7 @@ import { SqlPoolBlobAuditingPoliciesGetOptionalParams, SqlPoolBlobAuditingPoliciesGetResponse, SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, - SqlPoolBlobAuditingPoliciesCreateOrUpdateResponse + SqlPoolBlobAuditingPoliciesCreateOrUpdateResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface SqlPoolBlobAuditingPolicies { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, ): PagedAsyncIterableIterator; /** * Get a SQL pool's blob auditing policy. @@ -43,7 +43,7 @@ export interface SqlPoolBlobAuditingPolicies { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolBlobAuditingPoliciesGetOptionalParams + options?: SqlPoolBlobAuditingPoliciesGetOptionalParams, ): Promise; /** * Creates or updates a SQL pool's blob auditing policy. @@ -58,6 +58,6 @@ export interface SqlPoolBlobAuditingPolicies { workspaceName: string, sqlPoolName: string, parameters: SqlPoolBlobAuditingPolicy, - options?: SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams + options?: SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolColumns.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolColumns.ts index 23d1c92b6c92..0a7535847e25 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolColumns.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolColumns.ts @@ -8,7 +8,7 @@ import { SqlPoolColumnsGetOptionalParams, - SqlPoolColumnsGetResponse + SqlPoolColumnsGetResponse, } from "../models"; /** Interface representing a SqlPoolColumns. */ @@ -30,6 +30,6 @@ export interface SqlPoolColumns { schemaName: string, tableName: string, columnName: string, - options?: SqlPoolColumnsGetOptionalParams + options?: SqlPoolColumnsGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolConnectionPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolConnectionPolicies.ts index 48786a8c8db0..878e24ecdb38 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolConnectionPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolConnectionPolicies.ts @@ -9,7 +9,7 @@ import { ConnectionPolicyName, SqlPoolConnectionPoliciesGetOptionalParams, - SqlPoolConnectionPoliciesGetResponse + SqlPoolConnectionPoliciesGetResponse, } from "../models"; /** Interface representing a SqlPoolConnectionPolicies. */ @@ -27,6 +27,6 @@ export interface SqlPoolConnectionPolicies { workspaceName: string, sqlPoolName: string, connectionPolicyName: ConnectionPolicyName, - options?: SqlPoolConnectionPoliciesGetOptionalParams + options?: SqlPoolConnectionPoliciesGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolDataWarehouseUserActivities.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolDataWarehouseUserActivities.ts index be7603efcc68..61406d892a7c 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolDataWarehouseUserActivities.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolDataWarehouseUserActivities.ts @@ -9,7 +9,7 @@ import { DataWarehouseUserActivityName, SqlPoolDataWarehouseUserActivitiesGetOptionalParams, - SqlPoolDataWarehouseUserActivitiesGetResponse + SqlPoolDataWarehouseUserActivitiesGetResponse, } from "../models"; /** Interface representing a SqlPoolDataWarehouseUserActivities. */ @@ -27,6 +27,6 @@ export interface SqlPoolDataWarehouseUserActivities { workspaceName: string, sqlPoolName: string, dataWarehouseUserActivityName: DataWarehouseUserActivityName, - options?: SqlPoolDataWarehouseUserActivitiesGetOptionalParams + options?: SqlPoolDataWarehouseUserActivitiesGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolGeoBackupPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolGeoBackupPolicies.ts index b3ac6d042646..c873a68a270c 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolGeoBackupPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolGeoBackupPolicies.ts @@ -14,7 +14,7 @@ import { SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams, SqlPoolGeoBackupPoliciesCreateOrUpdateResponse, SqlPoolGeoBackupPoliciesGetOptionalParams, - SqlPoolGeoBackupPoliciesGetResponse + SqlPoolGeoBackupPoliciesGetResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface SqlPoolGeoBackupPolicies { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolGeoBackupPoliciesListOptionalParams + options?: SqlPoolGeoBackupPoliciesListOptionalParams, ): PagedAsyncIterableIterator; /** * Updates a SQL Pool geo backup policy. @@ -48,7 +48,7 @@ export interface SqlPoolGeoBackupPolicies { sqlPoolName: string, geoBackupPolicyName: GeoBackupPolicyName, parameters: GeoBackupPolicy, - options?: SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams + options?: SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams, ): Promise; /** * Get the specified SQL pool geo backup policy @@ -63,6 +63,6 @@ export interface SqlPoolGeoBackupPolicies { workspaceName: string, sqlPoolName: string, geoBackupPolicyName: GeoBackupPolicyName, - options?: SqlPoolGeoBackupPoliciesGetOptionalParams + options?: SqlPoolGeoBackupPoliciesGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindowOptions.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindowOptions.ts index 12f592773f6d..a85f0fda17eb 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindowOptions.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindowOptions.ts @@ -8,7 +8,7 @@ import { SqlPoolMaintenanceWindowOptionsGetOptionalParams, - SqlPoolMaintenanceWindowOptionsGetResponse + SqlPoolMaintenanceWindowOptionsGetResponse, } from "../models"; /** Interface representing a SqlPoolMaintenanceWindowOptions. */ @@ -26,6 +26,6 @@ export interface SqlPoolMaintenanceWindowOptions { workspaceName: string, sqlPoolName: string, maintenanceWindowOptionsName: string, - options?: SqlPoolMaintenanceWindowOptionsGetOptionalParams + options?: SqlPoolMaintenanceWindowOptionsGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindows.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindows.ts index e53e033a649a..1da6cc81670b 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindows.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindows.ts @@ -10,7 +10,7 @@ import { SqlPoolMaintenanceWindowsGetOptionalParams, SqlPoolMaintenanceWindowsGetResponse, MaintenanceWindows, - SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams + SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams, } from "../models"; /** Interface representing a SqlPoolMaintenanceWindows. */ @@ -28,7 +28,7 @@ export interface SqlPoolMaintenanceWindows { workspaceName: string, sqlPoolName: string, maintenanceWindowName: string, - options?: SqlPoolMaintenanceWindowsGetOptionalParams + options?: SqlPoolMaintenanceWindowsGetOptionalParams, ): Promise; /** * Creates or updates a Sql pool's maintenance windows settings. @@ -45,6 +45,6 @@ export interface SqlPoolMaintenanceWindows { sqlPoolName: string, maintenanceWindowName: string, parameters: MaintenanceWindows, - options?: SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams + options?: SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMetadataSyncConfigs.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMetadataSyncConfigs.ts index a90777b19bad..2475f25a5bb9 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMetadataSyncConfigs.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMetadataSyncConfigs.ts @@ -11,7 +11,7 @@ import { SqlPoolMetadataSyncConfigsGetResponse, MetadataSyncConfig, SqlPoolMetadataSyncConfigsCreateOptionalParams, - SqlPoolMetadataSyncConfigsCreateResponse + SqlPoolMetadataSyncConfigsCreateResponse, } from "../models"; /** Interface representing a SqlPoolMetadataSyncConfigs. */ @@ -27,7 +27,7 @@ export interface SqlPoolMetadataSyncConfigs { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolMetadataSyncConfigsGetOptionalParams + options?: SqlPoolMetadataSyncConfigsGetOptionalParams, ): Promise; /** * Set the metadata sync configuration for a SQL pool @@ -42,6 +42,6 @@ export interface SqlPoolMetadataSyncConfigs { workspaceName: string, sqlPoolName: string, metadataSyncConfiguration: MetadataSyncConfig, - options?: SqlPoolMetadataSyncConfigsCreateOptionalParams + options?: SqlPoolMetadataSyncConfigsCreateOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts index 0af33e1ec6e1..b34eb5ff332d 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts @@ -6,10 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SqlPoolOperationResultsGetLocationHeaderResultOptionalParams, - SqlPoolOperationResultsGetLocationHeaderResultResponse + SqlPoolOperationResultsGetLocationHeaderResultResponse, } from "../models"; /** Interface representing a SqlPoolOperationResults. */ @@ -27,12 +27,10 @@ export interface SqlPoolOperationResults { workspaceName: string, sqlPoolName: string, operationId: string, - options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams + options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams, ): Promise< - PollerLike< - PollOperationState< - SqlPoolOperationResultsGetLocationHeaderResultResponse - >, + SimplePollerLike< + OperationState, SqlPoolOperationResultsGetLocationHeaderResultResponse > >; @@ -49,6 +47,6 @@ export interface SqlPoolOperationResults { workspaceName: string, sqlPoolName: string, operationId: string, - options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams + options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperations.ts index 4d84e76a4a8b..132ee64f8061 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperations.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SqlPoolOperation, - SqlPoolOperationsListOptionalParams + SqlPoolOperationsListOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface SqlPoolOperations { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolOperationsListOptionalParams + options?: SqlPoolOperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRecommendedSensitivityLabels.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRecommendedSensitivityLabels.ts index ffd4388da10e..522dccf338e2 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRecommendedSensitivityLabels.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRecommendedSensitivityLabels.ts @@ -8,7 +8,7 @@ import { RecommendedSensitivityLabelUpdateList, - SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams + SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams, } from "../models"; /** Interface representing a SqlPoolRecommendedSensitivityLabels. */ @@ -26,6 +26,6 @@ export interface SqlPoolRecommendedSensitivityLabels { workspaceName: string, sqlPoolName: string, parameters: RecommendedSensitivityLabelUpdateList, - options?: SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams + options?: SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolReplicationLinks.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolReplicationLinks.ts index 01010c69ffbb..2a79bcc20c3e 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolReplicationLinks.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolReplicationLinks.ts @@ -11,7 +11,7 @@ import { ReplicationLink, SqlPoolReplicationLinksListOptionalParams, SqlPoolReplicationLinksGetByNameOptionalParams, - SqlPoolReplicationLinksGetByNameResponse + SqlPoolReplicationLinksGetByNameResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface SqlPoolReplicationLinks { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolReplicationLinksListOptionalParams + options?: SqlPoolReplicationLinksListOptionalParams, ): PagedAsyncIterableIterator; /** * Get SQL pool replication link by name. @@ -43,6 +43,6 @@ export interface SqlPoolReplicationLinks { workspaceName: string, sqlPoolName: string, linkId: string, - options?: SqlPoolReplicationLinksGetByNameOptionalParams + options?: SqlPoolReplicationLinksGetByNameOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRestorePoints.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRestorePoints.ts index d4f55eda47c8..459fa6cbb80c 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRestorePoints.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRestorePoints.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { RestorePoint, SqlPoolRestorePointsListOptionalParams, @@ -16,7 +16,7 @@ import { SqlPoolRestorePointsCreateResponse, SqlPoolRestorePointsGetOptionalParams, SqlPoolRestorePointsGetResponse, - SqlPoolRestorePointsDeleteOptionalParams + SqlPoolRestorePointsDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface SqlPoolRestorePoints { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolRestorePointsListOptionalParams + options?: SqlPoolRestorePointsListOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a restore point for a data warehouse. @@ -48,10 +48,10 @@ export interface SqlPoolRestorePoints { workspaceName: string, sqlPoolName: string, parameters: CreateSqlPoolRestorePointDefinition, - options?: SqlPoolRestorePointsCreateOptionalParams + options?: SqlPoolRestorePointsCreateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolRestorePointsCreateResponse > >; @@ -68,7 +68,7 @@ export interface SqlPoolRestorePoints { workspaceName: string, sqlPoolName: string, parameters: CreateSqlPoolRestorePointDefinition, - options?: SqlPoolRestorePointsCreateOptionalParams + options?: SqlPoolRestorePointsCreateOptionalParams, ): Promise; /** * Gets a restore point. @@ -83,7 +83,7 @@ export interface SqlPoolRestorePoints { workspaceName: string, sqlPoolName: string, restorePointName: string, - options?: SqlPoolRestorePointsGetOptionalParams + options?: SqlPoolRestorePointsGetOptionalParams, ): Promise; /** * Deletes a restore point. @@ -98,6 +98,6 @@ export interface SqlPoolRestorePoints { workspaceName: string, sqlPoolName: string, restorePointName: string, - options?: SqlPoolRestorePointsDeleteOptionalParams + options?: SqlPoolRestorePointsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSchemas.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSchemas.ts index fcc8b98b5ecc..f792f8283a9b 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSchemas.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSchemas.ts @@ -11,7 +11,7 @@ import { SqlPoolSchema, SqlPoolSchemasListOptionalParams, SqlPoolSchemasGetOptionalParams, - SqlPoolSchemasGetResponse + SqlPoolSchemasGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface SqlPoolSchemas { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSchemasListOptionalParams + options?: SqlPoolSchemasListOptionalParams, ): PagedAsyncIterableIterator; /** * Get Sql Pool schema @@ -43,6 +43,6 @@ export interface SqlPoolSchemas { workspaceName: string, sqlPoolName: string, schemaName: string, - options?: SqlPoolSchemasGetOptionalParams + options?: SqlPoolSchemasGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSecurityAlertPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSecurityAlertPolicies.ts index 139437d5d3e7..513def3c9f0d 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSecurityAlertPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSecurityAlertPolicies.ts @@ -14,7 +14,7 @@ import { SqlPoolSecurityAlertPoliciesGetOptionalParams, SqlPoolSecurityAlertPoliciesGetResponse, SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams, - SqlPoolSecurityAlertPoliciesCreateOrUpdateResponse + SqlPoolSecurityAlertPoliciesCreateOrUpdateResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface SqlPoolSecurityAlertPolicies { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSecurityAlertPoliciesListOptionalParams + options?: SqlPoolSecurityAlertPoliciesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a Sql pool's security alert policy. @@ -46,7 +46,7 @@ export interface SqlPoolSecurityAlertPolicies { workspaceName: string, sqlPoolName: string, securityAlertPolicyName: SecurityAlertPolicyName, - options?: SqlPoolSecurityAlertPoliciesGetOptionalParams + options?: SqlPoolSecurityAlertPoliciesGetOptionalParams, ): Promise; /** * Create or update a Sql pool's security alert policy. @@ -63,6 +63,6 @@ export interface SqlPoolSecurityAlertPolicies { sqlPoolName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: SqlPoolSecurityAlertPolicy, - options?: SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams + options?: SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSensitivityLabels.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSensitivityLabels.ts index 32c27bd7e732..cc7d71486949 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSensitivityLabels.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSensitivityLabels.ts @@ -20,7 +20,7 @@ import { SqlPoolSensitivityLabelsGetOptionalParams, SqlPoolSensitivityLabelsGetResponse, SqlPoolSensitivityLabelsEnableRecommendationOptionalParams, - SqlPoolSensitivityLabelsDisableRecommendationOptionalParams + SqlPoolSensitivityLabelsDisableRecommendationOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface SqlPoolSensitivityLabels { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSensitivityLabelsListCurrentOptionalParams + options?: SqlPoolSensitivityLabelsListCurrentOptionalParams, ): PagedAsyncIterableIterator; /** * Gets sensitivity labels of a given SQL pool. @@ -50,7 +50,7 @@ export interface SqlPoolSensitivityLabels { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams + options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams, ): PagedAsyncIterableIterator; /** * Update sensitivity labels of a given SQL Pool using an operations batch. @@ -65,7 +65,7 @@ export interface SqlPoolSensitivityLabels { workspaceName: string, sqlPoolName: string, parameters: SensitivityLabelUpdateList, - options?: SqlPoolSensitivityLabelsUpdateOptionalParams + options?: SqlPoolSensitivityLabelsUpdateOptionalParams, ): Promise; /** * Creates or updates the sensitivity label of a given column in a Sql pool @@ -86,7 +86,7 @@ export interface SqlPoolSensitivityLabels { tableName: string, columnName: string, parameters: SensitivityLabel, - options?: SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams + options?: SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the sensitivity label of a given column in a Sql pool @@ -105,7 +105,7 @@ export interface SqlPoolSensitivityLabels { schemaName: string, tableName: string, columnName: string, - options?: SqlPoolSensitivityLabelsDeleteOptionalParams + options?: SqlPoolSensitivityLabelsDeleteOptionalParams, ): Promise; /** * Gets the sensitivity label of a given column @@ -126,7 +126,7 @@ export interface SqlPoolSensitivityLabels { tableName: string, columnName: string, sensitivityLabelSource: SensitivityLabelSource, - options?: SqlPoolSensitivityLabelsGetOptionalParams + options?: SqlPoolSensitivityLabelsGetOptionalParams, ): Promise; /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all @@ -146,7 +146,7 @@ export interface SqlPoolSensitivityLabels { schemaName: string, tableName: string, columnName: string, - options?: SqlPoolSensitivityLabelsEnableRecommendationOptionalParams + options?: SqlPoolSensitivityLabelsEnableRecommendationOptionalParams, ): Promise; /** * Disables sensitivity recommendations on a given column @@ -165,6 +165,6 @@ export interface SqlPoolSensitivityLabels { schemaName: string, tableName: string, columnName: string, - options?: SqlPoolSensitivityLabelsDisableRecommendationOptionalParams + options?: SqlPoolSensitivityLabelsDisableRecommendationOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTableColumns.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTableColumns.ts index 517a732b7d92..52fe2f90b357 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTableColumns.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTableColumns.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SqlPoolColumn, - SqlPoolTableColumnsListByTableNameOptionalParams + SqlPoolTableColumnsListByTableNameOptionalParams, } from "../models"; /// @@ -30,6 +30,6 @@ export interface SqlPoolTableColumns { sqlPoolName: string, schemaName: string, tableName: string, - options?: SqlPoolTableColumnsListByTableNameOptionalParams + options?: SqlPoolTableColumnsListByTableNameOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTables.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTables.ts index 1b7eafb78442..b7c9ea280d25 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTables.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTables.ts @@ -11,7 +11,7 @@ import { SqlPoolTable, SqlPoolTablesListBySchemaOptionalParams, SqlPoolTablesGetOptionalParams, - SqlPoolTablesGetResponse + SqlPoolTablesGetResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface SqlPoolTables { workspaceName: string, sqlPoolName: string, schemaName: string, - options?: SqlPoolTablesListBySchemaOptionalParams + options?: SqlPoolTablesListBySchemaOptionalParams, ): PagedAsyncIterableIterator; /** * Get Sql pool table @@ -47,6 +47,6 @@ export interface SqlPoolTables { sqlPoolName: string, schemaName: string, tableName: string, - options?: SqlPoolTablesGetOptionalParams + options?: SqlPoolTablesGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTransparentDataEncryptions.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTransparentDataEncryptions.ts index 0a340ca8bd70..229950221cd4 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTransparentDataEncryptions.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTransparentDataEncryptions.ts @@ -14,7 +14,7 @@ import { SqlPoolTransparentDataEncryptionsGetOptionalParams, SqlPoolTransparentDataEncryptionsGetResponse, SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams, - SqlPoolTransparentDataEncryptionsCreateOrUpdateResponse + SqlPoolTransparentDataEncryptionsCreateOrUpdateResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface SqlPoolTransparentDataEncryptions { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolTransparentDataEncryptionsListOptionalParams + options?: SqlPoolTransparentDataEncryptionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a SQL pool's transparent data encryption configuration. @@ -46,7 +46,7 @@ export interface SqlPoolTransparentDataEncryptions { workspaceName: string, sqlPoolName: string, transparentDataEncryptionName: TransparentDataEncryptionName, - options?: SqlPoolTransparentDataEncryptionsGetOptionalParams + options?: SqlPoolTransparentDataEncryptionsGetOptionalParams, ): Promise; /** * Creates or updates a Sql pool's transparent data encryption configuration. @@ -63,6 +63,6 @@ export interface SqlPoolTransparentDataEncryptions { sqlPoolName: string, transparentDataEncryptionName: TransparentDataEncryptionName, parameters: TransparentDataEncryption, - options?: SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams + options?: SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolUsages.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolUsages.ts index 422c512db329..389efdd76f93 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolUsages.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolUsages.ts @@ -23,6 +23,6 @@ export interface SqlPoolUsages { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolUsagesListOptionalParams + options?: SqlPoolUsagesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentRuleBaselines.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentRuleBaselines.ts index 71e3690ac0e4..bf27088f2383 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentRuleBaselines.ts @@ -14,7 +14,7 @@ import { SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse, SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams, SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams, - SqlPoolVulnerabilityAssessmentRuleBaselinesGetResponse + SqlPoolVulnerabilityAssessmentRuleBaselinesGetResponse, } from "../models"; /** Interface representing a SqlPoolVulnerabilityAssessmentRuleBaselines. */ @@ -39,7 +39,7 @@ export interface SqlPoolVulnerabilityAssessmentRuleBaselines { ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, parameters: SqlPoolVulnerabilityAssessmentRuleBaseline, - options?: SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams, ): Promise; /** * Removes the database's vulnerability assessment rule baseline. @@ -59,7 +59,7 @@ export interface SqlPoolVulnerabilityAssessmentRuleBaselines { vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, - options?: SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams, ): Promise; /** * Gets a SqlPool's vulnerability assessment rule baseline. @@ -79,6 +79,6 @@ export interface SqlPoolVulnerabilityAssessmentRuleBaselines { vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, - options?: SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentScans.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentScans.ts index 2aa49133ebd4..e33b5b077927 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentScans.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentScans.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { VulnerabilityAssessmentScanRecord, VulnerabilityAssessmentName, @@ -16,7 +16,7 @@ import { SqlPoolVulnerabilityAssessmentScansExportOptionalParams, SqlPoolVulnerabilityAssessmentScansExportResponse, SqlPoolVulnerabilityAssessmentScansGetOptionalParams, - SqlPoolVulnerabilityAssessmentScansGetResponse + SqlPoolVulnerabilityAssessmentScansGetResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface SqlPoolVulnerabilityAssessmentScans { workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams + options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams, ): PagedAsyncIterableIterator; /** * Executes a Vulnerability Assessment database scan. @@ -52,8 +52,8 @@ export interface SqlPoolVulnerabilityAssessmentScans { sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise, void>>; + options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams, + ): Promise, void>>; /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -69,7 +69,7 @@ export interface SqlPoolVulnerabilityAssessmentScans { sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams + options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams, ): Promise; /** * Convert an existing scan result to a human readable format. If already exists nothing happens @@ -86,7 +86,7 @@ export interface SqlPoolVulnerabilityAssessmentScans { sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: SqlPoolVulnerabilityAssessmentScansExportOptionalParams + options?: SqlPoolVulnerabilityAssessmentScansExportOptionalParams, ): Promise; /** * Gets a vulnerability assessment scan record of a Sql pool. @@ -103,6 +103,6 @@ export interface SqlPoolVulnerabilityAssessmentScans { sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: SqlPoolVulnerabilityAssessmentScansGetOptionalParams + options?: SqlPoolVulnerabilityAssessmentScansGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessments.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessments.ts index b00c352385f3..008f0935ab4f 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessments.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessments.ts @@ -15,7 +15,7 @@ import { SqlPoolVulnerabilityAssessmentsGetResponse, SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams, SqlPoolVulnerabilityAssessmentsCreateOrUpdateResponse, - SqlPoolVulnerabilityAssessmentsDeleteOptionalParams + SqlPoolVulnerabilityAssessmentsDeleteOptionalParams, } from "../models"; /// @@ -32,7 +32,7 @@ export interface SqlPoolVulnerabilityAssessments { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolVulnerabilityAssessmentsListOptionalParams + options?: SqlPoolVulnerabilityAssessmentsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the Sql pool's vulnerability assessment. @@ -47,7 +47,7 @@ export interface SqlPoolVulnerabilityAssessments { workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: SqlPoolVulnerabilityAssessmentsGetOptionalParams + options?: SqlPoolVulnerabilityAssessmentsGetOptionalParams, ): Promise; /** * Creates or updates the Sql pool vulnerability assessment. @@ -64,7 +64,7 @@ export interface SqlPoolVulnerabilityAssessments { sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: SqlPoolVulnerabilityAssessment, - options?: SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams + options?: SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams, ): Promise; /** * Removes the database's vulnerability assessment. @@ -79,6 +79,6 @@ export interface SqlPoolVulnerabilityAssessments { workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: SqlPoolVulnerabilityAssessmentsDeleteOptionalParams + options?: SqlPoolVulnerabilityAssessmentsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadClassifier.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadClassifier.ts index 7b14247e48e7..f0c172a36828 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadClassifier.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadClassifier.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { WorkloadClassifier, SqlPoolWorkloadClassifierListOptionalParams, @@ -15,7 +15,7 @@ import { SqlPoolWorkloadClassifierGetResponse, SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams, SqlPoolWorkloadClassifierCreateOrUpdateResponse, - SqlPoolWorkloadClassifierDeleteOptionalParams + SqlPoolWorkloadClassifierDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface SqlPoolWorkloadClassifier { workspaceName: string, sqlPoolName: string, workloadGroupName: string, - options?: SqlPoolWorkloadClassifierListOptionalParams + options?: SqlPoolWorkloadClassifierListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a workload classifier of Sql pool's workload group. @@ -51,7 +51,7 @@ export interface SqlPoolWorkloadClassifier { sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, - options?: SqlPoolWorkloadClassifierGetOptionalParams + options?: SqlPoolWorkloadClassifierGetOptionalParams, ): Promise; /** * Create Or Update workload classifier for a Sql pool's workload group. @@ -70,10 +70,10 @@ export interface SqlPoolWorkloadClassifier { workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, - options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams + options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolWorkloadClassifierCreateOrUpdateResponse > >; @@ -94,7 +94,7 @@ export interface SqlPoolWorkloadClassifier { workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, - options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams + options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams, ): Promise; /** * Remove workload classifier of a Sql pool's workload group. @@ -111,8 +111,8 @@ export interface SqlPoolWorkloadClassifier { sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, - options?: SqlPoolWorkloadClassifierDeleteOptionalParams - ): Promise, void>>; + options?: SqlPoolWorkloadClassifierDeleteOptionalParams, + ): Promise, void>>; /** * Remove workload classifier of a Sql pool's workload group. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -128,6 +128,6 @@ export interface SqlPoolWorkloadClassifier { sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, - options?: SqlPoolWorkloadClassifierDeleteOptionalParams + options?: SqlPoolWorkloadClassifierDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadGroup.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadGroup.ts index 2856611c6837..2bfea800ec14 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadGroup.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadGroup.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { WorkloadGroup, SqlPoolWorkloadGroupListOptionalParams, @@ -15,7 +15,7 @@ import { SqlPoolWorkloadGroupGetResponse, SqlPoolWorkloadGroupCreateOrUpdateOptionalParams, SqlPoolWorkloadGroupCreateOrUpdateResponse, - SqlPoolWorkloadGroupDeleteOptionalParams + SqlPoolWorkloadGroupDeleteOptionalParams, } from "../models"; /// @@ -32,7 +32,7 @@ export interface SqlPoolWorkloadGroup { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolWorkloadGroupListOptionalParams + options?: SqlPoolWorkloadGroupListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a Sql pool's workload group. @@ -47,7 +47,7 @@ export interface SqlPoolWorkloadGroup { workspaceName: string, sqlPoolName: string, workloadGroupName: string, - options?: SqlPoolWorkloadGroupGetOptionalParams + options?: SqlPoolWorkloadGroupGetOptionalParams, ): Promise; /** * Create Or Update a Sql pool's workload group. @@ -64,10 +64,10 @@ export interface SqlPoolWorkloadGroup { sqlPoolName: string, workloadGroupName: string, parameters: WorkloadGroup, - options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams + options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolWorkloadGroupCreateOrUpdateResponse > >; @@ -86,7 +86,7 @@ export interface SqlPoolWorkloadGroup { sqlPoolName: string, workloadGroupName: string, parameters: WorkloadGroup, - options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams + options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams, ): Promise; /** * Remove Sql pool's workload group. @@ -101,8 +101,8 @@ export interface SqlPoolWorkloadGroup { workspaceName: string, sqlPoolName: string, workloadGroupName: string, - options?: SqlPoolWorkloadGroupDeleteOptionalParams - ): Promise, void>>; + options?: SqlPoolWorkloadGroupDeleteOptionalParams, + ): Promise, void>>; /** * Remove Sql pool's workload group. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -116,6 +116,6 @@ export interface SqlPoolWorkloadGroup { workspaceName: string, sqlPoolName: string, workloadGroupName: string, - options?: SqlPoolWorkloadGroupDeleteOptionalParams + options?: SqlPoolWorkloadGroupDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts index 7d98448308b6..978725a35342 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SqlPool, SqlPoolsListByWorkspaceOptionalParams, @@ -24,8 +24,6 @@ import { SqlPoolsPauseResponse, SqlPoolsResumeOptionalParams, SqlPoolsResumeResponse, - ResourceMoveDefinition, - SqlPoolsRenameOptionalParams } from "../models"; /// @@ -40,7 +38,7 @@ export interface SqlPools { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: SqlPoolsListByWorkspaceOptionalParams + options?: SqlPoolsListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Get SQL pool properties @@ -53,7 +51,7 @@ export interface SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsGetOptionalParams + options?: SqlPoolsGetOptionalParams, ): Promise; /** * Apply a partial update to a SQL pool @@ -68,10 +66,10 @@ export interface SqlPools { workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPoolPatchInfo, - options?: SqlPoolsUpdateOptionalParams + options?: SqlPoolsUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolsUpdateResponse > >; @@ -88,7 +86,7 @@ export interface SqlPools { workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPoolPatchInfo, - options?: SqlPoolsUpdateOptionalParams + options?: SqlPoolsUpdateOptionalParams, ): Promise; /** * Create a SQL pool @@ -103,10 +101,10 @@ export interface SqlPools { workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPool, - options?: SqlPoolsCreateOptionalParams + options?: SqlPoolsCreateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolsCreateResponse > >; @@ -123,7 +121,7 @@ export interface SqlPools { workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPool, - options?: SqlPoolsCreateOptionalParams + options?: SqlPoolsCreateOptionalParams, ): Promise; /** * Delete a SQL pool @@ -136,10 +134,10 @@ export interface SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsDeleteOptionalParams + options?: SqlPoolsDeleteOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolsDeleteResponse > >; @@ -154,7 +152,7 @@ export interface SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsDeleteOptionalParams + options?: SqlPoolsDeleteOptionalParams, ): Promise; /** * Pause a SQL pool @@ -167,9 +165,12 @@ export interface SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsPauseOptionalParams + options?: SqlPoolsPauseOptionalParams, ): Promise< - PollerLike, SqlPoolsPauseResponse> + SimplePollerLike< + OperationState, + SqlPoolsPauseResponse + > >; /** * Pause a SQL pool @@ -182,7 +183,7 @@ export interface SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsPauseOptionalParams + options?: SqlPoolsPauseOptionalParams, ): Promise; /** * Resume a SQL pool @@ -195,10 +196,10 @@ export interface SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsResumeOptionalParams + options?: SqlPoolsResumeOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SqlPoolsResumeResponse > >; @@ -213,21 +214,6 @@ export interface SqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: SqlPoolsResumeOptionalParams + options?: SqlPoolsResumeOptionalParams, ): Promise; - /** - * Rename a SQL pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name - * @param parameters The resource move definition for renaming this Sql pool. - * @param options The options parameters. - */ - rename( - resourceGroupName: string, - workspaceName: string, - sqlPoolName: string, - parameters: ResourceMoveDefinition, - options?: SqlPoolsRenameOptionalParams - ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceAadAdmins.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceAadAdmins.ts index d06cdd513b79..c9fbbc4d61e0 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceAadAdmins.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceAadAdmins.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { WorkspaceAadAdminsGetOptionalParams, WorkspaceAadAdminsGetResponse, WorkspaceAadAdminInfo, WorkspaceAadAdminsCreateOrUpdateOptionalParams, WorkspaceAadAdminsCreateOrUpdateResponse, - WorkspaceAadAdminsDeleteOptionalParams + WorkspaceAadAdminsDeleteOptionalParams, } from "../models"; /** Interface representing a WorkspaceAadAdmins. */ @@ -27,7 +27,7 @@ export interface WorkspaceAadAdmins { get( resourceGroupName: string, workspaceName: string, - options?: WorkspaceAadAdminsGetOptionalParams + options?: WorkspaceAadAdminsGetOptionalParams, ): Promise; /** * Creates or updates a workspace active directory admin @@ -40,10 +40,10 @@ export interface WorkspaceAadAdmins { resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, - options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams + options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspaceAadAdminsCreateOrUpdateResponse > >; @@ -58,7 +58,7 @@ export interface WorkspaceAadAdmins { resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, - options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams + options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a workspace active directory admin @@ -69,8 +69,8 @@ export interface WorkspaceAadAdmins { beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspaceAadAdminsDeleteOptionalParams - ): Promise, void>>; + options?: WorkspaceAadAdminsDeleteOptionalParams, + ): Promise, void>>; /** * Deletes a workspace active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -80,6 +80,6 @@ export interface WorkspaceAadAdmins { beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspaceAadAdminsDeleteOptionalParams + options?: WorkspaceAadAdminsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedIdentitySqlControlSettings.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedIdentitySqlControlSettings.ts index 8006c1c8125a..f1dbc55cfd7c 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedIdentitySqlControlSettings.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedIdentitySqlControlSettings.ts @@ -6,13 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams, WorkspaceManagedIdentitySqlControlSettingsGetResponse, ManagedIdentitySqlControlSettingsModel, WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams, - WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse + WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse, } from "../models"; /** Interface representing a WorkspaceManagedIdentitySqlControlSettings. */ @@ -26,7 +26,7 @@ export interface WorkspaceManagedIdentitySqlControlSettings { get( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams + options?: WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams, ): Promise; /** * Create or update Managed Identity Sql Control Settings @@ -39,12 +39,10 @@ export interface WorkspaceManagedIdentitySqlControlSettings { resourceGroupName: string, workspaceName: string, managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, - options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams + options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse > >; @@ -59,6 +57,6 @@ export interface WorkspaceManagedIdentitySqlControlSettings { resourceGroupName: string, workspaceName: string, managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, - options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams + options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerBlobAuditingPolicies.ts index e47d2258a176..1ad08de22244 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerBlobAuditingPolicies.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ServerBlobAuditingPolicy, WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams, @@ -15,7 +15,7 @@ import { WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams, WorkspaceManagedSqlServerBlobAuditingPoliciesGetResponse, WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, - WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface WorkspaceManagedSqlServerBlobAuditingPolicies { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Get a workspace managed sql server's blob auditing policy. @@ -43,7 +43,7 @@ export interface WorkspaceManagedSqlServerBlobAuditingPolicies { resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, - options?: WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams, ): Promise; /** * Create or Update a workspace managed sql server's blob auditing policy. @@ -58,12 +58,10 @@ export interface WorkspaceManagedSqlServerBlobAuditingPolicies { workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ServerBlobAuditingPolicy, - options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse > >; @@ -80,8 +78,6 @@ export interface WorkspaceManagedSqlServerBlobAuditingPolicies { workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ServerBlobAuditingPolicy, - options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse - >; + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, + ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.ts index a0144b4b9373..eb6de2e73a51 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DedicatedSQLminimalTlsSettings, WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams, @@ -15,7 +15,7 @@ import { WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams, WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse, WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetOptionalParams, - WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetResponse + WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettings { list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams + options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsListOptionalParams, ): PagedAsyncIterableIterator; /** * Update workspace managed sql server's minimal tls settings. @@ -45,12 +45,10 @@ export interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettings { workspaceName: string, dedicatedSQLminimalTlsSettingsName: DedicatedSQLMinimalTlsSettingsName, parameters: DedicatedSQLminimalTlsSettings, - options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams + options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse > >; @@ -67,10 +65,8 @@ export interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettings { workspaceName: string, dedicatedSQLminimalTlsSettingsName: DedicatedSQLMinimalTlsSettingsName, parameters: DedicatedSQLminimalTlsSettings, - options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateResponse - >; + options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsUpdateOptionalParams, + ): Promise; /** * Get workspace managed sql server's minimal tls settings. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -82,8 +78,6 @@ export interface WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettings { resourceGroupName: string, workspaceName: string, dedicatedSQLminimalTlsSettingsName: string, - options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetOptionalParams - ): Promise< - WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetResponse - >; + options?: WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsGetOptionalParams, + ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerEncryptionProtector.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerEncryptionProtector.ts index 557e2c594fb0..19d0a946bb0d 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerEncryptionProtector.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerEncryptionProtector.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { EncryptionProtector, WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams, @@ -16,7 +16,7 @@ import { WorkspaceManagedSqlServerEncryptionProtectorGetResponse, WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams, WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse, - WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams + WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface WorkspaceManagedSqlServerEncryptionProtector { list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams + options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams, ): PagedAsyncIterableIterator; /** * Get workspace managed sql server's encryption protector. @@ -44,7 +44,7 @@ export interface WorkspaceManagedSqlServerEncryptionProtector { resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams + options?: WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams, ): Promise; /** * Updates workspace managed sql server's encryption protector. @@ -59,12 +59,10 @@ export interface WorkspaceManagedSqlServerEncryptionProtector { workspaceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: EncryptionProtector, - options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams + options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse > >; @@ -81,10 +79,8 @@ export interface WorkspaceManagedSqlServerEncryptionProtector { workspaceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: EncryptionProtector, - options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse - >; + options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams, + ): Promise; /** * Revalidates workspace managed sql server's existing encryption protector. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -96,8 +92,8 @@ export interface WorkspaceManagedSqlServerEncryptionProtector { resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams - ): Promise, void>>; + options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams, + ): Promise, void>>; /** * Revalidates workspace managed sql server's existing encryption protector. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -109,6 +105,6 @@ export interface WorkspaceManagedSqlServerEncryptionProtector { resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams + options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts index d8e810ca5352..d4edb8cfefc6 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ExtendedServerBlobAuditingPolicy, WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams, @@ -15,7 +15,7 @@ import { WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams, WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetResponse, WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams, - WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { listByWorkspace( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Get a workspace SQL server's extended blob auditing policy. @@ -43,7 +43,7 @@ export interface WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, - options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams, ): Promise; /** * Create or Update a workspace managed sql server's extended blob auditing policy. @@ -58,12 +58,10 @@ export interface WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ExtendedServerBlobAuditingPolicy, - options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse > >; @@ -80,8 +78,6 @@ export interface WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ExtendedServerBlobAuditingPolicy, - options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse - >; + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams, + ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerRecoverableSqlPools.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerRecoverableSqlPools.ts index 3b3d7e1fb0cb..cf5d0b526365 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerRecoverableSqlPools.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerRecoverableSqlPools.ts @@ -11,7 +11,7 @@ import { RecoverableSqlPool, WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams, WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams, - WorkspaceManagedSqlServerRecoverableSqlPoolsGetResponse + WorkspaceManagedSqlServerRecoverableSqlPoolsGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface WorkspaceManagedSqlServerRecoverableSqlPools { list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get recoverable sql pools for workspace managed sql server. @@ -39,6 +39,6 @@ export interface WorkspaceManagedSqlServerRecoverableSqlPools { resourceGroupName: string, workspaceName: string, sqlPoolName: string, - options?: WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerSecurityAlertPolicy.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerSecurityAlertPolicy.ts index c892ac1ab54b..4e4da945f97b 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerSecurityAlertPolicy.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerSecurityAlertPolicy.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ServerSecurityAlertPolicy, WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams, @@ -15,7 +15,7 @@ import { WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams, WorkspaceManagedSqlServerSecurityAlertPolicyGetResponse, WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams, - WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface WorkspaceManagedSqlServerSecurityAlertPolicy { list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams + options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a workspace managed sql server's security alert policy. @@ -43,7 +43,7 @@ export interface WorkspaceManagedSqlServerSecurityAlertPolicy { resourceGroupName: string, workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, - options?: WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams + options?: WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams, ): Promise; /** * Create or Update a workspace managed sql server's threat detection policy. @@ -58,12 +58,10 @@ export interface WorkspaceManagedSqlServerSecurityAlertPolicy { workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, - options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams + options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState< - WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse > >; @@ -80,8 +78,6 @@ export interface WorkspaceManagedSqlServerSecurityAlertPolicy { workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, - options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse - >; + options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams, + ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerUsages.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerUsages.ts index 2219bb66b60a..50d8312c7a66 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerUsages.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerUsages.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ServerUsage, - WorkspaceManagedSqlServerUsagesListOptionalParams + WorkspaceManagedSqlServerUsagesListOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface WorkspaceManagedSqlServerUsages { list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerUsagesListOptionalParams + options?: WorkspaceManagedSqlServerUsagesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerVulnerabilityAssessments.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerVulnerabilityAssessments.ts index 0fdfd4dc8615..37acb933ffd4 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerVulnerabilityAssessments.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerVulnerabilityAssessments.ts @@ -15,7 +15,7 @@ import { WorkspaceManagedSqlServerVulnerabilityAssessmentsGetResponse, WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams, WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse, - WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams + WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface WorkspaceManagedSqlServerVulnerabilityAssessments { list( resourceGroupName: string, workspaceName: string, - options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get workspace managed sql server's vulnerability assessment. @@ -43,7 +43,7 @@ export interface WorkspaceManagedSqlServerVulnerabilityAssessments { resourceGroupName: string, workspaceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams, ): Promise; /** * Create or Update workspace managed sql server's vulnerability assessment. @@ -58,10 +58,8 @@ export interface WorkspaceManagedSqlServerVulnerabilityAssessments { workspaceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: ServerVulnerabilityAssessment, - options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams - ): Promise< - WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse - >; + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams, + ): Promise; /** * Remove workspace managed sql server's vulnerability assessment. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -73,6 +71,6 @@ export interface WorkspaceManagedSqlServerVulnerabilityAssessments { resourceGroupName: string, workspaceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceSqlAadAdmins.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceSqlAadAdmins.ts index 35b326151f34..29e0f3364b19 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceSqlAadAdmins.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceSqlAadAdmins.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { WorkspaceSqlAadAdminsGetOptionalParams, WorkspaceSqlAadAdminsGetResponse, WorkspaceAadAdminInfo, WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams, WorkspaceSqlAadAdminsCreateOrUpdateResponse, - WorkspaceSqlAadAdminsDeleteOptionalParams + WorkspaceSqlAadAdminsDeleteOptionalParams, } from "../models"; /** Interface representing a WorkspaceSqlAadAdmins. */ @@ -27,7 +27,7 @@ export interface WorkspaceSqlAadAdmins { get( resourceGroupName: string, workspaceName: string, - options?: WorkspaceSqlAadAdminsGetOptionalParams + options?: WorkspaceSqlAadAdminsGetOptionalParams, ): Promise; /** * Creates or updates a workspace SQL active directory admin @@ -40,10 +40,10 @@ export interface WorkspaceSqlAadAdmins { resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, - options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams + options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspaceSqlAadAdminsCreateOrUpdateResponse > >; @@ -58,7 +58,7 @@ export interface WorkspaceSqlAadAdmins { resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, - options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams + options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a workspace SQL active directory admin @@ -69,8 +69,8 @@ export interface WorkspaceSqlAadAdmins { beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspaceSqlAadAdminsDeleteOptionalParams - ): Promise, void>>; + options?: WorkspaceSqlAadAdminsDeleteOptionalParams, + ): Promise, void>>; /** * Deletes a workspace SQL active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -80,6 +80,6 @@ export interface WorkspaceSqlAadAdmins { beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspaceSqlAadAdminsDeleteOptionalParams + options?: WorkspaceSqlAadAdminsDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaces.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaces.ts index beb60d91faef..f93d51558f7f 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaces.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaces.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Workspace, WorkspacesListByResourceGroupOptionalParams, @@ -20,7 +20,7 @@ import { WorkspacesCreateOrUpdateOptionalParams, WorkspacesCreateOrUpdateResponse, WorkspacesDeleteOptionalParams, - WorkspacesDeleteResponse + WorkspacesDeleteResponse, } from "../models"; /// @@ -33,14 +33,14 @@ export interface Workspaces { */ listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Returns a list of workspaces in a subscription * @param options The options parameters. */ list( - options?: WorkspacesListOptionalParams + options?: WorkspacesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a workspace @@ -51,7 +51,7 @@ export interface Workspaces { get( resourceGroupName: string, workspaceName: string, - options?: WorkspacesGetOptionalParams + options?: WorkspacesGetOptionalParams, ): Promise; /** * Updates a workspace @@ -64,10 +64,10 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, workspacePatchInfo: WorkspacePatchInfo, - options?: WorkspacesUpdateOptionalParams + options?: WorkspacesUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesUpdateResponse > >; @@ -82,7 +82,7 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, workspacePatchInfo: WorkspacePatchInfo, - options?: WorkspacesUpdateOptionalParams + options?: WorkspacesUpdateOptionalParams, ): Promise; /** * Creates or updates a workspace @@ -95,10 +95,10 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, workspaceInfo: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesCreateOrUpdateResponse > >; @@ -113,7 +113,7 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, workspaceInfo: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a workspace @@ -124,10 +124,10 @@ export interface Workspaces { beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesDeleteResponse > >; @@ -140,6 +140,6 @@ export interface Workspaces { beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise; } diff --git a/sdk/synapse/arm-synapse/src/pagingHelper.ts b/sdk/synapse/arm-synapse/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/synapse/arm-synapse/src/pagingHelper.ts +++ b/sdk/synapse/arm-synapse/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/synapse/arm-synapse/src/synapseManagementClient.ts b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts index 51af1f6ae902..d6e5ba7ff335 100644 --- a/sdk/synapse/arm-synapse/src/synapseManagementClient.ts +++ b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts @@ -84,7 +84,7 @@ import { KustoPoolDataConnectionsImpl, KustoPoolPrincipalAssignmentsImpl, KustoPoolDatabasePrincipalAssignmentsImpl, - KustoPoolPrivateLinkResourcesOperationsImpl + KustoPoolPrivateLinkResourcesOperationsImpl, } from "./operations"; import { AzureADOnlyAuthentications, @@ -161,13 +161,13 @@ import { KustoPoolDataConnections, KustoPoolPrincipalAssignments, KustoPoolDatabasePrincipalAssignments, - KustoPoolPrivateLinkResourcesOperations + KustoPoolPrivateLinkResourcesOperations, } from "./operationsInterfaces"; import { SynapseManagementClientOptionalParams } from "./models"; export class SynapseManagementClient extends coreClient.ServiceClient { $host: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the SynapseManagementClient class. @@ -178,13 +178,27 @@ export class SynapseManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: SynapseManagementClientOptionalParams + options?: SynapseManagementClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: SynapseManagementClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: SynapseManagementClientOptionalParams | string, + options?: SynapseManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -193,7 +207,7 @@ export class SynapseManagementClient extends coreClient.ServiceClient { } const defaults: SynapseManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; const packageDetails = `azsdk-js-arm-synapse/9.0.0-beta.2`; @@ -206,20 +220,21 @@ export class SynapseManagementClient 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 ( @@ -229,7 +244,7 @@ export class SynapseManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -239,9 +254,9 @@ export class SynapseManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -254,142 +269,113 @@ export class SynapseManagementClient extends coreClient.ServiceClient { this.ipFirewallRules = new IpFirewallRulesImpl(this); this.keys = new KeysImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); - this.privateLinkResourcesOperations = new PrivateLinkResourcesOperationsImpl( - this - ); - this.privateLinkHubPrivateLinkResources = new PrivateLinkHubPrivateLinkResourcesImpl( - this - ); + this.privateLinkResourcesOperations = + new PrivateLinkResourcesOperationsImpl(this); + this.privateLinkHubPrivateLinkResources = + new PrivateLinkHubPrivateLinkResourcesImpl(this); this.privateLinkHubs = new PrivateLinkHubsImpl(this); - this.privateEndpointConnectionsPrivateLinkHub = new PrivateEndpointConnectionsPrivateLinkHubImpl( - this - ); + this.privateEndpointConnectionsPrivateLinkHub = + new PrivateEndpointConnectionsPrivateLinkHubImpl(this); this.sqlPools = new SqlPoolsImpl(this); this.sqlPoolMetadataSyncConfigs = new SqlPoolMetadataSyncConfigsImpl(this); this.sqlPoolOperationResults = new SqlPoolOperationResultsImpl(this); this.sqlPoolGeoBackupPolicies = new SqlPoolGeoBackupPoliciesImpl(this); - this.sqlPoolDataWarehouseUserActivities = new SqlPoolDataWarehouseUserActivitiesImpl( - this - ); + this.sqlPoolDataWarehouseUserActivities = + new SqlPoolDataWarehouseUserActivitiesImpl(this); this.sqlPoolRestorePoints = new SqlPoolRestorePointsImpl(this); this.sqlPoolReplicationLinks = new SqlPoolReplicationLinksImpl(this); this.sqlPoolMaintenanceWindows = new SqlPoolMaintenanceWindowsImpl(this); - this.sqlPoolMaintenanceWindowOptions = new SqlPoolMaintenanceWindowOptionsImpl( - this - ); - this.sqlPoolTransparentDataEncryptions = new SqlPoolTransparentDataEncryptionsImpl( - this - ); + this.sqlPoolMaintenanceWindowOptions = + new SqlPoolMaintenanceWindowOptionsImpl(this); + this.sqlPoolTransparentDataEncryptions = + new SqlPoolTransparentDataEncryptionsImpl(this); this.sqlPoolBlobAuditingPolicies = new SqlPoolBlobAuditingPoliciesImpl( - this + this, ); this.sqlPoolOperations = new SqlPoolOperationsImpl(this); this.sqlPoolUsages = new SqlPoolUsagesImpl(this); this.sqlPoolSensitivityLabels = new SqlPoolSensitivityLabelsImpl(this); - this.sqlPoolRecommendedSensitivityLabels = new SqlPoolRecommendedSensitivityLabelsImpl( - this - ); + this.sqlPoolRecommendedSensitivityLabels = + new SqlPoolRecommendedSensitivityLabelsImpl(this); this.sqlPoolSchemas = new SqlPoolSchemasImpl(this); this.sqlPoolTables = new SqlPoolTablesImpl(this); this.sqlPoolTableColumns = new SqlPoolTableColumnsImpl(this); this.sqlPoolConnectionPolicies = new SqlPoolConnectionPoliciesImpl(this); - this.sqlPoolVulnerabilityAssessments = new SqlPoolVulnerabilityAssessmentsImpl( - this - ); - this.sqlPoolVulnerabilityAssessmentScans = new SqlPoolVulnerabilityAssessmentScansImpl( - this - ); + this.sqlPoolVulnerabilityAssessments = + new SqlPoolVulnerabilityAssessmentsImpl(this); + this.sqlPoolVulnerabilityAssessmentScans = + new SqlPoolVulnerabilityAssessmentScansImpl(this); this.sqlPoolSecurityAlertPolicies = new SqlPoolSecurityAlertPoliciesImpl( - this - ); - this.sqlPoolVulnerabilityAssessmentRuleBaselines = new SqlPoolVulnerabilityAssessmentRuleBaselinesImpl( - this - ); - this.extendedSqlPoolBlobAuditingPolicies = new ExtendedSqlPoolBlobAuditingPoliciesImpl( - this + this, ); + this.sqlPoolVulnerabilityAssessmentRuleBaselines = + new SqlPoolVulnerabilityAssessmentRuleBaselinesImpl(this); + this.extendedSqlPoolBlobAuditingPolicies = + new ExtendedSqlPoolBlobAuditingPoliciesImpl(this); this.dataMaskingPolicies = new DataMaskingPoliciesImpl(this); this.dataMaskingRules = new DataMaskingRulesImpl(this); this.sqlPoolColumns = new SqlPoolColumnsImpl(this); this.sqlPoolWorkloadGroup = new SqlPoolWorkloadGroupImpl(this); this.sqlPoolWorkloadClassifier = new SqlPoolWorkloadClassifierImpl(this); - this.workspaceManagedSqlServerBlobAuditingPolicies = new WorkspaceManagedSqlServerBlobAuditingPoliciesImpl( - this - ); - this.workspaceManagedSqlServerExtendedBlobAuditingPolicies = new WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl( - this - ); - this.workspaceManagedSqlServerSecurityAlertPolicy = new WorkspaceManagedSqlServerSecurityAlertPolicyImpl( - this - ); - this.workspaceManagedSqlServerVulnerabilityAssessments = new WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl( - this - ); - this.workspaceManagedSqlServerEncryptionProtector = new WorkspaceManagedSqlServerEncryptionProtectorImpl( - this - ); - this.workspaceManagedSqlServerUsages = new WorkspaceManagedSqlServerUsagesImpl( - this - ); - this.workspaceManagedSqlServerRecoverableSqlPools = new WorkspaceManagedSqlServerRecoverableSqlPoolsImpl( - this - ); - this.workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings = new WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl( - this - ); + this.workspaceManagedSqlServerBlobAuditingPolicies = + new WorkspaceManagedSqlServerBlobAuditingPoliciesImpl(this); + this.workspaceManagedSqlServerExtendedBlobAuditingPolicies = + new WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl(this); + this.workspaceManagedSqlServerSecurityAlertPolicy = + new WorkspaceManagedSqlServerSecurityAlertPolicyImpl(this); + this.workspaceManagedSqlServerVulnerabilityAssessments = + new WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl(this); + this.workspaceManagedSqlServerEncryptionProtector = + new WorkspaceManagedSqlServerEncryptionProtectorImpl(this); + this.workspaceManagedSqlServerUsages = + new WorkspaceManagedSqlServerUsagesImpl(this); + this.workspaceManagedSqlServerRecoverableSqlPools = + new WorkspaceManagedSqlServerRecoverableSqlPoolsImpl(this); + this.workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings = + new WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsImpl(this); this.workspaces = new WorkspacesImpl(this); this.workspaceAadAdmins = new WorkspaceAadAdminsImpl(this); this.workspaceSqlAadAdmins = new WorkspaceSqlAadAdminsImpl(this); - this.workspaceManagedIdentitySqlControlSettings = new WorkspaceManagedIdentitySqlControlSettingsImpl( - this - ); + this.workspaceManagedIdentitySqlControlSettings = + new WorkspaceManagedIdentitySqlControlSettingsImpl(this); this.restorableDroppedSqlPools = new RestorableDroppedSqlPoolsImpl(this); this.bigDataPools = new BigDataPoolsImpl(this); this.library = new LibraryImpl(this); this.libraries = new LibrariesImpl(this); this.integrationRuntimes = new IntegrationRuntimesImpl(this); - this.integrationRuntimeNodeIpAddressOperations = new IntegrationRuntimeNodeIpAddressOperationsImpl( - this - ); - this.integrationRuntimeObjectMetadata = new IntegrationRuntimeObjectMetadataImpl( - this - ); + this.integrationRuntimeNodeIpAddressOperations = + new IntegrationRuntimeNodeIpAddressOperationsImpl(this); + this.integrationRuntimeObjectMetadata = + new IntegrationRuntimeObjectMetadataImpl(this); this.integrationRuntimeNodes = new IntegrationRuntimeNodesImpl(this); this.integrationRuntimeCredentials = new IntegrationRuntimeCredentialsImpl( - this - ); - this.integrationRuntimeConnectionInfos = new IntegrationRuntimeConnectionInfosImpl( - this - ); - this.integrationRuntimeAuthKeysOperations = new IntegrationRuntimeAuthKeysOperationsImpl( - this - ); - this.integrationRuntimeMonitoringDataOperations = new IntegrationRuntimeMonitoringDataOperationsImpl( - this - ); - this.integrationRuntimeStatusOperations = new IntegrationRuntimeStatusOperationsImpl( - this - ); + this, + ); + this.integrationRuntimeConnectionInfos = + new IntegrationRuntimeConnectionInfosImpl(this); + this.integrationRuntimeAuthKeysOperations = + new IntegrationRuntimeAuthKeysOperationsImpl(this); + this.integrationRuntimeMonitoringDataOperations = + new IntegrationRuntimeMonitoringDataOperationsImpl(this); + this.integrationRuntimeStatusOperations = + new IntegrationRuntimeStatusOperationsImpl(this); this.get = new GetImpl(this); this.sparkConfiguration = new SparkConfigurationImpl(this); this.sparkConfigurations = new SparkConfigurationsImpl(this); this.kustoOperations = new KustoOperationsImpl(this); this.kustoPools = new KustoPoolsImpl(this); this.kustoPoolChildResource = new KustoPoolChildResourceImpl(this); - this.kustoPoolAttachedDatabaseConfigurations = new KustoPoolAttachedDatabaseConfigurationsImpl( - this - ); + this.kustoPoolAttachedDatabaseConfigurations = + new KustoPoolAttachedDatabaseConfigurationsImpl(this); this.kustoPoolDatabases = new KustoPoolDatabasesImpl(this); this.kustoPoolDataConnections = new KustoPoolDataConnectionsImpl(this); this.kustoPoolPrincipalAssignments = new KustoPoolPrincipalAssignmentsImpl( - this - ); - this.kustoPoolDatabasePrincipalAssignments = new KustoPoolDatabasePrincipalAssignmentsImpl( - this - ); - this.kustoPoolPrivateLinkResourcesOperations = new KustoPoolPrivateLinkResourcesOperationsImpl( - this + this, ); + this.kustoPoolDatabasePrincipalAssignments = + new KustoPoolDatabasePrincipalAssignmentsImpl(this); + this.kustoPoolPrivateLinkResourcesOperations = + new KustoPoolPrivateLinkResourcesOperationsImpl(this); } azureADOnlyAuthentications: AzureADOnlyAuthentications; diff --git a/sdk/synapse/arm-synapse/test/sampleTest.ts b/sdk/synapse/arm-synapse/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/synapse/arm-synapse/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/synapse/arm-synapse/tsconfig.json b/sdk/synapse/arm-synapse/tsconfig.json index 91f1f45ff274..b35d05ad6e9d 100644 --- a/sdk/synapse/arm-synapse/tsconfig.json +++ b/sdk/synapse/arm-synapse/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-synapse": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "src/**/*.ts", + "test/**/*.ts" ], "exclude": [ "node_modules"