@azure/arm-datafactory 11.1.1-alpha.20231113.1 → 12.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +273 -8
  2. package/dist/index.js +2077 -727
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/changeDataCaptureCreateOrUpdateSample.d.ts +2 -0
  7. package/dist-esm/samples-dev/changeDataCaptureCreateOrUpdateSample.d.ts.map +1 -0
  8. package/dist-esm/samples-dev/changeDataCaptureCreateOrUpdateSample.js +75 -0
  9. package/dist-esm/samples-dev/changeDataCaptureCreateOrUpdateSample.js.map +1 -0
  10. package/dist-esm/samples-dev/changeDataCaptureDeleteSample.d.ts +2 -0
  11. package/dist-esm/samples-dev/changeDataCaptureDeleteSample.d.ts.map +1 -0
  12. package/dist-esm/samples-dev/changeDataCaptureDeleteSample.js +40 -0
  13. package/dist-esm/samples-dev/changeDataCaptureDeleteSample.js.map +1 -0
  14. package/dist-esm/samples-dev/changeDataCaptureGetSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/changeDataCaptureGetSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/changeDataCaptureGetSample.js +40 -0
  17. package/dist-esm/samples-dev/changeDataCaptureGetSample.js.map +1 -0
  18. package/dist-esm/samples-dev/changeDataCaptureListByFactorySample.d.ts +2 -0
  19. package/dist-esm/samples-dev/changeDataCaptureListByFactorySample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/changeDataCaptureListByFactorySample.js +55 -0
  21. package/dist-esm/samples-dev/changeDataCaptureListByFactorySample.js.map +1 -0
  22. package/dist-esm/samples-dev/changeDataCaptureStartSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/changeDataCaptureStartSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/changeDataCaptureStartSample.js +40 -0
  25. package/dist-esm/samples-dev/changeDataCaptureStartSample.js.map +1 -0
  26. package/dist-esm/samples-dev/changeDataCaptureStatusSample.d.ts +2 -0
  27. package/dist-esm/samples-dev/changeDataCaptureStatusSample.d.ts.map +1 -0
  28. package/dist-esm/samples-dev/changeDataCaptureStatusSample.js +40 -0
  29. package/dist-esm/samples-dev/changeDataCaptureStatusSample.js.map +1 -0
  30. package/dist-esm/samples-dev/changeDataCaptureStopSample.d.ts +2 -0
  31. package/dist-esm/samples-dev/changeDataCaptureStopSample.d.ts.map +1 -0
  32. package/dist-esm/samples-dev/changeDataCaptureStopSample.js +40 -0
  33. package/dist-esm/samples-dev/changeDataCaptureStopSample.js.map +1 -0
  34. package/dist-esm/src/dataFactoryManagementClient.d.ts +2 -1
  35. package/dist-esm/src/dataFactoryManagementClient.d.ts.map +1 -1
  36. package/dist-esm/src/dataFactoryManagementClient.js +3 -2
  37. package/dist-esm/src/dataFactoryManagementClient.js.map +1 -1
  38. package/dist-esm/src/models/index.d.ts +787 -361
  39. package/dist-esm/src/models/index.d.ts.map +1 -1
  40. package/dist-esm/src/models/index.js +58 -22
  41. package/dist-esm/src/models/index.js.map +1 -1
  42. package/dist-esm/src/models/mappers.d.ts +36 -1
  43. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  44. package/dist-esm/src/models/mappers.js +1063 -141
  45. package/dist-esm/src/models/mappers.js.map +1 -1
  46. package/dist-esm/src/models/parameters.d.ts +2 -0
  47. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  48. package/dist-esm/src/models/parameters.js +20 -1
  49. package/dist-esm/src/models/parameters.js.map +1 -1
  50. package/dist-esm/src/operations/changeDataCapture.d.ts +87 -0
  51. package/dist-esm/src/operations/changeDataCapture.d.ts.map +1 -0
  52. package/dist-esm/src/operations/changeDataCapture.js +350 -0
  53. package/dist-esm/src/operations/changeDataCapture.js.map +1 -0
  54. package/dist-esm/src/operations/index.d.ts +1 -0
  55. package/dist-esm/src/operations/index.d.ts.map +1 -1
  56. package/dist-esm/src/operations/index.js +1 -0
  57. package/dist-esm/src/operations/index.js.map +1 -1
  58. package/dist-esm/src/operationsInterfaces/changeDataCapture.d.ts +62 -0
  59. package/dist-esm/src/operationsInterfaces/changeDataCapture.d.ts.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/changeDataCapture.js +9 -0
  61. package/dist-esm/src/operationsInterfaces/changeDataCapture.js.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  63. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  64. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  65. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  66. package/dist-esm/test/datafactory_examples.spec.js +1 -1
  67. package/package.json +9 -7
  68. package/review/arm-datafactory.api.md +480 -150
  69. package/src/dataFactoryManagementClient.ts +7 -3
  70. package/src/models/index.ts +848 -364
  71. package/src/models/mappers.ts +1176 -155
  72. package/src/models/parameters.ts +23 -1
  73. package/src/operations/changeDataCapture.ts +472 -0
  74. package/src/operations/index.ts +1 -0
  75. package/src/operationsInterfaces/changeDataCapture.ts +118 -0
  76. package/src/operationsInterfaces/index.ts +1 -0
  77. package/types/arm-datafactory.d.ts +862 -327
