Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdk/databox/azure-resourcemanager-databox/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2023-04-26)

- 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).

### Features Added

Expand Down
4 changes: 2 additions & 2 deletions sdk/databox/azure-resourcemanager-databox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager DataBox client library for Java.

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).
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).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-databox</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
373 changes: 222 additions & 151 deletions sdk/databox/azure-resourcemanager-databox/SAMPLE.md

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions sdk/databox/azure-resourcemanager-databox/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
-->
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand All @@ -13,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for DataBox Management</name>
<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>
<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>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -38,7 +43,8 @@
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public DataBoxManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.databox")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.azure.resourcemanager.databox.fluent.models.UnencryptedCredentialsInner;
import com.azure.resourcemanager.databox.models.CancellationReason;
import com.azure.resourcemanager.databox.models.JobResourceUpdateParameter;
import com.azure.resourcemanager.databox.models.MarkDevicesShippedRequest;
import com.azure.resourcemanager.databox.models.ShipmentPickUpRequest;

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

/**
* Request to mark devices for a given job as shipped.
*
* @param jobName The name of the job Resource within the specified resource group. job names must be between 3 and
* 24 characters in length and use any alphanumeric and underscore only.
* @param resourceGroupName The Resource Group Name.
* @param markDevicesShippedRequest Mark Devices Shipped Request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> markDevicesShippedWithResponse(
String jobName, String resourceGroupName, MarkDevicesShippedRequest markDevicesShippedRequest, Context context);

/**
* Request to mark devices for a given job as shipped.
*
* @param jobName The name of the job Resource within the specified resource group. job names must be between 3 and
* 24 characters in length and use any alphanumeric and underscore only.
* @param resourceGroupName The Resource Group Name.
* @param markDevicesShippedRequest Mark Devices Shipped Request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void markDevicesShipped(
String jobName, String resourceGroupName, MarkDevicesShippedRequest markDevicesShippedRequest);

/**
* Lists all the jobs available under the given resource group.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import com.azure.resourcemanager.databox.models.JobDeliveryInfo;
import com.azure.resourcemanager.databox.models.JobDeliveryType;
import com.azure.resourcemanager.databox.models.JobDetails;
import com.azure.resourcemanager.databox.models.ReverseShippingDetailsEditStatus;
import com.azure.resourcemanager.databox.models.ReverseTransportPreferenceEditStatus;
import com.azure.resourcemanager.databox.models.StageName;
import com.azure.resourcemanager.databox.models.TransferType;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down Expand Up @@ -42,6 +44,18 @@ public final class JobProperties {
@JsonProperty(value = "isShippingAddressEditable", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isShippingAddressEditable;

/*
* The Editable status for Reverse Shipping Address and Contact Info
*/
@JsonProperty(value = "reverseShippingDetailsUpdate", access = JsonProperty.Access.WRITE_ONLY)
private ReverseShippingDetailsEditStatus reverseShippingDetailsUpdate;

/*
* The Editable status for Reverse Transport preferences
*/
@JsonProperty(value = "reverseTransportPreferenceUpdate", access = JsonProperty.Access.WRITE_ONLY)
private ReverseTransportPreferenceEditStatus reverseTransportPreferenceUpdate;

/*
* Is Prepare To Ship Enabled on this job
*/
Expand Down Expand Up @@ -147,6 +161,24 @@ public Boolean isShippingAddressEditable() {
return this.isShippingAddressEditable;
}

/**
* Get the reverseShippingDetailsUpdate property: The Editable status for Reverse Shipping Address and Contact Info.
*
* @return the reverseShippingDetailsUpdate value.
*/
public ReverseShippingDetailsEditStatus reverseShippingDetailsUpdate() {
return this.reverseShippingDetailsUpdate;
}

/**
* Get the reverseTransportPreferenceUpdate property: The Editable status for Reverse Transport preferences.
*
* @return the reverseTransportPreferenceUpdate value.
*/
public ReverseTransportPreferenceEditStatus reverseTransportPreferenceUpdate() {
return this.reverseTransportPreferenceUpdate;
}

/**
* Get the isPrepareToShipEnabled property: Is Prepare To Ship Enabled on this job.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import com.azure.resourcemanager.databox.models.JobDeliveryType;
import com.azure.resourcemanager.databox.models.JobDetails;
import com.azure.resourcemanager.databox.models.ResourceIdentity;
import com.azure.resourcemanager.databox.models.ReverseShippingDetailsEditStatus;
import com.azure.resourcemanager.databox.models.ReverseTransportPreferenceEditStatus;
import com.azure.resourcemanager.databox.models.Sku;
import com.azure.resourcemanager.databox.models.StageName;
import com.azure.resourcemanager.databox.models.TransferType;
Expand Down Expand Up @@ -218,6 +220,24 @@ public Boolean isShippingAddressEditable() {
return this.innerProperties() == null ? null : this.innerProperties().isShippingAddressEditable();
}

/**
* Get the reverseShippingDetailsUpdate property: The Editable status for Reverse Shipping Address and Contact Info.
*
* @return the reverseShippingDetailsUpdate value.
*/
public ReverseShippingDetailsEditStatus reverseShippingDetailsUpdate() {
return this.innerProperties() == null ? null : this.innerProperties().reverseShippingDetailsUpdate();
}

