Skip to content

Commit 7d31ee8

Browse files
author
SDKAuto
committed
CodeGen from PR 15743 in Azure/azure-rest-api-specs
Merge a30e0336c7b254bfbe37ec2a8cbff823d4ed4d9f into c5437ef322abbc67b5176425aba31056997b8451
1 parent 933318c commit 7d31ee8

File tree

50 files changed

+29
-1247
lines changed

Some content is hidden

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

50 files changed

+29
-1247
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2021-08-26)
44

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-2021-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
56
- Add support for new service API version 2021-07-01
67
- Add flag for disabling local authentication to IotHubProperties
78
- Add flags to disable device and/or module symmetric key based authentication to IotHubProperties

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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.0.0</version>
35+
<version>1.1.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on
7474

7575
## Examples
7676

77-
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md)
7877

7978

8079
## Troubleshooting

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public IotHubManager authenticate(TokenCredential credential, AzureProfile profi
194194
.append("-")
195195
.append("com.azure.resourcemanager.iothub")
196196
.append("/")
197-
.append("1.0.0");
197+
.append("1.0.0-beta.1");
198198
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
199199
userAgentBuilder
200200
.append(" (")

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.azure.core.management.ProxyResource;
99
import com.azure.core.util.logging.ClientLogger;
1010
import com.fasterxml.jackson.annotation.JsonIgnore;
11+
import com.fasterxml.jackson.annotation.JsonInclude;
1112
import com.fasterxml.jackson.annotation.JsonProperty;
1213
import java.util.Map;
1314

@@ -20,6 +21,7 @@ public final class EventHubConsumerGroupInfoInner extends ProxyResource {
2021
* The tags.
2122
*/
2223
@JsonProperty(value = "properties")
24+
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
2325
private Map<String, Object> properties;
2426

2527
/*

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.util.logging.ClientLogger;
99
import com.fasterxml.jackson.annotation.JsonIgnore;
10+
import com.fasterxml.jackson.annotation.JsonInclude;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
1112
import java.util.Map;
1213

@@ -40,6 +41,7 @@ public class ArmIdentity {
4041
* Dictionary of <ArmUserIdentity>
4142
*/
4243
@JsonProperty(value = "userAssignedIdentities")
44+
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
4345
private Map<String, ArmUserIdentity> userAssignedIdentities;
4446

4547
/**

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public final class CertificateProperties {
3737
/*
3838
* Determines whether certificate has been verified.
3939
*/
40-
@JsonProperty(value = "isVerified", access = JsonProperty.Access.WRITE_ONLY)
40+
@JsonProperty(value = "isVerified")
4141
private Boolean isVerified;
4242

4343
/*
@@ -97,6 +97,17 @@ public Boolean isVerified() {
9797
return this.isVerified;
9898
}
9999

100+
/**
101+
* Set the isVerified property: Determines whether certificate has been verified.
102+
*
103+
* @param isVerified the isVerified value to set.
104+
* @return the CertificateProperties object itself.
105+
*/
106+
public CertificateProperties withIsVerified(Boolean isVerified) {
107+
this.isVerified = isVerified;
108+
return this;
109+
}
110+
100111
/**
101112
* Get the created property: The certificate's create date and time.
102113
*

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.azure.resourcemanager.iothub.fluent.models.PrivateEndpointConnectionInner;
1010
import com.azure.resourcemanager.iothub.fluent.models.SharedAccessSignatureAuthorizationRuleInner;
1111
import com.fasterxml.jackson.annotation.JsonIgnore;
12+
import com.fasterxml.jackson.annotation.JsonInclude;
1213
import com.fasterxml.jackson.annotation.JsonProperty;
1314
import java.util.List;
1415
import java.util.Map;
@@ -114,6 +115,7 @@ public final class IotHubProperties {
114115
* while making create or update calls for the IoT hub.
115116
*/
116117
@JsonProperty(value = "eventHubEndpoints")
118+
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
117119
private Map<String, EventHubProperties> eventHubEndpoints;
118120

119121
/*
@@ -132,13 +134,15 @@ public final class IotHubProperties {
132134
* an error to be thrown.
133135
*/
134136
@JsonProperty(value = "storageEndpoints")
137+
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
135138
private Map<String, StorageEndpointProperties> storageEndpoints;
136139

137140
/*
138141
* The messaging endpoint properties for the file upload notification
139142
* queue.
140143
*/
141144
@JsonProperty(value = "messagingEndpoints")
145+
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
142146
private Map<String, MessagingEndpointProperties> messagingEndpoints;
143147

144148
/*

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.util.logging.ClientLogger;
99
import com.fasterxml.jackson.annotation.JsonIgnore;
10+
import com.fasterxml.jackson.annotation.JsonInclude;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
1112
import java.util.Map;
1213

@@ -25,12 +26,14 @@ public final class RoutingMessage {
2526
* App properties
2627
*/
2728
@JsonProperty(value = "appProperties")
29+
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
2830
private Map<String, String> appProperties;
2931

3032
/*
3133
* System properties
3234
*/
3335
@JsonProperty(value = "systemProperties")
36+
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
3437
private Map<String, String> systemProperties;
3538

3639
/**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.util.logging.ClientLogger;
99
import com.fasterxml.jackson.annotation.JsonIgnore;
10+
import com.fasterxml.jackson.annotation.JsonInclude;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
1112
import java.util.Map;
1213

@@ -19,6 +20,7 @@ public final class TagsResource {
1920
* Resource tags
2021
*/
2122
@JsonProperty(value = "tags")
23+
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
2224
private Map<String, String> tags;
2325

2426
/**

sdk/iothub/azure-resourcemanager-iothub/src/main/test/com/azure/resourcemanager/iothub/Constants.java

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)