From 928126ecaa41a712618b3cd04d36785f7cafdb1a Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 19 Jan 2023 02:30:43 +0000 Subject: [PATCH] CodeGen from PR 22238 in Azure/azure-rest-api-specs Merge f14ea234876abaf57a84d8e37fef35f1cbbc8297 into 3751704f5318f1175875c94b66af769db917f2d3 --- sdk/synapse/arm-synapse/CHANGELOG.md | 58 +++- sdk/synapse/arm-synapse/LICENSE | 2 +- sdk/synapse/arm-synapse/_meta.json | 10 +- sdk/synapse/arm-synapse/package.json | 17 +- .../arm-synapse/review/arm-synapse.api.md | 175 +++++++--- sdk/synapse/arm-synapse/src/models/index.ts | 272 +++++++++++---- sdk/synapse/arm-synapse/src/models/mappers.ts | 309 +++++++++++++++++- .../arm-synapse/src/models/parameters.ts | 11 + .../src/operations/bigDataPools.ts | 16 +- sdk/synapse/arm-synapse/src/operations/get.ts | 190 +++++++++++ .../arm-synapse/src/operations/index.ts | 4 +- .../integrationRuntimeConnectionInfos.ts | 2 +- .../integrationRuntimeObjectMetadata.ts | 3 +- .../src/operations/integrationRuntimes.ts | 7 +- .../src/operations/ipFirewallRules.ts | 16 +- ...kustoPoolPrivateLinkResourcesOperations.ts | 153 +++++++++ ...s.ts => privateLinkResourcesOperations.ts} | 9 +- .../operations/sqlPoolMetadataSyncConfigs.ts | 8 +- .../src/operations/sqlPoolOperationResults.ts | 100 +++++- .../sqlPoolTransparentDataEncryptions.ts | 2 +- .../arm-synapse/src/operations/sqlPools.ts | 143 +++++--- .../arm-synapse/src/operations/workspaces.ts | 16 +- .../src/operationsInterfaces/get.ts | 65 ++++ .../src/operationsInterfaces/index.ts | 4 +- ...kustoPoolPrivateLinkResourcesOperations.ts | 31 ++ ...s.ts => privateLinkResourcesOperations.ts} | 4 +- .../sqlPoolOperationResults.ts | 25 +- .../src/operationsInterfaces/sqlPools.ts | 22 +- .../src/synapseManagementClient.ts | 26 +- sdk/synapse/arm-synapse/test/sampleTest.ts | 43 +++ sdk/synapse/arm-synapse/tsconfig.json | 10 +- 31 files changed, 1494 insertions(+), 259 deletions(-) create mode 100644 sdk/synapse/arm-synapse/src/operations/get.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/kustoPoolPrivateLinkResourcesOperations.ts rename sdk/synapse/arm-synapse/src/operations/{privateLinkResources.ts => privateLinkResourcesOperations.ts} (96%) create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/get.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.ts rename sdk/synapse/arm-synapse/src/operationsInterfaces/{privateLinkResources.ts => privateLinkResourcesOperations.ts} (92%) create mode 100644 sdk/synapse/arm-synapse/test/sampleTest.ts diff --git a/sdk/synapse/arm-synapse/CHANGELOG.md b/sdk/synapse/arm-synapse/CHANGELOG.md index 5ff2ca3cc8a5..ee1fd162b376 100644 --- a/sdk/synapse/arm-synapse/CHANGELOG.md +++ b/sdk/synapse/arm-synapse/CHANGELOG.md @@ -1,20 +1,17 @@ # Release History - -## 8.1.0-beta.3 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 8.1.0-beta.2 (2022-12-16) + +## 9.0.0-beta.1 (2023-01-19) **Features** + - 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 @@ -33,16 +30,25 @@ - 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 @@ -57,6 +63,7 @@ - Added Interface PrivateEndpointConnectionForPrivateLinkHub - Added Interface PrivateLinkHub - Added Interface PrivateLinkResource + - Added Interface PrivateLinkResources - Added Interface ProxyResource - Added Interface ReadOnlyFollowingDatabase - Added Interface ReadWriteDatabase @@ -101,13 +108,34 @@ - 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 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 + +**Breaking Changes** + + - Removed operation group PrivateLinkResources + - Removed operation SqlPoolOperationResults.getLocationHeaderResult + - Removed operation SqlPools.update + - 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 @@ -115,6 +143,12 @@ - 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 ## 8.0.0 (2022-01-13) diff --git a/sdk/synapse/arm-synapse/LICENSE b/sdk/synapse/arm-synapse/LICENSE index 5d1d36e0af80..3a1d9b6f24f7 100644 --- a/sdk/synapse/arm-synapse/LICENSE +++ b/sdk/synapse/arm-synapse/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2023 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/_meta.json b/sdk/synapse/arm-synapse/_meta.json index 2ec7eb7e03d8..7ed7f30533f2 100644 --- a/sdk/synapse/arm-synapse/_meta.json +++ b/sdk/synapse/arm-synapse/_meta.json @@ -1,8 +1,8 @@ { - "commit": "fbaa815266eb087cb13f3e571dff03fddd8a48f0", - "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.5.20221215.1 --generate-sample=true", + "commit": "34e5eaf860b7ef28eb7f67f94112b6fe051d4a84", + "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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/synapse/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.5", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", - "use": "@autorest/typescript@6.0.0-rc.5.20221215.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.0", + "use": "@autorest/typescript@6.0.0-rc.5" } \ No newline at end of file diff --git a/sdk/synapse/arm-synapse/package.json b/sdk/synapse/arm-synapse/package.json index 71df79584920..2dadb7a5c553 100644 --- a/sdk/synapse/arm-synapse/package.json +++ b/sdk/synapse/arm-synapse/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SynapseManagementClient.", - "version": "8.1.0-beta.3", + "version": "9.0.0-beta.1", "engines": { "node": ">=14.0.0" }, @@ -39,7 +39,6 @@ "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^8.2.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -50,6 +49,7 @@ "@types/node": "^14.0.0", "@azure/dev-tool": "^1.0.0" }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/synapse/arm-synapse", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -110,14 +110,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" - } -} + "autoPublish": true +} \ 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 de0cb63b3b9e..34ccf171d685 100644 --- a/sdk/synapse/arm-synapse/review/arm-synapse.api.md +++ b/sdk/synapse/arm-synapse/review/arm-synapse.api.md @@ -10,6 +10,9 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { PollerLike } from '@azure/core-lro'; import { PollOperationState } from '@azure/core-lro'; +// @public +export type ActualState = "Enabling" | "Enabled" | "Disabling" | "Disabled" | "Unknown"; + // @public export interface AttachedDatabaseConfiguration extends ProxyResource { readonly attachedDatabaseNames?: string[]; @@ -157,6 +160,7 @@ export interface BigDataPoolResourceInfo extends TrackedResource { customLibraries?: LibraryInfo[]; defaultSparkLogFolder?: string; dynamicExecutorAllocation?: DynamicExecutorAllocation; + isAutotuneEnabled?: boolean; isComputeIsolationEnabled?: boolean; readonly lastSucceededTimestamp?: Date; libraryRequirements?: LibraryRequirements; @@ -204,7 +208,7 @@ export interface BigDataPoolsDeleteOptionalParams extends coreClient.OperationOp } // @public -export type BigDataPoolsDeleteResponse = Record; +export type BigDataPoolsDeleteResponse = BigDataPoolResourceInfo; // @public export interface BigDataPoolsGetOptionalParams extends coreClient.OperationOptions { @@ -267,6 +271,7 @@ export interface CheckNameResult { // @public export interface ClusterPrincipalAssignment extends ProxyResource { + readonly aadObjectId?: string; principalId?: string; readonly principalName?: string; principalType?: PrincipalType; @@ -369,6 +374,7 @@ export interface DatabaseListResult { // @public export interface DatabasePrincipalAssignment extends ProxyResource { + readonly aadObjectId?: string; principalId?: string; readonly principalName?: string; principalType?: PrincipalType; @@ -577,6 +583,9 @@ export interface DedicatedSQLminimalTlsSettingsPatchInfo { // @public export type DefaultPrincipalsModificationKind = string; +// @public +export type DesiredState = "Enabled" | "Disabled"; + // @public export interface DynamicExecutorAllocation { enabled?: boolean; @@ -643,6 +652,15 @@ export interface ErrorResponse { error?: ErrorDetail; } +// @public +export interface ErrorResponseAutoGenerated { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorResponseAutoGenerated[]; + readonly message?: string; + readonly target?: string; +} + // @public export interface EventGridDataConnection extends DataConnection { blobStorageEventType?: BlobStorageEventType; @@ -784,9 +802,37 @@ export type GeoBackupPolicyName = string; // @public export type GeoBackupPolicyState = "Disabled" | "Enabled"; +// @public +export interface Get { + integrationRuntimeEnableInteractivequery(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, integrationRuntimeOperationId: string, options?: GetIntegrationRuntimeEnableInteractivequeryOptionalParams): Promise; + integrationRuntimeStart(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, integrationRuntimeOperationId: string, options?: GetIntegrationRuntimeStartOptionalParams): Promise; + integrationRuntimeStop(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, integrationRuntimeOperationId: string, options?: GetIntegrationRuntimeStopOptionalParams): Promise; +} + // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export interface GetIntegrationRuntimeEnableInteractivequeryOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GetIntegrationRuntimeEnableInteractivequeryResponse = IntegrationRuntimeEnableinteractivequery; + +// @public +export interface GetIntegrationRuntimeStartOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GetIntegrationRuntimeStartResponse = IntegrationRuntimeOperationStatus; + +// @public +export interface GetIntegrationRuntimeStopOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GetIntegrationRuntimeStopResponse = IntegrationRuntimeStopOperationStatus; + // @public export interface GetSsisObjectMetadataRequest { metadataPath?: string; @@ -899,6 +945,14 @@ export interface IntegrationRuntimeDataProxyProperties { // @public export type IntegrationRuntimeEdition = string; +// @public +export interface IntegrationRuntimeEnableinteractivequery { + error?: string; + name?: string; + properties?: Record; + status?: WorkspaceStatus; +} + // @public export type IntegrationRuntimeEntityReferenceType = string; @@ -1011,6 +1065,14 @@ export interface IntegrationRuntimeObjectMetadataRefreshOptionalParams extends c // @public export type IntegrationRuntimeObjectMetadataRefreshResponse = SsisObjectMetadataStatusResponse; +// @public +export interface IntegrationRuntimeOperationStatus { + error?: string; + name?: string; + properties?: Record; + status?: WorkspaceStatus; +} + // @public export interface IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint { category?: string; @@ -1040,7 +1102,8 @@ export interface IntegrationRuntimeRegenerateKeyParameters { // @public export interface IntegrationRuntimeResource extends SubResource { - properties: IntegrationRuntimeUnion; + description?: string; + typePropertiesType: IntegrationRuntimeType; } // @public @@ -1184,13 +1247,23 @@ export interface IntegrationRuntimeStatusOperations { // @public export interface IntegrationRuntimeStatusResponse { + readonly dataFactoryName?: string; readonly name?: string; - properties: IntegrationRuntimeStatusUnion; + readonly state?: IntegrationRuntimeState; + type: IntegrationRuntimeType; } // @public (undocumented) export type IntegrationRuntimeStatusUnion = IntegrationRuntimeStatus | ManagedIntegrationRuntimeStatus | SelfHostedIntegrationRuntimeStatus; +// @public +export interface IntegrationRuntimeStopOperationStatus { + error?: string; + name?: string; + properties?: Record; + status?: WorkspaceStatus; +} + // @public export interface IntegrationRuntimesUpdateOptionalParams extends coreClient.OperationOptions { } @@ -1284,7 +1357,7 @@ export interface IpFirewallRulesDeleteOptionalParams extends coreClient.Operatio } // @public -export type IpFirewallRulesDeleteResponse = Record; +export type IpFirewallRulesDeleteResponse = IpFirewallRuleInfo; // @public export interface IpFirewallRulesGetOptionalParams extends coreClient.OperationOptions { @@ -1687,21 +1760,6 @@ export enum KnownLanguageExtensionName { R = "R" } -// @public -export enum KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState { - Disabled = "Disabled", - Disabling = "Disabling", - Enabled = "Enabled", - Enabling = "Enabling", - Unknown = "Unknown" -} - -// @public -export enum KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState { - Disabled = "Disabled", - Enabled = "Enabled" -} - // @public export enum KnownManagedIntegrationRuntimeNodeStatus { Available = "Available", @@ -1900,6 +1958,13 @@ export enum KnownWorkspacePublicNetworkAccess { Enabled = "Enabled" } +// @public +export enum KnownWorkspaceStatus { + Failed = "Failed", + InProgress = "InProgress", + Succeeded = "Succeeded" +} + // @public export interface KustoOperations { list(options?: KustoOperationsListOptionalParams): PagedAsyncIterableIterator; @@ -2211,6 +2276,27 @@ export interface KustoPoolPrincipalAssignmentsListOptionalParams extends coreCli // @public export type KustoPoolPrincipalAssignmentsListResponse = ClusterPrincipalAssignmentListResult; +// @public +export interface KustoPoolPrivateLinkResources extends ProxyResource { + readonly groupId?: string; + readonly provisioningState?: ResourceProvisioningState; + readonly requiredMembers?: string[]; + readonly requiredZoneNames?: string[]; + readonly systemData?: SystemData; +} + +// @public +export interface KustoPoolPrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolPrivateLinkResourcesListResponse = PrivateLinkResources; + +// @public +export interface KustoPoolPrivateLinkResourcesOperations { + list(resourceGroupName: string, workspaceName: string, kustoPoolName: string, options?: KustoPoolPrivateLinkResourcesListOptionalParams): PagedAsyncIterableIterator; +} + // @public export interface KustoPools { beginAddLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: LanguageExtensionsList, options?: KustoPoolsAddLanguageExtensionsOptionalParams): Promise, void>>; @@ -2522,16 +2608,10 @@ export interface ManagedIdentitySqlControlSettingsModel extends ProxyResource { // @public export interface ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity { - readonly actualState?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState; - desiredState?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState; + readonly actualState?: ActualState; + desiredState?: DesiredState; } -// @public -export type ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState = string; - -// @public -export type ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState = string; - // @public export interface ManagedIntegrationRuntime extends IntegrationRuntime { computeProperties?: IntegrationRuntimeComputeProperties; @@ -2985,8 +3065,7 @@ export interface PrivateLinkResourceProperties { // @public export interface PrivateLinkResources { - get(resourceGroupName: string, workspaceName: string, privateLinkResourceName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): PagedAsyncIterableIterator; + value?: KustoPoolPrivateLinkResources[]; } // @public @@ -3010,6 +3089,12 @@ export interface PrivateLinkResourcesListOptionalParams extends coreClient.Opera // @public export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; +// @public +export interface PrivateLinkResourcesOperations { + get(resourceGroupName: string, workspaceName: string, privateLinkResourceName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): PagedAsyncIterableIterator; +} + // @public export interface PrivateLinkServiceConnectionState { readonly actionsRequired?: string; @@ -3496,6 +3581,9 @@ export interface SparkConfigurationListResponse { // @public export interface SparkConfigurationResource extends SubResource { annotations?: string[]; + configMergeRule?: { + [propertyName: string]: string; + }; configs: { [propertyName: string]: string; }; @@ -3764,15 +3852,18 @@ export interface SqlPoolOperation extends ProxyResource { // @public export interface SqlPoolOperationResults { - getLocationHeaderResult(resourceGroupName: string, workspaceName: string, sqlPoolName: string, operationId: string, options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams): Promise; + 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; } // @public export interface SqlPoolOperationResultsGetLocationHeaderResultOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type SqlPoolOperationResultsGetLocationHeaderResultResponse = Record; +export type SqlPoolOperationResultsGetLocationHeaderResultResponse = SqlPool; // @public export interface SqlPoolOperations { @@ -3902,10 +3993,11 @@ export interface SqlPools { beginPauseAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsPauseOptionalParams): Promise; 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>>; + 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; - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPoolPatchInfo, options?: SqlPoolsUpdateOptionalParams): Promise; } // @public @@ -3962,7 +4054,7 @@ export interface SqlPoolsDeleteOptionalParams extends coreClient.OperationOption } // @public -export type SqlPoolsDeleteResponse = Record; +export type SqlPoolsDeleteResponse = SqlPool; // @public export interface SqlPoolSecurityAlertPolicies { @@ -4113,7 +4205,7 @@ export interface SqlPoolsPauseOptionalParams extends coreClient.OperationOptions } // @public -export type SqlPoolsPauseResponse = Record; +export type SqlPoolsPauseResponse = SqlPool; // @public export interface SqlPoolsRenameOptionalParams extends coreClient.OperationOptions { @@ -4126,10 +4218,12 @@ export interface SqlPoolsResumeOptionalParams extends coreClient.OperationOption } // @public -export type SqlPoolsResumeResponse = Record; +export type SqlPoolsResumeResponse = SqlPool; // @public export interface SqlPoolsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -4615,6 +4709,8 @@ export class SynapseManagementClient extends coreClient.ServiceClient { // (undocumented) extendedSqlPoolBlobAuditingPolicies: ExtendedSqlPoolBlobAuditingPolicies; // (undocumented) + get: Get; + // (undocumented) integrationRuntimeAuthKeysOperations: IntegrationRuntimeAuthKeysOperations; // (undocumented) integrationRuntimeConnectionInfos: IntegrationRuntimeConnectionInfos; @@ -4651,6 +4747,8 @@ export class SynapseManagementClient extends coreClient.ServiceClient { // (undocumented) kustoPoolPrincipalAssignments: KustoPoolPrincipalAssignments; // (undocumented) + kustoPoolPrivateLinkResourcesOperations: KustoPoolPrivateLinkResourcesOperations; + // (undocumented) kustoPools: KustoPools; // (undocumented) libraries: Libraries; @@ -4667,7 +4765,7 @@ export class SynapseManagementClient extends coreClient.ServiceClient { // (undocumented) privateLinkHubs: PrivateLinkHubs; // (undocumented) - privateLinkResources: PrivateLinkResources; + privateLinkResourcesOperations: PrivateLinkResourcesOperations; // (undocumented) restorableDroppedSqlPools: RestorableDroppedSqlPools; // (undocumented) @@ -5373,7 +5471,7 @@ export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOpti } // @public -export type WorkspacesDeleteResponse = Record; +export type WorkspacesDeleteResponse = Workspace; // @public export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions { @@ -5441,6 +5539,9 @@ export interface WorkspaceSqlAadAdminsGetOptionalParams extends coreClient.Opera // @public export type WorkspaceSqlAadAdminsGetResponse = WorkspaceAadAdminInfo; +// @public +export type WorkspaceStatus = string; + // @public export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/synapse/arm-synapse/src/models/index.ts b/sdk/synapse/arm-synapse/src/models/index.ts index f9e701426ce9..572bd05015d3 100644 --- a/sdk/synapse/arm-synapse/src/models/index.ts +++ b/sdk/synapse/arm-synapse/src/models/index.ts @@ -529,6 +529,35 @@ export interface MaintenanceWindowTimeRange { duration?: string; } +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */ +export interface ErrorResponseAutoGenerated { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorResponseAutoGenerated[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + /** A list of transparent data encryption configurations. */ export interface TransparentDataEncryptionListResult { /** @@ -1127,12 +1156,12 @@ export interface WorkspacePatchInfo { /** Grant sql control to managed identity */ export interface ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity { /** Desired state */ - desiredState?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState; + desiredState?: DesiredState; /** * Actual state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actualState?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState; + readonly actualState?: ActualState; } /** The response to a list restorable dropped Sql pools request */ @@ -1449,8 +1478,18 @@ export interface IntegrationRuntimeStatusResponse { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; - /** Integration runtime properties. */ - properties: IntegrationRuntimeStatusUnion; + /** Type of integration runtime. */ + type: IntegrationRuntimeType; + /** + * The workspace name which the integration runtime belong to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataFactoryName?: string; + /** + * The state of integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: IntegrationRuntimeState; } /** Integration runtime status. */ @@ -1579,6 +1618,42 @@ export interface IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails { port?: number; } +/** Integration Runtime Operation Status Properties */ +export interface IntegrationRuntimeOperationStatus { + /** status of Start Integrationruntimes. */ + status?: WorkspaceStatus; + /** The operation name. */ + name?: string; + /** The operation properties. */ + properties?: Record; + /** The operation error message. */ + error?: string; +} + +/** Integration Runtime Operation Status Properties */ +export interface IntegrationRuntimeStopOperationStatus { + /** status of Start Integrationruntimes. */ + status?: WorkspaceStatus; + /** The operation name. */ + name?: string; + /** The operation properties. */ + properties?: Record; + /** The operation error message. */ + error?: string; +} + +/** Integration Runtime Operation Status Properties */ +export interface IntegrationRuntimeEnableinteractivequery { + /** EnableInteractivequery status of Integrationruntimes. */ + status?: WorkspaceStatus; + /** The operation name. */ + name?: string; + /** The operation properties. */ + properties?: Record; + /** The operation error message. */ + error?: string; +} + /** A list of SparkConfiguration resources. */ export interface SparkConfigurationListResponse { /** List of SparkConfiguration. */ @@ -1894,6 +1969,12 @@ export interface DatabasePrincipalAssignmentListResult { value?: DatabasePrincipalAssignment[]; } +/** The list Kusto Private Link Resources operation response. */ +export interface PrivateLinkResources { + /** The list of Kusto Private Link Resources. */ + value?: KustoPoolPrivateLinkResources[]; +} + /** A database query. */ export interface TopQueries { /** @@ -3915,6 +3996,11 @@ export interface ClusterPrincipalAssignment extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ResourceProvisioningState; + /** + * The service principal object id in AAD (Azure active directory) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly aadObjectId?: string; } /** Class representing a database principal assignment. */ @@ -3947,6 +4033,40 @@ export interface DatabasePrincipalAssignment extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ResourceProvisioningState; + /** + * The service principal object id in AAD (Azure active directory) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly aadObjectId?: string; +} + +/** Class representing a Private Link Resources. */ +export interface KustoPoolPrivateLinkResources extends ProxyResource { + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * The Private link resources GroupId + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredMembers?: string[]; + /** + * The private link resource required zone names. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredZoneNames?: string[]; + /** + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ResourceProvisioningState; } /** A privateLinkHub */ @@ -4084,6 +4204,8 @@ export interface BigDataPoolResourceInfo extends TrackedResource { autoPause?: AutoPauseProperties; /** Whether compute isolation is required or not. */ isComputeIsolationEnabled?: boolean; + /** Whether autotune is required or not. */ + isAutotuneEnabled?: boolean; /** Whether session level packages enabled. */ sessionLevelPackagesEnabled?: boolean; /** The cache size */ @@ -4340,8 +4462,10 @@ export interface LibraryResource extends SubResource { /** Integration runtime resource type. */ export interface IntegrationRuntimeResource extends SubResource { - /** Integration runtime properties. */ - properties: IntegrationRuntimeUnion; + /** Type of integration runtime. */ + typePropertiesType: IntegrationRuntimeType; + /** Integration runtime description. */ + description?: string; } /** SparkConfiguration response details */ @@ -4358,6 +4482,8 @@ export interface SparkConfigurationResource extends SubResource { createdBy?: string; /** The timestamp of resource creation. */ created?: Date; + /** SparkConfiguration merge configs. */ + configMergeRule?: { [propertyName: string]: string }; } /** Known values of {@link AzureADOnlyAuthenticationName} that the service accepts. */ @@ -4918,51 +5044,6 @@ export enum KnownWorkspacePublicNetworkAccess { */ export type WorkspacePublicNetworkAccess = string; -/** Known values of {@link ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState} that the service accepts. */ -export enum KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" -} - -/** - * Defines values for ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState. \ - * {@link KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState} can be used interchangeably with ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState = string; - -/** Known values of {@link ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState} that the service accepts. */ -export enum KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState { - /** Enabling */ - Enabling = "Enabling", - /** Enabled */ - Enabled = "Enabled", - /** Disabling */ - Disabling = "Disabling", - /** Disabled */ - Disabled = "Disabled", - /** Unknown */ - Unknown = "Unknown" -} - -/** - * Defines values for ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState. \ - * {@link KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState} can be used interchangeably with ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabling** \ - * **Enabled** \ - * **Disabling** \ - * **Disabled** \ - * **Unknown** - */ -export type ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState = string; - /** Known values of {@link ConfigurationType} that the service accepts. */ export enum KnownConfigurationType { /** File */ @@ -5212,6 +5293,27 @@ export enum KnownIntegrationRuntimeAuthKeyName { */ export type IntegrationRuntimeAuthKeyName = string; +/** Known values of {@link WorkspaceStatus} that the service accepts. */ +export enum KnownWorkspaceStatus { + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for WorkspaceStatus. \ + * {@link KnownWorkspaceStatus} can be used interchangeably with WorkspaceStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **InProgress** \ + * **Succeeded** \ + * **Failed** + */ +export type WorkspaceStatus = string; + /** Known values of {@link Reason} that the service accepts. */ export enum KnownReason { /** Invalid */ @@ -5965,6 +6067,15 @@ export type ResourceIdentityType = | "None" | "SystemAssigned" | "SystemAssigned,UserAssigned"; +/** Defines values for DesiredState. */ +export type DesiredState = "Enabled" | "Disabled"; +/** Defines values for ActualState. */ +export type ActualState = + | "Enabling" + | "Enabled" + | "Disabling" + | "Disabled" + | "Unknown"; /** Defines values for Type. */ export type Type = | "Microsoft.Synapse/workspaces/kustoPools/databases" @@ -6075,7 +6186,7 @@ export interface IpFirewallRulesDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type IpFirewallRulesDeleteResponse = Record; +export type IpFirewallRulesDeleteResponse = IpFirewallRuleInfo; /** Optional parameters. */ export interface IpFirewallRulesGetOptionalParams @@ -6308,7 +6419,12 @@ export type SqlPoolsGetResponse = SqlPool; /** Optional parameters. */ export interface SqlPoolsUpdateOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the update operation. */ export type SqlPoolsUpdateResponse = SqlPool; @@ -6335,7 +6451,7 @@ export interface SqlPoolsDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type SqlPoolsDeleteResponse = Record; +export type SqlPoolsDeleteResponse = SqlPool; /** Optional parameters. */ export interface SqlPoolsListByWorkspaceOptionalParams @@ -6354,7 +6470,7 @@ export interface SqlPoolsPauseOptionalParams } /** Contains response data for the pause operation. */ -export type SqlPoolsPauseResponse = Record; +export type SqlPoolsPauseResponse = SqlPool; /** Optional parameters. */ export interface SqlPoolsResumeOptionalParams @@ -6366,7 +6482,7 @@ export interface SqlPoolsResumeOptionalParams } /** Contains response data for the resume operation. */ -export type SqlPoolsResumeResponse = Record; +export type SqlPoolsResumeResponse = SqlPool; /** Optional parameters. */ export interface SqlPoolsRenameOptionalParams @@ -6395,13 +6511,15 @@ export type SqlPoolMetadataSyncConfigsCreateResponse = MetadataSyncConfig; /** Optional parameters. */ export interface SqlPoolOperationResultsGetLocationHeaderResultOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the getLocationHeaderResult operation. */ -export type SqlPoolOperationResultsGetLocationHeaderResultResponse = Record< - string, - unknown ->; +export type SqlPoolOperationResultsGetLocationHeaderResultResponse = SqlPool; /** Optional parameters. */ export interface SqlPoolGeoBackupPoliciesListOptionalParams @@ -7293,7 +7411,7 @@ export interface WorkspacesDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type WorkspacesDeleteResponse = Record; +export type WorkspacesDeleteResponse = Workspace; /** Optional parameters. */ export interface WorkspacesListOptionalParams @@ -7443,7 +7561,7 @@ export interface BigDataPoolsDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type BigDataPoolsDeleteResponse = Record; +export type BigDataPoolsDeleteResponse = BigDataPoolResourceInfo; /** Optional parameters. */ export interface BigDataPoolsListByWorkspaceOptionalParams @@ -7669,6 +7787,27 @@ export interface IntegrationRuntimeStatusGetOptionalParams /** Contains response data for the get operation. */ export type IntegrationRuntimeStatusGetResponse = IntegrationRuntimeStatusResponse; +/** Optional parameters. */ +export interface GetIntegrationRuntimeStartOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the integrationRuntimeStart operation. */ +export type GetIntegrationRuntimeStartResponse = IntegrationRuntimeOperationStatus; + +/** Optional parameters. */ +export interface GetIntegrationRuntimeStopOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the integrationRuntimeStop operation. */ +export type GetIntegrationRuntimeStopResponse = IntegrationRuntimeStopOperationStatus; + +/** Optional parameters. */ +export interface GetIntegrationRuntimeEnableInteractivequeryOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the integrationRuntimeEnableInteractivequery operation. */ +export type GetIntegrationRuntimeEnableInteractivequeryResponse = IntegrationRuntimeEnableinteractivequery; + /** Optional parameters. */ export interface SparkConfigurationGetOptionalParams extends coreClient.OperationOptions {} @@ -8076,6 +8215,13 @@ export interface KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface KustoPoolPrivateLinkResourcesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type KustoPoolPrivateLinkResourcesListResponse = PrivateLinkResources; + /** Optional parameters. */ export interface SynapseManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/synapse/arm-synapse/src/models/mappers.ts b/sdk/synapse/arm-synapse/src/models/mappers.ts index 89f7d04062ff..625cfe50799d 100644 --- a/sdk/synapse/arm-synapse/src/models/mappers.ts +++ b/sdk/synapse/arm-synapse/src/models/mappers.ts @@ -1225,6 +1225,62 @@ export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { } }; +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + export const TransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2564,14 +2620,22 @@ export const ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToMa desiredState: { serializedName: "desiredState", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, actualState: { serializedName: "actualState", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: [ + "Enabling", + "Enabled", + "Disabling", + "Disabled", + "Unknown" + ] } } } @@ -3255,11 +3319,25 @@ export const IntegrationRuntimeStatusResponse: coreClient.CompositeMapper = { name: "String" } }, - properties: { - serializedName: "properties", + type: { + serializedName: "properties.type", + required: true, type: { - name: "Composite", - className: "IntegrationRuntimeStatus" + name: "String" + } + }, + dataFactoryName: { + serializedName: "properties.dataFactoryName", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" } } } @@ -3557,6 +3635,108 @@ export const IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails: coreC } }; +export const IntegrationRuntimeOperationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IntegrationRuntimeOperationStatus", + 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" + } + } + } + } +}; + +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" + } + } + } + } +}; + +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" + } + } + } + } +}; + export const SparkConfigurationListResponse: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4501,6 +4681,27 @@ export const DatabasePrincipalAssignmentListResult: coreClient.CompositeMapper = } }; +export const PrivateLinkResources: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResources", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KustoPoolPrivateLinkResources" + } + } + } + } + } + } +}; + export const TopQueries: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8328,6 +8529,13 @@ export const ClusterPrincipalAssignment: coreClient.CompositeMapper = { type: { name: "String" } + }, + aadObjectId: { + serializedName: "properties.aadObjectId", + readOnly: true, + type: { + name: "String" + } } } } @@ -8384,6 +8592,68 @@ export const DatabasePrincipalAssignment: coreClient.CompositeMapper = { name: "String" } }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + aadObjectId: { + serializedName: "properties.aadObjectId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const KustoPoolPrivateLinkResources: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KustoPoolPrivateLinkResources", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + groupId: { + serializedName: "properties.groupId", + readOnly: true, + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -8719,6 +8989,12 @@ export const BigDataPoolResourceInfo: coreClient.CompositeMapper = { name: "Boolean" } }, + isAutotuneEnabled: { + serializedName: "properties.isAutotuneEnabled", + type: { + name: "Boolean" + } + }, sessionLevelPackagesEnabled: { serializedName: "properties.sessionLevelPackagesEnabled", type: { @@ -9296,11 +9572,17 @@ export const IntegrationRuntimeResource: coreClient.CompositeMapper = { className: "IntegrationRuntimeResource", modelProperties: { ...SubResource.type.modelProperties, - properties: { - serializedName: "properties", + typePropertiesType: { + serializedName: "properties.type", + required: true, type: { - name: "Composite", - className: "IntegrationRuntime" + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" } } } @@ -9355,6 +9637,13 @@ export const SparkConfigurationResource: coreClient.CompositeMapper = { type: { name: "DateTime" } + }, + configMergeRule: { + serializedName: "properties.configMergeRule", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } diff --git a/sdk/synapse/arm-synapse/src/models/parameters.ts b/sdk/synapse/arm-synapse/src/models/parameters.ts index 8851424fad49..e7d368e2116f 100644 --- a/sdk/synapse/arm-synapse/src/models/parameters.ts +++ b/sdk/synapse/arm-synapse/src/models/parameters.ts @@ -940,6 +940,17 @@ export const regenerateKeyParameters: OperationParameter = { mapper: IntegrationRuntimeRegenerateKeyParametersMapper }; +export const integrationRuntimeOperationId: OperationURLParameter = { + parameterPath: "integrationRuntimeOperationId", + mapper: { + serializedName: "integrationRuntimeOperationId", + required: true, + type: { + name: "String" + } + } +}; + export const sparkConfigurationName: OperationURLParameter = { parameterPath: "sparkConfigurationName", mapper: { diff --git a/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts b/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts index d0ba6bfe2256..6580ad347c73 100644 --- a/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts +++ b/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts @@ -499,24 +499,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { httpMethod: "DELETE", responses: { 200: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.BigDataPoolResourceInfo }, 201: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.BigDataPoolResourceInfo }, 202: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.BigDataPoolResourceInfo }, 204: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.BigDataPoolResourceInfo }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/synapse/arm-synapse/src/operations/get.ts b/sdk/synapse/arm-synapse/src/operations/get.ts new file mode 100644 index 000000000000..3f880bbd8d51 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/get.ts @@ -0,0 +1,190 @@ +/* + * 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 { Get } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + GetIntegrationRuntimeStartOptionalParams, + GetIntegrationRuntimeStartResponse, + GetIntegrationRuntimeStopOptionalParams, + GetIntegrationRuntimeStopResponse, + GetIntegrationRuntimeEnableInteractivequeryOptionalParams, + GetIntegrationRuntimeEnableInteractivequeryResponse +} from "../models"; + +/** Class containing Get operations. */ +export class GetImpl implements Get { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class Get class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Get an integration runtime start operation status + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param integrationRuntimeOperationId Integration runtime Operation Id + * @param options The options parameters. + */ + integrationRuntimeStart( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + integrationRuntimeOperationId: string, + options?: GetIntegrationRuntimeStartOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + integrationRuntimeName, + integrationRuntimeOperationId, + options + }, + integrationRuntimeStartOperationSpec + ); + } + + /** + * Get an integration runtime stop operation status + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param integrationRuntimeOperationId Integration runtime Operation Id + * @param options The options parameters. + */ + integrationRuntimeStop( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + integrationRuntimeOperationId: string, + options?: GetIntegrationRuntimeStopOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + integrationRuntimeName, + integrationRuntimeOperationId, + options + }, + integrationRuntimeStopOperationSpec + ); + } + + /** + * Get an integration runtime enable interactivequery operation status + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param integrationRuntimeOperationId Integration runtime Operation Id + * @param options The options parameters. + */ + integrationRuntimeEnableInteractivequery( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + integrationRuntimeOperationId: string, + options?: GetIntegrationRuntimeEnableInteractivequeryOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + integrationRuntimeName, + integrationRuntimeOperationId, + options + }, + integrationRuntimeEnableInteractivequeryOperationSpec + ); + } +} +// Operation Specifications +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}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IntegrationRuntimeOperationStatus + }, + 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 integrationRuntimeStopOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop/operationstatuses/{integrationRuntimeOperationId}", + httpMethod: "GET", + responses: { + 200: { + 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 + }, + 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/index.ts b/sdk/synapse/arm-synapse/src/operations/index.ts index c546697aa073..1f09959bdf2c 100644 --- a/sdk/synapse/arm-synapse/src/operations/index.ts +++ b/sdk/synapse/arm-synapse/src/operations/index.ts @@ -11,7 +11,7 @@ export * from "./operations"; export * from "./ipFirewallRules"; export * from "./keys"; export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; +export * from "./privateLinkResourcesOperations"; export * from "./privateLinkHubPrivateLinkResources"; export * from "./privateLinkHubs"; export * from "./privateEndpointConnectionsPrivateLinkHub"; @@ -69,6 +69,7 @@ export * from "./integrationRuntimeConnectionInfos"; export * from "./integrationRuntimeAuthKeysOperations"; export * from "./integrationRuntimeMonitoringDataOperations"; export * from "./integrationRuntimeStatusOperations"; +export * from "./get"; export * from "./sparkConfiguration"; export * from "./sparkConfigurations"; export * from "./kustoOperations"; @@ -79,3 +80,4 @@ export * from "./kustoPoolDatabases"; export * from "./kustoPoolDataConnections"; export * from "./kustoPoolPrincipalAssignments"; export * from "./kustoPoolDatabasePrincipalAssignments"; +export * from "./kustoPoolPrivateLinkResourcesOperations"; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts index 63b59977529d..a7c6f41410f9 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts @@ -60,7 +60,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.IntegrationRuntimeConnectionInfo }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts index 8b5f14101ce2..c0734a055dec 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts @@ -116,7 +116,8 @@ export class IntegrationRuntimeObjectMetadataImpl ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts index a506677afc96..c9e09d0a4c67 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts @@ -472,7 +472,8 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -945,7 +946,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.IntegrationRuntimeListResponse }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -1094,7 +1095,7 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.IntegrationRuntimeListResponse }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, urlParameters: [ diff --git a/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts b/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts index 3854de9a7699..378d8761f4d4 100644 --- a/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts +++ b/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts @@ -539,24 +539,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { httpMethod: "DELETE", responses: { 200: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.IpFirewallRuleInfo }, 201: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.IpFirewallRuleInfo }, 202: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.IpFirewallRuleInfo }, 204: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.IpFirewallRuleInfo }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolPrivateLinkResourcesOperations.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolPrivateLinkResourcesOperations.ts new file mode 100644 index 000000000000..05774a07cc0a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolPrivateLinkResourcesOperations.ts @@ -0,0 +1,153 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { KustoPoolPrivateLinkResourcesOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + KustoPoolPrivateLinkResources, + KustoPoolPrivateLinkResourcesListOptionalParams, + KustoPoolPrivateLinkResourcesListResponse +} from "../models"; + +/// +/** Class containing KustoPoolPrivateLinkResourcesOperations operations. */ +export class KustoPoolPrivateLinkResourcesOperationsImpl + implements KustoPoolPrivateLinkResourcesOperations { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class KustoPoolPrivateLinkResourcesOperations class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Lists all Kusto pool PrivateLinkResources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + options?: KustoPoolPrivateLinkResourcesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + kustoPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + kustoPoolName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + options?: KustoPoolPrivateLinkResourcesListOptionalParams, + _settings?: PageSettings + ): AsyncIterableIterator { + let result: KustoPoolPrivateLinkResourcesListResponse; + result = await this._list( + resourceGroupName, + workspaceName, + kustoPoolName, + options + ); + yield result.value || []; + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + options?: KustoPoolPrivateLinkResourcesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + kustoPoolName, + options + )) { + yield* page; + } + } + + /** + * Lists all Kusto pool PrivateLinkResources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + options?: KustoPoolPrivateLinkResourcesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, kustoPoolName, options }, + listOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/privateLinkResources", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResources + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/privateLinkResources.ts b/sdk/synapse/arm-synapse/src/operations/privateLinkResourcesOperations.ts similarity index 96% rename from sdk/synapse/arm-synapse/src/operations/privateLinkResources.ts rename to sdk/synapse/arm-synapse/src/operations/privateLinkResourcesOperations.ts index daebba36ad0b..3068caea205a 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateLinkResources.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateLinkResourcesOperations.ts @@ -8,7 +8,7 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "../pagingHelper"; -import { PrivateLinkResources } from "../operationsInterfaces"; +import { PrivateLinkResourcesOperations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; @@ -24,12 +24,13 @@ import { } from "../models"; /// -/** Class containing PrivateLinkResources operations. */ -export class PrivateLinkResourcesImpl implements PrivateLinkResources { +/** Class containing PrivateLinkResourcesOperations operations. */ +export class PrivateLinkResourcesOperationsImpl + implements PrivateLinkResourcesOperations { private readonly client: SynapseManagementClient; /** - * Initialize a new instance of the class PrivateLinkResources class. + * Initialize a new instance of the class PrivateLinkResourcesOperations class. * @param client Reference to the service client */ constructor(client: SynapseManagementClient) { diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts index 09b0facd5b3f..5cf53874605e 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts @@ -89,7 +89,9 @@ const getOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.MetadataSyncConfig }, - 404: {}, + 404: { + isError: true + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -113,7 +115,9 @@ const createOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.MetadataSyncConfig }, - 404: {}, + 404: { + isError: true + }, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts index 3b2b8750716e..52e747f9a54a 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts @@ -11,6 +11,8 @@ 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 { SqlPoolOperationResultsGetLocationHeaderResultOptionalParams, SqlPoolOperationResultsGetLocationHeaderResultResponse @@ -36,17 +38,95 @@ export class SqlPoolOperationResultsImpl implements SqlPoolOperationResults { * @param operationId Operation ID * @param options The options parameters. */ - getLocationHeaderResult( + async beginGetLocationHeaderResult( resourceGroupName: string, workspaceName: string, sqlPoolName: string, operationId: string, options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams - ): Promise { - return this.client.sendOperationRequest( + ): Promise< + PollerLike< + PollOperationState< + SqlPoolOperationResultsGetLocationHeaderResultResponse + >, + SqlPoolOperationResultsGetLocationHeaderResultResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, sqlPoolName, operationId, options }, getLocationHeaderResultOperationSpec ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Get the status of a SQL pool operation + * @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 operationId Operation ID + * @param options The options parameters. + */ + async beginGetLocationHeaderResultAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + operationId: string, + options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams + ): Promise { + const poller = await this.beginGetLocationHeaderResult( + resourceGroupName, + workspaceName, + sqlPoolName, + operationId, + options + ); + return poller.pollUntilDone(); } } // Operation Specifications @@ -58,14 +138,16 @@ const getLocationHeaderResultOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool + }, + 201: { + bodyMapper: Mappers.SqlPool }, 202: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool + }, + 204: { + bodyMapper: Mappers.SqlPool }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts index 94c429f2516c..ea275d6ec2c8 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts @@ -242,7 +242,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TransparentDataEncryption }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion], diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPools.ts b/sdk/synapse/arm-synapse/src/operations/sqlPools.ts index a09b27c5a69b..2cb28af757a7 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPools.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPools.ts @@ -162,17 +162,93 @@ export class SqlPoolsImpl implements SqlPools { * @param sqlPoolInfo The updated SQL pool properties * @param options The options parameters. */ - update( + async beginUpdate( resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPoolPatchInfo, options?: SqlPoolsUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( + ): Promise< + PollerLike< + PollOperationState, + SqlPoolsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, options }, updateOperationSpec ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Apply a partial update to 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 sqlPoolInfo The updated SQL pool properties + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + sqlPoolInfo: SqlPoolPatchInfo, + options?: SqlPoolsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + sqlPoolName, + sqlPoolInfo, + options + ); + return poller.pollUntilDone(); } /** @@ -640,7 +716,15 @@ const updateOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.SqlPool }, - 202: {}, + 201: { + bodyMapper: Mappers.SqlPool + }, + 202: { + bodyMapper: Mappers.SqlPool + }, + 204: { + bodyMapper: Mappers.SqlPool + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -675,6 +759,9 @@ const createOperationSpec: coreClient.OperationSpec = { 204: { bodyMapper: Mappers.SqlPool }, + 404: { + isError: true + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -698,24 +785,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { httpMethod: "DELETE", responses: { 200: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, 201: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, 202: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, 204: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, default: { bodyMapper: Mappers.ErrorResponse @@ -760,24 +839,16 @@ const pauseOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, 201: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, 202: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, 204: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, default: { bodyMapper: Mappers.ErrorResponse @@ -800,24 +871,16 @@ const resumeOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, 201: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, 202: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, 204: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.SqlPool }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/synapse/arm-synapse/src/operations/workspaces.ts b/sdk/synapse/arm-synapse/src/operations/workspaces.ts index aa5d08f8e9d2..188c5fa8f0df 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaces.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaces.ts @@ -638,24 +638,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { httpMethod: "DELETE", responses: { 200: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.Workspace }, 201: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.Workspace }, 202: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.Workspace }, 204: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.Workspace }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/get.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/get.ts new file mode 100644 index 000000000000..29416e98fd9f --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/get.ts @@ -0,0 +1,65 @@ +/* + * 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 { + GetIntegrationRuntimeStartOptionalParams, + GetIntegrationRuntimeStartResponse, + GetIntegrationRuntimeStopOptionalParams, + GetIntegrationRuntimeStopResponse, + GetIntegrationRuntimeEnableInteractivequeryOptionalParams, + GetIntegrationRuntimeEnableInteractivequeryResponse +} from "../models"; + +/** Interface representing a Get. */ +export interface Get { + /** + * Get an integration runtime start operation status + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param integrationRuntimeOperationId Integration runtime Operation Id + * @param options The options parameters. + */ + integrationRuntimeStart( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + integrationRuntimeOperationId: string, + options?: GetIntegrationRuntimeStartOptionalParams + ): Promise; + /** + * Get an integration runtime stop operation status + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param integrationRuntimeOperationId Integration runtime Operation Id + * @param options The options parameters. + */ + integrationRuntimeStop( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + integrationRuntimeOperationId: string, + options?: GetIntegrationRuntimeStopOptionalParams + ): Promise; + /** + * Get an integration runtime enable interactivequery operation status + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param integrationRuntimeOperationId Integration runtime Operation Id + * @param options The options parameters. + */ + integrationRuntimeEnableInteractivequery( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + integrationRuntimeOperationId: string, + options?: GetIntegrationRuntimeEnableInteractivequeryOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/index.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/index.ts index c546697aa073..1f09959bdf2c 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/index.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/index.ts @@ -11,7 +11,7 @@ export * from "./operations"; export * from "./ipFirewallRules"; export * from "./keys"; export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; +export * from "./privateLinkResourcesOperations"; export * from "./privateLinkHubPrivateLinkResources"; export * from "./privateLinkHubs"; export * from "./privateEndpointConnectionsPrivateLinkHub"; @@ -69,6 +69,7 @@ export * from "./integrationRuntimeConnectionInfos"; export * from "./integrationRuntimeAuthKeysOperations"; export * from "./integrationRuntimeMonitoringDataOperations"; export * from "./integrationRuntimeStatusOperations"; +export * from "./get"; export * from "./sparkConfiguration"; export * from "./sparkConfigurations"; export * from "./kustoOperations"; @@ -79,3 +80,4 @@ export * from "./kustoPoolDatabases"; export * from "./kustoPoolDataConnections"; export * from "./kustoPoolPrincipalAssignments"; export * from "./kustoPoolDatabasePrincipalAssignments"; +export * from "./kustoPoolPrivateLinkResourcesOperations"; diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.ts new file mode 100644 index 000000000000..dd2bc51bc171 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + KustoPoolPrivateLinkResources, + KustoPoolPrivateLinkResourcesListOptionalParams +} from "../models"; + +/// +/** Interface representing a KustoPoolPrivateLinkResourcesOperations. */ +export interface KustoPoolPrivateLinkResourcesOperations { + /** + * Lists all Kusto pool PrivateLinkResources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + options?: KustoPoolPrivateLinkResourcesListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResources.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResourcesOperations.ts similarity index 92% rename from sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResources.ts rename to sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResourcesOperations.ts index e05033ae9699..73d126d2483d 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResourcesOperations.ts @@ -15,8 +15,8 @@ import { } from "../models"; /// -/** Interface representing a PrivateLinkResources. */ -export interface PrivateLinkResources { +/** Interface representing a PrivateLinkResourcesOperations. */ +export interface PrivateLinkResourcesOperations { /** * Get all private link resources for a workspaces * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts index 5ed8876eb4e8..0af33e1ec6e1 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts @@ -6,6 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PollerLike, PollOperationState } from "@azure/core-lro"; import { SqlPoolOperationResultsGetLocationHeaderResultOptionalParams, SqlPoolOperationResultsGetLocationHeaderResultResponse @@ -21,7 +22,29 @@ export interface SqlPoolOperationResults { * @param operationId Operation ID * @param options The options parameters. */ - getLocationHeaderResult( + beginGetLocationHeaderResult( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + operationId: string, + options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams + ): Promise< + PollerLike< + PollOperationState< + SqlPoolOperationResultsGetLocationHeaderResultResponse + >, + SqlPoolOperationResultsGetLocationHeaderResultResponse + > + >; + /** + * Get the status of a SQL pool operation + * @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 operationId Operation ID + * @param options The options parameters. + */ + beginGetLocationHeaderResultAndWait( resourceGroupName: string, workspaceName: string, sqlPoolName: string, diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts index e5102730b0ab..7d98448308b6 100644 --- a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts @@ -63,7 +63,27 @@ export interface SqlPools { * @param sqlPoolInfo The updated SQL pool properties * @param options The options parameters. */ - update( + beginUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + sqlPoolInfo: SqlPoolPatchInfo, + options?: SqlPoolsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolsUpdateResponse + > + >; + /** + * Apply a partial update to 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 sqlPoolInfo The updated SQL pool properties + * @param options The options parameters. + */ + beginUpdateAndWait( resourceGroupName: string, workspaceName: string, sqlPoolName: string, diff --git a/sdk/synapse/arm-synapse/src/synapseManagementClient.ts b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts index 9d84f88d90dd..9e60b1020f67 100644 --- a/sdk/synapse/arm-synapse/src/synapseManagementClient.ts +++ b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts @@ -15,7 +15,7 @@ import { IpFirewallRulesImpl, KeysImpl, PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl, + PrivateLinkResourcesOperationsImpl, PrivateLinkHubPrivateLinkResourcesImpl, PrivateLinkHubsImpl, PrivateEndpointConnectionsPrivateLinkHubImpl, @@ -73,6 +73,7 @@ import { IntegrationRuntimeAuthKeysOperationsImpl, IntegrationRuntimeMonitoringDataOperationsImpl, IntegrationRuntimeStatusOperationsImpl, + GetImpl, SparkConfigurationImpl, SparkConfigurationsImpl, KustoOperationsImpl, @@ -82,7 +83,8 @@ import { KustoPoolDatabasesImpl, KustoPoolDataConnectionsImpl, KustoPoolPrincipalAssignmentsImpl, - KustoPoolDatabasePrincipalAssignmentsImpl + KustoPoolDatabasePrincipalAssignmentsImpl, + KustoPoolPrivateLinkResourcesOperationsImpl } from "./operations"; import { AzureADOnlyAuthentications, @@ -90,7 +92,7 @@ import { IpFirewallRules, Keys, PrivateEndpointConnections, - PrivateLinkResources, + PrivateLinkResourcesOperations, PrivateLinkHubPrivateLinkResources, PrivateLinkHubs, PrivateEndpointConnectionsPrivateLinkHub, @@ -148,6 +150,7 @@ import { IntegrationRuntimeAuthKeysOperations, IntegrationRuntimeMonitoringDataOperations, IntegrationRuntimeStatusOperations, + Get, SparkConfiguration, SparkConfigurations, KustoOperations, @@ -157,7 +160,8 @@ import { KustoPoolDatabases, KustoPoolDataConnections, KustoPoolPrincipalAssignments, - KustoPoolDatabasePrincipalAssignments + KustoPoolDatabasePrincipalAssignments, + KustoPoolPrivateLinkResourcesOperations } from "./operationsInterfaces"; import { SynapseManagementClientOptionalParams } from "./models"; @@ -192,7 +196,7 @@ export class SynapseManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-synapse/8.1.0-beta.3`; + const packageDetails = `azsdk-js-arm-synapse/9.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -250,7 +254,9 @@ export class SynapseManagementClient extends coreClient.ServiceClient { this.ipFirewallRules = new IpFirewallRulesImpl(this); this.keys = new KeysImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); - this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.privateLinkResourcesOperations = new PrivateLinkResourcesOperationsImpl( + this + ); this.privateLinkHubPrivateLinkResources = new PrivateLinkHubPrivateLinkResourcesImpl( this ); @@ -364,6 +370,7 @@ export class SynapseManagementClient extends coreClient.ServiceClient { 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); @@ -380,6 +387,9 @@ export class SynapseManagementClient extends coreClient.ServiceClient { this.kustoPoolDatabasePrincipalAssignments = new KustoPoolDatabasePrincipalAssignmentsImpl( this ); + this.kustoPoolPrivateLinkResourcesOperations = new KustoPoolPrivateLinkResourcesOperationsImpl( + this + ); } azureADOnlyAuthentications: AzureADOnlyAuthentications; @@ -387,7 +397,7 @@ export class SynapseManagementClient extends coreClient.ServiceClient { ipFirewallRules: IpFirewallRules; keys: Keys; privateEndpointConnections: PrivateEndpointConnections; - privateLinkResources: PrivateLinkResources; + privateLinkResourcesOperations: PrivateLinkResourcesOperations; privateLinkHubPrivateLinkResources: PrivateLinkHubPrivateLinkResources; privateLinkHubs: PrivateLinkHubs; privateEndpointConnectionsPrivateLinkHub: PrivateEndpointConnectionsPrivateLinkHub; @@ -445,6 +455,7 @@ export class SynapseManagementClient extends coreClient.ServiceClient { integrationRuntimeAuthKeysOperations: IntegrationRuntimeAuthKeysOperations; integrationRuntimeMonitoringDataOperations: IntegrationRuntimeMonitoringDataOperations; integrationRuntimeStatusOperations: IntegrationRuntimeStatusOperations; + get: Get; sparkConfiguration: SparkConfiguration; sparkConfigurations: SparkConfigurations; kustoOperations: KustoOperations; @@ -455,4 +466,5 @@ export class SynapseManagementClient extends coreClient.ServiceClient { kustoPoolDataConnections: KustoPoolDataConnections; kustoPoolPrincipalAssignments: KustoPoolPrincipalAssignments; kustoPoolDatabasePrincipalAssignments: KustoPoolDatabasePrincipalAssignments; + kustoPoolPrivateLinkResourcesOperations: KustoPoolPrivateLinkResourcesOperations; } diff --git a/sdk/synapse/arm-synapse/test/sampleTest.ts b/sdk/synapse/arm-synapse/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /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..3e6ae96443f3 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" + "./test/**/*.ts" ], "exclude": [ "node_modules"