Skip to content

Commit 23caa0f

Browse files
author
SDKAuto
committed
CodeGen from PR 22410 in Azure/azure-rest-api-specs
Merge 8b3656df3304c2af5513bb65071619096a1f097a into 7cfe0170743da14f13275e73a2b8becd90ce9a05
1 parent fe4daf0 commit 23caa0f

File tree

159 files changed

+3760
-3163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+3760
-3163
lines changed

sdk/databox/azure-resourcemanager-databox/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2023-02-09)
4+
5+
- Azure Resource Manager DataBox client library for Java. This package contains Microsoft Azure SDK for DataBox Management SDK. Package tag package-2022-12. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

sdk/databox/azure-resourcemanager-databox/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager DataBox client library for Java.
44

5-
This package contains Microsoft Azure SDK for DataBox Management SDK. Package tag package-2021-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for DataBox Management SDK. Package tag package-2022-12. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-databox</artifactId>
35-
<version>1.0.0-beta.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/databox/azure-resourcemanager-databox/SAMPLE.md

Lines changed: 92 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
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. */
3940
public 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. */
6970
public 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. */
118119
public 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. */
384385
public 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. */
403404
public 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. */
467483
public 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. */
486502
public 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. */
505521
public 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. */
539585
public 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. */
662708
public 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
680726
import com.azure.resourcemanager.databox.models.CustomerResolutionCode;
681727
import com.azure.resourcemanager.databox.models.MitigateJobRequest;
728+
import java.util.HashMap;
729+
import java.util.Map;
682730

683731
/** Samples for ResourceProvider Mitigate. */
684732
public 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. */
712777
public 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. */
743808
public 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. */
772837
public 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. */
804869
public 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. */
857922
public 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. */
9431008
public 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.

sdk/databox/azure-resourcemanager-databox/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for DataBox Management</name>
16-
<description>This package contains Microsoft Azure SDK for DataBox Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2021-03.</description>
16+
<description>This package contains Microsoft Azure SDK for DataBox Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2022-12.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/DataBoxManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public DataBoxManager authenticate(TokenCredential credential, AzureProfile prof
215215
.append("-")
216216
.append("com.azure.resourcemanager.databox")
217217
.append("/")
218-
.append("1.0.0-beta.2");
218+
.append("1.0.0-beta.1");
219219
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
220220
userAgentBuilder
221221
.append(" (")

0 commit comments

Comments
 (0)