Skip to content
Draft
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
@@ -0,0 +1,7 @@
---
changeKind: dependencies
packages:
- "@typespec/http-client-java"
---

Update @azure-tools/typespec-client-generator-core to 0.65.1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@typespec/sse": "0.79.0",
"@typespec/streams": "0.79.0",
"@azure-tools/typespec-azure-core": "0.65.0",
"@azure-tools/typespec-client-generator-core": "0.65.0",
"@azure-tools/typespec-client-generator-core": "0.65.1",
"@azure-tools/typespec-azure-resource-manager": "0.65.0",
"@azure-tools/typespec-autorest": "0.65.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@typespec/sse": "0.79.0",
"@typespec/streams": "0.79.0",
"@azure-tools/typespec-azure-core": "0.65.0",
"@azure-tools/typespec-client-generator-core": "0.65.0",
"@azure-tools/typespec-client-generator-core": "0.65.1",
"@azure-tools/typespec-azure-resource-manager": "0.65.0",
"@azure-tools/typespec-autorest": "0.65.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@
/**
* A builder for creating a new instance of the ClientInitializationClient type.
*/
@ServiceClientBuilder(serviceClients = { ClientInitializationClient.class, ClientInitializationAsyncClient.class })
@ServiceClientBuilder(
serviceClients = {
ClientInitializationClient.class,
ClientInitializationAsyncClient.class,
SubClient.class,
SubAsyncClient.class })
public final class ClientInitializationClientBuilder implements HttpTrait<ClientInitializationClientBuilder>,
ConfigurationTrait<ClientInitializationClientBuilder>, EndpointTrait<ClientInitializationClientBuilder> {
@Generated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Initializes a new instance of the asynchronous SubClient type.
*/
@ServiceClient(builder = SubClientBuilder.class, isAsync = true)
@ServiceClient(builder = ClientInitializationClientBuilder.class, isAsync = true)
public final class SubAsyncClient {
@Generated
private final SubClientImpl serviceClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* Initializes a new instance of the synchronous SubClient type.
*/
@ServiceClient(builder = SubClientBuilder.class)
@ServiceClient(builder = ClientInitializationClientBuilder.class)
public final class SubClient {
@Generated
private final SubClientImpl serviceClient;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package tsptest.clientinitialization.generated;

// The Java test files under 'generated' package are generated for your reference.
// If you wish to modify these files, please copy them out of the 'generated' package, and modify there.
// See https://aka.ms/azsdk/dpg/java/tests for guide on adding a test.

import com.azure.core.http.policy.HttpLogDetailLevel;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.test.TestMode;
import com.azure.core.test.TestProxyTestBase;
import com.azure.core.util.Configuration;
import tsptest.clientinitialization.ClientInitializationClient;
import tsptest.clientinitialization.ClientInitializationClientBuilder;

class ClientInitializationClientTestBase extends TestProxyTestBase {
protected ClientInitializationClient clientInitializationClient;

@Override
protected void beforeTest() {
ClientInitializationClientBuilder clientInitializationClientbuilder = new ClientInitializationClientBuilder()
.endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000"))
.httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null)))
.httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC));
if (getTestMode() == TestMode.RECORD) {
clientInitializationClientbuilder.addPolicy(interceptorManager.getRecordPolicy());
}
clientInitializationClient = clientInitializationClientbuilder.buildClient();

}
}
10 changes: 5 additions & 5 deletions packages/http-client-java/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/http-client-java/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@azure-tools/typespec-autorest": ">=0.65.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.65.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.65.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.65.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.65.1 <1.0.0",
"@typespec/compiler": "^1.9.0",
"@typespec/events": ">=0.79.0 <1.0.0",
"@typespec/http": "^1.9.0",
Expand All @@ -73,7 +73,7 @@
"@azure-tools/typespec-azure-core": "0.65.0",
"@azure-tools/typespec-azure-resource-manager": "0.65.0",
"@azure-tools/typespec-azure-rulesets": "0.65.0",
"@azure-tools/typespec-client-generator-core": "0.65.0",
"@azure-tools/typespec-client-generator-core": "0.65.1",
"@microsoft/api-extractor": "^7.56.3",
"@microsoft/api-extractor-model": "^7.32.2",
"@types/js-yaml": "~4.0.9",
Expand Down