/**
* Get the reverseTransportPreferenceUpdate property: The Editable status for Reverse Transport preferences.
*
* @return the reverseTransportPreferenceUpdate value.
*/
public ReverseTransportPreferenceEditStatus reverseTransportPreferenceUpdate() {
return this.innerProperties() == null ? null : this.innerProperties().reverseTransportPreferenceUpdate();
}

/**
* Get the isPrepareToShipEnabled property: Is Prepare To Ship Enabled on this job.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package com.azure.resourcemanager.databox.fluent.models;

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

/*
* Datacenter address for given sku in a region.
*/
@JsonProperty(value = "datacenterAddressResponse", access = JsonProperty.Access.WRITE_ONLY)
private DatacenterAddressResponse datacenterAddressResponse;

/** Creates an instance of RegionConfigurationResponseInner class. */
public RegionConfigurationResponseInner() {
}
Expand All @@ -46,6 +53,15 @@ public TransportAvailabilityResponse transportAvailabilityResponse() {
return this.transportAvailabilityResponse;
}

/**
* Get the datacenterAddressResponse property: Datacenter address for given sku in a region.
*
* @return the datacenterAddressResponse value.
*/
public DatacenterAddressResponse datacenterAddressResponse() {
return this.datacenterAddressResponse;
}

/**
* Validates the instance.
*
Expand All @@ -58,5 +74,8 @@ public void validate() {
if (transportAvailabilityResponse() != null) {
transportAvailabilityResponse().validate();
}
if (datacenterAddressResponse() != null) {
datacenterAddressResponse().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@ public String requiredFeature() {
return this.innerProperties() == null ? null : this.innerProperties().requiredFeature();
}

/**
* Get the countriesWithinCommerceBoundary property: List of all the Countries in the SKU specific commerce
* boundary.
*
* @return the countriesWithinCommerceBoundary value.
*/
public List<String> countriesWithinCommerceBoundary() {
return this.innerProperties() == null ? null : this.innerProperties().countriesWithinCommerceBoundary();
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ public final class SkuProperties {
@JsonProperty(value = "requiredFeature", access = JsonProperty.Access.WRITE_ONLY)
private String requiredFeature;

/*
* List of all the Countries in the SKU specific commerce boundary
*/
@JsonProperty(value = "countriesWithinCommerceBoundary", access = JsonProperty.Access.WRITE_ONLY)
private List<String> countriesWithinCommerceBoundary;

/** Creates an instance of SkuProperties class. */
public SkuProperties() {
}
Expand Down Expand Up @@ -124,6 +130,16 @@ public String requiredFeature() {
return this.requiredFeature;
}

/**
* Get the countriesWithinCommerceBoundary property: List of all the Countries in the SKU specific commerce
* boundary.
*
* @return the countriesWithinCommerceBoundary value.
*/
public List<String> countriesWithinCommerceBoundary() {
return this.countriesWithinCommerceBoundary;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public ServicesClient getServices() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2021-03-01";
this.apiVersion = "2022-12-01";
this.operations = new OperationsClientImpl(this);
this.jobs = new JobsClientImpl(this);
this.resourceProviders = new ResourceProvidersClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
import com.azure.resourcemanager.databox.models.JobDetails;
import com.azure.resourcemanager.databox.models.JobResource;
import com.azure.resourcemanager.databox.models.JobResourceUpdateParameter;
import com.azure.resourcemanager.databox.models.MarkDevicesShippedRequest;
import com.azure.resourcemanager.databox.models.ResourceIdentity;
import com.azure.resourcemanager.databox.models.ReverseShippingDetailsEditStatus;
import com.azure.resourcemanager.databox.models.ReverseTransportPreferenceEditStatus;
import com.azure.resourcemanager.databox.models.ShipmentPickUpRequest;
import com.azure.resourcemanager.databox.models.ShipmentPickUpResponse;
import com.azure.resourcemanager.databox.models.Sku;
Expand Down Expand Up @@ -87,6 +90,14 @@ public Boolean isShippingAddressEditable() {
return this.innerModel().isShippingAddressEditable();
}

public ReverseShippingDetailsEditStatus reverseShippingDetailsUpdate() {
return this.innerModel().reverseShippingDetailsUpdate();
}

public ReverseTransportPreferenceEditStatus reverseTransportPreferenceUpdate() {
return this.innerModel().reverseTransportPreferenceUpdate();
}

public Boolean isPrepareToShipEnabled() {
return this.innerModel().isPrepareToShipEnabled();
}
Expand Down Expand Up @@ -230,6 +241,17 @@ public JobResource refresh(Context context) {
return this;
}

public Response<Void> markDevicesShippedWithResponse(
MarkDevicesShippedRequest markDevicesShippedRequest, Context context) {
return serviceManager
.jobs()
.markDevicesShippedWithResponse(jobName, resourceGroupName, markDevicesShippedRequest, context);
}

public void markDevicesShipped(MarkDevicesShippedRequest markDevicesShippedRequest) {
serviceManager.jobs().markDevicesShipped(jobName, resourceGroupName, markDevicesShippedRequest);
}

public Response<ShipmentPickUpResponse> bookShipmentPickUpWithResponse(
ShipmentPickUpRequest shipmentPickUpRequest, Context context) {
return serviceManager
Expand Down
Loading