Skip to content

Commit

Permalink
CodeGen from PR 29617 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge dbbfbf7d902a4c876414ddcc477b371b76a52ea8 into cff3a1c1fd98cf88ffb461b14f417173037d8d62
  • Loading branch information
SDKAuto committed Jun 27, 2024
1 parent 3afdb70 commit 80809f4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2024-06-27)

- Azure Resource Manager Device Registry client library for Java. This package contains Microsoft Azure SDK for Device Registry Management SDK. Microsoft.DeviceRegistry Resource Provider management API. 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
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ import java.util.Map;
public final class AssetsCreateOrReplaceSamples {
/*
* x-ms-original-file: specification/deviceregistry/DeviceRegistry.Management/examples/2023-11-01-preview/
* Create_Asset_Without_DisplayName.json
* Create_Asset_With_ExternalAssetId.json
*/
/**
* Sample code: Create_Asset_Without_DisplayName.
* Sample code: Create_Asset_With_ExternalAssetId.
*
* @param manager Entry point to DeviceRegistryManager.
*/
public static void
createAssetWithoutDisplayName(com.azure.resourcemanager.deviceregistry.DeviceRegistryManager manager) {
createAssetWithExternalAssetId(com.azure.resourcemanager.deviceregistry.DeviceRegistryManager manager) {
manager.assets()
.define("my-asset")
.withRegion("West Europe")
Expand All @@ -248,6 +248,7 @@ public final class AssetsCreateOrReplaceSamples {
.withProperties(new AssetProperties().withAssetType("MyAssetType")
.withEnabled(true)
.withExternalAssetId("8ZBA6LRHU0A458969")
.withDisplayName("AssetDisplayName")
.withDescription("This is a sample Asset")
.withAssetEndpointProfileUri("https://www.example.com/myAssetEndpointProfile")
.withManufacturer("Contoso")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
Code generated by Microsoft (R) TypeSpec Code Generator.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) TypeSpec 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>
Expand All @@ -14,7 +14,7 @@ Code generated by Microsoft (R) TypeSpec Code Generator.

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-deviceregistry</artifactId>
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-deviceregistry;current} -->
<version>1.0.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-deviceregistry;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Device Registry Management</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
public final class AssetsCreateOrReplaceSamples {
/*
* x-ms-original-file: specification/deviceregistry/DeviceRegistry.Management/examples/2023-11-01-preview/
* Create_Asset_Without_DisplayName.json
* Create_Asset_With_ExternalAssetId.json
*/
/**
* Sample code: Create_Asset_Without_DisplayName.
* Sample code: Create_Asset_With_ExternalAssetId.
*
* @param manager Entry point to DeviceRegistryManager.
*/
public static void
createAssetWithoutDisplayName(com.azure.resourcemanager.deviceregistry.DeviceRegistryManager manager) {
createAssetWithExternalAssetId(com.azure.resourcemanager.deviceregistry.DeviceRegistryManager manager) {
manager.assets()
.define("my-asset")
.withRegion("West Europe")
Expand All @@ -40,6 +40,7 @@ public final class AssetsCreateOrReplaceSamples {
.withProperties(new AssetProperties().withAssetType("MyAssetType")
.withEnabled(true)
.withExternalAssetId("8ZBA6LRHU0A458969")
.withDisplayName("AssetDisplayName")
.withDescription("This is a sample Asset")
.withAssetEndpointProfileUri("https://www.example.com/myAssetEndpointProfile")
.withManufacturer("Contoso")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
commit: 50136169b8692fcc3619f79d2121ff4948b7af08
repo: Azure/azure-rest-api-specs
directory: specification/deviceregistry/DeviceRegistry.Management
additionalDirectories: []

commit: f19f7984b8d406f738adfbd806d84a7274d27cfe
repo: Azure/azure-rest-api-specs
additionalDirectories:

0 comments on commit 80809f4

Please sign in to comment.