@azure/arm-databox 5.0.1-alpha.20250327.1 → 5.1.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 +39 -10
- package/LICENSE +1 -1
- package/README.md +4 -7
- package/dist/browser/dataBoxManagementClient.d.ts.map +1 -1
- package/dist/browser/dataBoxManagementClient.js +12 -12
- package/dist/browser/dataBoxManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +8 -1
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +165 -2
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +38 -0
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +4 -0
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +1616 -1331
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.js +49 -49
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/jobs.d.ts.map +1 -1
- package/dist/browser/operations/jobs.js +79 -79
- package/dist/browser/operations/jobs.js.map +1 -1
- package/dist/browser/operations/operations.js +9 -9
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/service.js +36 -36
- package/dist/browser/operations/service.js.map +1 -1
- package/dist/browser/operationsInterfaces/jobs.js.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -1
- package/dist/browser/operationsInterfaces/service.js.map +1 -1
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/dataBoxManagementClient.d.ts.map +1 -1
- package/dist/commonjs/dataBoxManagementClient.js +12 -12
- package/dist/commonjs/dataBoxManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js +8 -1
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +165 -2
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +39 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +4 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +1619 -1334
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.js +48 -48
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/jobs.d.ts.map +1 -1
- package/dist/commonjs/operations/jobs.js +78 -78
- package/dist/commonjs/operations/jobs.js.map +1 -1
- package/dist/commonjs/operations/operations.js +9 -9
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/service.js +36 -36
- package/dist/commonjs/operations/service.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/jobs.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/service.js.map +1 -1
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/dataBoxManagementClient.d.ts.map +1 -1
- package/dist/esm/dataBoxManagementClient.js +12 -12
- package/dist/esm/dataBoxManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js +8 -1
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +165 -2
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +38 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +4 -0
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +1616 -1331
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.js +49 -49
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/jobs.d.ts.map +1 -1
- package/dist/esm/operations/jobs.js +79 -79
- package/dist/esm/operations/jobs.js.map +1 -1
- package/dist/esm/operations/operations.js +9 -9
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/service.js +36 -36
- package/dist/esm/operations/service.js.map +1 -1
- package/dist/esm/operationsInterfaces/jobs.js.map +1 -1
- package/dist/esm/operationsInterfaces/operations.js.map +1 -1
- package/dist/esm/operationsInterfaces/service.js.map +1 -1
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/dataBoxManagementClient.d.ts.map +1 -1
- package/dist/react-native/dataBoxManagementClient.js +12 -12
- package/dist/react-native/dataBoxManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js +8 -1
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +165 -2
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +38 -0
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +4 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +1616 -1331
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.js +49 -49
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/jobs.d.ts.map +1 -1
- package/dist/react-native/operations/jobs.js +79 -79
- package/dist/react-native/operations/jobs.js.map +1 -1
- package/dist/react-native/operations/operations.js +9 -9
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/service.js +36 -36
- package/dist/react-native/operations/service.js.map +1 -1
- package/dist/react-native/operationsInterfaces/jobs.js.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
- package/dist/react-native/operationsInterfaces/service.js.map +1 -1
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +9 -10
- package/review/arm-databox.api.md +72 -0
|
@@ -43,7 +43,7 @@ class JobsImpl {
|
|
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
44
|
}
|
|
45
45
|
return this.listPagingPage(options, settings);
|
|
46
|
-
}
|
|
46
|
+
},
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
listPagingPage(options, settings) {
|
|
@@ -105,7 +105,7 @@ class JobsImpl {
|
|
|
105
105
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
106
|
}
|
|
107
107
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
108
|
-
}
|
|
108
|
+
},
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
@@ -169,7 +169,7 @@ class JobsImpl {
|
|
|
169
169
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
170
170
|
}
|
|
171
171
|
return this.listCredentialsPagingPage(resourceGroupName, jobName, options, settings);
|
|
172
|
-
}
|
|
172
|
+
},
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
listCredentialsPagingPage(resourceGroupName, jobName, options, _settings) {
|
|
@@ -263,18 +263,18 @@ class JobsImpl {
|
|
|
263
263
|
rawResponse: {
|
|
264
264
|
statusCode: currentRawResponse.status,
|
|
265
265
|
body: currentRawResponse.parsedBody,
|
|
266
|
-
headers: currentRawResponse.headers.toJSON()
|
|
267
|
-
}
|
|
266
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
267
|
+
},
|
|
268
268
|
};
|
|
269
269
|
};
|
|
270
270
|
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
271
271
|
sendOperationFn,
|
|
272
272
|
args: { resourceGroupName, jobName, jobResource, options },
|
|
273
|
-
spec: createOperationSpec
|
|
273
|
+
spec: createOperationSpec,
|
|
274
274
|
});
|
|
275
275
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
276
276
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
277
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
277
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
278
278
|
});
|
|
279
279
|
await poller.poll();
|
|
280
280
|
return poller;
|
|
@@ -318,18 +318,18 @@ class JobsImpl {
|
|
|
318
318
|
rawResponse: {
|
|
319
319
|
statusCode: currentRawResponse.status,
|
|
320
320
|
body: currentRawResponse.parsedBody,
|
|
321
|
-
headers: currentRawResponse.headers.toJSON()
|
|
322
|
-
}
|
|
321
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
322
|
+
},
|
|
323
323
|
};
|
|
324
324
|
};
|
|
325
325
|
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
326
326
|
sendOperationFn,
|
|
327
327
|
args: { resourceGroupName, jobName, options },
|
|
328
|
-
spec: deleteOperationSpec
|
|
328
|
+
spec: deleteOperationSpec,
|
|
329
329
|
});
|
|
330
330
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
331
331
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
332
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
332
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
333
333
|
});
|
|
334
334
|
await poller.poll();
|
|
335
335
|
return poller;
|
|
@@ -372,18 +372,18 @@ class JobsImpl {
|
|
|
372
372
|
rawResponse: {
|
|
373
373
|
statusCode: currentRawResponse.status,
|
|
374
374
|
body: currentRawResponse.parsedBody,
|
|
375
|
-
headers: currentRawResponse.headers.toJSON()
|
|
376
|
-
}
|
|
375
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
376
|
+
},
|
|
377
377
|
};
|
|
378
378
|
};
|
|
379
379
|
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
380
380
|
sendOperationFn,
|
|
381
381
|
args: { resourceGroupName, jobName, jobResourceUpdateParameter, options },
|
|
382
|
-
spec: updateOperationSpec
|
|
382
|
+
spec: updateOperationSpec,
|
|
383
383
|
});
|
|
384
384
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
385
385
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
386
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
386
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
387
387
|
});
|
|
388
388
|
await poller.poll();
|
|
389
389
|
return poller;
|
|
@@ -458,16 +458,16 @@ const listOperationSpec = {
|
|
|
458
458
|
httpMethod: "GET",
|
|
459
459
|
responses: {
|
|
460
460
|
200: {
|
|
461
|
-
bodyMapper: Mappers.JobResourceList
|
|
461
|
+
bodyMapper: Mappers.JobResourceList,
|
|
462
462
|
},
|
|
463
463
|
default: {
|
|
464
|
-
bodyMapper: Mappers.ApiError
|
|
465
|
-
}
|
|
464
|
+
bodyMapper: Mappers.ApiError,
|
|
465
|
+
},
|
|
466
466
|
},
|
|
467
467
|
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
468
468
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
469
469
|
headerParameters: [Parameters.accept],
|
|
470
|
-
serializer
|
|
470
|
+
serializer,
|
|
471
471
|
};
|
|
472
472
|
const markDevicesShippedOperationSpec = {
|
|
473
473
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/markDevicesShipped",
|
|
@@ -475,8 +475,8 @@ const markDevicesShippedOperationSpec = {
|
|
|
475
475
|
responses: {
|
|
476
476
|
204: {},
|
|
477
477
|
default: {
|
|
478
|
-
bodyMapper: Mappers.ApiError
|
|
479
|
-
}
|
|
478
|
+
bodyMapper: Mappers.ApiError,
|
|
479
|
+
},
|
|
480
480
|
},
|
|
481
481
|
requestBody: Parameters.markDevicesShippedRequest,
|
|
482
482
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -484,72 +484,72 @@ const markDevicesShippedOperationSpec = {
|
|
|
484
484
|
Parameters.$host,
|
|
485
485
|
Parameters.subscriptionId,
|
|
486
486
|
Parameters.jobName,
|
|
487
|
-
Parameters.resourceGroupName
|
|
487
|
+
Parameters.resourceGroupName,
|
|
488
488
|
],
|
|
489
489
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
490
490
|
mediaType: "json",
|
|
491
|
-
serializer
|
|
491
|
+
serializer,
|
|
492
492
|
};
|
|
493
493
|
const listByResourceGroupOperationSpec = {
|
|
494
494
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs",
|
|
495
495
|
httpMethod: "GET",
|
|
496
496
|
responses: {
|
|
497
497
|
200: {
|
|
498
|
-
bodyMapper: Mappers.JobResourceList
|
|
498
|
+
bodyMapper: Mappers.JobResourceList,
|
|
499
499
|
},
|
|
500
500
|
default: {
|
|
501
|
-
bodyMapper: Mappers.ApiError
|
|
502
|
-
}
|
|
501
|
+
bodyMapper: Mappers.ApiError,
|
|
502
|
+
},
|
|
503
503
|
},
|
|
504
504
|
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
505
505
|
urlParameters: [
|
|
506
506
|
Parameters.$host,
|
|
507
507
|
Parameters.subscriptionId,
|
|
508
|
-
Parameters.resourceGroupName
|
|
508
|
+
Parameters.resourceGroupName,
|
|
509
509
|
],
|
|
510
510
|
headerParameters: [Parameters.accept],
|
|
511
|
-
serializer
|
|
511
|
+
serializer,
|
|
512
512
|
};
|
|
513
513
|
const getOperationSpec = {
|
|
514
514
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
515
515
|
httpMethod: "GET",
|
|
516
516
|
responses: {
|
|
517
517
|
200: {
|
|
518
|
-
bodyMapper: Mappers.JobResource
|
|
518
|
+
bodyMapper: Mappers.JobResource,
|
|
519
519
|
},
|
|
520
520
|
default: {
|
|
521
|
-
bodyMapper: Mappers.ApiError
|
|
522
|
-
}
|
|
521
|
+
bodyMapper: Mappers.ApiError,
|
|
522
|
+
},
|
|
523
523
|
},
|
|
524
524
|
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
525
525
|
urlParameters: [
|
|
526
526
|
Parameters.$host,
|
|
527
527
|
Parameters.subscriptionId,
|
|
528
528
|
Parameters.jobName,
|
|
529
|
-
Parameters.resourceGroupName
|
|
529
|
+
Parameters.resourceGroupName,
|
|
530
530
|
],
|
|
531
531
|
headerParameters: [Parameters.accept],
|
|
532
|
-
serializer
|
|
532
|
+
serializer,
|
|
533
533
|
};
|
|
534
534
|
const createOperationSpec = {
|
|
535
535
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
536
536
|
httpMethod: "PUT",
|
|
537
537
|
responses: {
|
|
538
538
|
200: {
|
|
539
|
-
bodyMapper: Mappers.JobResource
|
|
539
|
+
bodyMapper: Mappers.JobResource,
|
|
540
540
|
},
|
|
541
541
|
201: {
|
|
542
|
-
bodyMapper: Mappers.JobResource
|
|
542
|
+
bodyMapper: Mappers.JobResource,
|
|
543
543
|
},
|
|
544
544
|
202: {
|
|
545
|
-
bodyMapper: Mappers.JobResource
|
|
545
|
+
bodyMapper: Mappers.JobResource,
|
|
546
546
|
},
|
|
547
547
|
204: {
|
|
548
|
-
bodyMapper: Mappers.JobResource
|
|
548
|
+
bodyMapper: Mappers.JobResource,
|
|
549
549
|
},
|
|
550
550
|
default: {
|
|
551
|
-
bodyMapper: Mappers.ApiError
|
|
552
|
-
}
|
|
551
|
+
bodyMapper: Mappers.ApiError,
|
|
552
|
+
},
|
|
553
553
|
},
|
|
554
554
|
requestBody: Parameters.jobResource,
|
|
555
555
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -557,11 +557,11 @@ const createOperationSpec = {
|
|
|
557
557
|
Parameters.$host,
|
|
558
558
|
Parameters.subscriptionId,
|
|
559
559
|
Parameters.jobName,
|
|
560
|
-
Parameters.resourceGroupName
|
|
560
|
+
Parameters.resourceGroupName,
|
|
561
561
|
],
|
|
562
562
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
563
563
|
mediaType: "json",
|
|
564
|
-
serializer
|
|
564
|
+
serializer,
|
|
565
565
|
};
|
|
566
566
|
const deleteOperationSpec = {
|
|
567
567
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
@@ -572,38 +572,38 @@ const deleteOperationSpec = {
|
|
|
572
572
|
202: {},
|
|
573
573
|
204: {},
|
|
574
574
|
default: {
|
|
575
|
-
bodyMapper: Mappers.ApiError
|
|
576
|
-
}
|
|
575
|
+
bodyMapper: Mappers.ApiError,
|
|
576
|
+
},
|
|
577
577
|
},
|
|
578
578
|
queryParameters: [Parameters.apiVersion],
|
|
579
579
|
urlParameters: [
|
|
580
580
|
Parameters.$host,
|
|
581
581
|
Parameters.subscriptionId,
|
|
582
582
|
Parameters.jobName,
|
|
583
|
-
Parameters.resourceGroupName
|
|
583
|
+
Parameters.resourceGroupName,
|
|
584
584
|
],
|
|
585
585
|
headerParameters: [Parameters.accept],
|
|
586
|
-
serializer
|
|
586
|
+
serializer,
|
|
587
587
|
};
|
|
588
588
|
const updateOperationSpec = {
|
|
589
589
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
590
590
|
httpMethod: "PATCH",
|
|
591
591
|
responses: {
|
|
592
592
|
200: {
|
|
593
|
-
bodyMapper: Mappers.JobResource
|
|
593
|
+
bodyMapper: Mappers.JobResource,
|
|
594
594
|
},
|
|
595
595
|
201: {
|
|
596
|
-
bodyMapper: Mappers.JobResource
|
|
596
|
+
bodyMapper: Mappers.JobResource,
|
|
597
597
|
},
|
|
598
598
|
202: {
|
|
599
|
-
bodyMapper: Mappers.JobResource
|
|
599
|
+
bodyMapper: Mappers.JobResource,
|
|
600
600
|
},
|
|
601
601
|
204: {
|
|
602
|
-
bodyMapper: Mappers.JobResource
|
|
602
|
+
bodyMapper: Mappers.JobResource,
|
|
603
603
|
},
|
|
604
604
|
default: {
|
|
605
|
-
bodyMapper: Mappers.ApiError
|
|
606
|
-
}
|
|
605
|
+
bodyMapper: Mappers.ApiError,
|
|
606
|
+
},
|
|
607
607
|
},
|
|
608
608
|
requestBody: Parameters.jobResourceUpdateParameter,
|
|
609
609
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -611,26 +611,26 @@ const updateOperationSpec = {
|
|
|
611
611
|
Parameters.$host,
|
|
612
612
|
Parameters.subscriptionId,
|
|
613
613
|
Parameters.jobName,
|
|
614
|
-
Parameters.resourceGroupName
|
|
614
|
+
Parameters.resourceGroupName,
|
|
615
615
|
],
|
|
616
616
|
headerParameters: [
|
|
617
617
|
Parameters.accept,
|
|
618
618
|
Parameters.contentType,
|
|
619
|
-
Parameters.ifMatch
|
|
619
|
+
Parameters.ifMatch,
|
|
620
620
|
],
|
|
621
621
|
mediaType: "json",
|
|
622
|
-
serializer
|
|
622
|
+
serializer,
|
|
623
623
|
};
|
|
624
624
|
const bookShipmentPickUpOperationSpec = {
|
|
625
625
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/bookShipmentPickUp",
|
|
626
626
|
httpMethod: "POST",
|
|
627
627
|
responses: {
|
|
628
628
|
200: {
|
|
629
|
-
bodyMapper: Mappers.ShipmentPickUpResponse
|
|
629
|
+
bodyMapper: Mappers.ShipmentPickUpResponse,
|
|
630
630
|
},
|
|
631
631
|
default: {
|
|
632
|
-
bodyMapper: Mappers.ApiError
|
|
633
|
-
}
|
|
632
|
+
bodyMapper: Mappers.ApiError,
|
|
633
|
+
},
|
|
634
634
|
},
|
|
635
635
|
requestBody: Parameters.shipmentPickUpRequest,
|
|
636
636
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -638,11 +638,11 @@ const bookShipmentPickUpOperationSpec = {
|
|
|
638
638
|
Parameters.$host,
|
|
639
639
|
Parameters.subscriptionId,
|
|
640
640
|
Parameters.jobName,
|
|
641
|
-
Parameters.resourceGroupName
|
|
641
|
+
Parameters.resourceGroupName,
|
|
642
642
|
],
|
|
643
643
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
644
644
|
mediaType: "json",
|
|
645
|
-
serializer
|
|
645
|
+
serializer,
|
|
646
646
|
};
|
|
647
647
|
const cancelOperationSpec = {
|
|
648
648
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel",
|
|
@@ -650,8 +650,8 @@ const cancelOperationSpec = {
|
|
|
650
650
|
responses: {
|
|
651
651
|
204: {},
|
|
652
652
|
default: {
|
|
653
|
-
bodyMapper: Mappers.ApiError
|
|
654
|
-
}
|
|
653
|
+
bodyMapper: Mappers.ApiError,
|
|
654
|
+
},
|
|
655
655
|
},
|
|
656
656
|
requestBody: Parameters.cancellationReason,
|
|
657
657
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -659,70 +659,70 @@ const cancelOperationSpec = {
|
|
|
659
659
|
Parameters.$host,
|
|
660
660
|
Parameters.subscriptionId,
|
|
661
661
|
Parameters.jobName,
|
|
662
|
-
Parameters.resourceGroupName
|
|
662
|
+
Parameters.resourceGroupName,
|
|
663
663
|
],
|
|
664
664
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
665
665
|
mediaType: "json",
|
|
666
|
-
serializer
|
|
666
|
+
serializer,
|
|
667
667
|
};
|
|
668
668
|
const listCredentialsOperationSpec = {
|
|
669
669
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials",
|
|
670
670
|
httpMethod: "POST",
|
|
671
671
|
responses: {
|
|
672
672
|
200: {
|
|
673
|
-
bodyMapper: Mappers.UnencryptedCredentialsList
|
|
673
|
+
bodyMapper: Mappers.UnencryptedCredentialsList,
|
|
674
674
|
},
|
|
675
675
|
default: {
|
|
676
|
-
bodyMapper: Mappers.ApiError
|
|
677
|
-
}
|
|
676
|
+
bodyMapper: Mappers.ApiError,
|
|
677
|
+
},
|
|
678
678
|
},
|
|
679
679
|
queryParameters: [Parameters.apiVersion],
|
|
680
680
|
urlParameters: [
|
|
681
681
|
Parameters.$host,
|
|
682
682
|
Parameters.subscriptionId,
|
|
683
683
|
Parameters.jobName,
|
|
684
|
-
Parameters.resourceGroupName
|
|
684
|
+
Parameters.resourceGroupName,
|
|
685
685
|
],
|
|
686
686
|
headerParameters: [Parameters.accept],
|
|
687
|
-
serializer
|
|
687
|
+
serializer,
|
|
688
688
|
};
|
|
689
689
|
const listNextOperationSpec = {
|
|
690
690
|
path: "{nextLink}",
|
|
691
691
|
httpMethod: "GET",
|
|
692
692
|
responses: {
|
|
693
693
|
200: {
|
|
694
|
-
bodyMapper: Mappers.JobResourceList
|
|
694
|
+
bodyMapper: Mappers.JobResourceList,
|
|
695
695
|
},
|
|
696
696
|
default: {
|
|
697
|
-
bodyMapper: Mappers.ApiError
|
|
698
|
-
}
|
|
697
|
+
bodyMapper: Mappers.ApiError,
|
|
698
|
+
},
|
|
699
699
|
},
|
|
700
700
|
urlParameters: [
|
|
701
701
|
Parameters.$host,
|
|
702
702
|
Parameters.nextLink,
|
|
703
|
-
Parameters.subscriptionId
|
|
703
|
+
Parameters.subscriptionId,
|
|
704
704
|
],
|
|
705
705
|
headerParameters: [Parameters.accept],
|
|
706
|
-
serializer
|
|
706
|
+
serializer,
|
|
707
707
|
};
|
|
708
708
|
const listByResourceGroupNextOperationSpec = {
|
|
709
709
|
path: "{nextLink}",
|
|
710
710
|
httpMethod: "GET",
|
|
711
711
|
responses: {
|
|
712
712
|
200: {
|
|
713
|
-
bodyMapper: Mappers.JobResourceList
|
|
713
|
+
bodyMapper: Mappers.JobResourceList,
|
|
714
714
|
},
|
|
715
715
|
default: {
|
|
716
|
-
bodyMapper: Mappers.ApiError
|
|
717
|
-
}
|
|
716
|
+
bodyMapper: Mappers.ApiError,
|
|
717
|
+
},
|
|
718
718
|
},
|
|
719
719
|
urlParameters: [
|
|
720
720
|
Parameters.$host,
|
|
721
721
|
Parameters.nextLink,
|
|
722
722
|
Parameters.subscriptionId,
|
|
723
|
-
Parameters.resourceGroupName
|
|
723
|
+
Parameters.resourceGroupName,
|
|
724
724
|
],
|
|
725
725
|
headerParameters: [Parameters.accept],
|
|
726
|
-
serializer
|
|
726
|
+
serializer,
|
|
727
727
|
};
|
|
728
728
|
//# sourceMappingURL=jobs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operations/jobs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA+B9C,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAgC;QAEhC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAgC,EAChC,QAAuB;;YAEvB,IAAI,MAAwB,CAA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AAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Jobs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataBoxManagementClient } from \"../dataBoxManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n JobResource,\n JobsListNextOptionalParams,\n JobsListOptionalParams,\n JobsListResponse,\n JobsListByResourceGroupNextOptionalParams,\n JobsListByResourceGroupOptionalParams,\n JobsListByResourceGroupResponse,\n UnencryptedCredentials,\n JobsListCredentialsOptionalParams,\n JobsListCredentialsResponse,\n MarkDevicesShippedRequest,\n JobsMarkDevicesShippedOptionalParams,\n JobsGetOptionalParams,\n JobsGetResponse,\n JobsCreateOptionalParams,\n JobsCreateResponse,\n JobsDeleteOptionalParams,\n JobResourceUpdateParameter,\n JobsUpdateOptionalParams,\n JobsUpdateResponse,\n ShipmentPickUpRequest,\n JobsBookShipmentPickUpOptionalParams,\n JobsBookShipmentPickUpResponse,\n CancellationReason,\n JobsCancelOptionalParams,\n JobsListNextResponse,\n JobsListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Jobs operations. */\nexport class JobsImpl implements Jobs {\n private readonly client: DataBoxManagementClient;\n\n /**\n * Initialize a new instance of the class Jobs class.\n * @param client Reference to the service client\n */\n constructor(client: DataBoxManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the jobs available under the subscription.\n * @param options The options parameters.\n */\n public list(\n options?: JobsListOptionalParams\n ): PagedAsyncIterableIterator<JobResource> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: JobsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<JobResource[]> {\n let result: JobsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: JobsListOptionalParams\n ): AsyncIterableIterator<JobResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the jobs available under the given resource group.\n * @param resourceGroupName The Resource Group Name\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<JobResource> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<JobResource[]> {\n let result: JobsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<JobResource> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * This method gets the unencrypted secrets related to the job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param options The options parameters.\n */\n public listCredentials(\n resourceGroupName: string,\n jobName: string,\n options?: JobsListCredentialsOptionalParams\n ): PagedAsyncIterableIterator<UnencryptedCredentials> {\n const iter = this.listCredentialsPagingAll(\n resourceGroupName,\n jobName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listCredentialsPagingPage(\n resourceGroupName,\n jobName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listCredentialsPagingPage(\n resourceGroupName: string,\n jobName: string,\n options?: JobsListCredentialsOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<UnencryptedCredentials[]> {\n let result: JobsListCredentialsResponse;\n result = await this._listCredentials(resourceGroupName, jobName, options);\n yield result.value || [];\n }\n\n private async *listCredentialsPagingAll(\n resourceGroupName: string,\n jobName: string,\n options?: JobsListCredentialsOptionalParams\n ): AsyncIterableIterator<UnencryptedCredentials> {\n for await (const page of this.listCredentialsPagingPage(\n resourceGroupName,\n jobName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the jobs available under the subscription.\n * @param options The options parameters.\n */\n private _list(options?: JobsListOptionalParams): Promise<JobsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Request to mark devices for a given job as shipped\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param resourceGroupName The Resource Group Name\n * @param markDevicesShippedRequest Mark Devices Shipped Request\n * @param options The options parameters.\n */\n markDevicesShipped(\n jobName: string,\n resourceGroupName: string,\n markDevicesShippedRequest: MarkDevicesShippedRequest,\n options?: JobsMarkDevicesShippedOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { jobName, resourceGroupName, markDevicesShippedRequest, options },\n markDevicesShippedOperationSpec\n );\n }\n\n /**\n * Lists all the jobs available under the given resource group.\n * @param resourceGroupName The Resource Group Name\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams\n ): Promise<JobsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets information about the specified job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n options?: JobsGetOptionalParams\n ): Promise<JobsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates a new job with the specified parameters. Existing job cannot be updated with this API and\n * should instead be updated with the Update job API.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param jobResource Job details from request body.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n jobName: string,\n jobResource: JobResource,\n options?: JobsCreateOptionalParams\n ): Promise<\n SimplePollerLike<OperationState<JobsCreateResponse>, JobsCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<JobsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, jobName, jobResource, options },\n spec: createOperationSpec\n });\n const poller = await createHttpPoller<\n JobsCreateResponse,\n OperationState<JobsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new job with the specified parameters. Existing job cannot be updated with this API and\n * should instead be updated with the Update job API.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param jobResource Job details from request body.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n jobName: string,\n jobResource: JobResource,\n options?: JobsCreateOptionalParams\n ): Promise<JobsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n jobName,\n jobResource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n jobName: string,\n options?: JobsDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, jobName, options },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n jobName: string,\n options?: JobsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, jobName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Updates the properties of an existing job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param jobResourceUpdateParameter Job update parameters from request body.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n jobName: string,\n jobResourceUpdateParameter: JobResourceUpdateParameter,\n options?: JobsUpdateOptionalParams\n ): Promise<\n SimplePollerLike<OperationState<JobsUpdateResponse>, JobsUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<JobsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, jobName, jobResourceUpdateParameter, options },\n spec: updateOperationSpec\n });\n const poller = await createHttpPoller<\n JobsUpdateResponse,\n OperationState<JobsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the properties of an existing job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param jobResourceUpdateParameter Job update parameters from request body.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n jobName: string,\n jobResourceUpdateParameter: JobResourceUpdateParameter,\n options?: JobsUpdateOptionalParams\n ): Promise<JobsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n jobName,\n jobResourceUpdateParameter,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Book shipment pick up.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param shipmentPickUpRequest Details of shipment pick up request.\n * @param options The options parameters.\n */\n bookShipmentPickUp(\n resourceGroupName: string,\n jobName: string,\n shipmentPickUpRequest: ShipmentPickUpRequest,\n options?: JobsBookShipmentPickUpOptionalParams\n ): Promise<JobsBookShipmentPickUpResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, shipmentPickUpRequest, options },\n bookShipmentPickUpOperationSpec\n );\n }\n\n /**\n * CancelJob.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param cancellationReason Reason for cancellation.\n * @param options The options parameters.\n */\n cancel(\n resourceGroupName: string,\n jobName: string,\n cancellationReason: CancellationReason,\n options?: JobsCancelOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, cancellationReason, options },\n cancelOperationSpec\n );\n }\n\n /**\n * This method gets the unencrypted secrets related to the job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param options The options parameters.\n */\n private _listCredentials(\n resourceGroupName: string,\n jobName: string,\n options?: JobsListCredentialsOptionalParams\n ): Promise<JobsListCredentialsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, options },\n listCredentialsOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: JobsListNextOptionalParams\n ): Promise<JobsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The Resource Group Name\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: JobsListByResourceGroupNextOptionalParams\n ): Promise<JobsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResourceList\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst markDevicesShippedOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/markDevicesShipped\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.markDevicesShippedRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResourceList\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResource\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResource\n },\n 201: {\n bodyMapper: Mappers.JobResource\n },\n 202: {\n bodyMapper: Mappers.JobResource\n },\n 204: {\n bodyMapper: Mappers.JobResource\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.jobResource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResource\n },\n 201: {\n bodyMapper: Mappers.JobResource\n },\n 202: {\n bodyMapper: Mappers.JobResource\n },\n 204: {\n bodyMapper: Mappers.JobResource\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.jobResourceUpdateParameter,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst bookShipmentPickUpOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/bookShipmentPickUp\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShipmentPickUpResponse\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.shipmentPickUpRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.cancellationReason,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listCredentialsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.UnencryptedCredentialsList\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResourceList\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResourceList\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operations/jobs.ts"],"names":[],"mappings":";AAAA;;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;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Jobs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataBoxManagementClient } from \"../dataBoxManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n JobResource,\n JobsListNextOptionalParams,\n JobsListOptionalParams,\n JobsListResponse,\n JobsListByResourceGroupNextOptionalParams,\n JobsListByResourceGroupOptionalParams,\n JobsListByResourceGroupResponse,\n UnencryptedCredentials,\n JobsListCredentialsOptionalParams,\n JobsListCredentialsResponse,\n MarkDevicesShippedRequest,\n JobsMarkDevicesShippedOptionalParams,\n JobsGetOptionalParams,\n JobsGetResponse,\n JobsCreateOptionalParams,\n JobsCreateResponse,\n JobsDeleteOptionalParams,\n JobResourceUpdateParameter,\n JobsUpdateOptionalParams,\n JobsUpdateResponse,\n ShipmentPickUpRequest,\n JobsBookShipmentPickUpOptionalParams,\n JobsBookShipmentPickUpResponse,\n CancellationReason,\n JobsCancelOptionalParams,\n JobsListNextResponse,\n JobsListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Jobs operations. */\nexport class JobsImpl implements Jobs {\n private readonly client: DataBoxManagementClient;\n\n /**\n * Initialize a new instance of the class Jobs class.\n * @param client Reference to the service client\n */\n constructor(client: DataBoxManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the jobs available under the subscription.\n * @param options The options parameters.\n */\n public list(\n options?: JobsListOptionalParams,\n ): PagedAsyncIterableIterator<JobResource> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: JobsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<JobResource[]> {\n let result: JobsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: JobsListOptionalParams,\n ): AsyncIterableIterator<JobResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the jobs available under the given resource group.\n * @param resourceGroupName The Resource Group Name\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<JobResource> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<JobResource[]> {\n let result: JobsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<JobResource> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * This method gets the unencrypted secrets related to the job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param options The options parameters.\n */\n public listCredentials(\n resourceGroupName: string,\n jobName: string,\n options?: JobsListCredentialsOptionalParams,\n ): PagedAsyncIterableIterator<UnencryptedCredentials> {\n const iter = this.listCredentialsPagingAll(\n resourceGroupName,\n jobName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listCredentialsPagingPage(\n resourceGroupName,\n jobName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listCredentialsPagingPage(\n resourceGroupName: string,\n jobName: string,\n options?: JobsListCredentialsOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<UnencryptedCredentials[]> {\n let result: JobsListCredentialsResponse;\n result = await this._listCredentials(resourceGroupName, jobName, options);\n yield result.value || [];\n }\n\n private async *listCredentialsPagingAll(\n resourceGroupName: string,\n jobName: string,\n options?: JobsListCredentialsOptionalParams,\n ): AsyncIterableIterator<UnencryptedCredentials> {\n for await (const page of this.listCredentialsPagingPage(\n resourceGroupName,\n jobName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the jobs available under the subscription.\n * @param options The options parameters.\n */\n private _list(options?: JobsListOptionalParams): Promise<JobsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Request to mark devices for a given job as shipped\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param resourceGroupName The Resource Group Name\n * @param markDevicesShippedRequest Mark Devices Shipped Request\n * @param options The options parameters.\n */\n markDevicesShipped(\n jobName: string,\n resourceGroupName: string,\n markDevicesShippedRequest: MarkDevicesShippedRequest,\n options?: JobsMarkDevicesShippedOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { jobName, resourceGroupName, markDevicesShippedRequest, options },\n markDevicesShippedOperationSpec,\n );\n }\n\n /**\n * Lists all the jobs available under the given resource group.\n * @param resourceGroupName The Resource Group Name\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams,\n ): Promise<JobsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Gets information about the specified job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n options?: JobsGetOptionalParams,\n ): Promise<JobsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new job with the specified parameters. Existing job cannot be updated with this API and\n * should instead be updated with the Update job API.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param jobResource Job details from request body.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n jobName: string,\n jobResource: JobResource,\n options?: JobsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<JobsCreateResponse>, JobsCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<JobsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, jobName, jobResource, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n JobsCreateResponse,\n OperationState<JobsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new job with the specified parameters. Existing job cannot be updated with this API and\n * should instead be updated with the Update job API.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param jobResource Job details from request body.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n jobName: string,\n jobResource: JobResource,\n options?: JobsCreateOptionalParams,\n ): Promise<JobsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n jobName,\n jobResource,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n jobName: string,\n options?: JobsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, jobName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n jobName: string,\n options?: JobsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, jobName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Updates the properties of an existing job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param jobResourceUpdateParameter Job update parameters from request body.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n jobName: string,\n jobResourceUpdateParameter: JobResourceUpdateParameter,\n options?: JobsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<JobsUpdateResponse>, JobsUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<JobsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, jobName, jobResourceUpdateParameter, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n JobsUpdateResponse,\n OperationState<JobsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the properties of an existing job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param jobResourceUpdateParameter Job update parameters from request body.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n jobName: string,\n jobResourceUpdateParameter: JobResourceUpdateParameter,\n options?: JobsUpdateOptionalParams,\n ): Promise<JobsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n jobName,\n jobResourceUpdateParameter,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Book shipment pick up.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param shipmentPickUpRequest Details of shipment pick up request.\n * @param options The options parameters.\n */\n bookShipmentPickUp(\n resourceGroupName: string,\n jobName: string,\n shipmentPickUpRequest: ShipmentPickUpRequest,\n options?: JobsBookShipmentPickUpOptionalParams,\n ): Promise<JobsBookShipmentPickUpResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, shipmentPickUpRequest, options },\n bookShipmentPickUpOperationSpec,\n );\n }\n\n /**\n * CancelJob.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param cancellationReason Reason for cancellation.\n * @param options The options parameters.\n */\n cancel(\n resourceGroupName: string,\n jobName: string,\n cancellationReason: CancellationReason,\n options?: JobsCancelOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, cancellationReason, options },\n cancelOperationSpec,\n );\n }\n\n /**\n * This method gets the unencrypted secrets related to the job.\n * @param resourceGroupName The Resource Group Name\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param options The options parameters.\n */\n private _listCredentials(\n resourceGroupName: string,\n jobName: string,\n options?: JobsListCredentialsOptionalParams,\n ): Promise<JobsListCredentialsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, options },\n listCredentialsOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: JobsListNextOptionalParams,\n ): Promise<JobsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The Resource Group Name\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: JobsListByResourceGroupNextOptionalParams,\n ): Promise<JobsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResourceList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst markDevicesShippedOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/markDevicesShipped\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.markDevicesShippedRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResourceList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResource,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResource,\n },\n 201: {\n bodyMapper: Mappers.JobResource,\n },\n 202: {\n bodyMapper: Mappers.JobResource,\n },\n 204: {\n bodyMapper: Mappers.JobResource,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.jobResource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResource,\n },\n 201: {\n bodyMapper: Mappers.JobResource,\n },\n 202: {\n bodyMapper: Mappers.JobResource,\n },\n 204: {\n bodyMapper: Mappers.JobResource,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.jobResourceUpdateParameter,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst bookShipmentPickUpOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/bookShipmentPickUp\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShipmentPickUpResponse,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.shipmentPickUpRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.cancellationReason,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listCredentialsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.UnencryptedCredentialsList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResourceList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResourceList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|