Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### Other Changes

- Updated to support `2026-05-01-preview`

## 1.10.0 (2026-06-15)

### Features Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ public class AppConfigurationCustomizations extends Customization {
"AzureAppConfigurationBuilder.java"
};

private static final String[] FILES_WITH_GENERATED_CLIENT_REFERENCES = new String[] {
"FeatureFlagClient.java",
"FeatureFlagAsyncClient.java",
"implementation/FeatureFlagClientsImpl.java"
};

// Matches: " private Mono<PagedResponse<BinaryData>> fooSinglePageAsync("
// " private PagedResponse<BinaryData> fooSinglePage("
// " private Mono<PagedResponse<BinaryData>> fooNextSinglePageAsync("
Expand All @@ -67,6 +73,7 @@ public void customize(LibraryCustomization customization, Logger logger) {
}
}
renameGeneratedImpl(editor, logger);
patchGeneratedClientReferences(editor, logger);
promoteSinglePageMethodsToPublic(editor, logger);
patchModuleInfo(editor, logger);
addKeyValueSetKey(editor, logger);
Expand Down Expand Up @@ -94,6 +101,26 @@ private static void renameGeneratedImpl(Editor editor, Logger logger) {
GENERATED_IMPL_PATH, IMPL_CLIENT_PATH);
}

private static void patchGeneratedClientReferences(Editor editor, Logger logger) {
for (String fileName : FILES_WITH_GENERATED_CLIENT_REFERENCES) {
String path = ROOT_FILE_PATH + fileName;
String content = editor.getContents().get(path);
if (content == null) {
logger.info("{} not present; skipping generated client reference patch.", path);
continue;
}

String updated = content
.replace("AzureAppConfigurationServiceVersion", "ConfigurationServiceVersion")
.replace("AzureAppConfigurationImpl", "ConfigurationClientImpl")
.replace("AzureAppConfigurationBuilder", "ConfigurationClientBuilder");
if (!updated.equals(content)) {
editor.replaceFile(path, updated);
logger.info("Updated generated client references in {}.", path);
}
}
}

// The TypeSpec @key decorator drops the setter for KeyValue.key. We still need to populate it on
// the request body for set/put operations, so add the setter back via customization.
private static void addKeyValueSetKey(Editor editor, Logger logger) {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,20 @@ public SerializerAdapter getSerializerAdapter() {
return this.serializerAdapter;
}

/**
* The FeatureFlagClientsImpl object to access its operations.
*/
private final FeatureFlagClientsImpl featureFlagClients;

/**
* Gets the FeatureFlagClientsImpl object to access its operations.
*
* @return the FeatureFlagClientsImpl object.
*/
public FeatureFlagClientsImpl getFeatureFlagClients() {
return this.featureFlagClients;
}

/**
* Initializes an instance of AzureAppConfiguration client.
*
Expand Down Expand Up @@ -155,6 +169,7 @@ public ConfigurationClientImpl(HttpPipeline httpPipeline, SerializerAdapter seri
this.serializerAdapter = serializerAdapter;
this.endpoint = endpoint;
this.serviceVersion = serviceVersion;
this.featureFlagClients = new FeatureFlagClientsImpl(this);
this.service
= RestProxy.create(ConfigurationClientService.class, this.httpPipeline, this.getSerializerAdapter());
}
Expand Down Expand Up @@ -3220,6 +3235,8 @@ public Response<Void> checkSnapshotWithResponse(String name, RequestOptions requ
* to by the specified token.</td></tr>
* <tr><td>$Select</td><td>List&lt;String&gt;</td><td>No</td><td>Used to select what fields are present in the
* returned resource(s). In the form of "," separated string.</td></tr>
* <tr><td>resourceType</td><td>String</td><td>No</td><td>A filter used to indicate the resource type of the labels.
* Accepted values: 'kv' for key-value labels, 'ff' for feature flag labels.</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addQueryParam}
* <p><strong>Header Parameters</strong></p>
Expand Down Expand Up @@ -3272,6 +3289,8 @@ public Mono<PagedResponse<BinaryData>> getLabelsSinglePageAsync(RequestOptions r
* to by the specified token.</td></tr>
* <tr><td>$Select</td><td>List&lt;String&gt;</td><td>No</td><td>Used to select what fields are present in the
* returned resource(s). In the form of "," separated string.</td></tr>
* <tr><td>resourceType</td><td>String</td><td>No</td><td>A filter used to indicate the resource type of the labels.
* Accepted values: 'kv' for key-value labels, 'ff' for feature flag labels.</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addQueryParam}
* <p><strong>Header Parameters</strong></p>
Expand Down Expand Up @@ -3323,6 +3342,8 @@ public PagedFlux<BinaryData> getLabelsAsync(RequestOptions requestOptions) {
* to by the specified token.</td></tr>
* <tr><td>$Select</td><td>List&lt;String&gt;</td><td>No</td><td>Used to select what fields are present in the
* returned resource(s). In the form of "," separated string.</td></tr>
* <tr><td>resourceType</td><td>String</td><td>No</td><td>A filter used to indicate the resource type of the labels.
* Accepted values: 'kv' for key-value labels, 'ff' for feature flag labels.</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addQueryParam}
* <p><strong>Header Parameters</strong></p>
Expand Down Expand Up @@ -3374,6 +3395,8 @@ public PagedResponse<BinaryData> getLabelsSinglePage(RequestOptions requestOptio
* to by the specified token.</td></tr>
* <tr><td>$Select</td><td>List&lt;String&gt;</td><td>No</td><td>Used to select what fields are present in the
* returned resource(s). In the form of "," separated string.</td></tr>
* <tr><td>resourceType</td><td>String</td><td>No</td><td>A filter used to indicate the resource type of the labels.
* Accepted values: 'kv' for key-value labels, 'ff' for feature flag labels.</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addQueryParam}
* <p><strong>Header Parameters</strong></p>
Expand Down Expand Up @@ -3425,6 +3448,8 @@ public PagedIterable<BinaryData> getLabels(RequestOptions requestOptions) {
* to by the specified token.</td></tr>
* <tr><td>$Select</td><td>List&lt;String&gt;</td><td>No</td><td>Used to select what fields are present in the
* returned resource(s). In the form of "," separated string.</td></tr>
* <tr><td>resourceType</td><td>String</td><td>No</td><td>A filter used to indicate the resource type of the labels.
* Accepted values: 'kv' for key-value labels, 'ff' for feature flag labels.</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addQueryParam}
* <p><strong>Header Parameters</strong></p>
Expand Down Expand Up @@ -3470,6 +3495,8 @@ public Mono<Response<Void>> checkLabelsWithResponseAsync(RequestOptions requestO
* to by the specified token.</td></tr>
* <tr><td>$Select</td><td>List&lt;String&gt;</td><td>No</td><td>Used to select what fields are present in the
* returned resource(s). In the form of "," separated string.</td></tr>
* <tr><td>resourceType</td><td>String</td><td>No</td><td>A filter used to indicate the resource type of the labels.
* Accepted values: 'kv' for key-value labels, 'ff' for feature flag labels.</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addQueryParam}
* <p><strong>Header Parameters</strong></p>
Expand Down
Loading