@azure/arm-datacatalog 2.0.0 → 3.0.0
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 +11 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +1 -1
- package/README.md +70 -78
- package/dist/index.js +668 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/dataCatalogRestClient.d.ts +22 -0
- package/dist-esm/src/dataCatalogRestClient.d.ts.map +1 -0
- package/dist-esm/src/dataCatalogRestClient.js +58 -0
- package/dist-esm/src/dataCatalogRestClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +4 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/aDCOperationsMappers.js → dist-esm/src/index.js} +4 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +133 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +14 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +9 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +101 -116
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +10 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +92 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/aDCCatalogs.d.ts +62 -0
- package/dist-esm/src/operations/aDCCatalogs.d.ts.map +1 -0
- package/dist-esm/src/operations/aDCCatalogs.js +208 -0
- package/dist-esm/src/operations/aDCCatalogs.js.map +1 -0
- package/dist-esm/src/operations/aDCOperations.d.ts +18 -0
- package/dist-esm/src/operations/aDCOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/aDCOperations.js +43 -0
- package/dist-esm/src/operations/aDCOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/aDCCatalogs.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/aDCCatalogs.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/aDCCatalogs.js} +2 -1
- package/dist-esm/src/operationsInterfaces/aDCCatalogs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/aDCOperations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/aDCOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/aDCOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/aDCOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +10 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +69 -32
- package/review/arm-datacatalog.api.md +157 -0
- package/rollup.config.js +181 -30
- package/src/dataCatalogRestClient.ts +70 -37
- package/src/{models/aDCCatalogsMappers.ts → index.ts} +3 -8
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +108 -207
- package/src/models/mappers.ts +104 -119
- package/src/models/parameters.ts +59 -20
- package/src/operations/aDCCatalogs.ts +193 -251
- package/src/operations/aDCOperations.ts +27 -44
- package/src/operations/index.ts +1 -2
- package/src/operationsInterfaces/aDCCatalogs.ts +93 -0
- package/src/operationsInterfaces/aDCOperations.ts +23 -0
- package/src/{models/aDCOperationsMappers.ts → operationsInterfaces/index.ts} +2 -6
- package/tsconfig.json +3 -3
- package/types/arm-datacatalog.d.ts +237 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-datacatalog.js +0 -765
- package/dist/arm-datacatalog.js.map +0 -1
- package/dist/arm-datacatalog.min.js +0 -1
- package/dist/arm-datacatalog.min.js.map +0 -1
- package/esm/dataCatalogRestClient.d.ts +0 -28
- package/esm/dataCatalogRestClient.d.ts.map +0 -1
- package/esm/dataCatalogRestClient.js +0 -41
- package/esm/dataCatalogRestClient.js.map +0 -1
- package/esm/dataCatalogRestClientContext.d.ts +0 -26
- package/esm/dataCatalogRestClientContext.d.ts.map +0 -1
- package/esm/dataCatalogRestClientContext.js +0 -67
- package/esm/dataCatalogRestClientContext.js.map +0 -1
- package/esm/models/aDCCatalogsMappers.d.ts +0 -2
- package/esm/models/aDCCatalogsMappers.d.ts.map +0 -1
- package/esm/models/aDCCatalogsMappers.js +0 -9
- package/esm/models/aDCCatalogsMappers.js.map +0 -1
- package/esm/models/aDCOperationsMappers.d.ts +0 -2
- package/esm/models/aDCOperationsMappers.d.ts.map +0 -1
- package/esm/models/aDCOperationsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -235
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -11
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -7
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -64
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/aDCCatalogs.d.ts +0 -131
- package/esm/operations/aDCCatalogs.d.ts.map +0 -1
- package/esm/operations/aDCCatalogs.js +0 -209
- package/esm/operations/aDCCatalogs.js.map +0 -1
- package/esm/operations/aDCOperations.d.ts +0 -28
- package/esm/operations/aDCOperations.d.ts.map +0 -1
- package/esm/operations/aDCOperations.js +0 -50
- package/esm/operations/aDCOperations.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/src/dataCatalogRestClientContext.ts +0 -75
package/dist/index.js
ADDED
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
var coreLro = require('@azure/core-lro');
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*
|
|
13
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
|
+
*/
|
|
16
|
+
(function (KnownSkuType) {
|
|
17
|
+
KnownSkuType["Free"] = "Free";
|
|
18
|
+
KnownSkuType["Standard"] = "Standard";
|
|
19
|
+
})(exports.KnownSkuType || (exports.KnownSkuType = {}));
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* Copyright (c) Microsoft Corporation.
|
|
23
|
+
* Licensed under the MIT License.
|
|
24
|
+
*
|
|
25
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
26
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
27
|
+
*/
|
|
28
|
+
const OperationEntityListResult = {
|
|
29
|
+
type: {
|
|
30
|
+
name: "Composite",
|
|
31
|
+
className: "OperationEntityListResult",
|
|
32
|
+
modelProperties: {
|
|
33
|
+
value: {
|
|
34
|
+
serializedName: "value",
|
|
35
|
+
type: {
|
|
36
|
+
name: "Sequence",
|
|
37
|
+
element: {
|
|
38
|
+
type: {
|
|
39
|
+
name: "Composite",
|
|
40
|
+
className: "OperationEntity"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const OperationEntity = {
|
|
49
|
+
type: {
|
|
50
|
+
name: "Composite",
|
|
51
|
+
className: "OperationEntity",
|
|
52
|
+
modelProperties: {
|
|
53
|
+
name: {
|
|
54
|
+
serializedName: "name",
|
|
55
|
+
type: {
|
|
56
|
+
name: "String"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
display: {
|
|
60
|
+
serializedName: "display",
|
|
61
|
+
type: {
|
|
62
|
+
name: "Composite",
|
|
63
|
+
className: "OperationDisplayInfo"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const OperationDisplayInfo = {
|
|
70
|
+
type: {
|
|
71
|
+
name: "Composite",
|
|
72
|
+
className: "OperationDisplayInfo",
|
|
73
|
+
modelProperties: {
|
|
74
|
+
description: {
|
|
75
|
+
serializedName: "description",
|
|
76
|
+
type: {
|
|
77
|
+
name: "String"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
operation: {
|
|
81
|
+
serializedName: "operation",
|
|
82
|
+
type: {
|
|
83
|
+
name: "String"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
provider: {
|
|
87
|
+
serializedName: "provider",
|
|
88
|
+
type: {
|
|
89
|
+
name: "String"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
resource: {
|
|
93
|
+
serializedName: "resource",
|
|
94
|
+
type: {
|
|
95
|
+
name: "String"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const ADCCatalogsListResult = {
|
|
102
|
+
type: {
|
|
103
|
+
name: "Composite",
|
|
104
|
+
className: "ADCCatalogsListResult",
|
|
105
|
+
modelProperties: {
|
|
106
|
+
value: {
|
|
107
|
+
serializedName: "value",
|
|
108
|
+
type: {
|
|
109
|
+
name: "Sequence",
|
|
110
|
+
element: {
|
|
111
|
+
type: {
|
|
112
|
+
name: "Composite",
|
|
113
|
+
className: "ADCCatalog"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
const Principals = {
|
|
122
|
+
type: {
|
|
123
|
+
name: "Composite",
|
|
124
|
+
className: "Principals",
|
|
125
|
+
modelProperties: {
|
|
126
|
+
upn: {
|
|
127
|
+
serializedName: "upn",
|
|
128
|
+
type: {
|
|
129
|
+
name: "String"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
objectId: {
|
|
133
|
+
serializedName: "objectId",
|
|
134
|
+
type: {
|
|
135
|
+
name: "String"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
const Resource = {
|
|
142
|
+
type: {
|
|
143
|
+
name: "Composite",
|
|
144
|
+
className: "Resource",
|
|
145
|
+
modelProperties: {
|
|
146
|
+
id: {
|
|
147
|
+
serializedName: "id",
|
|
148
|
+
readOnly: true,
|
|
149
|
+
type: {
|
|
150
|
+
name: "String"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
name: {
|
|
154
|
+
serializedName: "name",
|
|
155
|
+
readOnly: true,
|
|
156
|
+
type: {
|
|
157
|
+
name: "String"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
type: {
|
|
161
|
+
serializedName: "type",
|
|
162
|
+
readOnly: true,
|
|
163
|
+
type: {
|
|
164
|
+
name: "String"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
location: {
|
|
168
|
+
serializedName: "location",
|
|
169
|
+
type: {
|
|
170
|
+
name: "String"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
tags: {
|
|
174
|
+
serializedName: "tags",
|
|
175
|
+
type: {
|
|
176
|
+
name: "Dictionary",
|
|
177
|
+
value: { type: { name: "String" } }
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
etag: {
|
|
181
|
+
serializedName: "etag",
|
|
182
|
+
type: {
|
|
183
|
+
name: "String"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
const ADCCatalog = {
|
|
190
|
+
type: {
|
|
191
|
+
name: "Composite",
|
|
192
|
+
className: "ADCCatalog",
|
|
193
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { sku: {
|
|
194
|
+
serializedName: "properties.sku",
|
|
195
|
+
type: {
|
|
196
|
+
name: "String"
|
|
197
|
+
}
|
|
198
|
+
}, units: {
|
|
199
|
+
serializedName: "properties.units",
|
|
200
|
+
type: {
|
|
201
|
+
name: "Number"
|
|
202
|
+
}
|
|
203
|
+
}, admins: {
|
|
204
|
+
serializedName: "properties.admins",
|
|
205
|
+
type: {
|
|
206
|
+
name: "Sequence",
|
|
207
|
+
element: {
|
|
208
|
+
type: {
|
|
209
|
+
name: "Composite",
|
|
210
|
+
className: "Principals"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}, users: {
|
|
215
|
+
serializedName: "properties.users",
|
|
216
|
+
type: {
|
|
217
|
+
name: "Sequence",
|
|
218
|
+
element: {
|
|
219
|
+
type: {
|
|
220
|
+
name: "Composite",
|
|
221
|
+
className: "Principals"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}, successfullyProvisioned: {
|
|
226
|
+
serializedName: "properties.successfullyProvisioned",
|
|
227
|
+
type: {
|
|
228
|
+
name: "Boolean"
|
|
229
|
+
}
|
|
230
|
+
}, enableAutomaticUnitAdjustment: {
|
|
231
|
+
serializedName: "properties.enableAutomaticUnitAdjustment",
|
|
232
|
+
type: {
|
|
233
|
+
name: "Boolean"
|
|
234
|
+
}
|
|
235
|
+
} })
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
240
|
+
__proto__: null,
|
|
241
|
+
OperationEntityListResult: OperationEntityListResult,
|
|
242
|
+
OperationEntity: OperationEntity,
|
|
243
|
+
OperationDisplayInfo: OperationDisplayInfo,
|
|
244
|
+
ADCCatalogsListResult: ADCCatalogsListResult,
|
|
245
|
+
Principals: Principals,
|
|
246
|
+
Resource: Resource,
|
|
247
|
+
ADCCatalog: ADCCatalog
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
/*
|
|
251
|
+
* Copyright (c) Microsoft Corporation.
|
|
252
|
+
* Licensed under the MIT License.
|
|
253
|
+
*
|
|
254
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
255
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
256
|
+
*/
|
|
257
|
+
const accept = {
|
|
258
|
+
parameterPath: "accept",
|
|
259
|
+
mapper: {
|
|
260
|
+
defaultValue: "application/json",
|
|
261
|
+
isConstant: true,
|
|
262
|
+
serializedName: "Accept",
|
|
263
|
+
type: {
|
|
264
|
+
name: "String"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
const $host = {
|
|
269
|
+
parameterPath: "$host",
|
|
270
|
+
mapper: {
|
|
271
|
+
serializedName: "$host",
|
|
272
|
+
required: true,
|
|
273
|
+
type: {
|
|
274
|
+
name: "String"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
skipEncoding: true
|
|
278
|
+
};
|
|
279
|
+
const apiVersion = {
|
|
280
|
+
parameterPath: "apiVersion",
|
|
281
|
+
mapper: {
|
|
282
|
+
defaultValue: "2016-03-30",
|
|
283
|
+
isConstant: true,
|
|
284
|
+
serializedName: "api-version",
|
|
285
|
+
type: {
|
|
286
|
+
name: "String"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
const subscriptionId = {
|
|
291
|
+
parameterPath: "subscriptionId",
|
|
292
|
+
mapper: {
|
|
293
|
+
serializedName: "subscriptionId",
|
|
294
|
+
required: true,
|
|
295
|
+
type: {
|
|
296
|
+
name: "String"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
const resourceGroupName = {
|
|
301
|
+
parameterPath: "resourceGroupName",
|
|
302
|
+
mapper: {
|
|
303
|
+
constraints: {
|
|
304
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
|
305
|
+
MaxLength: 90,
|
|
306
|
+
MinLength: 1
|
|
307
|
+
},
|
|
308
|
+
serializedName: "resourceGroupName",
|
|
309
|
+
required: true,
|
|
310
|
+
type: {
|
|
311
|
+
name: "String"
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
const contentType = {
|
|
316
|
+
parameterPath: ["options", "contentType"],
|
|
317
|
+
mapper: {
|
|
318
|
+
defaultValue: "application/json",
|
|
319
|
+
isConstant: true,
|
|
320
|
+
serializedName: "Content-Type",
|
|
321
|
+
type: {
|
|
322
|
+
name: "String"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
const properties = {
|
|
327
|
+
parameterPath: "properties",
|
|
328
|
+
mapper: ADCCatalog
|
|
329
|
+
};
|
|
330
|
+
const catalogName = {
|
|
331
|
+
parameterPath: "catalogName",
|
|
332
|
+
mapper: {
|
|
333
|
+
serializedName: "catalogName",
|
|
334
|
+
required: true,
|
|
335
|
+
type: {
|
|
336
|
+
name: "String"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
/*
|
|
342
|
+
* Copyright (c) Microsoft Corporation.
|
|
343
|
+
* Licensed under the MIT License.
|
|
344
|
+
*
|
|
345
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
346
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
347
|
+
*/
|
|
348
|
+
/** Class containing ADCOperations operations. */
|
|
349
|
+
class ADCOperationsImpl {
|
|
350
|
+
/**
|
|
351
|
+
* Initialize a new instance of the class ADCOperations class.
|
|
352
|
+
* @param client Reference to the service client
|
|
353
|
+
*/
|
|
354
|
+
constructor(client) {
|
|
355
|
+
this.client = client;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Lists all the available Azure Data Catalog service operations.
|
|
359
|
+
* @param options The options parameters.
|
|
360
|
+
*/
|
|
361
|
+
list(options) {
|
|
362
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
// Operation Specifications
|
|
366
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
367
|
+
const listOperationSpec = {
|
|
368
|
+
path: "/providers/Microsoft.DataCatalog/operations",
|
|
369
|
+
httpMethod: "GET",
|
|
370
|
+
responses: {
|
|
371
|
+
200: {
|
|
372
|
+
bodyMapper: OperationEntityListResult
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
queryParameters: [apiVersion],
|
|
376
|
+
urlParameters: [$host],
|
|
377
|
+
headerParameters: [accept],
|
|
378
|
+
serializer
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
/*
|
|
382
|
+
* Copyright (c) Microsoft Corporation.
|
|
383
|
+
* Licensed under the MIT License.
|
|
384
|
+
*
|
|
385
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
386
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
387
|
+
*/
|
|
388
|
+
class LroImpl {
|
|
389
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
390
|
+
this.sendOperationFn = sendOperationFn;
|
|
391
|
+
this.args = args;
|
|
392
|
+
this.spec = spec;
|
|
393
|
+
this.requestPath = requestPath;
|
|
394
|
+
this.requestMethod = requestMethod;
|
|
395
|
+
}
|
|
396
|
+
sendInitialRequest() {
|
|
397
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
398
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
sendPollRequest(path) {
|
|
402
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
403
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
404
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/*
|
|
410
|
+
* Copyright (c) Microsoft Corporation.
|
|
411
|
+
* Licensed under the MIT License.
|
|
412
|
+
*
|
|
413
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
414
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
415
|
+
*/
|
|
416
|
+
/** Class containing ADCCatalogs operations. */
|
|
417
|
+
class ADCCatalogsImpl {
|
|
418
|
+
/**
|
|
419
|
+
* Initialize a new instance of the class ADCCatalogs class.
|
|
420
|
+
* @param client Reference to the service client
|
|
421
|
+
*/
|
|
422
|
+
constructor(client) {
|
|
423
|
+
this.client = client;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* The List catalogs in Resource Group operation lists all the Azure Data Catalogs available under the
|
|
427
|
+
* given resource group.
|
|
428
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
429
|
+
* case insensitive.
|
|
430
|
+
* @param options The options parameters.
|
|
431
|
+
*/
|
|
432
|
+
listtByResourceGroup(resourceGroupName, options) {
|
|
433
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listtByResourceGroupOperationSpec);
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* The Create Azure Data Catalog service operation creates a new data catalog service with the
|
|
437
|
+
* specified parameters. If the specific service already exists, then any patchable properties will be
|
|
438
|
+
* updated and any immutable properties will remain unchanged.
|
|
439
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
440
|
+
* case insensitive.
|
|
441
|
+
* @param properties Properties supplied to the Create or Update a data catalog.
|
|
442
|
+
* @param options The options parameters.
|
|
443
|
+
*/
|
|
444
|
+
createOrUpdate(resourceGroupName, properties, options) {
|
|
445
|
+
return this.client.sendOperationRequest({ resourceGroupName, properties, options }, createOrUpdateOperationSpec);
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* The Get Azure Data Catalog Service operation retrieves a json representation of the data catalog.
|
|
449
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
450
|
+
* case insensitive.
|
|
451
|
+
* @param options The options parameters.
|
|
452
|
+
*/
|
|
453
|
+
get(resourceGroupName, options) {
|
|
454
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, getOperationSpec);
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* The Delete Azure Data Catalog Service operation deletes an existing data catalog.
|
|
458
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
459
|
+
* case insensitive.
|
|
460
|
+
* @param options The options parameters.
|
|
461
|
+
*/
|
|
462
|
+
beginDelete(resourceGroupName, options) {
|
|
463
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
464
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
return this.client.sendOperationRequest(args, spec);
|
|
466
|
+
});
|
|
467
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
468
|
+
var _a;
|
|
469
|
+
let currentRawResponse = undefined;
|
|
470
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
471
|
+
const callback = (rawResponse, flatResponse) => {
|
|
472
|
+
currentRawResponse = rawResponse;
|
|
473
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
474
|
+
};
|
|
475
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
476
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
477
|
+
return {
|
|
478
|
+
flatResponse,
|
|
479
|
+
rawResponse: {
|
|
480
|
+
statusCode: currentRawResponse.status,
|
|
481
|
+
body: currentRawResponse.parsedBody,
|
|
482
|
+
headers: currentRawResponse.headers.toJSON()
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
});
|
|
486
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, options }, deleteOperationSpec);
|
|
487
|
+
return new coreLro.LroEngine(lro, {
|
|
488
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
489
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
490
|
+
});
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* The Delete Azure Data Catalog Service operation deletes an existing data catalog.
|
|
495
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
496
|
+
* case insensitive.
|
|
497
|
+
* @param options The options parameters.
|
|
498
|
+
*/
|
|
499
|
+
beginDeleteAndWait(resourceGroupName, options) {
|
|
500
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
501
|
+
const poller = yield this.beginDelete(resourceGroupName, options);
|
|
502
|
+
return poller.pollUntilDone();
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* The Update Azure Data Catalog Service operation can be used to update the existing deployment. The
|
|
507
|
+
* update call only supports the properties listed in the PATCH body.
|
|
508
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
509
|
+
* case insensitive.
|
|
510
|
+
* @param properties Properties supplied to the Update a data catalog.
|
|
511
|
+
* @param options The options parameters.
|
|
512
|
+
*/
|
|
513
|
+
update(resourceGroupName, properties, options) {
|
|
514
|
+
return this.client.sendOperationRequest({ resourceGroupName, properties, options }, updateOperationSpec);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
// Operation Specifications
|
|
518
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
519
|
+
const listtByResourceGroupOperationSpec = {
|
|
520
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs",
|
|
521
|
+
httpMethod: "GET",
|
|
522
|
+
responses: {
|
|
523
|
+
200: {
|
|
524
|
+
bodyMapper: ADCCatalogsListResult
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
queryParameters: [apiVersion],
|
|
528
|
+
urlParameters: [
|
|
529
|
+
$host,
|
|
530
|
+
subscriptionId,
|
|
531
|
+
resourceGroupName
|
|
532
|
+
],
|
|
533
|
+
headerParameters: [accept],
|
|
534
|
+
serializer: serializer$1
|
|
535
|
+
};
|
|
536
|
+
const createOrUpdateOperationSpec = {
|
|
537
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
|
|
538
|
+
httpMethod: "PUT",
|
|
539
|
+
responses: {
|
|
540
|
+
200: {
|
|
541
|
+
bodyMapper: ADCCatalog
|
|
542
|
+
},
|
|
543
|
+
201: {
|
|
544
|
+
bodyMapper: ADCCatalog
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
requestBody: properties,
|
|
548
|
+
queryParameters: [apiVersion],
|
|
549
|
+
urlParameters: [
|
|
550
|
+
$host,
|
|
551
|
+
subscriptionId,
|
|
552
|
+
resourceGroupName,
|
|
553
|
+
catalogName
|
|
554
|
+
],
|
|
555
|
+
headerParameters: [accept, contentType],
|
|
556
|
+
mediaType: "json",
|
|
557
|
+
serializer: serializer$1
|
|
558
|
+
};
|
|
559
|
+
const getOperationSpec = {
|
|
560
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
|
|
561
|
+
httpMethod: "GET",
|
|
562
|
+
responses: {
|
|
563
|
+
200: {
|
|
564
|
+
bodyMapper: ADCCatalog
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
queryParameters: [apiVersion],
|
|
568
|
+
urlParameters: [
|
|
569
|
+
$host,
|
|
570
|
+
subscriptionId,
|
|
571
|
+
resourceGroupName,
|
|
572
|
+
catalogName
|
|
573
|
+
],
|
|
574
|
+
headerParameters: [accept],
|
|
575
|
+
serializer: serializer$1
|
|
576
|
+
};
|
|
577
|
+
const deleteOperationSpec = {
|
|
578
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
|
|
579
|
+
httpMethod: "DELETE",
|
|
580
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
581
|
+
queryParameters: [apiVersion],
|
|
582
|
+
urlParameters: [
|
|
583
|
+
$host,
|
|
584
|
+
subscriptionId,
|
|
585
|
+
resourceGroupName,
|
|
586
|
+
catalogName
|
|
587
|
+
],
|
|
588
|
+
serializer: serializer$1
|
|
589
|
+
};
|
|
590
|
+
const updateOperationSpec = {
|
|
591
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
|
|
592
|
+
httpMethod: "PATCH",
|
|
593
|
+
responses: {
|
|
594
|
+
200: {
|
|
595
|
+
bodyMapper: ADCCatalog
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
requestBody: properties,
|
|
599
|
+
queryParameters: [apiVersion],
|
|
600
|
+
urlParameters: [
|
|
601
|
+
$host,
|
|
602
|
+
subscriptionId,
|
|
603
|
+
resourceGroupName,
|
|
604
|
+
catalogName
|
|
605
|
+
],
|
|
606
|
+
headerParameters: [accept, contentType],
|
|
607
|
+
mediaType: "json",
|
|
608
|
+
serializer: serializer$1
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
/*
|
|
612
|
+
* Copyright (c) Microsoft Corporation.
|
|
613
|
+
* Licensed under the MIT License.
|
|
614
|
+
*
|
|
615
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
616
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
617
|
+
*/
|
|
618
|
+
class DataCatalogRestClient extends coreClient.ServiceClient {
|
|
619
|
+
/**
|
|
620
|
+
* Initializes a new instance of the DataCatalogRestClient class.
|
|
621
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
622
|
+
* @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
|
|
623
|
+
* subscription. The subscription ID forms part of the URI for every service call.
|
|
624
|
+
* @param catalogName The name of the data catalog in the specified subscription and resource group.
|
|
625
|
+
* @param options The parameter options
|
|
626
|
+
*/
|
|
627
|
+
constructor(credentials, subscriptionId, catalogName, options) {
|
|
628
|
+
if (credentials === undefined) {
|
|
629
|
+
throw new Error("'credentials' cannot be null");
|
|
630
|
+
}
|
|
631
|
+
if (subscriptionId === undefined) {
|
|
632
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
633
|
+
}
|
|
634
|
+
if (catalogName === undefined) {
|
|
635
|
+
throw new Error("'catalogName' cannot be null");
|
|
636
|
+
}
|
|
637
|
+
// Initializing default values for options
|
|
638
|
+
if (!options) {
|
|
639
|
+
options = {};
|
|
640
|
+
}
|
|
641
|
+
const defaults = {
|
|
642
|
+
requestContentType: "application/json; charset=utf-8",
|
|
643
|
+
credential: credentials
|
|
644
|
+
};
|
|
645
|
+
const packageDetails = `azsdk-js-arm-datacatalog/3.0.0`;
|
|
646
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
647
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
648
|
+
: `${packageDetails}`;
|
|
649
|
+
if (!options.credentialScopes) {
|
|
650
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
651
|
+
}
|
|
652
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
653
|
+
userAgentPrefix
|
|
654
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
655
|
+
super(optionsWithDefaults);
|
|
656
|
+
// Parameter assignments
|
|
657
|
+
this.subscriptionId = subscriptionId;
|
|
658
|
+
this.catalogName = catalogName;
|
|
659
|
+
// Assigning values to Constant parameters
|
|
660
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
661
|
+
this.apiVersion = options.apiVersion || "2016-03-30";
|
|
662
|
+
this.aDCOperations = new ADCOperationsImpl(this);
|
|
663
|
+
this.aDCCatalogs = new ADCCatalogsImpl(this);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
exports.DataCatalogRestClient = DataCatalogRestClient;
|
|
668
|
+
//# sourceMappingURL=index.js.map
|