@@ -41,7 +41,8 @@ import {
41
41
  ManagedPrivateEndpointResource as ManagedPrivateEndpointResourceMapper,
42
42
  ManagedIdentityCredentialResource as ManagedIdentityCredentialResourceMapper,
43
43
  PrivateLinkConnectionApprovalRequestResource as PrivateLinkConnectionApprovalRequestResourceMapper,
44
- GlobalParameterResource as GlobalParameterResourceMapper
44
+ GlobalParameterResource as GlobalParameterResourceMapper,
45
+ ChangeDataCaptureResource as ChangeDataCaptureResourceMapper
45
46
  } from "../models/mappers";
46
47
 
47
48
  export const accept: OperationParameter = {
@@ -592,3 +593,24 @@ export const defaultParam: OperationParameter = {
592
593
  parameterPath: "defaultParam",
593
594
  mapper: GlobalParameterResourceMapper
594
595
  };
596
+
597
+ export const changeDataCapture: OperationParameter = {
598
+ parameterPath: "changeDataCapture",
599
+ mapper: ChangeDataCaptureResourceMapper
600
+ };
601
+
602
+ export const changeDataCaptureName: OperationURLParameter = {
603
+ parameterPath: "changeDataCaptureName",
604
+ mapper: {
605
+ constraints: {
606
+ Pattern: new RegExp("^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$"),
607
+ MaxLength: 260,
608
+ MinLength: 1
609
+ },
610
+ serializedName: "changeDataCaptureName",
611
+ required: true,
612
+ type: {
613
+ name: "String"
614
+ }
615
+ }
616
+ };
@@ -0,0 +1,472 @@
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 { setContinuationToken } from "../pagingHelper";
11
+ import { ChangeDataCapture } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
14
+ import * as Parameters from "../models/parameters";
15
+ import { DataFactoryManagementClient } from "../dataFactoryManagementClient";
16
+ import {
17
+ ChangeDataCaptureResource,
18
+ ChangeDataCaptureListByFactoryNextOptionalParams,
19
+ ChangeDataCaptureListByFactoryOptionalParams,
20
+ ChangeDataCaptureListByFactoryResponse,
21
+ ChangeDataCaptureCreateOrUpdateOptionalParams,
22
+ ChangeDataCaptureCreateOrUpdateResponse,
23
+ ChangeDataCaptureGetOptionalParams,
24
+ ChangeDataCaptureGetResponse,
25
+ ChangeDataCaptureDeleteOptionalParams,
26
+ ChangeDataCaptureStartOptionalParams,
27
+ ChangeDataCaptureStopOptionalParams,
28
+ ChangeDataCaptureStatusOptionalParams,
29
+ ChangeDataCaptureStatusResponse,
30
+ ChangeDataCaptureListByFactoryNextResponse
31
+ } from "../models";
32
+
33
+ /// <reference lib="esnext.asynciterable" />
34
+ /** Class containing ChangeDataCapture operations. */
35
+ export class ChangeDataCaptureImpl implements ChangeDataCapture {
36
+ private readonly client: DataFactoryManagementClient;
37
+
38
+ /**
39
+ * Initialize a new instance of the class ChangeDataCapture class.
40
+ * @param client Reference to the service client
41
+ */
42
+ constructor(client: DataFactoryManagementClient) {
43
+ this.client = client;
44
+ }
45
+
46
+ /**
47
+ * Lists all resources of type change data capture.
48
+ * @param resourceGroupName The resource group name.
49
+ * @param factoryName The factory name.
50
+ * @param options The options parameters.
51
+ */
52
+ public listByFactory(
53
+ resourceGroupName: string,
54
+ factoryName: string,
55
+ options?: ChangeDataCaptureListByFactoryOptionalParams
56
+ ): PagedAsyncIterableIterator<ChangeDataCaptureResource> {
57
+ const iter = this.listByFactoryPagingAll(
58
+ resourceGroupName,
59
+ factoryName,
60
+ options
61
+ );
62
+ return {
63
+ next() {
64
+ return iter.next();
65
+ },
66
+ [Symbol.asyncIterator]() {
67
+ return this;
68
+ },
69
+ byPage: (settings?: PageSettings) => {
70
+ if (settings?.maxPageSize) {
71
+ throw new Error("maxPageSize is not supported by this operation.");
72
+ }
73
+ return this.listByFactoryPagingPage(
74
+ resourceGroupName,
75
+ factoryName,
76
+ options,
77
+ settings
78
+ );
79
+ }
80
+ };
81
+ }
82
+
83
+ private async *listByFactoryPagingPage(
84
+ resourceGroupName: string,
85
+ factoryName: string,
86
+ options?: ChangeDataCaptureListByFactoryOptionalParams,
87
+ settings?: PageSettings
88
+ ): AsyncIterableIterator<ChangeDataCaptureResource[]> {
89
+ let result: ChangeDataCaptureListByFactoryResponse;
90
+ let continuationToken = settings?.continuationToken;
91
+ if (!continuationToken) {
92
+ result = await this._listByFactory(
93
+ resourceGroupName,
94
+ factoryName,
95
+ options
96
+ );
97
+ let page = result.value || [];
98
+ continuationToken = result.nextLink;
99
+ setContinuationToken(page, continuationToken);
100
+ yield page;
101
+ }
102
+ while (continuationToken) {
103
+ result = await this._listByFactoryNext(
104
+ resourceGroupName,
105
+ factoryName,
106
+ continuationToken,
107
+ options
108
+ );
109
+ continuationToken = result.nextLink;
110
+ let page = result.value || [];
111
+ setContinuationToken(page, continuationToken);
112
+ yield page;
113
+ }
114
+ }
115
+
116
+ private async *listByFactoryPagingAll(
117
+ resourceGroupName: string,
118
+ factoryName: string,
119
+ options?: ChangeDataCaptureListByFactoryOptionalParams
120
+ ): AsyncIterableIterator<ChangeDataCaptureResource> {
121
+ for await (const page of this.listByFactoryPagingPage(
122
+ resourceGroupName,
123
+ factoryName,
124
+ options
125
+ )) {
126
+ yield* page;
127
+ }
128
+ }
129
+
130
+ /**
131
+ * Lists all resources of type change data capture.
132
+ * @param resourceGroupName The resource group name.
133
+ * @param factoryName The factory name.
134
+ * @param options The options parameters.
135
+ */
136
+ private _listByFactory(
137
+ resourceGroupName: string,
138
+ factoryName: string,
139
+ options?: ChangeDataCaptureListByFactoryOptionalParams
140
+ ): Promise<ChangeDataCaptureListByFactoryResponse> {
141
+ return this.client.sendOperationRequest(
142
+ { resourceGroupName, factoryName, options },
143
+ listByFactoryOperationSpec
144
+ );
145
+ }
146
+
147
+ /**
148
+ * Creates or updates a change data capture resource.
149
+ * @param resourceGroupName The resource group name.
150
+ * @param factoryName The factory name.
151
+ * @param changeDataCaptureName The change data capture name.
152
+ * @param changeDataCapture Change data capture resource definition.
153
+ * @param options The options parameters.
154
+ */
155
+ createOrUpdate(
156
+ resourceGroupName: string,
157
+ factoryName: string,
158
+ changeDataCaptureName: string,
159
+ changeDataCapture: ChangeDataCaptureResource,
160
+ options?: ChangeDataCaptureCreateOrUpdateOptionalParams
161
+ ): Promise<ChangeDataCaptureCreateOrUpdateResponse> {
162
+ return this.client.sendOperationRequest(
163
+ {
164
+ resourceGroupName,
165
+ factoryName,
166
+ changeDataCaptureName,
167
+ changeDataCapture,
168
+ options
169
+ },
170
+ createOrUpdateOperationSpec
171
+ );
172
+ }
173
+
174
+ /**
175
+ * Gets a change data capture.
176
+ * @param resourceGroupName The resource group name.
177
+ * @param factoryName The factory name.
178
+ * @param changeDataCaptureName The change data capture name.
179
+ * @param options The options parameters.
180
+ */
181
+ get(
182
+ resourceGroupName: string,
183
+ factoryName: string,
184
+ changeDataCaptureName: string,
185
+ options?: ChangeDataCaptureGetOptionalParams
186
+ ): Promise<ChangeDataCaptureGetResponse> {
187
+ return this.client.sendOperationRequest(
188
+ { resourceGroupName, factoryName, changeDataCaptureName, options },
189
+ getOperationSpec
190
+ );
191
+ }
192
+
193
+ /**
194
+ * Deletes a change data capture.
195
+ * @param resourceGroupName The resource group name.
196
+ * @param factoryName The factory name.
197
+ * @param changeDataCaptureName The change data capture name.
198
+ * @param options The options parameters.
199
+ */
200
+ delete(
201
+ resourceGroupName: string,
202
+ factoryName: string,
203
+ changeDataCaptureName: string,
204
+ options?: ChangeDataCaptureDeleteOptionalParams
205
+ ): Promise<void> {
206
+ return this.client.sendOperationRequest(
207
+ { resourceGroupName, factoryName, changeDataCaptureName, options },
208
+ deleteOperationSpec
209
+ );
210
+ }
211
+
212
+ /**
213
+ * Starts a change data capture.
214
+ * @param resourceGroupName The resource group name.
215
+ * @param factoryName The factory name.
216
+ * @param changeDataCaptureName The change data capture name.
217
+ * @param options The options parameters.
218
+ */
219
+ start(
220
+ resourceGroupName: string,
221
+ factoryName: string,
222
+ changeDataCaptureName: string,
223
+ options?: ChangeDataCaptureStartOptionalParams
224
+ ): Promise<void> {
225
+ return this.client.sendOperationRequest(
226
+ { resourceGroupName, factoryName, changeDataCaptureName, options },
227
+ startOperationSpec
228
+ );
229
+ }
230
+
231
+ /**
232
+ * Stops a change data capture.
233
+ * @param resourceGroupName The resource group name.
234
+ * @param factoryName The factory name.
235
+ * @param changeDataCaptureName The change data capture name.
236
+ * @param options The options parameters.
237
+ */
238
+ stop(
239
+ resourceGroupName: string,
240
+ factoryName: string,
241
+ changeDataCaptureName: string,
242
+ options?: ChangeDataCaptureStopOptionalParams
243
+ ): Promise<void> {
244
+ return this.client.sendOperationRequest(
245
+ { resourceGroupName, factoryName, changeDataCaptureName, options },
246
+ stopOperationSpec
247
+ );
248
+ }
249
+
250
+ /**
251
+ * Gets the current status for the change data capture resource.
252
+ * @param resourceGroupName The resource group name.
253
+ * @param factoryName The factory name.
254
+ * @param changeDataCaptureName The change data capture name.
255
+ * @param options The options parameters.
256
+ */
257
+ status(
258
+ resourceGroupName: string,
259
+ factoryName: string,
260
+ changeDataCaptureName: string,
261
+ options?: ChangeDataCaptureStatusOptionalParams
262
+ ): Promise<ChangeDataCaptureStatusResponse> {
263
+ return this.client.sendOperationRequest(
264
+ { resourceGroupName, factoryName, changeDataCaptureName, options },
265
+ statusOperationSpec
266
+ );
267
+ }
268
+
269
+ /**
270
+ * ListByFactoryNext
271
+ * @param resourceGroupName The resource group name.
272
+ * @param factoryName The factory name.
273
+ * @param nextLink The nextLink from the previous successful call to the ListByFactory method.
274
+ * @param options The options parameters.
275
+ */
276
+ private _listByFactoryNext(
277
+ resourceGroupName: string,
278
+ factoryName: string,
279
+ nextLink: string,
280
+ options?: ChangeDataCaptureListByFactoryNextOptionalParams
281
+ ): Promise<ChangeDataCaptureListByFactoryNextResponse> {
282
+ return this.client.sendOperationRequest(
283
+ { resourceGroupName, factoryName, nextLink, options },
284
+ listByFactoryNextOperationSpec
285
+ );
286
+ }
287
+ }
288
+ // Operation Specifications
289
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
290
+
291
+ const listByFactoryOperationSpec: coreClient.OperationSpec = {
292
+ path:
293
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs",
294
+ httpMethod: "GET",
295
+ responses: {
296
+ 200: {
297
+ bodyMapper: Mappers.ChangeDataCaptureListResponse
298
+ },
299
+ default: {
300
+ bodyMapper: Mappers.CloudError
301
+ }
302
+ },
303
+ queryParameters: [Parameters.apiVersion],
304
+ urlParameters: [
305
+ Parameters.$host,
306
+ Parameters.subscriptionId,
307
+ Parameters.resourceGroupName,
308
+ Parameters.factoryName
309
+ ],
310
+ headerParameters: [Parameters.accept],
311
+ serializer
312
+ };
313
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
314
+ path:
315
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}",
316
+ httpMethod: "PUT",
317
+ responses: {
318
+ 200: {
319
+ bodyMapper: Mappers.ChangeDataCaptureResource
320
+ },
321
+ default: {
322
+ bodyMapper: Mappers.CloudError
323
+ }
324
+ },
325
+ requestBody: Parameters.changeDataCapture,
326
+ queryParameters: [Parameters.apiVersion],
327
+ urlParameters: [
328
+ Parameters.$host,
329
+ Parameters.subscriptionId,
330
+ Parameters.resourceGroupName,
331
+ Parameters.factoryName,
332
+ Parameters.changeDataCaptureName
333
+ ],
334
+ headerParameters: [
335
+ Parameters.accept,
336
+ Parameters.contentType,
337
+ Parameters.ifMatch
338
+ ],
339
+ mediaType: "json",
340
+ serializer
341
+ };
342
+ const getOperationSpec: coreClient.OperationSpec = {
343
+ path:
344
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}",
345
+ httpMethod: "GET",
346
+ responses: {
347
+ 200: {
348
+ bodyMapper: Mappers.ChangeDataCaptureResource
349
+ },
350
+ default: {
351
+ bodyMapper: Mappers.CloudError
352
+ }
353
+ },
354
+ queryParameters: [Parameters.apiVersion],
355
+ urlParameters: [
356
+ Parameters.$host,
357
+ Parameters.subscriptionId,
358
+ Parameters.resourceGroupName,
359
+ Parameters.factoryName,
360
+ Parameters.changeDataCaptureName
361
+ ],
362
+ headerParameters: [Parameters.accept, Parameters.ifNoneMatch],
363
+ serializer
364
+ };
365
+ const deleteOperationSpec: coreClient.OperationSpec = {
366
+ path:
367
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}",
368
+ httpMethod: "DELETE",
369
+ responses: {
370
+ 200: {},
371
+ 204: {},
372
+ default: {
373
+ bodyMapper: Mappers.CloudError
374
+ }
375
+ },
376
+ queryParameters: [Parameters.apiVersion],
377
+ urlParameters: [
378
+ Parameters.$host,
379
+ Parameters.subscriptionId,
380
+ Parameters.resourceGroupName,
381
+ Parameters.factoryName,
382
+ Parameters.changeDataCaptureName
383
+ ],
384
+ headerParameters: [Parameters.accept],
385
+ serializer
386
+ };
387
+ const startOperationSpec: coreClient.OperationSpec = {
388
+ path:
389
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start",
390
+ httpMethod: "POST",
391
+ responses: {
392
+ 200: {},
393
+ default: {
394
+ bodyMapper: Mappers.CloudError
395
+ }
396
+ },
397
+ queryParameters: [Parameters.apiVersion],
398
+ urlParameters: [
399
+ Parameters.$host,
400
+ Parameters.subscriptionId,
401
+ Parameters.resourceGroupName,
402
+ Parameters.factoryName,
403
+ Parameters.changeDataCaptureName
404
+ ],
405
+ headerParameters: [Parameters.accept],
406
+ serializer
407
+ };
408
+ const stopOperationSpec: coreClient.OperationSpec = {
409
+ path:
410
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop",
411
+ httpMethod: "POST",
412
+ responses: {
413
+ 200: {},
414
+ default: {
415
+ bodyMapper: Mappers.CloudError
416
+ }
417
+ },
418
+ queryParameters: [Parameters.apiVersion],
419
+ urlParameters: [
420
+ Parameters.$host,
421
+ Parameters.subscriptionId,
422
+ Parameters.resourceGroupName,
423
+ Parameters.factoryName,
424
+ Parameters.changeDataCaptureName
425
+ ],
426
+ headerParameters: [Parameters.accept],
427
+ serializer
428
+ };
429
+ const statusOperationSpec: coreClient.OperationSpec = {
430
+ path:
431
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status",
432
+ httpMethod: "GET",
433
+ responses: {
434
+ 200: {
435
+ bodyMapper: { type: { name: "String" } }
436
+ },
437
+ default: {
438
+ bodyMapper: Mappers.CloudError
439
+ }
440
+ },
441
+ queryParameters: [Parameters.apiVersion],
442
+ urlParameters: [
443
+ Parameters.$host,
444
+ Parameters.subscriptionId,
445
+ Parameters.resourceGroupName,
446
+ Parameters.factoryName,
447
+ Parameters.changeDataCaptureName
448
+ ],
449
+ headerParameters: [Parameters.accept],
450
+ serializer
451
+ };
452
+ const listByFactoryNextOperationSpec: coreClient.OperationSpec = {
453
+ path: "{nextLink}",
454
+ httpMethod: "GET",
455
+ responses: {
456
+ 200: {
457
+ bodyMapper: Mappers.ChangeDataCaptureListResponse
458
+ },
459
+ default: {
460
+ bodyMapper: Mappers.CloudError
461
+ }
462
+ },
463
+ urlParameters: [
464
+ Parameters.$host,
465
+ Parameters.nextLink,
466
+ Parameters.subscriptionId,
467
+ Parameters.resourceGroupName,
468
+ Parameters.factoryName
469
+ ],
470
+ headerParameters: [Parameters.accept],
471
+ serializer
472
+ };
@@ -28,3 +28,4 @@ export * from "./privateEndPointConnections";
28
28
  export * from "./privateEndpointConnection";
