Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-databox] Update readme.python.md #3760

Closed
wants to merge 1 commit into from
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-02-10)

- 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
119 changes: 92 additions & 27 deletions sdk/databox/azure-resourcemanager-databox/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- [List](#jobs_list)
- [ListByResourceGroup](#jobs_listbyresourcegroup)
- [ListCredentials](#jobs_listcredentials)
- [MarkDevicesShipped](#jobs_markdevicesshipped)
- [Update](#jobs_update)

## Operations
Expand Down Expand Up @@ -38,7 +39,7 @@ import java.time.OffsetDateTime;
/** Samples for Jobs BookShipmentPickUp. */
public final class JobsBookShipmentPickUpSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/BookShipmentPickupPost.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/BookShipmentPickupPost.json
*/
/**
* Sample code: BookShipmentPickupPost.
Expand Down Expand Up @@ -68,7 +69,7 @@ import com.azure.resourcemanager.databox.models.CancellationReason;
/** Samples for Jobs Cancel. */
public final class JobsCancelSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsCancelPost.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsCancelPost.json
*/
/**
* Sample code: JobsCancelPost.
Expand Down Expand Up @@ -117,7 +118,7 @@ import java.util.Map;
/** Samples for Jobs Create. */
public final class JobsCreateSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsCreateDevicePassword.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsCreateDevicePassword.json
*/
/**
* Sample code: JobsCreateDevicePassword.
Expand Down Expand Up @@ -164,7 +165,7 @@ public final class JobsCreateSamples {
}

/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsCreate.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsCreate.json
*/
/**
* Sample code: JobsCreate.
Expand Down Expand Up @@ -209,7 +210,7 @@ public final class JobsCreateSamples {
}

/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsCreateDoubleEncryption.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsCreateDoubleEncryption.json
*/
/**
* Sample code: JobsCreateDoubleEncryption.
Expand Down Expand Up @@ -258,7 +259,7 @@ public final class JobsCreateSamples {
}

/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsCreateWithUserAssignedIdentity.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsCreateWithUserAssignedIdentity.json
*/
/**
* Sample code: JobsCreateWithUserAssignedIdentity.
Expand Down Expand Up @@ -310,7 +311,7 @@ public final class JobsCreateSamples {
}

/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsCreateExport.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsCreateExport.json
*/
/**
* Sample code: JobsCreateExport.
Expand Down Expand Up @@ -383,7 +384,7 @@ public final class JobsCreateSamples {
/** Samples for Jobs Delete. */
public final class JobsDeleteSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsDelete.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsDelete.json
*/
/**
* Sample code: JobsDelete.
Expand All @@ -402,7 +403,7 @@ public final class JobsDeleteSamples {
/** Samples for Jobs GetByResourceGroup. */
public final class JobsGetByResourceGroupSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsGet.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsGet.json
*/
/**
* Sample code: JobsGet.
Expand All @@ -416,7 +417,7 @@ public final class JobsGetByResourceGroupSamples {
}

/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsGetCmk.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsGetCmk.json
*/
/**
* Sample code: JobsGetCmk.
Expand All @@ -430,7 +431,7 @@ public final class JobsGetByResourceGroupSamples {
}

/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsGetExport.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsGetExport.json
*/
/**
* Sample code: JobsGetExport.
Expand All @@ -444,7 +445,7 @@ public final class JobsGetByResourceGroupSamples {
}

/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsGetCopyStuck.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsGetCopyStuck.json
*/
/**
* Sample code: JobsGetCopyStuck.
Expand All @@ -457,6 +458,21 @@ public final class JobsGetByResourceGroupSamples {
.getByResourceGroupWithResponse(
"dmstestresource", "TJx-637505258985313014", "details", com.azure.core.util.Context.NONE);
}

/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsGetWaitingForAction.json
*/
/**
* Sample code: JobsGetWaitingForAction.
*
* @param manager Entry point to DataBoxManager.
*/
public static void jobsGetWaitingForAction(com.azure.resourcemanager.databox.DataBoxManager manager) {
manager
.jobs()
.getByResourceGroupWithResponse(
"dmstestresource", "TJx-637505258985313014", "details", com.azure.core.util.Context.NONE);
}
}
```

Expand All @@ -466,7 +482,7 @@ public final class JobsGetByResourceGroupSamples {
/** Samples for Jobs List. */
public final class JobsListSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsList.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsList.json
*/
/**
* Sample code: JobsList.
Expand All @@ -485,7 +501,7 @@ public final class JobsListSamples {
/** Samples for Jobs ListByResourceGroup. */
public final class JobsListByResourceGroupSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsListByResourceGroup.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsListByResourceGroup.json
*/
/**
* Sample code: JobsListByResourceGroup.
Expand All @@ -504,7 +520,7 @@ public final class JobsListByResourceGroupSamples {
/** Samples for Jobs ListCredentials. */
public final class JobsListCredentialsSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsListCredentials.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsListCredentials.json
*/
/**
* Sample code: JobsListCredentials.
Expand All @@ -517,6 +533,36 @@ public final class JobsListCredentialsSamples {
}
```

### Jobs_MarkDevicesShipped

```java
import com.azure.resourcemanager.databox.models.MarkDevicesShippedRequest;
import com.azure.resourcemanager.databox.models.PackageCarrierInfo;

/** Samples for Jobs MarkDevicesShipped. */
public final class JobsMarkDevicesShippedSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/MarkDevicesShipped.json
*/
/**
* Sample code: MarkDevicesShipped.
*
* @param manager Entry point to DataBoxManager.
*/
public static void markDevicesShipped(com.azure.resourcemanager.databox.DataBoxManager manager) {
manager
.jobs()
.markDevicesShippedWithResponse(
"SdkJob8367",
"SdkRg9836",
new MarkDevicesShippedRequest()
.withDeliverToDcPackageDetails(
new PackageCarrierInfo().withCarrierName("DHL").withTrackingId("123456")),
com.azure.core.util.Context.NONE);
}
}
```

### Jobs_Update

```java
Expand All @@ -538,7 +584,7 @@ import java.util.Map;
/** Samples for Jobs Update. */
public final class JobsUpdateSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsPatchCmk.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsPatchCmk.json
*/
/**
* Sample code: JobsPatchCmk.
Expand All @@ -565,7 +611,7 @@ public final class JobsUpdateSamples {
}

/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsPatchSystemAssignedToUserAssigned.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsPatchSystemAssignedToUserAssigned.json
*/
/**
* Sample code: JobsPatchSystemAssignedToUserAssigned.
Expand Down Expand Up @@ -606,7 +652,7 @@ public final class JobsUpdateSamples {
}

/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobsPatch.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobsPatch.json
*/
/**
* Sample code: JobsPatch.
Expand Down Expand Up @@ -661,7 +707,7 @@ public final class JobsUpdateSamples {
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/OperationsGet.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/OperationsGet.json
*/
/**
* Sample code: OperationsGet.
Expand All @@ -679,11 +725,13 @@ public final class OperationsListSamples {
```java
import com.azure.resourcemanager.databox.models.CustomerResolutionCode;
import com.azure.resourcemanager.databox.models.MitigateJobRequest;
import java.util.HashMap;
import java.util.Map;

/** Samples for ResourceProvider Mitigate. */
public final class ResourceProviderMitigateSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/JobMitigate.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/JobMitigate.json
*/
/**
* Sample code: Mitigate.
Expand All @@ -696,9 +744,26 @@ public final class ResourceProviderMitigateSamples {
.mitigateWithResponse(
"SdkJob8367",
"SdkRg9836",
new MitigateJobRequest().withCustomerResolutionCode(CustomerResolutionCode.MOVE_TO_CLEAN_UP_DEVICE),
new MitigateJobRequest()
.withSerialNumberCustomerResolutionMap(
mapOf(
"testDISK-1",
CustomerResolutionCode.MOVE_TO_CLEAN_UP_DEVICE,
"testDISK-2",
CustomerResolutionCode.RESUME)),
com.azure.core.util.Context.NONE);
}

@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
```

Expand All @@ -711,7 +776,7 @@ import com.azure.resourcemanager.databox.models.TransferType;
/** Samples for Service ListAvailableSkusByResourceGroup. */
public final class ServiceListAvailableSkusByResourceGroupSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/AvailableSkusPost.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/AvailableSkusPost.json
*/
/**
* Sample code: AvailableSkusPost.
Expand Down Expand Up @@ -742,7 +807,7 @@ import com.azure.resourcemanager.databox.models.RegionConfigurationRequest;
/** Samples for Service RegionConfiguration. */
public final class ServiceRegionConfigurationSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/RegionConfiguration.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/RegionConfiguration.json
*/
/**
* Sample code: RegionConfiguration.
Expand Down Expand Up @@ -771,7 +836,7 @@ import com.azure.resourcemanager.databox.models.RegionConfigurationRequest;
/** Samples for Service RegionConfigurationByResourceGroup. */
public final class ServiceRegionConfigurationByResourceGroupSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/RegionConfigurationByResourceGroup.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/RegionConfigurationByResourceGroup.json
*/
/**
* Sample code: RegionConfigurationByResourceGroup.
Expand Down Expand Up @@ -803,7 +868,7 @@ import com.azure.resourcemanager.databox.models.ValidateAddress;
/** Samples for Service ValidateAddress. */
public final class ServiceValidateAddressSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/ValidateAddressPost.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/ValidateAddressPost.json
*/
/**
* Sample code: ValidateAddressPost.
Expand Down Expand Up @@ -856,7 +921,7 @@ import java.util.Arrays;
/** Samples for Service ValidateInputs. */
public final class ServiceValidateInputsSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/ValidateInputs.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/ValidateInputs.json
*/
/**
* Sample code: ValidateInputs.
Expand Down Expand Up @@ -942,7 +1007,7 @@ import java.util.Arrays;
/** Samples for Service ValidateInputsByResourceGroup. */
public final class ServiceValidateInputsByResourceGroupSamples {
/*
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2021-03-01/examples/ValidateInputsByResourceGroup.json
* x-ms-original-file: specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/examples/ValidateInputsByResourceGroup.json
*/
/**
* Sample code: ValidateInputsByResourceGroup.
Expand Down
2 changes: 1 addition & 1 deletion sdk/databox/azure-resourcemanager-databox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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 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
Loading