@azure/synapse-artifacts 1.0.0-beta.1 → 1.0.0-beta.11
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/README.md +6 -4
- package/dist/index.js +22242 -19304
- package/dist/index.js.map +1 -1
- package/dist-esm/src/artifactsClient.js +89 -0
- package/dist-esm/src/artifactsClient.js.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.js +25 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.js +1200 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.js +23355 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.js +541 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/bigDataPools.js +75 -0
- package/dist-esm/src/operations/bigDataPools.js.map +1 -0
- package/dist-esm/src/operations/dataFlowDebugSession.js +330 -0
- package/dist-esm/src/operations/dataFlowDebugSession.js.map +1 -0
- package/dist-esm/src/operations/dataFlowOperations.js +366 -0
- package/dist-esm/src/operations/dataFlowOperations.js.map +1 -0
- package/dist-esm/src/operations/datasetOperations.js +366 -0
- package/dist-esm/src/operations/datasetOperations.js.map +1 -0
- package/dist-esm/src/operations/index.js +31 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/integrationRuntimes.js +75 -0
- package/dist-esm/src/operations/integrationRuntimes.js.map +1 -0
- package/dist-esm/src/operations/kqlScriptOperations.js +260 -0
- package/dist-esm/src/operations/kqlScriptOperations.js.map +1 -0
- package/dist-esm/src/operations/kqlScripts.js +125 -0
- package/dist-esm/src/operations/kqlScripts.js.map +1 -0
- package/dist-esm/src/operations/library.js +415 -0
- package/dist-esm/src/operations/library.js.map +1 -0
- package/dist-esm/src/operations/linkConnectionOperations.js +389 -0
- package/dist-esm/src/operations/linkConnectionOperations.js.map +1 -0
- package/dist-esm/src/operations/linkedServiceOperations.js +367 -0
- package/dist-esm/src/operations/linkedServiceOperations.js.map +1 -0
- package/dist-esm/src/operations/metastore.js +133 -0
- package/dist-esm/src/operations/metastore.js.map +1 -0
- package/dist-esm/src/operations/notebookOperationResult.js +51 -0
- package/dist-esm/src/operations/notebookOperationResult.js.map +1 -0
- package/dist-esm/src/operations/notebookOperations.js +467 -0
- package/dist-esm/src/operations/notebookOperations.js.map +1 -0
- package/dist-esm/src/operations/pipelineOperations.js +400 -0
- package/dist-esm/src/operations/pipelineOperations.js.map +1 -0
- package/dist-esm/src/operations/pipelineRunOperations.js +136 -0
- package/dist-esm/src/operations/pipelineRunOperations.js.map +1 -0
- package/dist-esm/src/operations/sparkConfigurationOperations.js +367 -0
- package/dist-esm/src/operations/sparkConfigurationOperations.js.map +1 -0
- package/dist-esm/src/operations/sparkJobDefinitionOperations.js +515 -0
- package/dist-esm/src/operations/sparkJobDefinitionOperations.js.map +1 -0
- package/dist-esm/src/operations/sqlPools.js +75 -0
- package/dist-esm/src/operations/sqlPools.js.map +1 -0
- package/dist-esm/src/operations/sqlScriptOperations.js +367 -0
- package/dist-esm/src/operations/sqlScriptOperations.js.map +1 -0
- package/dist-esm/src/operations/triggerOperations.js +596 -0
- package/dist-esm/src/operations/triggerOperations.js.map +1 -0
- package/dist-esm/src/operations/triggerRunOperations.js +110 -0
- package/dist-esm/src/operations/triggerRunOperations.js.map +1 -0
- package/dist-esm/src/operations/workspaceGitRepoManagement.js +53 -0
- package/dist-esm/src/operations/workspaceGitRepoManagement.js.map +1 -0
- package/dist-esm/src/operations/workspaceOperations.js +49 -0
- package/dist-esm/src/operations/workspaceOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/bigDataPools.js +9 -0
- package/dist-esm/src/operationsInterfaces/bigDataPools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataFlowDebugSession.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataFlowDebugSession.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataFlowOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataFlowOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/datasetOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/datasetOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +31 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/integrationRuntimes.js +9 -0
- package/dist-esm/src/operationsInterfaces/integrationRuntimes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/kqlScriptOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/kqlScriptOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/kqlScripts.js +9 -0
- package/dist-esm/src/operationsInterfaces/kqlScripts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/library.js +9 -0
- package/dist-esm/src/operationsInterfaces/library.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkConnectionOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkConnectionOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedServiceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkedServiceOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/metastore.js +9 -0
- package/dist-esm/src/operationsInterfaces/metastore.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/notebookOperationResult.js +9 -0
- package/dist-esm/src/operationsInterfaces/notebookOperationResult.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/notebookOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/notebookOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/pipelineOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/pipelineOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/pipelineRunOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/pipelineRunOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sparkConfigurationOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/sparkConfigurationOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sparkJobDefinitionOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/sparkJobDefinitionOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlPools.js +9 -0
- package/dist-esm/src/operationsInterfaces/sqlPools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlScriptOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/sqlScriptOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/triggerOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/triggerOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/triggerRunOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/triggerRunOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaceGitRepoManagement.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspaceGitRepoManagement.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspaceOperations.js.map +1 -0
- package/dist-esm/src/tracing.js +14 -0
- package/dist-esm/src/tracing.js.map +1 -0
- package/package.json +82 -34
- package/types/synapse-artifacts.d.ts +8115 -11958
- package/CHANGELOG.md +0 -5
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/rollup.config.js +0 -41
- package/tsconfig.json +0 -20
|
@@ -0,0 +1,389 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { tracingClient } from "../tracing";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing LinkConnectionOperations operations. */
|
|
15
|
+
export class LinkConnectionOperationsImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class LinkConnectionOperations class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* List link connections
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
listLinkConnectionsByWorkspace(options) {
|
|
28
|
+
const iter = this.listLinkConnectionsByWorkspacePagingAll(options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: () => {
|
|
37
|
+
return this.listLinkConnectionsByWorkspacePagingPage(options);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
listLinkConnectionsByWorkspacePagingPage(options) {
|
|
42
|
+
return __asyncGenerator(this, arguments, function* listLinkConnectionsByWorkspacePagingPage_1() {
|
|
43
|
+
let result = yield __await(this._listLinkConnectionsByWorkspace(options));
|
|
44
|
+
yield yield __await(result.value || []);
|
|
45
|
+
let continuationToken = result.nextLink;
|
|
46
|
+
while (continuationToken) {
|
|
47
|
+
result = yield __await(this._listLinkConnectionsByWorkspaceNext(continuationToken, options));
|
|
48
|
+
continuationToken = result.nextLink;
|
|
49
|
+
yield yield __await(result.value || []);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
listLinkConnectionsByWorkspacePagingAll(options) {
|
|
54
|
+
return __asyncGenerator(this, arguments, function* listLinkConnectionsByWorkspacePagingAll_1() {
|
|
55
|
+
var e_1, _a;
|
|
56
|
+
try {
|
|
57
|
+
for (var _b = __asyncValues(this.listLinkConnectionsByWorkspacePagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
58
|
+
const page = _c.value;
|
|
59
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
63
|
+
finally {
|
|
64
|
+
try {
|
|
65
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
66
|
+
}
|
|
67
|
+
finally { if (e_1) throw e_1.error; }
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* List link connections
|
|
73
|
+
* @param options The options parameters.
|
|
74
|
+
*/
|
|
75
|
+
async _listLinkConnectionsByWorkspace(options) {
|
|
76
|
+
return tracingClient.withSpan("ArtifactsClient._listLinkConnectionsByWorkspace", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
77
|
+
return this.client.sendOperationRequest({ options }, listLinkConnectionsByWorkspaceOperationSpec);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Creates or updates a link connection
|
|
82
|
+
* @param linkConnectionName The link connection name
|
|
83
|
+
* @param linkConnection Link connection resource definition
|
|
84
|
+
* @param options The options parameters.
|
|
85
|
+
*/
|
|
86
|
+
async createOrUpdateLinkConnection(linkConnectionName, linkConnection, options) {
|
|
87
|
+
return tracingClient.withSpan("ArtifactsClient.createOrUpdateLinkConnection", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
88
|
+
return this.client.sendOperationRequest({ linkConnectionName, linkConnection, options }, createOrUpdateLinkConnectionOperationSpec);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Get a link connection
|
|
93
|
+
* @param linkConnectionName The link connection name
|
|
94
|
+
* @param options The options parameters.
|
|
95
|
+
*/
|
|
96
|
+
async getLinkConnection(linkConnectionName, options) {
|
|
97
|
+
return tracingClient.withSpan("ArtifactsClient.getLinkConnection", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
98
|
+
return this.client.sendOperationRequest({ linkConnectionName, options }, getLinkConnectionOperationSpec);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Delete a link connection
|
|
103
|
+
* @param linkConnectionName The link connection name
|
|
104
|
+
* @param options The options parameters.
|
|
105
|
+
*/
|
|
106
|
+
async deleteLinkConnection(linkConnectionName, options) {
|
|
107
|
+
return tracingClient.withSpan("ArtifactsClient.deleteLinkConnection", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
108
|
+
return this.client.sendOperationRequest({ linkConnectionName, options }, deleteLinkConnectionOperationSpec);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Edit tables for a link connection
|
|
113
|
+
* @param linkConnectionName The link connection name
|
|
114
|
+
* @param editTablesRequest Edit tables request
|
|
115
|
+
* @param options The options parameters.
|
|
116
|
+
*/
|
|
117
|
+
async editTables(linkConnectionName, editTablesRequest, options) {
|
|
118
|
+
return tracingClient.withSpan("ArtifactsClient.editTables", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
119
|
+
return this.client.sendOperationRequest({ linkConnectionName, editTablesRequest, options }, editTablesOperationSpec);
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Start a link connection
|
|
124
|
+
* @param linkConnectionName The link connection name
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
async start(linkConnectionName, options) {
|
|
128
|
+
return tracingClient.withSpan("ArtifactsClient.start", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
129
|
+
return this.client.sendOperationRequest({ linkConnectionName, options }, startOperationSpec);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Stop a link connection
|
|
134
|
+
* @param linkConnectionName The link connection name
|
|
135
|
+
* @param options The options parameters.
|
|
136
|
+
*/
|
|
137
|
+
async stop(linkConnectionName, options) {
|
|
138
|
+
return tracingClient.withSpan("ArtifactsClient.stop", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
139
|
+
return this.client.sendOperationRequest({ linkConnectionName, options }, stopOperationSpec);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Get the detailed status of a link connection
|
|
144
|
+
* @param linkConnectionName The link connection name
|
|
145
|
+
* @param options The options parameters.
|
|
146
|
+
*/
|
|
147
|
+
async getDetailedStatus(linkConnectionName, options) {
|
|
148
|
+
return tracingClient.withSpan("ArtifactsClient.getDetailedStatus", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
149
|
+
return this.client.sendOperationRequest({ linkConnectionName, options }, getDetailedStatusOperationSpec);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* List the link tables of a link connection
|
|
154
|
+
* @param linkConnectionName The link connection name
|
|
155
|
+
* @param options The options parameters.
|
|
156
|
+
*/
|
|
157
|
+
async listLinkTables(linkConnectionName, options) {
|
|
158
|
+
return tracingClient.withSpan("ArtifactsClient.listLinkTables", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
159
|
+
return this.client.sendOperationRequest({ linkConnectionName, options }, listLinkTablesOperationSpec);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Query the link table status of a link connection
|
|
164
|
+
* @param linkConnectionName The link connection name
|
|
165
|
+
* @param queryTableStatusRequest Query table status request
|
|
166
|
+
* @param options The options parameters.
|
|
167
|
+
*/
|
|
168
|
+
async queryTableStatus(linkConnectionName, queryTableStatusRequest, options) {
|
|
169
|
+
return tracingClient.withSpan("ArtifactsClient.queryTableStatus", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
170
|
+
return this.client.sendOperationRequest({ linkConnectionName, queryTableStatusRequest, options }, queryTableStatusOperationSpec);
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Update landing zone credential of a link connection
|
|
175
|
+
* @param linkConnectionName The link connection name
|
|
176
|
+
* @param updateLandingZoneCredentialRequest update landing zone credential request
|
|
177
|
+
* @param options The options parameters.
|
|
178
|
+
*/
|
|
179
|
+
async updateLandingZoneCredential(linkConnectionName, updateLandingZoneCredentialRequest, options) {
|
|
180
|
+
return tracingClient.withSpan("ArtifactsClient.updateLandingZoneCredential", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
181
|
+
return this.client.sendOperationRequest({ linkConnectionName, updateLandingZoneCredentialRequest, options }, updateLandingZoneCredentialOperationSpec);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* ListLinkConnectionsByWorkspaceNext
|
|
186
|
+
* @param nextLink The nextLink from the previous successful call to the ListLinkConnectionsByWorkspace
|
|
187
|
+
* method.
|
|
188
|
+
* @param options The options parameters.
|
|
189
|
+
*/
|
|
190
|
+
async _listLinkConnectionsByWorkspaceNext(nextLink, options) {
|
|
191
|
+
return tracingClient.withSpan("ArtifactsClient._listLinkConnectionsByWorkspaceNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
192
|
+
return this.client.sendOperationRequest({ nextLink, options }, listLinkConnectionsByWorkspaceNextOperationSpec);
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// Operation Specifications
|
|
197
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
198
|
+
const listLinkConnectionsByWorkspaceOperationSpec = {
|
|
199
|
+
path: "/linkconnections",
|
|
200
|
+
httpMethod: "GET",
|
|
201
|
+
responses: {
|
|
202
|
+
200: {
|
|
203
|
+
bodyMapper: Mappers.LinkConnectionListResponse
|
|
204
|
+
},
|
|
205
|
+
default: {
|
|
206
|
+
bodyMapper: Mappers.CloudError
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
queryParameters: [Parameters.apiVersion],
|
|
210
|
+
urlParameters: [Parameters.endpoint],
|
|
211
|
+
headerParameters: [Parameters.accept],
|
|
212
|
+
serializer
|
|
213
|
+
};
|
|
214
|
+
const createOrUpdateLinkConnectionOperationSpec = {
|
|
215
|
+
path: "/linkconnections/{linkConnectionName}",
|
|
216
|
+
httpMethod: "PUT",
|
|
217
|
+
responses: {
|
|
218
|
+
200: {
|
|
219
|
+
bodyMapper: Mappers.LinkConnectionResource
|
|
220
|
+
},
|
|
221
|
+
default: {
|
|
222
|
+
bodyMapper: Mappers.CloudError
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
requestBody: Parameters.linkConnection,
|
|
226
|
+
queryParameters: [Parameters.apiVersion],
|
|
227
|
+
urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],
|
|
228
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
229
|
+
mediaType: "json",
|
|
230
|
+
serializer
|
|
231
|
+
};
|
|
232
|
+
const getLinkConnectionOperationSpec = {
|
|
233
|
+
path: "/linkconnections/{linkConnectionName}",
|
|
234
|
+
httpMethod: "GET",
|
|
235
|
+
responses: {
|
|
236
|
+
200: {
|
|
237
|
+
bodyMapper: Mappers.LinkConnectionResource
|
|
238
|
+
},
|
|
239
|
+
default: {
|
|
240
|
+
bodyMapper: Mappers.CloudError
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
queryParameters: [Parameters.apiVersion],
|
|
244
|
+
urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],
|
|
245
|
+
headerParameters: [Parameters.accept],
|
|
246
|
+
serializer
|
|
247
|
+
};
|
|
248
|
+
const deleteLinkConnectionOperationSpec = {
|
|
249
|
+
path: "/linkconnections/{linkConnectionName}",
|
|
250
|
+
httpMethod: "DELETE",
|
|
251
|
+
responses: {
|
|
252
|
+
200: {},
|
|
253
|
+
204: {},
|
|
254
|
+
default: {
|
|
255
|
+
bodyMapper: Mappers.CloudError
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
queryParameters: [Parameters.apiVersion],
|
|
259
|
+
urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],
|
|
260
|
+
headerParameters: [Parameters.accept],
|
|
261
|
+
serializer
|
|
262
|
+
};
|
|
263
|
+
const editTablesOperationSpec = {
|
|
264
|
+
path: "/linkconnections/{linkConnectionName}/edittables",
|
|
265
|
+
httpMethod: "POST",
|
|
266
|
+
responses: {
|
|
267
|
+
200: {},
|
|
268
|
+
default: {
|
|
269
|
+
bodyMapper: Mappers.CloudError
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
requestBody: Parameters.editTablesRequest,
|
|
273
|
+
queryParameters: [Parameters.apiVersion],
|
|
274
|
+
urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],
|
|
275
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
276
|
+
mediaType: "json",
|
|
277
|
+
serializer
|
|
278
|
+
};
|
|
279
|
+
const startOperationSpec = {
|
|
280
|
+
path: "/linkconnections/{linkConnectionName}/start",
|
|
281
|
+
httpMethod: "POST",
|
|
282
|
+
responses: {
|
|
283
|
+
200: {},
|
|
284
|
+
default: {
|
|
285
|
+
bodyMapper: Mappers.CloudError
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
queryParameters: [Parameters.apiVersion],
|
|
289
|
+
urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],
|
|
290
|
+
headerParameters: [Parameters.accept],
|
|
291
|
+
serializer
|
|
292
|
+
};
|
|
293
|
+
const stopOperationSpec = {
|
|
294
|
+
path: "/linkconnections/{linkConnectionName}/stop",
|
|
295
|
+
httpMethod: "POST",
|
|
296
|
+
responses: {
|
|
297
|
+
200: {},
|
|
298
|
+
default: {
|
|
299
|
+
bodyMapper: Mappers.CloudError
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
queryParameters: [Parameters.apiVersion],
|
|
303
|
+
urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],
|
|
304
|
+
headerParameters: [Parameters.accept],
|
|
305
|
+
serializer
|
|
306
|
+
};
|
|
307
|
+
const getDetailedStatusOperationSpec = {
|
|
308
|
+
path: "/linkconnections/{linkConnectionName}/detailedstatus",
|
|
309
|
+
httpMethod: "GET",
|
|
310
|
+
responses: {
|
|
311
|
+
200: {
|
|
312
|
+
bodyMapper: Mappers.LinkConnectionDetailedStatus
|
|
313
|
+
},
|
|
314
|
+
default: {
|
|
315
|
+
bodyMapper: Mappers.CloudError
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
queryParameters: [Parameters.apiVersion],
|
|
319
|
+
urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],
|
|
320
|
+
headerParameters: [Parameters.accept],
|
|
321
|
+
serializer
|
|
322
|
+
};
|
|
323
|
+
const listLinkTablesOperationSpec = {
|
|
324
|
+
path: "/linkconnections/{linkConnectionName}/linktables",
|
|
325
|
+
httpMethod: "GET",
|
|
326
|
+
responses: {
|
|
327
|
+
200: {
|
|
328
|
+
bodyMapper: Mappers.LinkTableListResponse
|
|
329
|
+
},
|
|
330
|
+
default: {
|
|
331
|
+
bodyMapper: Mappers.CloudError
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
queryParameters: [Parameters.apiVersion],
|
|
335
|
+
urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],
|
|
336
|
+
headerParameters: [Parameters.accept],
|
|
337
|
+
serializer
|
|
338
|
+
};
|
|
339
|
+
const queryTableStatusOperationSpec = {
|
|
340
|
+
path: "/linkconnections/{linkConnectionName}/querytablestatus",
|
|
341
|
+
httpMethod: "POST",
|
|
342
|
+
responses: {
|
|
343
|
+
200: {
|
|
344
|
+
bodyMapper: Mappers.LinkConnectionQueryTableStatus
|
|
345
|
+
},
|
|
346
|
+
default: {
|
|
347
|
+
bodyMapper: Mappers.CloudError
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
requestBody: Parameters.queryTableStatusRequest,
|
|
351
|
+
queryParameters: [Parameters.apiVersion],
|
|
352
|
+
urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],
|
|
353
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
354
|
+
mediaType: "json",
|
|
355
|
+
serializer
|
|
356
|
+
};
|
|
357
|
+
const updateLandingZoneCredentialOperationSpec = {
|
|
358
|
+
path: "/linkconnections/{linkConnectionName}/updateLandingZoneCredential",
|
|
359
|
+
httpMethod: "POST",
|
|
360
|
+
responses: {
|
|
361
|
+
200: {},
|
|
362
|
+
default: {
|
|
363
|
+
bodyMapper: Mappers.CloudError
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
requestBody: Parameters.updateLandingZoneCredentialRequest,
|
|
367
|
+
queryParameters: [Parameters.apiVersion],
|
|
368
|
+
urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],
|
|
369
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
370
|
+
mediaType: "json",
|
|
371
|
+
serializer
|
|
372
|
+
};
|
|
373
|
+
const listLinkConnectionsByWorkspaceNextOperationSpec = {
|
|
374
|
+
path: "{nextLink}",
|
|
375
|
+
httpMethod: "GET",
|
|
376
|
+
responses: {
|
|
377
|
+
200: {
|
|
378
|
+
bodyMapper: Mappers.LinkConnectionListResponse
|
|
379
|
+
},
|
|
380
|
+
default: {
|
|
381
|
+
bodyMapper: Mappers.CloudError
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
queryParameters: [Parameters.apiVersion],
|
|
385
|
+
urlParameters: [Parameters.endpoint, Parameters.nextLink],
|
|
386
|
+
headerParameters: [Parameters.accept],
|
|
387
|
+
serializer
|
|
388
|
+
};
|
|
389
|
+
//# sourceMappingURL=linkConnectionOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkConnectionOperations.js","sourceRoot":"","sources":["../../../src/operations/linkConnectionOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO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Q,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACnE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,mEAAmE;IACzE,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,kCAAkC;IAC1D,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACnE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,+CAA+C,GAA6B;IAChF,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { LinkConnectionOperations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ArtifactsClient } from \"../artifactsClient\";\nimport {\n LinkConnectionResource,\n LinkConnectionListLinkConnectionsByWorkspaceNextOptionalParams,\n LinkConnectionListLinkConnectionsByWorkspaceOptionalParams,\n LinkConnectionListLinkConnectionsByWorkspaceResponse,\n LinkConnectionCreateOrUpdateLinkConnectionOptionalParams,\n LinkConnectionCreateOrUpdateLinkConnectionResponse,\n LinkConnectionGetLinkConnectionOptionalParams,\n LinkConnectionGetLinkConnectionResponse,\n LinkConnectionDeleteLinkConnectionOptionalParams,\n EditTablesRequest,\n LinkConnectionEditTablesOptionalParams,\n LinkConnectionStartOptionalParams,\n LinkConnectionStopOptionalParams,\n LinkConnectionGetDetailedStatusOptionalParams,\n LinkConnectionGetDetailedStatusResponse,\n LinkConnectionListLinkTablesOptionalParams,\n LinkConnectionListLinkTablesResponse,\n QueryTableStatusRequest,\n LinkConnectionQueryTableStatusOptionalParams,\n LinkConnectionQueryTableStatusResponse,\n UpdateLandingZoneCredential,\n LinkConnectionUpdateLandingZoneCredentialOptionalParams,\n LinkConnectionListLinkConnectionsByWorkspaceNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LinkConnectionOperations operations. */\nexport class LinkConnectionOperationsImpl implements LinkConnectionOperations {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class LinkConnectionOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * List link connections\n * @param options The options parameters.\n */\n public listLinkConnectionsByWorkspace(\n options?: LinkConnectionListLinkConnectionsByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<LinkConnectionResource> {\n const iter = this.listLinkConnectionsByWorkspacePagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listLinkConnectionsByWorkspacePagingPage(options);\n }\n };\n }\n\n private async *listLinkConnectionsByWorkspacePagingPage(\n options?: LinkConnectionListLinkConnectionsByWorkspaceOptionalParams\n ): AsyncIterableIterator<LinkConnectionResource[]> {\n let result = await this._listLinkConnectionsByWorkspace(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listLinkConnectionsByWorkspaceNext(\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listLinkConnectionsByWorkspacePagingAll(\n options?: LinkConnectionListLinkConnectionsByWorkspaceOptionalParams\n ): AsyncIterableIterator<LinkConnectionResource> {\n for await (const page of this.listLinkConnectionsByWorkspacePagingPage(\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List link connections\n * @param options The options parameters.\n */\n private async _listLinkConnectionsByWorkspace(\n options?: LinkConnectionListLinkConnectionsByWorkspaceOptionalParams\n ): Promise<LinkConnectionListLinkConnectionsByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listLinkConnectionsByWorkspace\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n listLinkConnectionsByWorkspaceOperationSpec\n ) as Promise<LinkConnectionListLinkConnectionsByWorkspaceResponse>;\n }\n );\n }\n\n /**\n * Creates or updates a link connection\n * @param linkConnectionName The link connection name\n * @param linkConnection Link connection resource definition\n * @param options The options parameters.\n */\n async createOrUpdateLinkConnection(\n linkConnectionName: string,\n linkConnection: LinkConnectionResource,\n options?: LinkConnectionCreateOrUpdateLinkConnectionOptionalParams\n ): Promise<LinkConnectionCreateOrUpdateLinkConnectionResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.createOrUpdateLinkConnection\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, linkConnection, options },\n createOrUpdateLinkConnectionOperationSpec\n ) as Promise<LinkConnectionCreateOrUpdateLinkConnectionResponse>;\n }\n );\n }\n\n /**\n * Get a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async getLinkConnection(\n linkConnectionName: string,\n options?: LinkConnectionGetLinkConnectionOptionalParams\n ): Promise<LinkConnectionGetLinkConnectionResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getLinkConnection\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n getLinkConnectionOperationSpec\n ) as Promise<LinkConnectionGetLinkConnectionResponse>;\n }\n );\n }\n\n /**\n * Delete a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async deleteLinkConnection(\n linkConnectionName: string,\n options?: LinkConnectionDeleteLinkConnectionOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.deleteLinkConnection\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n deleteLinkConnectionOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Edit tables for a link connection\n * @param linkConnectionName The link connection name\n * @param editTablesRequest Edit tables request\n * @param options The options parameters.\n */\n async editTables(\n linkConnectionName: string,\n editTablesRequest: EditTablesRequest,\n options?: LinkConnectionEditTablesOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.editTables\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, editTablesRequest, options },\n editTablesOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Start a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async start(\n linkConnectionName: string,\n options?: LinkConnectionStartOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.start\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n startOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Stop a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async stop(\n linkConnectionName: string,\n options?: LinkConnectionStopOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.stop\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n stopOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Get the detailed status of a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async getDetailedStatus(\n linkConnectionName: string,\n options?: LinkConnectionGetDetailedStatusOptionalParams\n ): Promise<LinkConnectionGetDetailedStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getDetailedStatus\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n getDetailedStatusOperationSpec\n ) as Promise<LinkConnectionGetDetailedStatusResponse>;\n }\n );\n }\n\n /**\n * List the link tables of a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async listLinkTables(\n linkConnectionName: string,\n options?: LinkConnectionListLinkTablesOptionalParams\n ): Promise<LinkConnectionListLinkTablesResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.listLinkTables\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n listLinkTablesOperationSpec\n ) as Promise<LinkConnectionListLinkTablesResponse>;\n }\n );\n }\n\n /**\n * Query the link table status of a link connection\n * @param linkConnectionName The link connection name\n * @param queryTableStatusRequest Query table status request\n * @param options The options parameters.\n */\n async queryTableStatus(\n linkConnectionName: string,\n queryTableStatusRequest: QueryTableStatusRequest,\n options?: LinkConnectionQueryTableStatusOptionalParams\n ): Promise<LinkConnectionQueryTableStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.queryTableStatus\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, queryTableStatusRequest, options },\n queryTableStatusOperationSpec\n ) as Promise<LinkConnectionQueryTableStatusResponse>;\n }\n );\n }\n\n /**\n * Update landing zone credential of a link connection\n * @param linkConnectionName The link connection name\n * @param updateLandingZoneCredentialRequest update landing zone credential request\n * @param options The options parameters.\n */\n async updateLandingZoneCredential(\n linkConnectionName: string,\n updateLandingZoneCredentialRequest: UpdateLandingZoneCredential,\n options?: LinkConnectionUpdateLandingZoneCredentialOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.updateLandingZoneCredential\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updateLandingZoneCredentialRequest, options },\n updateLandingZoneCredentialOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * ListLinkConnectionsByWorkspaceNext\n * @param nextLink The nextLink from the previous successful call to the ListLinkConnectionsByWorkspace\n * method.\n * @param options The options parameters.\n */\n private async _listLinkConnectionsByWorkspaceNext(\n nextLink: string,\n options?: LinkConnectionListLinkConnectionsByWorkspaceNextOptionalParams\n ): Promise<LinkConnectionListLinkConnectionsByWorkspaceNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listLinkConnectionsByWorkspaceNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listLinkConnectionsByWorkspaceNextOperationSpec\n ) as Promise<LinkConnectionListLinkConnectionsByWorkspaceNextResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listLinkConnectionsByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateLinkConnectionOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.linkConnection,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getLinkConnectionOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteLinkConnectionOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst editTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/edittables\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.editTablesRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst startOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst stopOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/stop\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getDetailedStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/detailedstatus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionDetailedStatus\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listLinkTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/linktables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkTableListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst queryTableStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/querytablestatus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionQueryTableStatus\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.queryTableStatusRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateLandingZoneCredentialOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/updateLandingZoneCredential\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.updateLandingZoneCredentialRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listLinkConnectionsByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|