Skip to content

Commit 8d58ad0

Browse files
author
SDKAuto
committed
CodeGen from PR 33810 in Azure/azure-rest-api-specs
Merge 081541a616837b589d1908baad8aabcea8ccc00c into 9d92b4dae0a6ac2f23afeffecce650bb008ed688
1 parent 72aed10 commit 8d58ad0

File tree

104 files changed

+4289
-1817
lines changed

Some content is hidden

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

104 files changed

+4289
-1817
lines changed

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

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

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.1.0-beta.1 (2025-04-09)
4+
5+
- Azure Resource Manager IoT Operations client library for Java. This package contains Microsoft Azure SDK for IoT Operations Management SDK. Microsoft.IoTOperations 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).
46

57
### Features Added
68

7-
### Breaking Changes
9+
* `models.InstanceFeature` was added
10+
11+
* `models.StateStoreRetainmentPolicy` was added
12+
13+
* `models.CustomTopicRetainmentPolicy` was added
14+
15+
* `models.SubscriberQueueRetainmentPolicy` was added
16+
17+
* `models.SubscriberQueueRetainmentSettings` was added
18+
19+
* `models.VolumeClaimResourceRequirementsClaims` was added
20+
21+
* `models.TopicRetainmentPolicy` was added
22+
23+
* `models.Persistence` was added
24+
25+
* `models.DynamicPersistenceSettings` was added
26+
27+
* `models.TopicRetainmentSettings` was added
28+
29+
* `models.InstanceFeatureMode` was added
30+
31+
* `models.RetainmentPolicyMode` was added
32+
33+
* `models.DynamicRetainmentSettings` was added
34+
35+
* `models.CustomSubscriberQueueRetainmentPolicy` was added
36+
37+
* `models.StateStoreRetainmentSettings` was added
38+
39+
* `models.StateStoreRetainmentResources` was added
40+
41+
* `models.CustomStateStoreRetainmentPolicy` was added
42+
43+
#### `models.BrokerProperties` was modified
44+
45+
* `withPersistence(models.Persistence)` was added
46+
* `persistence()` was added
47+
48+
#### `models.VolumeClaimResourceRequirements` was modified
49+
50+
* `withClaims(java.util.List)` was added
51+
* `claims()` was added
852

9-
### Bugs Fixed
53+
#### `models.InstanceProperties` was modified
1054

11-
### Other Changes
55+
* `withFeatures(java.util.Map)` was added
56+
* `features()` was added
1257

