Skip to content

Commit 7485500

Browse files
tsp, bump cadl-ranch (#2869)
1 parent fece60e commit 7485500

File tree

21 files changed

+188
-175
lines changed

21 files changed

+188
-175
lines changed

typespec-extension/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typespec-extension/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@azure-tools/typespec-azure-resource-manager": ">=0.44.0 <1.0.0",
5050
"@azure-tools/typespec-autorest": ">=0.44.0 <1.0.0",
5151
"@azure-tools/typespec-azure-rulesets": ">=0.44.0 <1.0.0",
52-
"@azure-tools/typespec-client-generator-core": ">=0.44.0 <1.0.0",
52+
"@azure-tools/typespec-client-generator-core": ">=0.44.1 <1.0.0",
5353
"@typespec/compiler": ">=0.58.0 <1.0.0",
5454
"@typespec/http": ">=0.58.0 <1.0.0",
5555
"@typespec/openapi": ">=0.58.0 <1.0.0",
@@ -67,7 +67,7 @@
6767
"@azure-tools/typespec-azure-resource-manager": "0.44.0",
6868
"@azure-tools/typespec-autorest": "0.44.0",
6969
"@azure-tools/typespec-azure-rulesets": "0.44.0",
70-
"@azure-tools/typespec-client-generator-core": "0.44.0",
70+
"@azure-tools/typespec-client-generator-core": "0.44.1",
7171
"@types/js-yaml": "~4.0.9",
7272
"@types/lodash": "~4.17.7",
7373
"@types/mocha": "~10.0.7",

typespec-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"testserver-run": "npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http --coverageFile ./cadl-ranch-coverage-java.json"
1010
},
1111
"dependencies": {
12-
"@azure-tools/cadl-ranch-specs": "0.34.6",
12+
"@azure-tools/cadl-ranch-specs": "0.34.7",
1313
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.18.1.tgz"
1414
},
1515
"devDependencies": {

typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageAsyncClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ public Mono<Response<BinaryData>> outputToInputOutputWithResponse(RequestOptions
109109
* Expected response body:
110110
* ```json
111111
* {
112+
* "result": {
112113
* "name": &lt;any string&gt;
113114
* }
115+
* }
114116
* ```.
115117
* <p><strong>Request Body Schema</strong></p>
116118
*
@@ -208,8 +210,10 @@ public Mono<OutputModel> outputToInputOutput() {
208210
* Expected response body:
209211
* ```json
210212
* {
213+
* "result": {
211214
* "name": &lt;any string&gt;
212215
* }
216+
* }
213217
* ```.
214218
*
215219
* @param body The body parameter.

typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ public Response<BinaryData> outputToInputOutputWithResponse(RequestOptions reque
107107
* Expected response body:
108108
* ```json
109109
* {
110+
* "result": {
110111
* "name": &lt;any string&gt;
111112
* }
113+
* }
112114
* ```.
113115
* <p><strong>Request Body Schema</strong></p>
114116
*
@@ -203,8 +205,10 @@ public OutputModel outputToInputOutput() {
203205
* Expected response body:
204206
* ```json
205207
* {
208+
* "result": {
206209
* "name": &lt;any string&gt;
207210
* }
211+
* }
208212
* ```.
209213
*
210214
* @param body The body parameter.

typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/implementation/ModelInOperationsImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,10 @@ public Response<BinaryData> outputToInputOutputWithResponse(RequestOptions reque
240240
* Expected response body:
241241
* ```json
242242
* {
243+
* "result": {
243244
* "name": &lt;any string&gt;
244245
* }
246+
* }
245247
* ```.
246248
* <p><strong>Request Body Schema</strong></p>
247249
*
@@ -290,8 +292,10 @@ public Mono<Response<BinaryData>> modelInReadOnlyPropertyWithResponseAsync(Binar
290292
* Expected response body:
291293
* ```json
292294
* {
295+
* "result": {
293296
* "name": &lt;any string&gt;
294297
* }
298+
* }
295299
* ```.
296300
* <p><strong>Request Body Schema</strong></p>
297301
*

typespec-tests/src/main/java/com/type/property/optional/OptionalClientBuilder.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
BytesClient.class,
4646
DatetimeOperationClient.class,
4747
DurationOperationClient.class,
48-
PlaindateClient.class,
49-
PlaintimeClient.class,
48+
PlainDateClient.class,
49+
PlainTimeClient.class,
5050
CollectionsByteClient.class,
5151
CollectionsModelClient.class,
5252
StringLiteralClient.class,
@@ -61,8 +61,8 @@
6161
BytesAsyncClient.class,
6262
DatetimeOperationAsyncClient.class,
6363
DurationOperationAsyncClient.class,
64-
PlaindateAsyncClient.class,
65-
PlaintimeAsyncClient.class,
64+
PlainDateAsyncClient.class,
65+
PlainTimeAsyncClient.class,
6666
CollectionsByteAsyncClient.class,
6767
CollectionsModelAsyncClient.class,
6868
StringLiteralAsyncClient.class,
@@ -319,23 +319,23 @@ public DurationOperationAsyncClient buildDurationOperationAsyncClient() {
319319
}
320320

321321
/**
322-
* Builds an instance of PlaindateAsyncClient class.
322+
* Builds an instance of PlainDateAsyncClient class.
323323
*
324-
* @return an instance of PlaindateAsyncClient.
324+
* @return an instance of PlainDateAsyncClient.
325325
*/
326326
@Generated
327-
public PlaindateAsyncClient buildPlaindateAsyncClient() {
328-
return new PlaindateAsyncClient(buildInnerClient().getPlaindates());
327+
public PlainDateAsyncClient buildPlainDateAsyncClient() {
328+
return new PlainDateAsyncClient(buildInnerClient().getPlainDates());
329329
}
330330

331331
/**
332-
* Builds an instance of PlaintimeAsyncClient class.
332+
* Builds an instance of PlainTimeAsyncClient class.
333333
*
334-
* @return an instance of PlaintimeAsyncClient.
334+
* @return an instance of PlainTimeAsyncClient.
335335
*/
336336
@Generated
337-
public PlaintimeAsyncClient buildPlaintimeAsyncClient() {
338-
return new PlaintimeAsyncClient(buildInnerClient().getPlaintimes());
337+
public PlainTimeAsyncClient buildPlainTimeAsyncClient() {
338+
return new PlainTimeAsyncClient(buildInnerClient().getPlainTimes());
339339
}
340340

341341
/**
@@ -479,23 +479,23 @@ public DurationOperationClient buildDurationOperationClient() {
479479
}
480480

481481
/**
482-
* Builds an instance of PlaindateClient class.
482+
* Builds an instance of PlainDateClient class.
483483
*
484-
* @return an instance of PlaindateClient.
484+
* @return an instance of PlainDateClient.
485485
*/
486486
@Generated
487-
public PlaindateClient buildPlaindateClient() {
488-
return new PlaindateClient(buildInnerClient().getPlaindates());
487+
public PlainDateClient buildPlainDateClient() {
488+
return new PlainDateClient(buildInnerClient().getPlainDates());
489489
}
490490

491491
/**
492-
* Builds an instance of PlaintimeClient class.
492+
* Builds an instance of PlainTimeClient class.
493493
*
494-
* @return an instance of PlaintimeClient.
494+
* @return an instance of PlainTimeClient.
495495
*/
496496
@Generated
497-
public PlaintimeClient buildPlaintimeClient() {
498-
return new PlaintimeClient(buildInnerClient().getPlaintimes());
497+
public PlainTimeClient buildPlainTimeClient() {
498+
return new PlainTimeClient(buildInnerClient().getPlainTimes());
499499
}
500500

501501
/**

typespec-tests/src/main/java/com/type/property/optional/PlaindateAsyncClient.java renamed to typespec-tests/src/main/java/com/type/property/optional/PlainDateAsyncClient.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@
1616
import com.azure.core.http.rest.Response;
1717
import com.azure.core.util.BinaryData;
1818
import com.azure.core.util.FluxUtil;
19-
import com.type.property.optional.implementation.PlaindatesImpl;
20-
import com.type.property.optional.models.PlaindateProperty;
19+
import com.type.property.optional.implementation.PlainDatesImpl;
20+
import com.type.property.optional.models.PlainDateProperty;
2121
import reactor.core.publisher.Mono;
2222

2323
/**
2424
* Initializes a new instance of the asynchronous OptionalClient type.
2525
*/
2626
@ServiceClient(builder = OptionalClientBuilder.class, isAsync = true)
27-
public final class PlaindateAsyncClient {
27+
public final class PlainDateAsyncClient {
2828
@Generated
29-
private final PlaindatesImpl serviceClient;
29+
private final PlainDatesImpl serviceClient;
3030

3131
/**
32-
* Initializes an instance of PlaindateAsyncClient class.
32+
* Initializes an instance of PlainDateAsyncClient class.
3333
*
3434
* @param serviceClient the service client implementation.
3535
*/
3636
@Generated
37-
PlaindateAsyncClient(PlaindatesImpl serviceClient) {
37+
PlainDateAsyncClient(PlainDatesImpl serviceClient) {
3838
this.serviceClient = serviceClient;
3939
}
4040

@@ -146,11 +146,11 @@ public Mono<Response<Void>> putDefaultWithResponse(BinaryData body, RequestOptio
146146
*/
147147
@Generated
148148
@ServiceMethod(returns = ReturnType.SINGLE)
149-
public Mono<PlaindateProperty> getAll() {
149+
public Mono<PlainDateProperty> getAll() {
150150
// Generated convenience method for getAllWithResponse
151151
RequestOptions requestOptions = new RequestOptions();
152152
return getAllWithResponse(requestOptions).flatMap(FluxUtil::toMono)
153-
.map(protocolMethodData -> protocolMethodData.toObject(PlaindateProperty.class));
153+
.map(protocolMethodData -> protocolMethodData.toObject(PlainDateProperty.class));
154154
}
155155

156156
/**
@@ -165,11 +165,11 @@ public Mono<PlaindateProperty> getAll() {
165165
*/
166166
@Generated
167167
@ServiceMethod(returns = ReturnType.SINGLE)
168-
public Mono<PlaindateProperty> getDefault() {
168+
public Mono<PlainDateProperty> getDefault() {
169169
// Generated convenience method for getDefaultWithResponse
170170
RequestOptions requestOptions = new RequestOptions();
171171
return getDefaultWithResponse(requestOptions).flatMap(FluxUtil::toMono)
172-
.map(protocolMethodData -> protocolMethodData.toObject(PlaindateProperty.class));
172+
.map(protocolMethodData -> protocolMethodData.toObject(PlainDateProperty.class));
173173
}
174174

175175
/**
@@ -186,7 +186,7 @@ public Mono<PlaindateProperty> getDefault() {
186186
*/
187187
@Generated
188188
@ServiceMethod(returns = ReturnType.SINGLE)
189-
public Mono<Void> putAll(PlaindateProperty body) {
189+
public Mono<Void> putAll(PlainDateProperty body) {
190190
// Generated convenience method for putAllWithResponse
191191
RequestOptions requestOptions = new RequestOptions();
192192
return putAllWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono);
@@ -206,7 +206,7 @@ public Mono<Void> putAll(PlaindateProperty body) {
206206
*/
207207
@Generated
208208
@ServiceMethod(returns = ReturnType.SINGLE)
209-
public Mono<Void> putDefault(PlaindateProperty body) {
209+
public Mono<Void> putDefault(PlainDateProperty body) {
210210
// Generated convenience method for putDefaultWithResponse
211211
RequestOptions requestOptions = new RequestOptions();
212212
return putDefaultWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono);

typespec-tests/src/main/java/com/type/property/optional/PlaindateClient.java renamed to typespec-tests/src/main/java/com/type/property/optional/PlainDateClient.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@
1515
import com.azure.core.http.rest.RequestOptions;
1616
import com.azure.core.http.rest.Response;
1717
import com.azure.core.util.BinaryData;
18-
import com.type.property.optional.implementation.PlaindatesImpl;
19-
import com.type.property.optional.models.PlaindateProperty;
18+
import com.type.property.optional.implementation.PlainDatesImpl;
19+
import com.type.property.optional.models.PlainDateProperty;
2020

2121
/**
2222
* Initializes a new instance of the synchronous OptionalClient type.
2323
*/
2424
@ServiceClient(builder = OptionalClientBuilder.class)
25-
public final class PlaindateClient {
25+
public final class PlainDateClient {
2626
@Generated
27-
private final PlaindatesImpl serviceClient;
27+
private final PlainDatesImpl serviceClient;
2828

2929
/**
30-
* Initializes an instance of PlaindateClient class.
30+
* Initializes an instance of PlainDateClient class.
3131
*
3232
* @param serviceClient the service client implementation.
3333
*/
3434
@Generated
35-
PlaindateClient(PlaindatesImpl serviceClient) {
35+
PlainDateClient(PlainDatesImpl serviceClient) {
3636
this.serviceClient = serviceClient;
3737
}
3838

@@ -142,10 +142,10 @@ public Response<Void> putDefaultWithResponse(BinaryData body, RequestOptions req
142142
*/
143143
@Generated
144144
@ServiceMethod(returns = ReturnType.SINGLE)
145-
public PlaindateProperty getAll() {
145+
public PlainDateProperty getAll() {
146146
// Generated convenience method for getAllWithResponse
147147
RequestOptions requestOptions = new RequestOptions();
148-
return getAllWithResponse(requestOptions).getValue().toObject(PlaindateProperty.class);
148+
return getAllWithResponse(requestOptions).getValue().toObject(PlainDateProperty.class);
149149
}
150150

151151
/**
@@ -160,10 +160,10 @@ public PlaindateProperty getAll() {
160160
*/
161161
@Generated
162162
@ServiceMethod(returns = ReturnType.SINGLE)
163-
public PlaindateProperty getDefault() {
163+
public PlainDateProperty getDefault() {
164164
// Generated convenience method for getDefaultWithResponse
165165
RequestOptions requestOptions = new RequestOptions();
166-
return getDefaultWithResponse(requestOptions).getValue().toObject(PlaindateProperty.class);
166+
return getDefaultWithResponse(requestOptions).getValue().toObject(PlainDateProperty.class);
167167
}
168168

169169
/**
@@ -179,7 +179,7 @@ public PlaindateProperty getDefault() {
179179
*/
180180
@Generated
181181
@ServiceMethod(returns = ReturnType.SINGLE)
182-
public void putAll(PlaindateProperty body) {
182+
public void putAll(PlainDateProperty body) {
183183
// Generated convenience method for putAllWithResponse
184184
RequestOptions requestOptions = new RequestOptions();
185185
putAllWithResponse(BinaryData.fromObject(body), requestOptions).getValue();
@@ -198,7 +198,7 @@ public void putAll(PlaindateProperty body) {
198198
*/
199199
@Generated
200200
@ServiceMethod(returns = ReturnType.SINGLE)
201-
public void putDefault(PlaindateProperty body) {
201+
public void putDefault(PlainDateProperty body) {
202202
// Generated convenience method for putDefaultWithResponse
203203
RequestOptions requestOptions = new RequestOptions();
204204
putDefaultWithResponse(BinaryData.fromObject(body), requestOptions).getValue();

typespec-tests/src/main/java/com/type/property/optional/PlaintimeAsyncClient.java renamed to typespec-tests/src/main/java/com/type/property/optional/PlainTimeAsyncClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@
1616
import com.azure.core.http.rest.Response;
1717
import com.azure.core.util.BinaryData;
1818
import com.azure.core.util.FluxUtil;
19-
import com.type.property.optional.implementation.PlaintimesImpl;
19+
import com.type.property.optional.implementation.PlainTimesImpl;
2020
import com.type.property.optional.models.PlainTimeProperty;
2121
import reactor.core.publisher.Mono;
2222

2323
/**
2424
* Initializes a new instance of the asynchronous OptionalClient type.
2525
*/
2626
@ServiceClient(builder = OptionalClientBuilder.class, isAsync = true)
27-
public final class PlaintimeAsyncClient {
27+
public final class PlainTimeAsyncClient {
2828
@Generated
29-
private final PlaintimesImpl serviceClient;
29+
private final PlainTimesImpl serviceClient;
3030

3131
/**
32-
* Initializes an instance of PlaintimeAsyncClient class.
32+
* Initializes an instance of PlainTimeAsyncClient class.
3333
*
3434
* @param serviceClient the service client implementation.
3535
*/
3636
@Generated
37-
PlaintimeAsyncClient(PlaintimesImpl serviceClient) {
37+
PlainTimeAsyncClient(PlainTimesImpl serviceClient) {
3838
this.serviceClient = serviceClient;
3939
}
4040

0 commit comments

Comments
 (0)