@azure/arm-synapse 8.1.0-beta.2 → 9.0.0-alpha.20230210.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -1
- package/LICENSE +1 -1
- package/dist/index.js +1151 -573
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/bigDataPoolsCreateOrUpdateSample.js +1 -0
- package/dist-esm/samples-dev/bigDataPoolsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/getIntegrationRuntimeEnableInteractivequerySample.d.ts +2 -0
- package/dist-esm/samples-dev/getIntegrationRuntimeEnableInteractivequerySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/getIntegrationRuntimeEnableInteractivequerySample.js +41 -0
- package/dist-esm/samples-dev/getIntegrationRuntimeEnableInteractivequerySample.js.map +1 -0
- package/dist-esm/samples-dev/getIntegrationRuntimeStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/getIntegrationRuntimeStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/getIntegrationRuntimeStartSample.js +41 -0
- package/dist-esm/samples-dev/getIntegrationRuntimeStartSample.js.map +1 -0
- package/dist-esm/samples-dev/getIntegrationRuntimeStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/getIntegrationRuntimeStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/getIntegrationRuntimeStopSample.js +41 -0
- package/dist-esm/samples-dev/getIntegrationRuntimeStopSample.js.map +1 -0
- package/dist-esm/samples-dev/integrationRuntimesCreateSample.js +2 -4
- package/dist-esm/samples-dev/integrationRuntimesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/ipFirewallRulesGetSample.js +2 -2
- package/dist-esm/samples-dev/ipFirewallRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/kustoPoolPrivateLinkResourcesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/kustoPoolPrivateLinkResourcesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/kustoPoolPrivateLinkResourcesListSample.js +54 -0
- package/dist-esm/samples-dev/kustoPoolPrivateLinkResourcesListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlPoolOperationResultsGetLocationHeaderResultSample.js +1 -1
- package/dist-esm/samples-dev/sqlPoolOperationResultsGetLocationHeaderResultSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlPoolsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/sqlPoolsUpdateSample.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +186 -54
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -22
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +6 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +281 -10
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +10 -0
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/bigDataPools.js +4 -12
- package/dist-esm/src/operations/bigDataPools.js.map +1 -1
- package/dist-esm/src/operations/get.d.ts +40 -0
- package/dist-esm/src/operations/get.d.ts.map +1 -0
- package/dist-esm/src/operations/get.js +143 -0
- package/dist-esm/src/operations/get.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +3 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +3 -1
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/integrationRuntimeConnectionInfos.js +1 -1
- package/dist-esm/src/operations/integrationRuntimeConnectionInfos.js.map +1 -1
- package/dist-esm/src/operations/integrationRuntimeObjectMetadata.d.ts.map +1 -1
- package/dist-esm/src/operations/integrationRuntimeObjectMetadata.js +2 -1
- package/dist-esm/src/operations/integrationRuntimeObjectMetadata.js.map +1 -1
- package/dist-esm/src/operations/integrationRuntimes.d.ts.map +1 -1
- package/dist-esm/src/operations/integrationRuntimes.js +4 -3
- package/dist-esm/src/operations/integrationRuntimes.js.map +1 -1
- package/dist-esm/src/operations/ipFirewallRules.js +4 -12
- package/dist-esm/src/operations/ipFirewallRules.js.map +1 -1
- package/dist-esm/src/operations/kustoPoolPrivateLinkResourcesOperations.d.ts +32 -0
- package/dist-esm/src/operations/kustoPoolPrivateLinkResourcesOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/kustoPoolPrivateLinkResourcesOperations.js +106 -0
- package/dist-esm/src/operations/kustoPoolPrivateLinkResourcesOperations.js.map +1 -0
- package/dist-esm/src/operations/{privateLinkResources.d.ts → privateLinkResourcesOperations.d.ts} +5 -5
- package/dist-esm/src/operations/privateLinkResourcesOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/{privateLinkResources.js → privateLinkResourcesOperations.js} +4 -4
- package/dist-esm/src/operations/privateLinkResourcesOperations.js.map +1 -0
- package/dist-esm/src/operations/sqlPoolMetadataSyncConfigs.js +6 -2
- package/dist-esm/src/operations/sqlPoolMetadataSyncConfigs.js.map +1 -1
- package/dist-esm/src/operations/sqlPoolOperationResults.d.ts +11 -1
- package/dist-esm/src/operations/sqlPoolOperationResults.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlPoolOperationResults.js +57 -8
- package/dist-esm/src/operations/sqlPoolOperationResults.js.map +1 -1
- package/dist-esm/src/operations/sqlPoolTransparentDataEncryptions.js +1 -1
- package/dist-esm/src/operations/sqlPoolTransparentDataEncryptions.js.map +1 -1
- package/dist-esm/src/operations/sqlPools.d.ts +10 -1
- package/dist-esm/src/operations/sqlPools.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlPools.js +70 -39
- package/dist-esm/src/operations/sqlPools.js.map +1 -1
- package/dist-esm/src/operations/workspaces.js +4 -12
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/get.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/get.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{privateLinkResources.js → get.js} +1 -1
- package/dist-esm/src/operationsInterfaces/get.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +3 -1
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/{privateLinkResources.d.ts → privateLinkResourcesOperations.d.ts} +3 -3
- package/dist-esm/src/operationsInterfaces/privateLinkResourcesOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourcesOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourcesOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlPoolOperationResults.d.ts +11 -1
- package/dist-esm/src/operationsInterfaces/sqlPoolOperationResults.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/sqlPools.d.ts +10 -1
- package/dist-esm/src/operationsInterfaces/sqlPools.d.ts.map +1 -1
- package/dist-esm/src/synapseManagementClient.d.ts +4 -2
- package/dist-esm/src/synapseManagementClient.d.ts.map +1 -1
- package/dist-esm/src/synapseManagementClient.js +5 -3
- package/dist-esm/src/synapseManagementClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-synapse.api.md +138 -37
- package/src/models/index.ts +209 -63
- package/src/models/mappers.ts +299 -10
- package/src/models/parameters.ts +11 -0
- package/src/operations/bigDataPools.ts +4 -12
- package/src/operations/get.ts +190 -0
- package/src/operations/index.ts +3 -1
- package/src/operations/integrationRuntimeConnectionInfos.ts +1 -1
- package/src/operations/integrationRuntimeObjectMetadata.ts +2 -1
- package/src/operations/integrationRuntimes.ts +4 -3
- package/src/operations/ipFirewallRules.ts +4 -12
- package/src/operations/kustoPoolPrivateLinkResourcesOperations.ts +153 -0
- package/src/operations/{privateLinkResources.ts → privateLinkResourcesOperations.ts} +5 -4
- package/src/operations/sqlPoolMetadataSyncConfigs.ts +6 -2
- package/src/operations/sqlPoolOperationResults.ts +91 -9
- package/src/operations/sqlPoolTransparentDataEncryptions.ts +1 -1
- package/src/operations/sqlPools.ts +103 -40
- package/src/operations/workspaces.ts +4 -12
- package/src/operationsInterfaces/get.ts +65 -0
- package/src/operationsInterfaces/index.ts +3 -1
- package/src/operationsInterfaces/kustoPoolPrivateLinkResourcesOperations.ts +31 -0
- package/src/operationsInterfaces/{privateLinkResources.ts → privateLinkResourcesOperations.ts} +2 -2
- package/src/operationsInterfaces/sqlPoolOperationResults.ts +24 -1
- package/src/operationsInterfaces/sqlPools.ts +21 -1
- package/src/synapseManagementClient.ts +19 -7
- package/types/arm-synapse.d.ts +286 -77
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
|
@@ -539,24 +539,16 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
539
539
|
httpMethod: "DELETE",
|
|
540
540
|
responses: {
|
|
541
541
|
200: {
|
|
542
|
-
bodyMapper:
|
|
543
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
544
|
-
}
|
|
542
|
+
bodyMapper: Mappers.IpFirewallRuleInfo
|
|
545
543
|
},
|
|
546
544
|
201: {
|
|
547
|
-
bodyMapper:
|
|
548
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
549
|
-
}
|
|
545
|
+
bodyMapper: Mappers.IpFirewallRuleInfo
|
|
550
546
|
},
|
|
551
547
|
202: {
|
|
552
|
-
bodyMapper:
|
|
553
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
554
|
-
}
|
|
548
|
+
bodyMapper: Mappers.IpFirewallRuleInfo
|
|
555
549
|
},
|
|
556
550
|
204: {
|
|
557
|
-
bodyMapper:
|
|
558
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
559
|
-
}
|
|
551
|
+
bodyMapper: Mappers.IpFirewallRuleInfo
|
|
560
552
|
},
|
|
561
553
|
default: {
|
|
562
554
|
bodyMapper: Mappers.ErrorResponse
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { KustoPoolPrivateLinkResourcesOperations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { SynapseManagementClient } from "../synapseManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
KustoPoolPrivateLinkResources,
|
|
17
|
+
KustoPoolPrivateLinkResourcesListOptionalParams,
|
|
18
|
+
KustoPoolPrivateLinkResourcesListResponse
|
|
19
|
+
} from "../models";
|
|
20
|
+
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Class containing KustoPoolPrivateLinkResourcesOperations operations. */
|
|
23
|
+
export class KustoPoolPrivateLinkResourcesOperationsImpl
|
|
24
|
+
implements KustoPoolPrivateLinkResourcesOperations {
|
|
25
|
+
private readonly client: SynapseManagementClient;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Initialize a new instance of the class KustoPoolPrivateLinkResourcesOperations class.
|
|
29
|
+
* @param client Reference to the service client
|
|
30
|
+
*/
|
|
31
|
+
constructor(client: SynapseManagementClient) {
|
|
32
|
+
this.client = client;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Lists all Kusto pool PrivateLinkResources.
|
|
37
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
38
|
+
* @param workspaceName The name of the workspace.
|
|
39
|
+
* @param kustoPoolName The name of the Kusto pool.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
public list(
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
workspaceName: string,
|
|
45
|
+
kustoPoolName: string,
|
|
46
|
+
options?: KustoPoolPrivateLinkResourcesListOptionalParams
|
|
47
|
+
): PagedAsyncIterableIterator<KustoPoolPrivateLinkResources> {
|
|
48
|
+
const iter = this.listPagingAll(
|
|
49
|
+
resourceGroupName,
|
|
50
|
+
workspaceName,
|
|
51
|
+
kustoPoolName,
|
|
52
|
+
options
|
|
53
|
+
);
|
|
54
|
+
return {
|
|
55
|
+
next() {
|
|
56
|
+
return iter.next();
|
|
57
|
+
},
|
|
58
|
+
[Symbol.asyncIterator]() {
|
|
59
|
+
return this;
|
|
60
|
+
},
|
|
61
|
+
byPage: (settings?: PageSettings) => {
|
|
62
|
+
if (settings?.maxPageSize) {
|
|
63
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
64
|
+
}
|
|
65
|
+
return this.listPagingPage(
|
|
66
|
+
resourceGroupName,
|
|
67
|
+
workspaceName,
|
|
68
|
+
kustoPoolName,
|
|
69
|
+
options,
|
|
70
|
+
settings
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private async *listPagingPage(
|
|
77
|
+
resourceGroupName: string,
|
|
78
|
+
workspaceName: string,
|
|
79
|
+
kustoPoolName: string,
|
|
80
|
+
options?: KustoPoolPrivateLinkResourcesListOptionalParams,
|
|
81
|
+
_settings?: PageSettings
|
|
82
|
+
): AsyncIterableIterator<KustoPoolPrivateLinkResources[]> {
|
|
83
|
+
let result: KustoPoolPrivateLinkResourcesListResponse;
|
|
84
|
+
result = await this._list(
|
|
85
|
+
resourceGroupName,
|
|
86
|
+
workspaceName,
|
|
87
|
+
kustoPoolName,
|
|
88
|
+
options
|
|
89
|
+
);
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
private async *listPagingAll(
|
|
94
|
+
resourceGroupName: string,
|
|
95
|
+
workspaceName: string,
|
|
96
|
+
kustoPoolName: string,
|
|
97
|
+
options?: KustoPoolPrivateLinkResourcesListOptionalParams
|
|
98
|
+
): AsyncIterableIterator<KustoPoolPrivateLinkResources> {
|
|
99
|
+
for await (const page of this.listPagingPage(
|
|
100
|
+
resourceGroupName,
|
|
101
|
+
workspaceName,
|
|
102
|
+
kustoPoolName,
|
|
103
|
+
options
|
|
104
|
+
)) {
|
|
105
|
+
yield* page;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Lists all Kusto pool PrivateLinkResources.
|
|
111
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
112
|
+
* @param workspaceName The name of the workspace.
|
|
113
|
+
* @param kustoPoolName The name of the Kusto pool.
|
|
114
|
+
* @param options The options parameters.
|
|
115
|
+
*/
|
|
116
|
+
private _list(
|
|
117
|
+
resourceGroupName: string,
|
|
118
|
+
workspaceName: string,
|
|
119
|
+
kustoPoolName: string,
|
|
120
|
+
options?: KustoPoolPrivateLinkResourcesListOptionalParams
|
|
121
|
+
): Promise<KustoPoolPrivateLinkResourcesListResponse> {
|
|
122
|
+
return this.client.sendOperationRequest(
|
|
123
|
+
{ resourceGroupName, workspaceName, kustoPoolName, options },
|
|
124
|
+
listOperationSpec
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
// Operation Specifications
|
|
129
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
130
|
+
|
|
131
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
132
|
+
path:
|
|
133
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/privateLinkResources",
|
|
134
|
+
httpMethod: "GET",
|
|
135
|
+
responses: {
|
|
136
|
+
200: {
|
|
137
|
+
bodyMapper: Mappers.PrivateLinkResources
|
|
138
|
+
},
|
|
139
|
+
default: {
|
|
140
|
+
bodyMapper: Mappers.ErrorResponse
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
queryParameters: [Parameters.apiVersion1],
|
|
144
|
+
urlParameters: [
|
|
145
|
+
Parameters.$host,
|
|
146
|
+
Parameters.subscriptionId,
|
|
147
|
+
Parameters.resourceGroupName,
|
|
148
|
+
Parameters.workspaceName,
|
|
149
|
+
Parameters.kustoPoolName1
|
|
150
|
+
],
|
|
151
|
+
headerParameters: [Parameters.accept],
|
|
152
|
+
serializer
|
|
153
|
+
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import {
|
|
11
|
+
import { PrivateLinkResourcesOperations } from "../operationsInterfaces";
|
|
12
12
|
import * as coreClient from "@azure/core-client";
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
@@ -24,12 +24,13 @@ import {
|
|
|
24
24
|
} from "../models";
|
|
25
25
|
|
|
26
26
|
/// <reference lib="esnext.asynciterable" />
|
|
27
|
-
/** Class containing
|
|
28
|
-
export class
|
|
27
|
+
/** Class containing PrivateLinkResourcesOperations operations. */
|
|
28
|
+
export class PrivateLinkResourcesOperationsImpl
|
|
29
|
+
implements PrivateLinkResourcesOperations {
|
|
29
30
|
private readonly client: SynapseManagementClient;
|
|
30
31
|
|
|
31
32
|
/**
|
|
32
|
-
* Initialize a new instance of the class
|
|
33
|
+
* Initialize a new instance of the class PrivateLinkResourcesOperations class.
|
|
33
34
|
* @param client Reference to the service client
|
|
34
35
|
*/
|
|
35
36
|
constructor(client: SynapseManagementClient) {
|
|
@@ -89,7 +89,9 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
89
89
|
200: {
|
|
90
90
|
bodyMapper: Mappers.MetadataSyncConfig
|
|
91
91
|
},
|
|
92
|
-
404: {
|
|
92
|
+
404: {
|
|
93
|
+
isError: true
|
|
94
|
+
},
|
|
93
95
|
default: {
|
|
94
96
|
bodyMapper: Mappers.ErrorResponse
|
|
95
97
|
}
|
|
@@ -113,7 +115,9 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
113
115
|
200: {
|
|
114
116
|
bodyMapper: Mappers.MetadataSyncConfig
|
|
115
117
|
},
|
|
116
|
-
404: {
|
|
118
|
+
404: {
|
|
119
|
+
isError: true
|
|
120
|
+
},
|
|
117
121
|
default: {
|
|
118
122
|
bodyMapper: Mappers.ErrorResponse
|
|
119
123
|
}
|
|
@@ -11,6 +11,8 @@ import * as coreClient from "@azure/core-client";
|
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
13
|
import { SynapseManagementClient } from "../synapseManagementClient";
|
|
14
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
15
|
+
import { LroImpl } from "../lroImpl";
|
|
14
16
|
import {
|
|
15
17
|
SqlPoolOperationResultsGetLocationHeaderResultOptionalParams,
|
|
16
18
|
SqlPoolOperationResultsGetLocationHeaderResultResponse
|
|
@@ -36,17 +38,95 @@ export class SqlPoolOperationResultsImpl implements SqlPoolOperationResults {
|
|
|
36
38
|
* @param operationId Operation ID
|
|
37
39
|
* @param options The options parameters.
|
|
38
40
|
*/
|
|
39
|
-
|
|
41
|
+
async beginGetLocationHeaderResult(
|
|
40
42
|
resourceGroupName: string,
|
|
41
43
|
workspaceName: string,
|
|
42
44
|
sqlPoolName: string,
|
|
43
45
|
operationId: string,
|
|
44
46
|
options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams
|
|
45
|
-
): Promise<
|
|
46
|
-
|
|
47
|
+
): Promise<
|
|
48
|
+
PollerLike<
|
|
49
|
+
PollOperationState<
|
|
50
|
+
SqlPoolOperationResultsGetLocationHeaderResultResponse
|
|
51
|
+
>,
|
|
52
|
+
SqlPoolOperationResultsGetLocationHeaderResultResponse
|
|
53
|
+
>
|
|
54
|
+
> {
|
|
55
|
+
const directSendOperation = async (
|
|
56
|
+
args: coreClient.OperationArguments,
|
|
57
|
+
spec: coreClient.OperationSpec
|
|
58
|
+
): Promise<SqlPoolOperationResultsGetLocationHeaderResultResponse> => {
|
|
59
|
+
return this.client.sendOperationRequest(args, spec);
|
|
60
|
+
};
|
|
61
|
+
const sendOperation = async (
|
|
62
|
+
args: coreClient.OperationArguments,
|
|
63
|
+
spec: coreClient.OperationSpec
|
|
64
|
+
) => {
|
|
65
|
+
let currentRawResponse:
|
|
66
|
+
| coreClient.FullOperationResponse
|
|
67
|
+
| undefined = undefined;
|
|
68
|
+
const providedCallback = args.options?.onResponse;
|
|
69
|
+
const callback: coreClient.RawResponseCallback = (
|
|
70
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
71
|
+
flatResponse: unknown
|
|
72
|
+
) => {
|
|
73
|
+
currentRawResponse = rawResponse;
|
|
74
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
75
|
+
};
|
|
76
|
+
const updatedArgs = {
|
|
77
|
+
...args,
|
|
78
|
+
options: {
|
|
79
|
+
...args.options,
|
|
80
|
+
onResponse: callback
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
84
|
+
return {
|
|
85
|
+
flatResponse,
|
|
86
|
+
rawResponse: {
|
|
87
|
+
statusCode: currentRawResponse!.status,
|
|
88
|
+
body: currentRawResponse!.parsedBody,
|
|
89
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const lro = new LroImpl(
|
|
95
|
+
sendOperation,
|
|
47
96
|
{ resourceGroupName, workspaceName, sqlPoolName, operationId, options },
|
|
48
97
|
getLocationHeaderResultOperationSpec
|
|
49
98
|
);
|
|
99
|
+
const poller = new LroEngine(lro, {
|
|
100
|
+
resumeFrom: options?.resumeFrom,
|
|
101
|
+
intervalInMs: options?.updateIntervalInMs
|
|
102
|
+
});
|
|
103
|
+
await poller.poll();
|
|
104
|
+
return poller;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Get the status of a SQL pool operation
|
|
109
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
110
|
+
* @param workspaceName The name of the workspace.
|
|
111
|
+
* @param sqlPoolName SQL pool name
|
|
112
|
+
* @param operationId Operation ID
|
|
113
|
+
* @param options The options parameters.
|
|
114
|
+
*/
|
|
115
|
+
async beginGetLocationHeaderResultAndWait(
|
|
116
|
+
resourceGroupName: string,
|
|
117
|
+
workspaceName: string,
|
|
118
|
+
sqlPoolName: string,
|
|
119
|
+
operationId: string,
|
|
120
|
+
options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams
|
|
121
|
+
): Promise<SqlPoolOperationResultsGetLocationHeaderResultResponse> {
|
|
122
|
+
const poller = await this.beginGetLocationHeaderResult(
|
|
123
|
+
resourceGroupName,
|
|
124
|
+
workspaceName,
|
|
125
|
+
sqlPoolName,
|
|
126
|
+
operationId,
|
|
127
|
+
options
|
|
128
|
+
);
|
|
129
|
+
return poller.pollUntilDone();
|
|
50
130
|
}
|
|
51
131
|
}
|
|
52
132
|
// Operation Specifications
|
|
@@ -58,14 +138,16 @@ const getLocationHeaderResultOperationSpec: coreClient.OperationSpec = {
|
|
|
58
138
|
httpMethod: "GET",
|
|
59
139
|
responses: {
|
|
60
140
|
200: {
|
|
61
|
-
bodyMapper:
|
|
62
|
-
|
|
63
|
-
|
|
141
|
+
bodyMapper: Mappers.SqlPool
|
|
142
|
+
},
|
|
143
|
+
201: {
|
|
144
|
+
bodyMapper: Mappers.SqlPool
|
|
64
145
|
},
|
|
65
146
|
202: {
|
|
66
|
-
bodyMapper:
|
|
67
|
-
|
|
68
|
-
|
|
147
|
+
bodyMapper: Mappers.SqlPool
|
|
148
|
+
},
|
|
149
|
+
204: {
|
|
150
|
+
bodyMapper: Mappers.SqlPool
|
|
69
151
|
},
|
|
70
152
|
default: {
|
|
71
153
|
bodyMapper: Mappers.ErrorResponse
|
|
@@ -242,7 +242,7 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
242
242
|
bodyMapper: Mappers.TransparentDataEncryption
|
|
243
243
|
},
|
|
244
244
|
default: {
|
|
245
|
-
bodyMapper: Mappers.
|
|
245
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated
|
|
246
246
|
}
|
|
247
247
|
},
|
|
248
248
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -162,17 +162,93 @@ export class SqlPoolsImpl implements SqlPools {
|
|
|
162
162
|
* @param sqlPoolInfo The updated SQL pool properties
|
|
163
163
|
* @param options The options parameters.
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
async beginUpdate(
|
|
166
166
|
resourceGroupName: string,
|
|
167
167
|
workspaceName: string,
|
|
168
168
|
sqlPoolName: string,
|
|
169
169
|
sqlPoolInfo: SqlPoolPatchInfo,
|
|
170
170
|
options?: SqlPoolsUpdateOptionalParams
|
|
171
|
-
): Promise<
|
|
172
|
-
|
|
171
|
+
): Promise<
|
|
172
|
+
PollerLike<
|
|
173
|
+
PollOperationState<SqlPoolsUpdateResponse>,
|
|
174
|
+
SqlPoolsUpdateResponse
|
|
175
|
+
>
|
|
176
|
+
> {
|
|
177
|
+
const directSendOperation = async (
|
|
178
|
+
args: coreClient.OperationArguments,
|
|
179
|
+
spec: coreClient.OperationSpec
|
|
180
|
+
): Promise<SqlPoolsUpdateResponse> => {
|
|
181
|
+
return this.client.sendOperationRequest(args, spec);
|
|
182
|
+
};
|
|
183
|
+
const sendOperation = async (
|
|
184
|
+
args: coreClient.OperationArguments,
|
|
185
|
+
spec: coreClient.OperationSpec
|
|
186
|
+
) => {
|
|
187
|
+
let currentRawResponse:
|
|
188
|
+
| coreClient.FullOperationResponse
|
|
189
|
+
| undefined = undefined;
|
|
190
|
+
const providedCallback = args.options?.onResponse;
|
|
191
|
+
const callback: coreClient.RawResponseCallback = (
|
|
192
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
193
|
+
flatResponse: unknown
|
|
194
|
+
) => {
|
|
195
|
+
currentRawResponse = rawResponse;
|
|
196
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
197
|
+
};
|
|
198
|
+
const updatedArgs = {
|
|
199
|
+
...args,
|
|
200
|
+
options: {
|
|
201
|
+
...args.options,
|
|
202
|
+
onResponse: callback
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
206
|
+
return {
|
|
207
|
+
flatResponse,
|
|
208
|
+
rawResponse: {
|
|
209
|
+
statusCode: currentRawResponse!.status,
|
|
210
|
+
body: currentRawResponse!.parsedBody,
|
|
211
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
const lro = new LroImpl(
|
|
217
|
+
sendOperation,
|
|
173
218
|
{ resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, options },
|
|
174
219
|
updateOperationSpec
|
|
175
220
|
);
|
|
221
|
+
const poller = new LroEngine(lro, {
|
|
222
|
+
resumeFrom: options?.resumeFrom,
|
|
223
|
+
intervalInMs: options?.updateIntervalInMs
|
|
224
|
+
});
|
|
225
|
+
await poller.poll();
|
|
226
|
+
return poller;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Apply a partial update to a SQL pool
|
|
231
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
232
|
+
* @param workspaceName The name of the workspace.
|
|
233
|
+
* @param sqlPoolName SQL pool name
|
|
234
|
+
* @param sqlPoolInfo The updated SQL pool properties
|
|
235
|
+
* @param options The options parameters.
|
|
236
|
+
*/
|
|
237
|
+
async beginUpdateAndWait(
|
|
238
|
+
resourceGroupName: string,
|
|
239
|
+
workspaceName: string,
|
|
240
|
+
sqlPoolName: string,
|
|
241
|
+
sqlPoolInfo: SqlPoolPatchInfo,
|
|
242
|
+
options?: SqlPoolsUpdateOptionalParams
|
|
243
|
+
): Promise<SqlPoolsUpdateResponse> {
|
|
244
|
+
const poller = await this.beginUpdate(
|
|
245
|
+
resourceGroupName,
|
|
246
|
+
workspaceName,
|
|
247
|
+
sqlPoolName,
|
|
248
|
+
sqlPoolInfo,
|
|
249
|
+
options
|
|
250
|
+
);
|
|
251
|
+
return poller.pollUntilDone();
|
|
176
252
|
}
|
|
177
253
|
|
|
178
254
|
/**
|
|
@@ -640,7 +716,15 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
640
716
|
200: {
|
|
641
717
|
bodyMapper: Mappers.SqlPool
|
|
642
718
|
},
|
|
643
|
-
|
|
719
|
+
201: {
|
|
720
|
+
bodyMapper: Mappers.SqlPool
|
|
721
|
+
},
|
|
722
|
+
202: {
|
|
723
|
+
bodyMapper: Mappers.SqlPool
|
|
724
|
+
},
|
|
725
|
+
204: {
|
|
726
|
+
bodyMapper: Mappers.SqlPool
|
|
727
|
+
},
|
|
644
728
|
default: {
|
|
645
729
|
bodyMapper: Mappers.ErrorResponse
|
|
646
730
|
}
|
|
@@ -675,6 +759,9 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
675
759
|
204: {
|
|
676
760
|
bodyMapper: Mappers.SqlPool
|
|
677
761
|
},
|
|
762
|
+
404: {
|
|
763
|
+
isError: true
|
|
764
|
+
},
|
|
678
765
|
default: {
|
|
679
766
|
bodyMapper: Mappers.ErrorResponse
|
|
680
767
|
}
|
|
@@ -698,24 +785,16 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
698
785
|
httpMethod: "DELETE",
|
|
699
786
|
responses: {
|
|
700
787
|
200: {
|
|
701
|
-
bodyMapper:
|
|
702
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
703
|
-
}
|
|
788
|
+
bodyMapper: Mappers.SqlPool
|
|
704
789
|
},
|
|
705
790
|
201: {
|
|
706
|
-
bodyMapper:
|
|
707
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
708
|
-
}
|
|
791
|
+
bodyMapper: Mappers.SqlPool
|
|
709
792
|
},
|
|
710
793
|
202: {
|
|
711
|
-
bodyMapper:
|
|
712
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
713
|
-
}
|
|
794
|
+
bodyMapper: Mappers.SqlPool
|
|
714
795
|
},
|
|
715
796
|
204: {
|
|
716
|
-
bodyMapper:
|
|
717
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
718
|
-
}
|
|
797
|
+
bodyMapper: Mappers.SqlPool
|
|
719
798
|
},
|
|
720
799
|
default: {
|
|
721
800
|
bodyMapper: Mappers.ErrorResponse
|
|
@@ -760,24 +839,16 @@ const pauseOperationSpec: coreClient.OperationSpec = {
|
|
|
760
839
|
httpMethod: "POST",
|
|
761
840
|
responses: {
|
|
762
841
|
200: {
|
|
763
|
-
bodyMapper:
|
|
764
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
765
|
-
}
|
|
842
|
+
bodyMapper: Mappers.SqlPool
|
|
766
843
|
},
|
|
767
844
|
201: {
|
|
768
|
-
bodyMapper:
|
|
769
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
770
|
-
}
|
|
845
|
+
bodyMapper: Mappers.SqlPool
|
|
771
846
|
},
|
|
772
847
|
202: {
|
|
773
|
-
bodyMapper:
|
|
774
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
775
|
-
}
|
|
848
|
+
bodyMapper: Mappers.SqlPool
|
|
776
849
|
},
|
|
777
850
|
204: {
|
|
778
|
-
bodyMapper:
|
|
779
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
780
|
-
}
|
|
851
|
+
bodyMapper: Mappers.SqlPool
|
|
781
852
|
},
|
|
782
853
|
default: {
|
|
783
854
|
bodyMapper: Mappers.ErrorResponse
|
|
@@ -800,24 +871,16 @@ const resumeOperationSpec: coreClient.OperationSpec = {
|
|
|
800
871
|
httpMethod: "POST",
|
|
801
872
|
responses: {
|
|
802
873
|
200: {
|
|
803
|
-
bodyMapper:
|
|
804
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
805
|
-
}
|
|
874
|
+
bodyMapper: Mappers.SqlPool
|
|
806
875
|
},
|
|
807
876
|
201: {
|
|
808
|
-
bodyMapper:
|
|
809
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
810
|
-
}
|
|
877
|
+
bodyMapper: Mappers.SqlPool
|
|
811
878
|
},
|
|
812
879
|
202: {
|
|
813
|
-
bodyMapper:
|
|
814
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
815
|
-
}
|
|
880
|
+
bodyMapper: Mappers.SqlPool
|
|
816
881
|
},
|
|
817
882
|
204: {
|
|
818
|
-
bodyMapper:
|
|
819
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
820
|
-
}
|
|
883
|
+
bodyMapper: Mappers.SqlPool
|
|
821
884
|
},
|
|
822
885
|
default: {
|
|
823
886
|
bodyMapper: Mappers.ErrorResponse
|
|
@@ -638,24 +638,16 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
638
638
|
httpMethod: "DELETE",
|
|
639
639
|
responses: {
|
|
640
640
|
200: {
|
|
641
|
-
bodyMapper:
|
|
642
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
643
|
-
}
|
|
641
|
+
bodyMapper: Mappers.Workspace
|
|
644
642
|
},
|
|
645
643
|
201: {
|
|
646
|
-
bodyMapper:
|
|
647
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
648
|
-
}
|
|
644
|
+
bodyMapper: Mappers.Workspace
|
|
649
645
|
},
|
|
650
646
|
202: {
|
|
651
|
-
bodyMapper:
|
|
652
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
653
|
-
}
|
|
647
|
+
bodyMapper: Mappers.Workspace
|
|
654
648
|
},
|
|
655
649
|
204: {
|
|
656
|
-
bodyMapper:
|
|
657
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
658
|
-
}
|
|
650
|
+
bodyMapper: Mappers.Workspace
|
|
659
651
|
},
|
|
660
652
|
default: {
|
|
661
653
|
bodyMapper: Mappers.ErrorResponse
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
GetIntegrationRuntimeStartOptionalParams,
|
|
11
|
+
GetIntegrationRuntimeStartResponse,
|
|
12
|
+
GetIntegrationRuntimeStopOptionalParams,
|
|
13
|
+
GetIntegrationRuntimeStopResponse,
|
|
14
|
+
GetIntegrationRuntimeEnableInteractivequeryOptionalParams,
|
|
15
|
+
GetIntegrationRuntimeEnableInteractivequeryResponse
|
|
16
|
+
} from "../models";
|
|
17
|
+
|
|
18
|
+
/** Interface representing a Get. */
|
|
19
|
+
export interface Get {
|
|
20
|
+
/**
|
|
21
|
+
* Get an integration runtime start operation status
|
|
22
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
23
|
+
* @param workspaceName The name of the workspace.
|
|
24
|
+
* @param integrationRuntimeName Integration runtime name
|
|
25
|
+
* @param integrationRuntimeOperationId Integration runtime Operation Id
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
integrationRuntimeStart(
|
|
29
|
+
resourceGroupName: string,
|
|
30
|
+
workspaceName: string,
|
|
31
|
+
integrationRuntimeName: string,
|
|
32
|
+
integrationRuntimeOperationId: string,
|
|
33
|
+
options?: GetIntegrationRuntimeStartOptionalParams
|
|
34
|
+
): Promise<GetIntegrationRuntimeStartResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Get an integration runtime stop operation status
|
|
37
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
38
|
+
* @param workspaceName The name of the workspace.
|
|
39
|
+
* @param integrationRuntimeName Integration runtime name
|
|
40
|
+
* @param integrationRuntimeOperationId Integration runtime Operation Id
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
integrationRuntimeStop(
|
|
44
|
+
resourceGroupName: string,
|
|
45
|
+
workspaceName: string,
|
|
46
|
+
integrationRuntimeName: string,
|
|
47
|
+
integrationRuntimeOperationId: string,
|
|
48
|
+
options?: GetIntegrationRuntimeStopOptionalParams
|
|
49
|
+
): Promise<GetIntegrationRuntimeStopResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Get an integration runtime enable interactivequery operation status
|
|
52
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
53
|
+
* @param workspaceName The name of the workspace.
|
|
54
|
+
* @param integrationRuntimeName Integration runtime name
|
|
55
|
+
* @param integrationRuntimeOperationId Integration runtime Operation Id
|
|
56
|
+
* @param options The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
integrationRuntimeEnableInteractivequery(
|
|
59
|
+
resourceGroupName: string,
|
|
60
|
+
workspaceName: string,
|
|
61
|
+
integrationRuntimeName: string,
|
|
62
|
+
integrationRuntimeOperationId: string,
|
|
63
|
+
options?: GetIntegrationRuntimeEnableInteractivequeryOptionalParams
|
|
64
|
+
): Promise<GetIntegrationRuntimeEnableInteractivequeryResponse>;
|
|
65
|
+
}
|