Skip to content

Commit ee9b6de

Browse files
authored
mgmt, update iothub to 2023-06-30-preview (Azure#36810)
mgmt, update iothub to 2023-06-30-preview
1 parent 4866a11 commit ee9b6de

File tree

139 files changed

+1087
-1230
lines changed

Some content is hidden

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

139 files changed

+1087
-1230
lines changed

sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,40 @@
11
# Release History
22

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

5-
### Features Added
5+
- 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).
66

77
### Breaking Changes
88

9-
### Bugs Fixed
9+
#### `models.RoutingCosmosDBSqlApiProperties` was modified
10+
11+
* `withCollectionName(java.lang.String)` was removed
12+
* `collectionName()` was removed
13+
14+
#### `models.RoutingEndpoints` was modified
15+
16+
* `withCosmosDBSqlCollections(java.util.List)` was removed
17+
* `cosmosDBSqlCollections()` was removed
18+
19+
#### `models.ErrorDetails` was modified
20+
21+
* `getHttpStatusCode()` was removed
22+
23+
### Features Added
24+
25+
#### `models.RoutingCosmosDBSqlApiProperties` was modified
26+
27+
* `containerName()` was added
28+
* `withContainerName(java.lang.String)` was added
29+
30+
#### `models.RoutingEndpoints` was modified
31+
32+
* `withCosmosDBSqlContainers(java.util.List)` was added
33+
* `cosmosDBSqlContainers()` was added
34+
35+
#### `models.ErrorDetails` was modified
1036

11-
### Other Changes
37+
* `httpStatusCode()` was added
1238

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

sdk/iothub/azure-resourcemanager-iothub/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager IotHub client library for Java.
44

5-
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).
5+
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).
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-iothub</artifactId>
35-
<version>1.2.0-beta.3</version>
35+
<version>1.2.0-beta.4</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -103,3 +103,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
103103
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
104104
[coc]: https://opensource.microsoft.com/codeofconduct/
105105
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
106+
107+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fiothub%2Fazure-resourcemanager-iothub%2FREADME.png)

sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md

Lines changed: 46 additions & 42 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for IotHub Management</name>
21-
<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>
21+
<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>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>

sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public IotHubManager authenticate(TokenCredential credential, AzureProfile profi
227227
.append("-")
228228
.append("com.azure.resourcemanager.iothub")
229229
.append("/")
230-
.append("1.2.0-beta.3");
230+
.append("1.2.0-beta.4");
231231
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
232232
userAgentBuilder
233233
.append(" (")
@@ -372,8 +372,10 @@ public PrivateEndpointConnections privateEndpointConnections() {
372372
}
373373

374374
/**
375-
* @return Wrapped service client IotHubClient providing direct access to the underlying auto-generated API
376-
* implementation, based on Azure REST API.
375+
* Gets wrapped service client IotHubClient providing direct access to the underlying auto-generated API
376+
* implementation, based on Azure REST API.
377+
*
378+
* @return Wrapped service client IotHubClient.
377379
*/
378380
public IotHubClient serviceClient() {
379381
return this.clientObject;

sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public IotHubClientImpl buildClient() {
137137
localSerializerAdapter,
138138
localDefaultPollInterval,
139139
localEnvironment,
140-
subscriptionId,
140+
this.subscriptionId,
141141
localEndpoint);
142142
return client;
143143
}

sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
220220
this.defaultPollInterval = defaultPollInterval;
221221
this.subscriptionId = subscriptionId;
222222
this.endpoint = endpoint;
223-
this.apiVersion = "2022-11-15-preview";
223+
this.apiVersion = "2023-06-30-preview";
224224
this.operations = new OperationsClientImpl(this);
225225
this.iotHubResources = new IotHubResourcesClientImpl(this);
226226
this.resourceProviderCommons = new ResourceProviderCommonsClientImpl(this);

sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateDescription.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ public interface CertificateDescription {
6262
interface Definition
6363
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
6464
}
65+
6566
/** The CertificateDescription definition stages. */
6667
interface DefinitionStages {
6768
/** The first stage of the CertificateDescription definition. */
6869
interface Blank extends WithParentResource {
6970
}
71+
7072
/** The stage of the CertificateDescription definition allowing to specify parent resource. */
7173
interface WithParentResource {
7274
/**
@@ -78,6 +80,7 @@ interface WithParentResource {
7880
*/
7981
WithCreate withExistingIotHub(String resourceGroupName, String resourceName);
8082
}
83+
8184
/**
8285
* The stage of the CertificateDescription definition which contains all the minimum required properties for the
8386
* resource to be created, but also allows for any other optional properties to be specified.
@@ -98,6 +101,7 @@ interface WithCreate extends DefinitionStages.WithProperties, DefinitionStages.W
98101
*/
99102
CertificateDescription create(Context context);
100103
}
104+
101105
/** The stage of the CertificateDescription definition allowing to specify properties. */
102106
interface WithProperties {
103107
/**
@@ -108,6 +112,7 @@ interface WithProperties {
108112
*/
109113
WithCreate withProperties(CertificateProperties properties);
110114
}
115+
111116
/** The stage of the CertificateDescription definition allowing to specify ifMatch. */
112117
interface WithIfMatch {
113118
/**
@@ -121,6 +126,7 @@ interface WithIfMatch {
121126
WithCreate withIfMatch(String ifMatch);
122127
}
123128
}
129+
124130
/**
125131
* Begins update for the CertificateDescription resource.
126132
*
@@ -145,6 +151,7 @@ interface Update extends UpdateStages.WithProperties, UpdateStages.WithIfMatch {
145151
*/
146152
CertificateDescription apply(Context context);
147153
}
154+
148155
/** The CertificateDescription update stages. */
149156
interface UpdateStages {
150157
/** The stage of the CertificateDescription update allowing to specify properties. */
@@ -157,6 +164,7 @@ interface WithProperties {
157164
*/
158165
Update withProperties(CertificateProperties properties);
159166
}
167+
160168
/** The stage of the CertificateDescription update allowing to specify ifMatch. */
161169
interface WithIfMatch {
162170
/**
@@ -170,6 +178,7 @@ interface WithIfMatch {
170178
Update withIfMatch(String ifMatch);
171179
}
172180
}
181+
173182
/**
174183
* Refreshes the resource to sync with Azure.
175184
*

sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public ErrorDetails() {
2626
*
2727
* @return the httpStatusCode value.
2828
*/
29-
public String getHttpStatusCode() {
29+
public String httpStatusCode() {
3030
return this.httpStatusCode;
3131
}
3232

sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupInfo.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ interface Definition
5959
DefinitionStages.WithProperties,
6060
DefinitionStages.WithCreate {
6161
}
62+
6263
/** The EventHubConsumerGroupInfo definition stages. */
6364
interface DefinitionStages {
6465
/** The first stage of the EventHubConsumerGroupInfo definition. */
6566
interface Blank extends WithParentResource {
6667
}
68+
6769
/** The stage of the EventHubConsumerGroupInfo definition allowing to specify parent resource. */
6870
interface WithParentResource {
6971
/**
@@ -77,6 +79,7 @@ interface WithParentResource {
7779
WithProperties withExistingEventHubEndpoint(
7880
String resourceGroupName, String resourceName, String eventHubEndpointName);
7981
}
82+
8083
/** The stage of the EventHubConsumerGroupInfo definition allowing to specify properties. */
8184
interface WithProperties {
8285
/**
@@ -87,6 +90,7 @@ interface WithProperties {
8790
*/
8891
WithCreate withProperties(EventHubConsumerGroupName properties);
8992
}
93+
9094
/**
9195
* The stage of the EventHubConsumerGroupInfo definition which contains all the minimum required properties for
9296
* the resource to be created, but also allows for any other optional properties to be specified.
@@ -108,6 +112,7 @@ interface WithCreate {
108112
EventHubConsumerGroupInfo create(Context context);
109113
}
110114
}
115+
111116
/**
112117
* Refreshes the resource to sync with Azure.
113118
*

0 commit comments

Comments
 (0)