1111- [ List] ( #jobs_list )
1212- [ ListByResourceGroup] ( #jobs_listbyresourcegroup )
1313- [ ListCredentials] ( #jobs_listcredentials )
14+ - [ MarkDevicesShipped] ( #jobs_markdevicesshipped )
1415- [ Update] ( #jobs_update )
1516
1617## Operations
@@ -38,7 +39,7 @@ import java.time.OffsetDateTime;
3839/* * Samples for Jobs BookShipmentPickUp. */
3940public final class JobsBookShipmentPickUpSamples {
4041 /*
41- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/BookShipmentPickupPost.json
42+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/BookShipmentPickupPost.json
4243 */
4344 /**
4445 * Sample code: BookShipmentPickupPost.
@@ -68,7 +69,7 @@ import com.azure.resourcemanager.databox.models.CancellationReason;
6869/* * Samples for Jobs Cancel. */
6970public final class JobsCancelSamples {
7071 /*
71- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsCancelPost.json
72+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsCancelPost.json
7273 */
7374 /**
7475 * Sample code: JobsCancelPost.
@@ -117,7 +118,7 @@ import java.util.Map;
117118/* * Samples for Jobs Create. */
118119public final class JobsCreateSamples {
119120 /*
120- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsCreateDevicePassword.json
121+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsCreateDevicePassword.json
121122 */
122123 /**
123124 * Sample code: JobsCreateDevicePassword.
@@ -164,7 +165,7 @@ public final class JobsCreateSamples {
164165 }
165166
166167 /*
167- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsCreate.json
168+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsCreate.json
168169 */
169170 /**
170171 * Sample code: JobsCreate.
@@ -209,7 +210,7 @@ public final class JobsCreateSamples {
209210 }
210211
211212 /*
212- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsCreateDoubleEncryption.json
213+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsCreateDoubleEncryption.json
213214 */
214215 /**
215216 * Sample code: JobsCreateDoubleEncryption.
@@ -258,7 +259,7 @@ public final class JobsCreateSamples {
258259 }
259260
260261 /*
261- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsCreateWithUserAssignedIdentity.json
262+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsCreateWithUserAssignedIdentity.json
262263 */
263264 /**
264265 * Sample code: JobsCreateWithUserAssignedIdentity.
@@ -310,7 +311,7 @@ public final class JobsCreateSamples {
310311 }
311312
312313 /*
313- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsCreateExport.json
314+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsCreateExport.json
314315 */
315316 /**
316317 * Sample code: JobsCreateExport.
@@ -383,7 +384,7 @@ public final class JobsCreateSamples {
383384/* * Samples for Jobs Delete. */
384385public final class JobsDeleteSamples {
385386 /*
386- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsDelete.json
387+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsDelete.json
387388 */
388389 /**
389390 * Sample code: JobsDelete.
@@ -402,7 +403,7 @@ public final class JobsDeleteSamples {
402403/* * Samples for Jobs GetByResourceGroup. */
403404public final class JobsGetByResourceGroupSamples {
404405 /*
405- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsGet.json
406+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsGet.json
406407 */
407408 /**
408409 * Sample code: JobsGet.
@@ -416,7 +417,7 @@ public final class JobsGetByResourceGroupSamples {
416417 }
417418
418419 /*
419- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsGetCmk.json
420+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsGetCmk.json
420421 */
421422 /**
422423 * Sample code: JobsGetCmk.
@@ -430,7 +431,7 @@ public final class JobsGetByResourceGroupSamples {
430431 }
431432
432433 /*
433- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsGetExport.json
434+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsGetExport.json
434435 */
435436 /**
436437 * Sample code: JobsGetExport.
@@ -444,7 +445,7 @@ public final class JobsGetByResourceGroupSamples {
444445 }
445446
446447 /*
447- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsGetCopyStuck.json
448+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsGetCopyStuck.json
448449 */
449450 /**
450451 * Sample code: JobsGetCopyStuck.
@@ -457,6 +458,21 @@ public final class JobsGetByResourceGroupSamples {
457458 .getByResourceGroupWithResponse(
458459 " dmstestresource" , " TJx-637505258985313014" , " details" , com.azure.core.util. Context . NONE );
459460 }
461+
462+ /*
463+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsGetWaitingForAction.json
464+ */
465+ /**
466+ * Sample code: JobsGetWaitingForAction.
467+ *
468+ * @param manager Entry point to DataBoxManager.
469+ */
470+ public static void jobsGetWaitingForAction (com.azure.resourcemanager.databox. DataBoxManager manager ) {
471+ manager
472+ .jobs()
473+ .getByResourceGroupWithResponse(
474+ " dmstestresource" , " TJx-637505258985313014" , " details" , com.azure.core.util. Context . NONE );
475+ }
460476}
461477```
462478
@@ -466,7 +482,7 @@ public final class JobsGetByResourceGroupSamples {
466482/* * Samples for Jobs List. */
467483public final class JobsListSamples {
468484 /*
469- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsList.json
485+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsList.json
470486 */
471487 /**
472488 * Sample code: JobsList.
@@ -485,7 +501,7 @@ public final class JobsListSamples {
485501/* * Samples for Jobs ListByResourceGroup. */
486502public final class JobsListByResourceGroupSamples {
487503 /*
488- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsListByResourceGroup.json
504+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsListByResourceGroup.json
489505 */
490506 /**
491507 * Sample code: JobsListByResourceGroup.
@@ -504,7 +520,7 @@ public final class JobsListByResourceGroupSamples {
504520/* * Samples for Jobs ListCredentials. */
505521public final class JobsListCredentialsSamples {
506522 /*
507- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsListCredentials.json
523+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsListCredentials.json
508524 */
509525 /**
510526 * Sample code: JobsListCredentials.
@@ -517,6 +533,36 @@ public final class JobsListCredentialsSamples {
517533}
518534```
519535
536+ ### Jobs_MarkDevicesShipped
537+
538+ ``` java
539+ import com.azure.resourcemanager.databox.models.MarkDevicesShippedRequest ;
540+ import com.azure.resourcemanager.databox.models.PackageCarrierInfo ;
541+
542+ /* * Samples for Jobs MarkDevicesShipped. */
543+ public final class JobsMarkDevicesShippedSamples {
544+ /*
545+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/MarkDevicesShipped.json
546+ */
547+ /**
548+ * Sample code: MarkDevicesShipped.
549+ *
550+ * @param manager Entry point to DataBoxManager.
551+ */
552+ public static void markDevicesShipped (com.azure.resourcemanager.databox. DataBoxManager manager ) {
553+ manager
554+ .jobs()
555+ .markDevicesShippedWithResponse(
556+ " SdkJob8367" ,
557+ " SdkRg9836" ,
558+ new MarkDevicesShippedRequest ()
559+ .withDeliverToDcPackageDetails(
560+ new PackageCarrierInfo (). withCarrierName(" DHL" ). withTrackingId(" 123456" )),
561+ com.azure.core.util. Context . NONE );
562+ }
563+ }
564+ ```
565+
520566### Jobs_Update
521567
522568``` java
@@ -538,7 +584,7 @@ import java.util.Map;
538584/* * Samples for Jobs Update. */
539585public final class JobsUpdateSamples {
540586 /*
541- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsPatchCmk.json
587+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsPatchCmk.json
542588 */
543589 /**
544590 * Sample code: JobsPatchCmk.
@@ -565,7 +611,7 @@ public final class JobsUpdateSamples {
565611 }
566612
567613 /*
568- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsPatchSystemAssignedToUserAssigned.json
614+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsPatchSystemAssignedToUserAssigned.json
569615 */
570616 /**
571617 * Sample code: JobsPatchSystemAssignedToUserAssigned.
@@ -606,7 +652,7 @@ public final class JobsUpdateSamples {
606652 }
607653
608654 /*
609- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobsPatch.json
655+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobsPatch.json
610656 */
611657 /**
612658 * Sample code: JobsPatch.
@@ -661,7 +707,7 @@ public final class JobsUpdateSamples {
661707/* * Samples for Operations List. */
662708public final class OperationsListSamples {
663709 /*
664- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/OperationsGet.json
710+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/OperationsGet.json
665711 */
666712 /**
667713 * Sample code: OperationsGet.
@@ -679,11 +725,13 @@ public final class OperationsListSamples {
679725``` java
680726import com.azure.resourcemanager.databox.models.CustomerResolutionCode ;
681727import com.azure.resourcemanager.databox.models.MitigateJobRequest ;
728+ import java.util.HashMap ;
729+ import java.util.Map ;
682730
683731/* * Samples for ResourceProvider Mitigate. */
684732public final class ResourceProviderMitigateSamples {
685733 /*
686- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/JobMitigate.json
734+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/JobMitigate.json
687735 */
688736 /**
689737 * Sample code: Mitigate.
@@ -696,9 +744,26 @@ public final class ResourceProviderMitigateSamples {
696744 .mitigateWithResponse(
697745 " SdkJob8367" ,
698746 " SdkRg9836" ,
699- new MitigateJobRequest (). withCustomerResolutionCode(CustomerResolutionCode . MOVE_TO_CLEAN_UP_DEVICE ),
747+ new MitigateJobRequest ()
748+ .withSerialNumberCustomerResolutionMap(
749+ mapOf(
750+ " testDISK-1" ,
751+ CustomerResolutionCode . MOVE_TO_CLEAN_UP_DEVICE ,
752+ " testDISK-2" ,
753+ CustomerResolutionCode . RESUME )),
700754 com.azure.core.util. Context . NONE );
701755 }
756+
757+ @SuppressWarnings (" unchecked" )
758+ private static <T > Map<String , T > mapOf (Object ... inputs ) {
759+ Map<String , T > map = new HashMap<> ();
760+ for (int i = 0 ; i < inputs. length; i += 2 ) {
761+ String key = (String ) inputs[i];
762+ T value = (T ) inputs[i + 1 ];
763+ map. put(key, value);
764+ }
765+ return map;
766+ }
702767}
703768```
704769
@@ -711,7 +776,7 @@ import com.azure.resourcemanager.databox.models.TransferType;
711776/* * Samples for Service ListAvailableSkusByResourceGroup. */
712777public final class ServiceListAvailableSkusByResourceGroupSamples {
713778 /*
714- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/AvailableSkusPost.json
779+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/AvailableSkusPost.json
715780 */
716781 /**
717782 * Sample code: AvailableSkusPost.
@@ -742,7 +807,7 @@ import com.azure.resourcemanager.databox.models.RegionConfigurationRequest;
742807/* * Samples for Service RegionConfiguration. */
743808public final class ServiceRegionConfigurationSamples {
744809 /*
745- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/RegionConfiguration.json
810+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/RegionConfiguration.json
746811 */
747812 /**
748813 * Sample code: RegionConfiguration.
@@ -771,7 +836,7 @@ import com.azure.resourcemanager.databox.models.RegionConfigurationRequest;
771836/* * Samples for Service RegionConfigurationByResourceGroup. */
772837public final class ServiceRegionConfigurationByResourceGroupSamples {
773838 /*
774- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/RegionConfigurationByResourceGroup.json
839+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/RegionConfigurationByResourceGroup.json
775840 */
776841 /**
777842 * Sample code: RegionConfigurationByResourceGroup.
@@ -803,7 +868,7 @@ import com.azure.resourcemanager.databox.models.ValidateAddress;
803868/* * Samples for Service ValidateAddress. */
804869public final class ServiceValidateAddressSamples {
805870 /*
806- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/ValidateAddressPost.json
871+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/ValidateAddressPost.json
807872 */
808873 /**
809874 * Sample code: ValidateAddressPost.
@@ -856,7 +921,7 @@ import java.util.Arrays;
856921/* * Samples for Service ValidateInputs. */
857922public final class ServiceValidateInputsSamples {
858923 /*
859- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/ValidateInputs.json
924+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/ValidateInputs.json
860925 */
861926 /**
862927 * Sample code: ValidateInputs.
@@ -942,7 +1007,7 @@ import java.util.Arrays;
9421007/* * Samples for Service ValidateInputsByResourceGroup. */
9431008public final class ServiceValidateInputsByResourceGroupSamples {
9441009 /*
945- * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03 -01/examples/ValidateInputsByResourceGroup.json
1010+ * x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12 -01/examples/ValidateInputsByResourceGroup.json
9461011 */
9471012 /**
9481013 * Sample code: ValidateInputsByResourceGroup.
0 commit comments