1358
## 1.0.0 (2024-12-16)
1459

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
IoTOperationsManager manager = IoTOperationsManager
6060
.authenticate(credential, profile);
6161
```
6262

63-
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
6464

6565
See [Authentication][authenticate] for more options.
6666

@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
100100
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
101101
[coc]: https://opensource.microsoft.com/codeofconduct/
102102
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
103-
104-

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

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

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
4848
<revapi.skip>true</revapi.skip>
49-
<spotless.skip>false</spotless.skip>
5049
</properties>
5150
<dependencies>
5251
<dependency>

sdk/iotoperations/azure-resourcemanager-iotoperations/src/main/java/com/azure/resourcemanager/iotoperations/implementation/IoTOperationsManagementClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public DataflowEndpointsClient getDataflowEndpoints() {
274274
this.defaultPollInterval = defaultPollInterval;
275275
this.endpoint = endpoint;
276276
this.subscriptionId = subscriptionId;
277-
this.apiVersion = "2025-04-01";
277+
this.apiVersion = "2025-07-01-preview";
278278
this.operations = new OperationsClientImpl(this);
279279
this.instances = new InstancesClientImpl(this);
280280
this.brokers = new BrokersClientImpl(this);

sdk/iotoperations/azure-resourcemanager-iotoperations/src/main/java/com/azure/resourcemanager/iotoperations/models/BrokerProperties.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ public final class BrokerProperties implements JsonSerializable<BrokerProperties
4848
*/
4949
private BrokerMemoryProfile memoryProfile;
5050

51+
/*
52+
* The persistence settings of the Broker.
53+
*/
54+
private Persistence persistence;
55+
5156
/*
5257
* The status of the last operation.
5358
*/
@@ -183,6 +188,26 @@ public BrokerProperties withMemoryProfile(BrokerMemoryProfile memoryProfile) {
183188
return this;
184189
}
185190

191+
/**
192+
* Get the persistence property: The persistence settings of the Broker.
193+
*
194+
* @return the persistence value.
195+
*/
196+
public Persistence persistence() {
197+
return this.persistence;
198+
}
199+
200+
/**
201+
* Set the persistence property: The persistence settings of the Broker.
202+
*
203+
* @param persistence the persistence value to set.
204+
* @return the BrokerProperties object itself.
205+
*/
206+
public BrokerProperties withPersistence(Persistence persistence) {
207+
this.persistence = persistence;
208+
return this;
209+
}
210+
186211
/**
187212
* Get the provisioningState property: The status of the last operation.
188213
*
@@ -213,6 +238,9 @@ public void validate() {
213238
if (generateResourceLimits() != null) {
214239
generateResourceLimits().validate();
215240
}
241+
if (persistence() != null) {
242+
persistence().validate();
243+
}
216244
}
217245

218246
/**
@@ -227,6 +255,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
227255
jsonWriter.writeJsonField("diskBackedMessageBuffer", this.diskBackedMessageBuffer);
228256
jsonWriter.writeJsonField("generateResourceLimits", this.generateResourceLimits);
229257
jsonWriter.writeStringField("memoryProfile", this.memoryProfile == null ? null : this.memoryProfile.toString());
258+
jsonWriter.writeJsonField("persistence", this.persistence);
230259
return jsonWriter.writeEndObject();
231260
}
232261

@@ -257,6 +286,8 @@ public static BrokerProperties fromJson(JsonReader jsonReader) throws IOExceptio
257286
deserializedBrokerProperties.generateResourceLimits = GenerateResourceLimits.fromJson(reader);
258287
} else if ("memoryProfile".equals(fieldName)) {
259288
deserializedBrokerProperties.memoryProfile = BrokerMemoryProfile.fromString(reader.getString());
289+
} else if ("persistence".equals(fieldName)) {
290+
deserializedBrokerProperties.persistence = Persistence.fromJson(reader);
260291
} else if ("provisioningState".equals(fieldName)) {
261292
deserializedBrokerProperties.provisioningState = ProvisioningState.fromString(reader.getString());
262293
} else {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package com.azure.resourcemanager.iotoperations.models;
6+
7+
import com.azure.core.annotation.Fluent;
8+
import com.azure.json.JsonReader;
9+
import com.azure.json.JsonToken;
10+
import com.azure.json.JsonWriter;
11+
import java.io.IOException;
12+
13+
/**
14+
* Custom State Store Retainment Policy.
15+
*/
16+
@Fluent
17+
public final class CustomStateStoreRetainmentPolicy extends StateStoreRetainmentPolicy {
18+
/*
19+
* The mode of the retainment policy.
20+
*/
21+
private RetainmentPolicyMode mode = RetainmentPolicyMode.CUSTOM;
22+
23+
/*
24+
* Settings for the retainment policy.
25+
*/
26+
private StateStoreRetainmentSettings stateStoreSettings;
27+
28+
/**
29+
* Creates an instance of CustomStateStoreRetainmentPolicy class.
30+
*/
31+
public CustomStateStoreRetainmentPolicy() {
32+
}
33+
34+
/**
35+
* Get the mode property: The mode of the retainment policy.
36+
*
37+
* @return the mode value.
38+
*/
39+
@Override
40+
public RetainmentPolicyMode mode() {
41+
return this.mode;
42+
}
43+
44+
/**
45+
* Get the stateStoreSettings property: Settings for the retainment policy.
46+
*
47+
* @return the stateStoreSettings value.
48+
*/
49+
public StateStoreRetainmentSettings stateStoreSettings() {
50+
return this.stateStoreSettings;
51+
}
52+
53+
/**
54+
* Set the stateStoreSettings property: Settings for the retainment policy.
55+
*
56+
* @param stateStoreSettings the stateStoreSettings value to set.
57+
* @return the CustomStateStoreRetainmentPolicy object itself.
58+
*/
59+
public CustomStateStoreRetainmentPolicy withStateStoreSettings(StateStoreRetainmentSettings stateStoreSettings) {
60+
this.stateStoreSettings = stateStoreSettings;
61+
return this;
62+
}
63+
64+
/**
65+
* Validates the instance.
66+
*
67+
* @throws IllegalArgumentException thrown if the instance is not valid.
68+
*/
69+
@Override
70+
public void validate() {
71+
if (stateStoreSettings() != null) {
72+
stateStoreSettings().validate();
73+
}
74+
if (stateStoreSettings() != null) {
75+
stateStoreSettings().validate();
76+
}
77+
}
78+
79+
/**
80+
* {@inheritDoc}
81+
*/
82+
@Override
83+
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
84+
jsonWriter.writeStartObject();
85+
jsonWriter.writeJsonField("stateStoreSettings", stateStoreSettings());
86+
jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString());
87+
jsonWriter.writeJsonField("stateStoreSettings", this.stateStoreSettings);
88+
return jsonWriter.writeEndObject();
89+
}
90+
91+
/**
92+
* Reads an instance of CustomStateStoreRetainmentPolicy from the JsonReader.
93+
*
94+
* @param jsonReader The JsonReader being read.
95+
* @return An instance of CustomStateStoreRetainmentPolicy if the JsonReader was pointing to an instance of it, or
96+
* null if it was pointing to JSON null.
97+
* @throws IOException If an error occurs while reading the CustomStateStoreRetainmentPolicy.
98+
*/
99+
public static CustomStateStoreRetainmentPolicy fromJson(JsonReader jsonReader) throws IOException {
100+
return jsonReader.readObject(reader -> {
101+
CustomStateStoreRetainmentPolicy deserializedCustomStateStoreRetainmentPolicy
102+
= new CustomStateStoreRetainmentPolicy();
103+
while (reader.nextToken() != JsonToken.END_OBJECT) {
104+
String fieldName = reader.getFieldName();
105+
reader.nextToken();
106+
107+
if ("mode".equals(fieldName)) {
108+
deserializedCustomStateStoreRetainmentPolicy.mode
109+
= RetainmentPolicyMode.fromString(reader.getString());
110+
} else if ("stateStoreSettings".equals(fieldName)) {
111+
deserializedCustomStateStoreRetainmentPolicy.stateStoreSettings
112+
= StateStoreRetainmentSettings.fromJson(reader);
113+
} else {
114+
reader.skipChildren();
115+
}
116+
}
117+
118+
return deserializedCustomStateStoreRetainmentPolicy;
119+
});
120+
}
121+
}

0 commit comments

Comments
 (0)