Skip to content

Commit 6ba8e82

Browse files
author
SDKAuto
committed
CodeGen from PR 32208 in Azure/azure-rest-api-specs
Merge e31627d9eed5f2a7b3b45371f60050f818a2bc6e into c48fbdb13ec69c5306d2c8e57e5a498677ca28b9
1 parent faba4ba commit 6ba8e82

File tree

93 files changed

+278
-2200
lines changed

Some content is hidden

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

93 files changed

+278
-2200
lines changed

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

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

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2025-02-07)
4+
5+
- Azure Resource Manager AppConfiguration client library for Java. This package contains Microsoft Azure SDK for AppConfiguration Management SDK. Package tag package-2024-06-01. 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.ConfigurationStoreUpdateParameters` was modified
10+
11+
* `revisionRetentionPeriodInSeconds()` was added
12+
* `withRevisionRetentionPeriodInSeconds(java.lang.Long)` was added
13+
14+
#### `models.ConfigurationStore$Definition` was modified
815

9-
### Bugs Fixed
16+
* `withRevisionRetentionPeriodInSeconds(java.lang.Long)` was added
17+
18+
#### `models.ConfigurationStore$Update` was modified
19+
20+
* `withRevisionRetentionPeriodInSeconds(java.lang.Long)` was added
21+
22+
#### `models.ConfigurationStore` was modified
1023

11-
### Other Changes
24+
* `revisionRetentionPeriodInSeconds()` was added
1225

1326
## 1.0.0 (2024-11-20)
1427

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

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

33
Azure Resource Manager AppConfiguration client library for Java.
44

5-
This package contains Microsoft Azure SDK for AppConfiguration Management SDK. Package tag package-2024-05-01. 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 AppConfiguration Management SDK. Package tag package-2024-06-01. 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-appconfiguration</artifactId>
35-
<version>1.0.0</version>
35+
<version>1.1.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

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

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

Lines changed: 2 additions & 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 AppConfiguration Management</name>
21-
<description>This package contains Microsoft Azure SDK for AppConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-05-01.</description>
21+
<description>This package contains Microsoft Azure SDK for AppConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-06-01.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,6 +45,7 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48+
<revapi.skip>true</revapi.skip>
4849
<spotless.skip>false</spotless.skip>
4950
</properties>
5051
<dependencies>

sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public AppConfigurationManager authenticate(TokenCredential credential, AzurePro
228228
.append("-")
229229
.append("com.azure.resourcemanager.appconfiguration")
230230
.append("/")
231-
.append("1.0.0");
231+
.append("1.0.0-beta.1");
232232
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
233233
userAgentBuilder.append(" (")
234234
.append(Configuration.getGlobalConfiguration().get("java.version"))

sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,31 @@ public ConfigurationStoreInner withSoftDeleteRetentionInDays(Integer softDeleteR
310310
return this;
311311
}
312312

313+
/**
314+
* Get the revisionRetentionPeriodInSeconds property: The amount of time in seconds to retain new key value
315+
* revisions. Defaults to 604800 (7 days) for Free SKU stores and 2592000 (30 days) for Standard SKU stores.
316+
*
317+
* @return the revisionRetentionPeriodInSeconds value.
318+
*/
319+
public Long revisionRetentionPeriodInSeconds() {
320+
return this.innerProperties() == null ? null : this.innerProperties().revisionRetentionPeriodInSeconds();
321+
}
322+
323+
/**
324+
* Set the revisionRetentionPeriodInSeconds property: The amount of time in seconds to retain new key value
325+
* revisions. Defaults to 604800 (7 days) for Free SKU stores and 2592000 (30 days) for Standard SKU stores.
326+
*
327+
* @param revisionRetentionPeriodInSeconds the revisionRetentionPeriodInSeconds value to set.
328+
* @return the ConfigurationStoreInner object itself.
329+
*/
330+
public ConfigurationStoreInner withRevisionRetentionPeriodInSeconds(Long revisionRetentionPeriodInSeconds) {
331+
if (this.innerProperties() == null) {
332+
this.innerProperties = new ConfigurationStoreProperties();
333+
}
334+
this.innerProperties().withRevisionRetentionPeriodInSeconds(revisionRetentionPeriodInSeconds);
335+
return this;
336+
}
337+
313338
/**
314339
* Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this
315340
* configuration store.

sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ public final class ConfigurationStoreProperties implements JsonSerializable<Conf
6565
*/
6666
private Integer softDeleteRetentionInDays;
6767

68+
/*
69+
* The amount of time in seconds to retain new key value revisions. Defaults to 604800 (7 days) for Free SKU stores
70+
* and 2592000 (30 days) for Standard SKU stores.
71+
*/
72+
private Long revisionRetentionPeriodInSeconds;
73+
6874
/*
6975
* Property specifying whether protection against purge is enabled for this configuration store.
7076
*/
@@ -207,6 +213,28 @@ public ConfigurationStoreProperties withSoftDeleteRetentionInDays(Integer softDe
207213
return this;
208214
}
209215

216+
/**
217+
* Get the revisionRetentionPeriodInSeconds property: The amount of time in seconds to retain new key value
218+
* revisions. Defaults to 604800 (7 days) for Free SKU stores and 2592000 (30 days) for Standard SKU stores.
219+
*
220+
* @return the revisionRetentionPeriodInSeconds value.
221+
*/
222+
public Long revisionRetentionPeriodInSeconds() {
223+
return this.revisionRetentionPeriodInSeconds;
224+
}
225+
226+
/**
227+
* Set the revisionRetentionPeriodInSeconds property: The amount of time in seconds to retain new key value
228+
* revisions. Defaults to 604800 (7 days) for Free SKU stores and 2592000 (30 days) for Standard SKU stores.
229+
*
230+
* @param revisionRetentionPeriodInSeconds the revisionRetentionPeriodInSeconds value to set.
231+
* @return the ConfigurationStoreProperties object itself.
232+
*/
233+
public ConfigurationStoreProperties withRevisionRetentionPeriodInSeconds(Long revisionRetentionPeriodInSeconds) {
234+
this.revisionRetentionPeriodInSeconds = revisionRetentionPeriodInSeconds;
235+
return this;
236+
}
237+
210238
/**
211239
* Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this
212240
* configuration store.
@@ -299,6 +327,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
299327
this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
300328
jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth);
301329
jsonWriter.writeNumberField("softDeleteRetentionInDays", this.softDeleteRetentionInDays);
330+
jsonWriter.writeNumberField("revisionRetentionPeriodInSeconds", this.revisionRetentionPeriodInSeconds);
302331
jsonWriter.writeBooleanField("enablePurgeProtection", this.enablePurgeProtection);
303332
jsonWriter.writeJsonField("dataPlaneProxy", this.dataPlaneProxy);
304333
jsonWriter.writeStringField("createMode", this.createMode == null ? null : this.createMode.toString());
@@ -343,6 +372,9 @@ public static ConfigurationStoreProperties fromJson(JsonReader jsonReader) throw
343372
} else if ("softDeleteRetentionInDays".equals(fieldName)) {
344373
deserializedConfigurationStoreProperties.softDeleteRetentionInDays
345374
= reader.getNullable(JsonReader::getInt);
375+
} else if ("revisionRetentionPeriodInSeconds".equals(fieldName)) {
376+
deserializedConfigurationStoreProperties.revisionRetentionPeriodInSeconds
377+
= reader.getNullable(JsonReader::getLong);
346378
} else if ("enablePurgeProtection".equals(fieldName)) {
347379
deserializedConfigurationStoreProperties.enablePurgeProtection
348380
= reader.getNullable(JsonReader::getBoolean);

sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ public final class ConfigurationStorePropertiesUpdateParameters
4545
*/
4646
private DataPlaneProxyProperties dataPlaneProxy;
4747

48+
/*
49+
* The amount of time in seconds to retain new key value revisions. Defaults to 604800 (7 days) for Free SKU stores
50+
* and 2592000 (30 days) for Standard SKU stores.
51+
*/
52+
private Long revisionRetentionPeriodInSeconds;
53+
4854
/**
4955
* Creates an instance of ConfigurationStorePropertiesUpdateParameters class.
5056
*/
@@ -158,6 +164,29 @@ public ConfigurationStorePropertiesUpdateParameters withDataPlaneProxy(DataPlane
158164
return this;
159165
}
160166

167+
/**
168+
* Get the revisionRetentionPeriodInSeconds property: The amount of time in seconds to retain new key value
169+
* revisions. Defaults to 604800 (7 days) for Free SKU stores and 2592000 (30 days) for Standard SKU stores.
170+
*
171+
* @return the revisionRetentionPeriodInSeconds value.
172+
*/
173+
public Long revisionRetentionPeriodInSeconds() {
174+
return this.revisionRetentionPeriodInSeconds;
175+
}
176+
177+
/**
178+
* Set the revisionRetentionPeriodInSeconds property: The amount of time in seconds to retain new key value
179+
* revisions. Defaults to 604800 (7 days) for Free SKU stores and 2592000 (30 days) for Standard SKU stores.
180+
*
181+
* @param revisionRetentionPeriodInSeconds the revisionRetentionPeriodInSeconds value to set.
182+
* @return the ConfigurationStorePropertiesUpdateParameters object itself.
183+
*/
184+
public ConfigurationStorePropertiesUpdateParameters
185+
withRevisionRetentionPeriodInSeconds(Long revisionRetentionPeriodInSeconds) {
186+
this.revisionRetentionPeriodInSeconds = revisionRetentionPeriodInSeconds;
187+
return this;
188+
}
189+
161190
/**
162191
* Validates the instance.
163192
*
@@ -184,6 +213,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
184213
this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
185214
jsonWriter.writeBooleanField("enablePurgeProtection", this.enablePurgeProtection);
186215
jsonWriter.writeJsonField("dataPlaneProxy", this.dataPlaneProxy);
216+
jsonWriter.writeNumberField("revisionRetentionPeriodInSeconds", this.revisionRetentionPeriodInSeconds);
187217
return jsonWriter.writeEndObject();
188218
}
189219

@@ -218,6 +248,9 @@ public static ConfigurationStorePropertiesUpdateParameters fromJson(JsonReader j
218248
} else if ("dataPlaneProxy".equals(fieldName)) {
219249
deserializedConfigurationStorePropertiesUpdateParameters.dataPlaneProxy
220250
= DataPlaneProxyProperties.fromJson(reader);
251+
} else if ("revisionRetentionPeriodInSeconds".equals(fieldName)) {
252+
deserializedConfigurationStorePropertiesUpdateParameters.revisionRetentionPeriodInSeconds
253+
= reader.getNullable(JsonReader::getLong);
221254
} else {
222255
reader.skipChildren();
223256
}

sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public SnapshotsClient getSnapshots() {
244244
this.defaultPollInterval = defaultPollInterval;
245245
this.subscriptionId = subscriptionId;
246246
this.endpoint = endpoint;
247-
this.apiVersion = "2024-05-01";
247+
this.apiVersion = "2024-06-01";
248248
this.configurationStores = new ConfigurationStoresClientImpl(this);
249249
this.operations = new OperationsClientImpl(this);
250250
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);

sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ public Integer softDeleteRetentionInDays() {
107107
return this.innerModel().softDeleteRetentionInDays();
108108
}
109109

110+
public Long revisionRetentionPeriodInSeconds() {
111+
return this.innerModel().revisionRetentionPeriodInSeconds();
112+
}
113+
110114
public Boolean enablePurgeProtection() {
111115
return this.innerModel().enablePurgeProtection();
112116
}
@@ -308,6 +312,17 @@ public ConfigurationStoreImpl withSoftDeleteRetentionInDays(Integer softDeleteRe
308312
return this;
309313
}
310314

315+
public ConfigurationStoreImpl withRevisionRetentionPeriodInSeconds(Long revisionRetentionPeriodInSeconds) {
316+
if (isInCreateMode()) {
317+
this.innerModel().withRevisionRetentionPeriodInSeconds(revisionRetentionPeriodInSeconds);
318+
return this;
319+
} else {
320+
this.updateConfigStoreUpdateParameters
321+
.withRevisionRetentionPeriodInSeconds(revisionRetentionPeriodInSeconds);
322+
return this;
323+
}
324+
}
325+
311326
public ConfigurationStoreImpl withEnablePurgeProtection(Boolean enablePurgeProtection) {
312327
if (isInCreateMode()) {
313328
this.innerModel().withEnablePurgeProtection(enablePurgeProtection);

0 commit comments

Comments
 (0)