Skip to content

Commit 99978bb

Browse files
author
SDKAuto
committed
CodeGen from PR 23711 in Azure/azure-rest-api-specs
Merge 4d04b6c6248cb7975421cd5b76c74db81088f79a into b73e2d320f1ae530ea5e78625dfe14a921dcf011
1 parent 8149a46 commit 99978bb

File tree

167 files changed

+4272
-3436
lines changed

Some content is hidden

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

167 files changed

+4272
-3436
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-04-26)
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: 222 additions & 151 deletions
Large diffs are not rendered by default.

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
~ Copyright (c) Microsoft Corporation. All rights reserved.
3+
~ Licensed under the MIT License.
4+
~ Code generated by Microsoft (R) AutoRest Code Generator.
5+
-->
16
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
27
<modelVersion>4.0.0</modelVersion>
38
<parent>
@@ -13,7 +18,7 @@
1318
<packaging>jar</packaging>
1419

1520
<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>
21+
<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>
1722
<url>https://github.com/Azure/azure-sdk-for-java</url>
1823

1924
<licenses>
@@ -38,7 +43,8 @@
3843
</developers>
3944
<properties>
4045
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41-
<jacoco.skip>true</jacoco.skip>
46+
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
47+
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
4248
</properties>
4349
<dependencies>
4450
<dependency>

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(" (")

sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/fluent/JobsClient.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import com.azure.resourcemanager.databox.fluent.models.UnencryptedCredentialsInner;
1717
import com.azure.resourcemanager.databox.models.CancellationReason;
1818
import com.azure.resourcemanager.databox.models.JobResourceUpdateParameter;
19+
import com.azure.resourcemanager.databox.models.MarkDevicesShippedRequest;
1920
import com.azure.resourcemanager.databox.models.ShipmentPickUpRequest;
2021

