@azure/arm-databox 5.0.1-alpha.20250326.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
|
@@ -10,7 +10,7 @@ import { setContinuationToken } from "../pagingHelper.js";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers.js";
|
|
12
12
|
import * as Parameters from "../models/parameters.js";
|
|
13
|
-
import { createHttpPoller } from "@azure/core-lro";
|
|
13
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
14
14
|
import { createLroSpec } from "../lroImpl.js";
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing Jobs operations. */
|
|
@@ -40,7 +40,7 @@ export class JobsImpl {
|
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listPagingPage(options, settings);
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
listPagingPage(options, settings) {
|
|
@@ -102,7 +102,7 @@ export class JobsImpl {
|
|
|
102
102
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
103
|
}
|
|
104
104
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
|
-
}
|
|
105
|
+
},
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
@@ -166,7 +166,7 @@ export class JobsImpl {
|
|
|
166
166
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
167
167
|
}
|
|
168
168
|
return this.listCredentialsPagingPage(resourceGroupName, jobName, options, settings);
|
|
169
|
-
}
|
|
169
|
+
},
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
listCredentialsPagingPage(resourceGroupName, jobName, options, _settings) {
|
|
@@ -260,18 +260,18 @@ export class JobsImpl {
|
|
|
260
260
|
rawResponse: {
|
|
261
261
|
statusCode: currentRawResponse.status,
|
|
262
262
|
body: currentRawResponse.parsedBody,
|
|
263
|
-
headers: currentRawResponse.headers.toJSON()
|
|
264
|
-
}
|
|
263
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
264
|
+
},
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
const lro = createLroSpec({
|
|
268
268
|
sendOperationFn,
|
|
269
269
|
args: { resourceGroupName, jobName, jobResource, options },
|
|
270
|
-
spec: createOperationSpec
|
|
270
|
+
spec: createOperationSpec,
|
|
271
271
|
});
|
|
272
272
|
const poller = await createHttpPoller(lro, {
|
|
273
273
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
274
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
274
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
275
275
|
});
|
|
276
276
|
await poller.poll();
|
|
277
277
|
return poller;
|
|
@@ -315,18 +315,18 @@ export class JobsImpl {
|
|
|
315
315
|
rawResponse: {
|
|
316
316
|
statusCode: currentRawResponse.status,
|
|
317
317
|
body: currentRawResponse.parsedBody,
|
|
318
|
-
headers: currentRawResponse.headers.toJSON()
|
|
319
|
-
}
|
|
318
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
319
|
+
},
|
|
320
320
|
};
|
|
321
321
|
};
|
|
322
322
|
const lro = createLroSpec({
|
|
323
323
|
sendOperationFn,
|
|
324
324
|
args: { resourceGroupName, jobName, options },
|
|
325
|
-
spec: deleteOperationSpec
|
|
325
|
+
spec: deleteOperationSpec,
|
|
326
326
|
});
|
|
327
327
|
const poller = await createHttpPoller(lro, {
|
|
328
328
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
329
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
329
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
330
330
|
});
|
|
331
331
|
await poller.poll();
|
|
332
332
|
return poller;
|
|
@@ -369,18 +369,18 @@ export class JobsImpl {
|
|
|
369
369
|
rawResponse: {
|
|
370
370
|
statusCode: currentRawResponse.status,
|
|
371
371
|
body: currentRawResponse.parsedBody,
|
|
372
|
-
headers: currentRawResponse.headers.toJSON()
|
|
373
|
-
}
|
|
372
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
373
|
+
},
|
|
374
374
|
};
|
|
375
375
|
};
|
|
376
376
|
const lro = createLroSpec({
|
|
377
377
|
sendOperationFn,
|
|
378
378
|
args: { resourceGroupName, jobName, jobResourceUpdateParameter, options },
|
|
379
|
-
spec: updateOperationSpec
|
|
379
|
+
spec: updateOperationSpec,
|
|
380
380
|
});
|
|
381
381
|
const poller = await createHttpPoller(lro, {
|
|
382
382
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
383
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
383
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
384
384
|
});
|
|
385
385
|
await poller.poll();
|
|
386
386
|
return poller;
|
|
@@ -454,16 +454,16 @@ const listOperationSpec = {
|
|
|
454
454
|
httpMethod: "GET",
|
|
455
455
|
responses: {
|
|
456
456
|
200: {
|
|
457
|
-
bodyMapper: Mappers.JobResourceList
|
|
457
|
+
bodyMapper: Mappers.JobResourceList,
|
|
458
458
|
},
|
|
459
459
|
default: {
|
|
460
|
-
bodyMapper: Mappers.ApiError
|
|
461
|
-
}
|
|
460
|
+
bodyMapper: Mappers.ApiError,
|
|
461
|
+
},
|
|
462
462
|
},
|
|
463
463
|
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
464
464
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
465
465
|
headerParameters: [Parameters.accept],
|
|
466
|
-
serializer
|
|
466
|
+
serializer,
|
|
467
467
|
};
|
|
468
468
|
const markDevicesShippedOperationSpec = {
|
|
469
469
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/markDevicesShipped",
|
|
@@ -471,8 +471,8 @@ const markDevicesShippedOperationSpec = {
|
|
|
471
471
|
responses: {
|
|
472
472
|
204: {},
|
|
473
473
|
default: {
|
|
474
|
-
bodyMapper: Mappers.ApiError
|
|
475
|
-
}
|
|
474
|
+
bodyMapper: Mappers.ApiError,
|
|
475
|
+
},
|
|
476
476
|
},
|
|
477
477
|
requestBody: Parameters.markDevicesShippedRequest,
|
|
478
478
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -480,72 +480,72 @@ const markDevicesShippedOperationSpec = {
|
|
|
480
480
|
Parameters.$host,
|
|
481
481
|
Parameters.subscriptionId,
|
|
482
482
|
Parameters.jobName,
|
|
483
|
-
Parameters.resourceGroupName
|
|
483
|
+
Parameters.resourceGroupName,
|
|
484
484
|
],
|
|
485
485
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
486
486
|
mediaType: "json",
|
|
487
|
-
serializer
|
|
487
|
+
serializer,
|
|
488
488
|
};
|
|
489
489
|
const listByResourceGroupOperationSpec = {
|
|
490
490
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs",
|
|
491
491
|
httpMethod: "GET",
|
|
492
492
|
responses: {
|
|
493
493
|
200: {
|
|
494
|
-
bodyMapper: Mappers.JobResourceList
|
|
494
|
+
bodyMapper: Mappers.JobResourceList,
|
|
495
495
|
},
|
|
496
496
|
default: {
|
|
497
|
-
bodyMapper: Mappers.ApiError
|
|
498
|
-
}
|
|
497
|
+
bodyMapper: Mappers.ApiError,
|
|
498
|
+
},
|
|
499
499
|
},
|
|
500
500
|
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
501
501
|
urlParameters: [
|
|
502
502
|
Parameters.$host,
|
|
503
503
|
Parameters.subscriptionId,
|
|
504
|
-
Parameters.resourceGroupName
|
|
504
|
+
Parameters.resourceGroupName,
|
|
505
505
|
],
|
|
506
506
|
headerParameters: [Parameters.accept],
|
|
507
|
-
serializer
|
|
507
|
+
serializer,
|
|
508
508
|
};
|
|
509
509
|
const getOperationSpec = {
|
|
510
510
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
511
511
|
httpMethod: "GET",
|
|
512
512
|
responses: {
|
|
513
513
|
200: {
|
|
514
|
-
bodyMapper: Mappers.JobResource
|
|
514
|
+
bodyMapper: Mappers.JobResource,
|
|
515
515
|
},
|
|
516
516
|
default: {
|
|
517
|
-
bodyMapper: Mappers.ApiError
|
|
518
|
-
}
|
|
517
|
+
bodyMapper: Mappers.ApiError,
|
|
518
|
+
},
|
|
519
519
|
},
|
|
520
520
|
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
521
521
|
urlParameters: [
|
|
522
522
|
Parameters.$host,
|
|
523
523
|
Parameters.subscriptionId,
|
|
524
524
|
Parameters.jobName,
|
|
525
|
-
Parameters.resourceGroupName
|
|
525
|
+
Parameters.resourceGroupName,
|
|
526
526
|
],
|
|
527
527
|
headerParameters: [Parameters.accept],
|
|
528
|
-
serializer
|
|
528
|
+
serializer,
|
|
529
529
|
};
|
|
530
530
|
const createOperationSpec = {
|
|
531
531
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
532
532
|
httpMethod: "PUT",
|
|
533
533
|
responses: {
|
|
534
534
|
200: {
|
|
535
|
-
bodyMapper: Mappers.JobResource
|
|
535
|
+
bodyMapper: Mappers.JobResource,
|
|
536
536
|
},
|
|
537
537
|
201: {
|
|
538
|
-
bodyMapper: Mappers.JobResource
|
|
538
|
+
bodyMapper: Mappers.JobResource,
|
|
539
539
|
},
|
|
540
540
|
202: {
|
|
541
|
-
bodyMapper: Mappers.JobResource
|
|
541
|
+
bodyMapper: Mappers.JobResource,
|
|
542
542
|
},
|
|
543
543
|
204: {
|
|
544
|
-
bodyMapper: Mappers.JobResource
|
|
544
|
+
bodyMapper: Mappers.JobResource,
|
|
545
545
|
},
|
|
546
546
|
default: {
|
|
547
|
-
bodyMapper: Mappers.ApiError
|
|
548
|
-
}
|
|
547
|
+
bodyMapper: Mappers.ApiError,
|
|
548
|
+
},
|
|
549
549
|
},
|
|
550
550
|
requestBody: Parameters.jobResource,
|
|
551
551
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -553,11 +553,11 @@ const createOperationSpec = {
|
|
|
553
553
|
Parameters.$host,
|
|
554
554
|
Parameters.subscriptionId,
|
|
555
555
|
Parameters.jobName,
|
|
556
|
-
Parameters.resourceGroupName
|
|
556
|
+
Parameters.resourceGroupName,
|
|
557
557
|
],
|
|
558
558
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
559
559
|
mediaType: "json",
|
|
560
|
-
serializer
|
|
560
|
+
serializer,
|
|
561
561
|
};
|
|
562
562
|
const deleteOperationSpec = {
|
|
563
563
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
@@ -568,38 +568,38 @@ const deleteOperationSpec = {
|
|
|
568
568
|
202: {},
|
|
569
569
|
204: {},
|
|
570
570
|
default: {
|
|
571
|
-
bodyMapper: Mappers.ApiError
|
|
572
|
-
}
|
|
571
|
+
bodyMapper: Mappers.ApiError,
|
|
572
|
+
},
|
|
573
573
|
},
|
|
574
574
|
queryParameters: [Parameters.apiVersion],
|
|
575
575
|
urlParameters: [
|
|
576
576
|
Parameters.$host,
|
|
577
577
|
Parameters.subscriptionId,
|
|
578
578
|
Parameters.jobName,
|
|
579
|
-
Parameters.resourceGroupName
|
|
579
|
+
Parameters.resourceGroupName,
|
|
580
580
|
],
|
|
581
581
|
headerParameters: [Parameters.accept],
|
|
582
|
-
serializer
|
|
582
|
+
serializer,
|
|
583
583
|
};
|
|
584
584
|
const updateOperationSpec = {
|
|
585
585
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
586
586
|
httpMethod: "PATCH",
|
|
587
587
|
responses: {
|
|
588
588
|
200: {
|
|
589
|
-
bodyMapper: Mappers.JobResource
|
|
589
|
+
bodyMapper: Mappers.JobResource,
|
|
590
590
|
},
|
|
591
591
|
201: {
|
|
592
|
-
bodyMapper: Mappers.JobResource
|
|
592
|
+
bodyMapper: Mappers.JobResource,
|
|
593
593
|
},
|
|
594
594
|
202: {
|
|
595
|
-
bodyMapper: Mappers.JobResource
|
|
595
|
+
bodyMapper: Mappers.JobResource,
|
|
596
596
|
},
|
|
597
597
|
204: {
|
|
598
|
-
bodyMapper: Mappers.JobResource
|
|
598
|
+
bodyMapper: Mappers.JobResource,
|
|
599
599
|
},
|
|
600
600
|
default: {
|
|
601
|
-
bodyMapper: Mappers.ApiError
|
|
602
|
-
}
|
|
601
|
+
bodyMapper: Mappers.ApiError,
|
|
602
|
+
},
|
|
603
603
|
},
|
|
604
604
|
requestBody: Parameters.jobResourceUpdateParameter,
|
|
605
605
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -607,26 +607,26 @@ const updateOperationSpec = {
|
|
|
607
607
|
Parameters.$host,
|
|
608
608
|
Parameters.subscriptionId,
|
|
609
609
|
Parameters.jobName,
|
|
610
|
-
Parameters.resourceGroupName
|
|
610
|
+
Parameters.resourceGroupName,
|
|
611
611
|
],
|
|
612
612
|
headerParameters: [
|
|
613
613
|
Parameters.accept,
|
|
614
614
|
Parameters.contentType,
|
|
615
|
-
Parameters.ifMatch
|
|
615
|
+
Parameters.ifMatch,
|
|
616
616
|
],
|
|
617
617
|
mediaType: "json",
|
|
618
|
-
serializer
|
|
618
|
+
serializer,
|
|
619
619
|
};
|
|
620
620
|
const bookShipmentPickUpOperationSpec = {
|
|
621
621
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/bookShipmentPickUp",
|
|
622
622
|
httpMethod: "POST",
|
|
623
623
|
responses: {
|
|
624
624
|
200: {
|
|
625
|
-
bodyMapper: Mappers.ShipmentPickUpResponse
|
|
625
|
+
bodyMapper: Mappers.ShipmentPickUpResponse,
|
|
626
626
|
},
|
|
627
627
|
default: {
|
|
628
|
-
bodyMapper: Mappers.ApiError
|
|
629
|
-
}
|
|
628
|
+
bodyMapper: Mappers.ApiError,
|
|
629
|
+
},
|
|
630
630
|
},
|
|
631
631
|
requestBody: Parameters.shipmentPickUpRequest,
|
|
632
632
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -634,11 +634,11 @@ const bookShipmentPickUpOperationSpec = {
|
|
|
634
634
|
Parameters.$host,
|
|
635
635
|
Parameters.subscriptionId,
|
|
636
636
|
Parameters.jobName,
|
|
637
|
-
Parameters.resourceGroupName
|
|
637
|
+
Parameters.resourceGroupName,
|
|
638
638
|
],
|
|
639
639
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
640
640
|
mediaType: "json",
|
|
641
|
-
serializer
|
|
641
|
+
serializer,
|
|
642
642
|
};
|
|
643
643
|
const cancelOperationSpec = {
|
|
644
644
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel",
|
|
@@ -646,8 +646,8 @@ const cancelOperationSpec = {
|
|
|
646
646
|
responses: {
|
|
647
647
|
204: {},
|
|
648
648
|
default: {
|
|
649
|
-
bodyMapper: Mappers.ApiError
|
|
650
|
-
}
|
|
649
|
+
bodyMapper: Mappers.ApiError,
|
|
650
|
+
},
|
|
651
651
|
},
|
|
652
652
|
requestBody: Parameters.cancellationReason,
|
|
653
653
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -655,70 +655,70 @@ const cancelOperationSpec = {
|
|
|
655
655
|
Parameters.$host,
|
|
656
656
|
Parameters.subscriptionId,
|
|
657
657
|
Parameters.jobName,
|
|
658
|
-
Parameters.resourceGroupName
|
|
658
|
+
Parameters.resourceGroupName,
|
|
659
659
|
],
|
|
660
660
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
661
661
|
mediaType: "json",
|
|
662
|
-
serializer
|
|
662
|
+
serializer,
|
|
663
663
|
};
|
|
664
664
|
const listCredentialsOperationSpec = {
|
|
665
665
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials",
|
|
666
666
|
httpMethod: "POST",
|
|
667
667
|
responses: {
|
|
668
668
|
200: {
|
|
669
|
-
bodyMapper: Mappers.UnencryptedCredentialsList
|
|
669
|
+
bodyMapper: Mappers.UnencryptedCredentialsList,
|
|
670
670
|
},
|
|
671
671
|
default: {
|
|
672
|
-
bodyMapper: Mappers.ApiError
|
|
673
|
-
}
|
|
672
|
+
bodyMapper: Mappers.ApiError,
|
|
673
|
+
},
|
|
674
674
|
},
|
|
675
675
|
queryParameters: [Parameters.apiVersion],
|
|
676
676
|
urlParameters: [
|
|
677
677
|
Parameters.$host,
|
|
678
678
|
Parameters.subscriptionId,
|
|
679
679
|
Parameters.jobName,
|
|
680
|
-
Parameters.resourceGroupName
|
|
680
|
+
Parameters.resourceGroupName,
|
|
681
681
|
],
|
|
682
682
|
headerParameters: [Parameters.accept],
|
|
683
|
-
serializer
|
|
683
|
+
serializer,
|
|
684
684
|
};
|
|
685
685
|
const listNextOperationSpec = {
|
|
686
686
|
path: "{nextLink}",
|
|
687
687
|
httpMethod: "GET",
|
|
688
688
|
responses: {
|
|
689
689
|
200: {
|
|
690
|
-
bodyMapper: Mappers.JobResourceList
|
|
690
|
+
bodyMapper: Mappers.JobResourceList,
|
|
691
691
|
},
|
|
692
692
|
default: {
|
|
693
|
-
bodyMapper: Mappers.ApiError
|
|
694
|
-
}
|
|
693
|
+
bodyMapper: Mappers.ApiError,
|
|
694
|
+
},
|
|
695
695
|
},
|
|
696
696
|
urlParameters: [
|
|
697
697
|
Parameters.$host,
|
|
698
698
|
Parameters.nextLink,
|
|
699
|
-
Parameters.subscriptionId
|
|
699
|
+
Parameters.subscriptionId,
|
|
700
700
|
],
|
|
701
701
|
headerParameters: [Parameters.accept],
|
|
702
|
-
serializer
|
|
702
|
+
serializer,
|
|
703
703
|
};
|
|
704
704
|
const listByResourceGroupNextOperationSpec = {
|
|
705
705
|
path: "{nextLink}",
|
|
706
706
|
httpMethod: "GET",
|
|
707
707
|
responses: {
|
|
708
708
|
200: {
|
|
709
|
-
bodyMapper: Mappers.JobResourceList
|
|
709
|
+
bodyMapper: Mappers.JobResourceList,
|
|
710
710
|
},
|
|
711
711
|
default: {
|
|
712
|
-
bodyMapper: Mappers.ApiError
|
|
713
|
-
}
|
|
712
|
+
bodyMapper: Mappers.ApiError,
|
|
713
|
+
},
|
|
714
714
|
},
|
|
715
715
|
urlParameters: [
|
|
716
716
|
Parameters.$host,
|
|
717
717
|
Parameters.nextLink,
|
|
718
718
|
Parameters.subscriptionId,
|
|
719
|
-
Parameters.resourceGroupName
|
|
719
|
+
Parameters.resourceGroupName,
|
|
720
720
|
],
|
|
721
721
|
headerParameters: [Parameters.accept],
|
|
722
|
-
serializer
|
|
722
|
+
serializer,
|
|
723
723
|
};
|
|
724
724
|
//# sourceMappingURL=jobs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operations/jobs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AA+B9C,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,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,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,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:\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;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AA+B9C,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,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;gB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,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"]}
|