Skip to content

Commit

Permalink
mgmt, update iothub to 2023-06-30-preview (Azure#36810)
Browse files Browse the repository at this point in the history
mgmt, update iothub to 2023-06-30-preview
  • Loading branch information
v-hongli1 authored Sep 18, 2023
1 parent 4866a11 commit ee9b6de
Show file tree
Hide file tree
Showing 139 changed files with 1,087 additions and 1,230 deletions.
34 changes: 30 additions & 4 deletions sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,40 @@
# Release History

## 1.2.0-beta.4 (Unreleased)
## 1.2.0-beta.4 (2023-09-18)

### Features Added
- Azure Resource Manager IotHub client library for Java. This package contains Microsoft Azure SDK for IotHub Management SDK. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2023-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Changes

### Bugs Fixed
#### `models.RoutingCosmosDBSqlApiProperties` was modified

* `withCollectionName(java.lang.String)` was removed
* `collectionName()` was removed

#### `models.RoutingEndpoints` was modified

* `withCosmosDBSqlCollections(java.util.List)` was removed
* `cosmosDBSqlCollections()` was removed

#### `models.ErrorDetails` was modified

* `getHttpStatusCode()` was removed

### Features Added

#### `models.RoutingCosmosDBSqlApiProperties` was modified

* `containerName()` was added
* `withContainerName(java.lang.String)` was added

#### `models.RoutingEndpoints` was modified

* `withCosmosDBSqlContainers(java.util.List)` was added
* `cosmosDBSqlContainers()` was added

#### `models.ErrorDetails` was modified

### Other Changes
* `httpStatusCode()` was added

## 1.2.0-beta.3 (2023-04-18)

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

Azure Resource Manager IotHub client library for Java.

This package contains Microsoft Azure SDK for IotHub Management SDK. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2022-11. 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 IotHub Management SDK. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2023-06. 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-iothub</artifactId>
<version>1.2.0-beta.3</version>
<version>1.2.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -103,3 +103,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fiothub%2Fazure-resourcemanager-iothub%2FREADME.png)
88 changes: 46 additions & 42 deletions sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/iothub/azure-resourcemanager-iothub/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for IotHub Management</name>
<description>This package contains Microsoft Azure SDK for IotHub Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2022-11.</description>
<description>This package contains Microsoft Azure SDK for IotHub Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2023-06.</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 @@ -227,7 +227,7 @@ public IotHubManager authenticate(TokenCredential credential, AzureProfile profi
.append("-")
.append("com.azure.resourcemanager.iothub")
.append("/")
.append("1.2.0-beta.3");
.append("1.2.0-beta.4");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -372,8 +372,10 @@ public PrivateEndpointConnections privateEndpointConnections() {
}

/**
* @return Wrapped service client IotHubClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
* Gets wrapped service client IotHubClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*
* @return Wrapped service client IotHubClient.
*/
public IotHubClient serviceClient() {
return this.clientObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public IotHubClientImpl buildClient() {
localSerializerAdapter,
localDefaultPollInterval,
localEnvironment,
subscriptionId,
this.subscriptionId,
localEndpoint);
return client;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2022-11-15-preview";
this.apiVersion = "2023-06-30-preview";
this.operations = new OperationsClientImpl(this);
this.iotHubResources = new IotHubResourcesClientImpl(this);
this.resourceProviderCommons = new ResourceProviderCommonsClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ public interface CertificateDescription {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}

/** The CertificateDescription definition stages. */
interface DefinitionStages {
/** The first stage of the CertificateDescription definition. */
interface Blank extends WithParentResource {
}

/** The stage of the CertificateDescription definition allowing to specify parent resource. */
interface WithParentResource {
/**
Expand All @@ -78,6 +80,7 @@ interface WithParentResource {
*/
WithCreate withExistingIotHub(String resourceGroupName, String resourceName);
}

/**
* The stage of the CertificateDescription definition which contains all the minimum required properties for the
* resource to be created, but also allows for any other optional properties to be specified.
Expand All @@ -98,6 +101,7 @@ interface WithCreate extends DefinitionStages.WithProperties, DefinitionStages.W
*/
CertificateDescription create(Context context);
}

/** The stage of the CertificateDescription definition allowing to specify properties. */
interface WithProperties {
/**
Expand All @@ -108,6 +112,7 @@ interface WithProperties {
*/
WithCreate withProperties(CertificateProperties properties);
}

/** The stage of the CertificateDescription definition allowing to specify ifMatch. */
interface WithIfMatch {
/**
Expand All @@ -121,6 +126,7 @@ interface WithIfMatch {
WithCreate withIfMatch(String ifMatch);
}
}

/**
* Begins update for the CertificateDescription resource.
*
Expand All @@ -145,6 +151,7 @@ interface Update extends UpdateStages.WithProperties, UpdateStages.WithIfMatch {
*/
CertificateDescription apply(Context context);
}

/** The CertificateDescription update stages. */
interface UpdateStages {
/** The stage of the CertificateDescription update allowing to specify properties. */
Expand All @@ -157,6 +164,7 @@ interface WithProperties {
*/
Update withProperties(CertificateProperties properties);
}

/** The stage of the CertificateDescription update allowing to specify ifMatch. */
interface WithIfMatch {
/**
Expand All @@ -170,6 +178,7 @@ interface WithIfMatch {
Update withIfMatch(String ifMatch);
}
}

/**
* Refreshes the resource to sync with Azure.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ErrorDetails() {
*
* @return the httpStatusCode value.
*/
public String getHttpStatusCode() {
public String httpStatusCode() {
return this.httpStatusCode;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ interface Definition
DefinitionStages.WithProperties,
DefinitionStages.WithCreate {
}

/** The EventHubConsumerGroupInfo definition stages. */
interface DefinitionStages {
/** The first stage of the EventHubConsumerGroupInfo definition. */
interface Blank extends WithParentResource {
}

/** The stage of the EventHubConsumerGroupInfo definition allowing to specify parent resource. */
interface WithParentResource {
/**
Expand All @@ -77,6 +79,7 @@ interface WithParentResource {
WithProperties withExistingEventHubEndpoint(
String resourceGroupName, String resourceName, String eventHubEndpointName);
}

/** The stage of the EventHubConsumerGroupInfo definition allowing to specify properties. */
interface WithProperties {
/**
Expand All @@ -87,6 +90,7 @@ interface WithProperties {
*/
WithCreate withProperties(EventHubConsumerGroupName properties);
}

/**
* The stage of the EventHubConsumerGroupInfo definition which contains all the minimum required properties for
* the resource to be created, but also allows for any other optional properties to be specified.
Expand All @@ -108,6 +112,7 @@ interface WithCreate {
EventHubConsumerGroupInfo create(Context context);
}
}

/**
* Refreshes the resource to sync with Azure.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,13 @@ interface Definition
DefinitionStages.WithSku,
DefinitionStages.WithCreate {
}

/** The IotHubDescription definition stages. */
interface DefinitionStages {
/** The first stage of the IotHubDescription definition. */
interface Blank extends WithLocation {
}

/** The stage of the IotHubDescription definition allowing to specify location. */
interface WithLocation {
/**
Expand All @@ -144,6 +146,7 @@ interface WithLocation {
*/
WithResourceGroup withRegion(String location);
}

/** The stage of the IotHubDescription definition allowing to specify parent resource. */
interface WithResourceGroup {
/**
Expand All @@ -154,6 +157,7 @@ interface WithResourceGroup {
*/
WithSku withExistingResourceGroup(String resourceGroupName);
}

/** The stage of the IotHubDescription definition allowing to specify sku. */
interface WithSku {
/**
Expand All @@ -164,6 +168,7 @@ interface WithSku {
*/
WithCreate withSku(IotHubSkuInfo sku);
}

/**
* The stage of the IotHubDescription definition which contains all the minimum required properties for the
* resource to be created, but also allows for any other optional properties to be specified.
Expand All @@ -189,6 +194,7 @@ interface WithCreate
*/
IotHubDescription create(Context context);
}

/** The stage of the IotHubDescription definition allowing to specify tags. */
interface WithTags {
/**
Expand All @@ -199,6 +205,7 @@ interface WithTags {
*/
WithCreate withTags(Map<String, String> tags);
}

/** The stage of the IotHubDescription definition allowing to specify etag. */
interface WithEtag {
/**
Expand All @@ -211,6 +218,7 @@ interface WithEtag {
*/
WithCreate withEtag(String etag);
}

/** The stage of the IotHubDescription definition allowing to specify properties. */
interface WithProperties {
/**
Expand All @@ -221,6 +229,7 @@ interface WithProperties {
*/
WithCreate withProperties(IotHubProperties properties);
}

/** The stage of the IotHubDescription definition allowing to specify identity. */
interface WithIdentity {
/**
Expand All @@ -231,6 +240,7 @@ interface WithIdentity {
*/
WithCreate withIdentity(ArmIdentity identity);
}

/** The stage of the IotHubDescription definition allowing to specify ifMatch. */
interface WithIfMatch {
/**
Expand All @@ -244,6 +254,7 @@ interface WithIfMatch {
WithCreate withIfMatch(String ifMatch);
}
}

/**
* Begins update for the IotHubDescription resource.
*
Expand All @@ -268,6 +279,7 @@ interface Update extends UpdateStages.WithTags {
*/
IotHubDescription apply(Context context);
}

/** The IotHubDescription update stages. */
interface UpdateStages {
/** The stage of the IotHubDescription update allowing to specify tags. */
Expand All @@ -281,6 +293,7 @@ interface WithTags {
Update withTags(Map<String, String> tags);
}
}

/**
* Refreshes the resource to sync with Azure.
*
Expand Down
Loading

0 comments on commit ee9b6de

Please sign in to comment.