2122
/** An instance of this class provides access to all the operations defined in JobsClient. */
@@ -43,6 +44,38 @@ public interface JobsClient {
4344
@ServiceMethod(returns = ReturnType.COLLECTION)
4445
PagedIterable<JobResourceInner> list(String skipToken, Context context);
4546

47+
/**
48+
* Request to mark devices for a given job as shipped.
49+
*
50+
* @param jobName The name of the job Resource within the specified resource group. job names must be between 3 and
51+
* 24 characters in length and use any alphanumeric and underscore only.
52+
* @param resourceGroupName The Resource Group Name.
53+
* @param markDevicesShippedRequest Mark Devices Shipped Request.
54+
* @param context The context to associate with this operation.
55+
* @throws IllegalArgumentException thrown if parameters fail the validation.
56+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
57+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
58+
* @return the {@link Response}.
59+
*/
60+
@ServiceMethod(returns = ReturnType.SINGLE)
61+
Response<Void> markDevicesShippedWithResponse(
62+
String jobName, String resourceGroupName, MarkDevicesShippedRequest markDevicesShippedRequest, Context context);
63+
64+
/**
65+
* Request to mark devices for a given job as shipped.
66+
*
67+
* @param jobName The name of the job Resource within the specified resource group. job names must be between 3 and
68+
* 24 characters in length and use any alphanumeric and underscore only.
69+
* @param resourceGroupName The Resource Group Name.
70+
* @param markDevicesShippedRequest Mark Devices Shipped Request.
71+
* @throws IllegalArgumentException thrown if parameters fail the validation.
72+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
73+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
74+
*/
75+
@ServiceMethod(returns = ReturnType.SINGLE)
76+
void markDevicesShipped(
77+
String jobName, String resourceGroupName, MarkDevicesShippedRequest markDevicesShippedRequest);
78+
4679
/**
4780
* Lists all the jobs available under the given resource group.
4881
*

sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/fluent/models/JobProperties.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import com.azure.resourcemanager.databox.models.JobDeliveryInfo;
1111
import com.azure.resourcemanager.databox.models.JobDeliveryType;
1212
import com.azure.resourcemanager.databox.models.JobDetails;
13+
import com.azure.resourcemanager.databox.models.ReverseShippingDetailsEditStatus;
14+
import com.azure.resourcemanager.databox.models.ReverseTransportPreferenceEditStatus;
1315
import com.azure.resourcemanager.databox.models.StageName;
1416
import com.azure.resourcemanager.databox.models.TransferType;
1517
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -42,6 +44,18 @@ public final class JobProperties {
4244
@JsonProperty(value = "isShippingAddressEditable", access = JsonProperty.Access.WRITE_ONLY)
4345
private Boolean isShippingAddressEditable;
4446

47+
/*
48+
* The Editable status for Reverse Shipping Address and Contact Info
49+
*/
50+
@JsonProperty(value = "reverseShippingDetailsUpdate", access = JsonProperty.Access.WRITE_ONLY)
51+
private ReverseShippingDetailsEditStatus reverseShippingDetailsUpdate;
52+
53+
/*
54+
* The Editable status for Reverse Transport preferences
55+
*/
56+
@JsonProperty(value = "reverseTransportPreferenceUpdate", access = JsonProperty.Access.WRITE_ONLY)
57+
private ReverseTransportPreferenceEditStatus reverseTransportPreferenceUpdate;
58+
4559
/*
4660
* Is Prepare To Ship Enabled on this job
4761
*/
@@ -147,6 +161,24 @@ public Boolean isShippingAddressEditable() {
147161
return this.isShippingAddressEditable;
148162
}
149163

164+
/**
165+
* Get the reverseShippingDetailsUpdate property: The Editable status for Reverse Shipping Address and Contact Info.
166+
*
167+
* @return the reverseShippingDetailsUpdate value.
168+
*/
169+
public ReverseShippingDetailsEditStatus reverseShippingDetailsUpdate() {
170+
return this.reverseShippingDetailsUpdate;
171+
}
172+
173+
/**
174+
* Get the reverseTransportPreferenceUpdate property: The Editable status for Reverse Transport preferences.
175+
*
176+
* @return the reverseTransportPreferenceUpdate value.
177+
*/
178+
public ReverseTransportPreferenceEditStatus reverseTransportPreferenceUpdate() {
179+
return this.reverseTransportPreferenceUpdate;
180+
}
181+
150182
/**
151183
* Get the isPrepareToShipEnabled property: Is Prepare To Ship Enabled on this job.
152184
*

sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/fluent/models/JobResourceInner.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import com.azure.resourcemanager.databox.models.JobDeliveryType;
1414
import com.azure.resourcemanager.databox.models.JobDetails;
1515
import com.azure.resourcemanager.databox.models.ResourceIdentity;
16+
import com.azure.resourcemanager.databox.models.ReverseShippingDetailsEditStatus;
17+
import com.azure.resourcemanager.databox.models.ReverseTransportPreferenceEditStatus;
1618
import com.azure.resourcemanager.databox.models.Sku;
1719
import com.azure.resourcemanager.databox.models.StageName;
1820
import com.azure.resourcemanager.databox.models.TransferType;
@@ -218,6 +220,24 @@ public Boolean isShippingAddressEditable() {
218220
return this.innerProperties() == null ? null : this.innerProperties().isShippingAddressEditable();
219221
}
220222

223+
/**
224+
* Get the reverseShippingDetailsUpdate property: The Editable status for Reverse Shipping Address and Contact Info.
225+
*
226+
* @return the reverseShippingDetailsUpdate value.
227+
*/
228+
public ReverseShippingDetailsEditStatus reverseShippingDetailsUpdate() {
229+
return this.innerProperties() == null ? null : this.innerProperties().reverseShippingDetailsUpdate();
230+
}
231+
232+
/**
233+
* Get the reverseTransportPreferenceUpdate property: The Editable status for Reverse Transport preferences.
234+
*
235+
* @return the reverseTransportPreferenceUpdate value.
236+
*/
237+
public ReverseTransportPreferenceEditStatus reverseTransportPreferenceUpdate() {
238+
return this.innerProperties() == null ? null : this.innerProperties().reverseTransportPreferenceUpdate();
239+
}
240+
221241
/**
222242
* Get the isPrepareToShipEnabled property: Is Prepare To Ship Enabled on this job.
223243
*

sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/fluent/models/RegionConfigurationResponseInner.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package com.azure.resourcemanager.databox.fluent.models;
66

77
import com.azure.core.annotation.Immutable;
8+
import com.azure.resourcemanager.databox.models.DatacenterAddressResponse;
89
import com.azure.resourcemanager.databox.models.ScheduleAvailabilityResponse;
910
import com.azure.resourcemanager.databox.models.TransportAvailabilityResponse;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,6 +25,12 @@ public final class RegionConfigurationResponseInner {
2425
@JsonProperty(value = "transportAvailabilityResponse", access = JsonProperty.Access.WRITE_ONLY)
2526
private TransportAvailabilityResponse transportAvailabilityResponse;
2627

28+
/*
29+
* Datacenter address for given sku in a region.
30+
*/
31+
@JsonProperty(value = "datacenterAddressResponse", access = JsonProperty.Access.WRITE_ONLY)
32+
private DatacenterAddressResponse datacenterAddressResponse;
33+
2734
/** Creates an instance of RegionConfigurationResponseInner class. */
2835
public RegionConfigurationResponseInner() {
2936
}
@@ -46,6 +53,15 @@ public TransportAvailabilityResponse transportAvailabilityResponse() {
4653
return this.transportAvailabilityResponse;
4754
}
4855

56+
/**
57+
* Get the datacenterAddressResponse property: Datacenter address for given sku in a region.
58+
*
59+
* @return the datacenterAddressResponse value.
60+
*/
61+
public DatacenterAddressResponse datacenterAddressResponse() {
62+
return this.datacenterAddressResponse;
63+
}
64+
4965
/**
5066
* Validates the instance.
5167
*
@@ -58,5 +74,8 @@ public void validate() {
5874
if (transportAvailabilityResponse() != null) {
5975
transportAvailabilityResponse().validate();
6076
}
77+
if (datacenterAddressResponse() != null) {
78+
datacenterAddressResponse().validate();
79+
}
6180
}
6281
}

sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/fluent/models/SkuInformationInner.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@ public String requiredFeature() {
128128
return this.innerProperties() == null ? null : this.innerProperties().requiredFeature();
129129
}
130130

131+
/**
132+
* Get the countriesWithinCommerceBoundary property: List of all the Countries in the SKU specific commerce
133+
* boundary.
134+
*
135+
* @return the countriesWithinCommerceBoundary value.
136+
*/
137+
public List<String> countriesWithinCommerceBoundary() {
138+
return this.innerProperties() == null ? null : this.innerProperties().countriesWithinCommerceBoundary();
139+
}
140+
131141
/**
132142
* Validates the instance.
133143
*

0 commit comments

Comments
 (0)