From 35b7306daa603c444786360a14b6e522061d88e3 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 8 Aug 2024 06:54:21 +0800 Subject: [PATCH] doc, java, how-to doc about client in sub package (DPG) (#1285) typespec-java supports this in 0.18.4 --- docs/howtos/DataPlane Generation - DPG/02client.mdx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/howtos/DataPlane Generation - DPG/02client.mdx b/docs/howtos/DataPlane Generation - DPG/02client.mdx index 86e16e5db8..95098102f9 100644 --- a/docs/howtos/DataPlane Generation - DPG/02client.mdx +++ b/docs/howtos/DataPlane Generation - DPG/02client.mdx @@ -583,7 +583,16 @@ NOT_SUPPORTED; ```java -NOT_SUPPORTED +import com.petstorenamespace.FoodClient; +import com.petstorenamespace.FoodClientBuilder; +import com.petstorenamespace.subnamespace.PetActionClient; +import com.petstorenamespace.subnamespace.PetActionClientBuilder; + +FoodClient foodClient = new FoodClientBuilder().buildClient(); +PetActionClient petActionClient = new PetActionClientBuilder().buildClient(); + +foodClient.feed(); +petActionClient.pet(); ```