29
29
  export * from "./privateLinkResources";
30
30
  export * from "./globalParameters";
31
+ export * from "./changeDataCapture";
@@ -0,0 +1,118 @@
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 } from "@azure/core-paging";
10
+ import {
11
+ ChangeDataCaptureResource,
12
+ ChangeDataCaptureListByFactoryOptionalParams,
13
+ ChangeDataCaptureCreateOrUpdateOptionalParams,
14
+ ChangeDataCaptureCreateOrUpdateResponse,
15
+ ChangeDataCaptureGetOptionalParams,
16
+ ChangeDataCaptureGetResponse,
17
+ ChangeDataCaptureDeleteOptionalParams,
18
+ ChangeDataCaptureStartOptionalParams,
19
+ ChangeDataCaptureStopOptionalParams,
20
+ ChangeDataCaptureStatusOptionalParams,
21
+ ChangeDataCaptureStatusResponse
22
+ } from "../models";
23
+
24
+ /// <reference lib="esnext.asynciterable" />
25
+ /** Interface representing a ChangeDataCapture. */
26
+ export interface ChangeDataCapture {
27
+ /**
28
+ * Lists all resources of type change data capture.
29
+ * @param resourceGroupName The resource group name.
30
+ * @param factoryName The factory name.
31
+ * @param options The options parameters.
32
+ */
33
+ listByFactory(
34
+ resourceGroupName: string,
35
+ factoryName: string,
36
+ options?: ChangeDataCaptureListByFactoryOptionalParams
37
+ ): PagedAsyncIterableIterator<ChangeDataCaptureResource>;
38
+ /**
39
+ * Creates or updates a change data capture resource.
40
+ * @param resourceGroupName The resource group name.
41
+ * @param factoryName The factory name.
42
+ * @param changeDataCaptureName The change data capture name.
43
+ * @param changeDataCapture Change data capture resource definition.
44
+ * @param options The options parameters.
45
+ */
46
+ createOrUpdate(
47
+ resourceGroupName: string,
48
+ factoryName: string,
49
+ changeDataCaptureName: string,
50
+ changeDataCapture: ChangeDataCaptureResource,
51
+ options?: ChangeDataCaptureCreateOrUpdateOptionalParams
52
+ ): Promise<ChangeDataCaptureCreateOrUpdateResponse>;
53
+ /**
54
+ * Gets a change data capture.
55
+ * @param resourceGroupName The resource group name.
56
+ * @param factoryName The factory name.
57
+ * @param changeDataCaptureName The change data capture name.
58
+ * @param options The options parameters.
59
+ */
60
+ get(
61
+ resourceGroupName: string,
62
+ factoryName: string,
63
+ changeDataCaptureName: string,
64
+ options?: ChangeDataCaptureGetOptionalParams
65
+ ): Promise<ChangeDataCaptureGetResponse>;
66
+ /**
67
+ * Deletes a change data capture.
68
+ * @param resourceGroupName The resource group name.
69
+ * @param factoryName The factory name.
70
+ * @param changeDataCaptureName The change data capture name.
71
+ * @param options The options parameters.
72
+ */
73
+ delete(
74
+ resourceGroupName: string,
75
+ factoryName: string,
76
+ changeDataCaptureName: string,
77
+ options?: ChangeDataCaptureDeleteOptionalParams
78
+ ): Promise<void>;
79
+ /**
80
+ * Starts a change data capture.
81
+ * @param resourceGroupName The resource group name.
82
+ * @param factoryName The factory name.
83
+ * @param changeDataCaptureName The change data capture name.
84
+ * @param options The options parameters.
85
+ */
86
+ start(
87
+ resourceGroupName: string,
88
+ factoryName: string,
89
+ changeDataCaptureName: string,
90
+ options?: ChangeDataCaptureStartOptionalParams
91
+ ): Promise<void>;
92
+ /**
93
+ * Stops a change data capture.
94
+ * @param resourceGroupName The resource group name.
95
+ * @param factoryName The factory name.
96
+ * @param changeDataCaptureName The change data capture name.
97
+ * @param options The options parameters.
98
+ */
99
+ stop(
100
+ resourceGroupName: string,
101
+ factoryName: string,
102
+ changeDataCaptureName: string,
103
+ options?: ChangeDataCaptureStopOptionalParams
104
+ ): Promise<void>;
105
+ /**
106
+ * Gets the current status for the change data capture resource.
107
+ * @param resourceGroupName The resource group name.
108
+ * @param factoryName The factory name.
109
+ * @param changeDataCaptureName The change data capture name.
110
+ * @param options The options parameters.
111
+ */
112
+ status(
113
+ resourceGroupName: string,
114
+ factoryName: string,
115
+ changeDataCaptureName: string,
116
+ options?: ChangeDataCaptureStatusOptionalParams
117
+ ): Promise<ChangeDataCaptureStatusResponse>;
118
+ }
@@ -28,3 +28,4 @@ export * from "./privateEndPointConnections";
28
28
  export * from "./privateEndpointConnection";
29
29
  export * from "./privateLinkResources";
30
30
  export * from "./globalParameters";
31
+ export * from "./changeDataCapture";