Skip to content
Merged
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 @@ -1233,8 +1233,7 @@ export class CodeModelBuilder {
)
: undefined,
nextLinkReInjectedParameters: nextLinkReInjectedParameters,
// change this to "sdkMethod.pagingMetadata.nextLinkVerbType"
nextLinkVerb: "GET",
nextLinkVerb: sdkMethod.pagingMetadata.nextLinkVerb ?? "GET",
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@
"spector-stop": "tsp-spector server stop"
},
"dependencies": {
"@typespec/spector": "0.1.0-alpha.19",
"@typespec/spec-api": "0.1.0-alpha.9",
"@typespec/http-specs": "0.1.0-alpha.27",
"@typespec/json-schema": "1.5.0",
"@typespec/http-client-java": "file:../../typespec-http-client-java-0.5.0.tgz",
"@typespec/spector": "0.1.0-alpha.20",
"@typespec/spec-api": "0.1.0-alpha.10",
"@typespec/http-specs": "0.1.0-alpha.28",
"@typespec/json-schema": "1.6.0",
"@typespec/http-client-java": "file:../../typespec-http-client-java-0.5.1.tgz",
"@typespec/http-client-java-tests": "file:"
},
"overrides": {
"@typespec/compiler": "1.5.0",
"@typespec/http": "1.5.0",
"@typespec/rest": "0.75.0",
"@typespec/versioning": "0.75.0",
"@typespec/openapi": "1.5.0",
"@typespec/xml": "0.75.0",
"@typespec/events": "0.75.0",
"@typespec/sse": "0.75.0",
"@typespec/streams": "0.75.0",
"@azure-tools/typespec-azure-core": "0.61.0",
"@azure-tools/typespec-client-generator-core": "0.61.3",
"@azure-tools/typespec-azure-resource-manager": "0.61.1",
"@azure-tools/typespec-autorest": "0.61.1"
"@typespec/compiler": "1.6.0",
"@typespec/http": "1.6.0",
"@typespec/rest": "0.76.0",
"@typespec/versioning": "0.76.0",
"@typespec/openapi": "1.6.0",
"@typespec/xml": "0.76.0",
"@typespec/events": "0.76.0",
"@typespec/sse": "0.76.0",
"@typespec/streams": "0.76.0",
"@azure-tools/typespec-azure-core": "0.62.0",
"@azure-tools/typespec-client-generator-core": "0.62.0",
"@azure-tools/typespec-azure-resource-manager": "0.62.0",
"@azure-tools/typespec-autorest": "0.62.0"
},
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,38 @@ public void int32Seconds(Duration duration) {
int32SecondsWithResponse(duration, RequestContext.none());
}

/**
* The int32SecondsLargerUnit operation.
*
* @param duration The duration parameter.
* @param requestContext The context to configure the HTTP request before HTTP client sends it.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<Void> int32SecondsLargerUnitWithResponse(Duration duration, RequestContext requestContext) {
return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.int32SecondsLargerUnit",
requestContext,
updatedContext -> this.serviceClient.int32SecondsLargerUnitWithResponse(duration, updatedContext));
}

/**
* The int32SecondsLargerUnit operation.
*
* @param duration The duration parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public void int32SecondsLargerUnit(Duration duration) {
int32SecondsLargerUnitWithResponse(duration, RequestContext.none());
}

/**
* The floatSeconds operation.
*
Expand Down Expand Up @@ -190,6 +222,38 @@ public void floatSeconds(Duration duration) {
floatSecondsWithResponse(duration, RequestContext.none());
}

/**
* The floatSecondsLargerUnit operation.
*
* @param duration The duration parameter.
* @param requestContext The context to configure the HTTP request before HTTP client sends it.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<Void> floatSecondsLargerUnitWithResponse(Duration duration, RequestContext requestContext) {
return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.floatSecondsLargerUnit",
requestContext,
updatedContext -> this.serviceClient.floatSecondsLargerUnitWithResponse(duration, updatedContext));
}

/**
* The floatSecondsLargerUnit operation.
*
* @param duration The duration parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public void floatSecondsLargerUnit(Duration duration) {
floatSecondsLargerUnitWithResponse(duration, RequestContext.none());
}

/**
* The float64Seconds operation.
*
Expand Down Expand Up @@ -252,6 +316,38 @@ public void int32Milliseconds(int duration) {
int32MillisecondsWithResponse(duration, RequestContext.none());
}

/**
* The int32MillisecondsLargerUnit operation.
*
* @param duration The duration parameter.
* @param requestContext The context to configure the HTTP request before HTTP client sends it.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<Void> int32MillisecondsLargerUnitWithResponse(int duration, RequestContext requestContext) {
return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.int32MillisecondsLargerUnit",
requestContext,
updatedContext -> this.serviceClient.int32MillisecondsLargerUnitWithResponse(duration, updatedContext));
}

/**
* The int32MillisecondsLargerUnit operation.
*
* @param duration The duration parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public void int32MillisecondsLargerUnit(int duration) {
int32MillisecondsLargerUnitWithResponse(duration, RequestContext.none());
}

/**
* The floatMilliseconds operation.
*
Expand Down Expand Up @@ -283,6 +379,38 @@ public void floatMilliseconds(double duration) {
floatMillisecondsWithResponse(duration, RequestContext.none());
}

/**
* The floatMillisecondsLargerUnit operation.
*
* @param duration The duration parameter.
* @param requestContext The context to configure the HTTP request before HTTP client sends it.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<Void> floatMillisecondsLargerUnitWithResponse(double duration, RequestContext requestContext) {
return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.floatMillisecondsLargerUnit",
requestContext,
updatedContext -> this.serviceClient.floatMillisecondsLargerUnitWithResponse(duration, updatedContext));
}

/**
* The floatMillisecondsLargerUnit operation.
*
* @param duration The duration parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public void floatMillisecondsLargerUnit(double duration) {
floatMillisecondsLargerUnitWithResponse(duration, RequestContext.none());
}

/**
* The float64Milliseconds operation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@
import encode.duration.property.Float64SecondsDurationProperty;
import encode.duration.property.FloatMillisecondsDurationArrayProperty;
import encode.duration.property.FloatMillisecondsDurationProperty;
import encode.duration.property.FloatMillisecondsLargerUnitDurationProperty;
import encode.duration.property.FloatSecondsDurationArrayProperty;
import encode.duration.property.FloatSecondsDurationProperty;
import encode.duration.property.FloatSecondsLargerUnitDurationProperty;
import encode.duration.property.ISO8601DurationProperty;
import encode.duration.property.Int32MillisecondsDurationProperty;
import encode.duration.property.Int32MillisecondsLargerUnitDurationProperty;
import encode.duration.property.Int32SecondsDurationProperty;
import encode.duration.property.Int32SecondsLargerUnitDurationProperty;
import io.clientcore.core.annotations.Metadata;
import io.clientcore.core.annotations.MetadataProperties;
import io.clientcore.core.annotations.ReturnType;
Expand Down Expand Up @@ -373,4 +377,142 @@ public FloatSecondsDurationArrayProperty floatSecondsArray(FloatSecondsDurationA
public FloatMillisecondsDurationArrayProperty floatMillisecondsArray(FloatMillisecondsDurationArrayProperty body) {
return floatMillisecondsArrayWithResponse(body, RequestContext.none()).getValue();
}

/**
* The int32SecondsLargerUnit operation.
*
* @param body The body parameter.
* @param requestContext The context to configure the HTTP request before HTTP client sends it.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<Int32SecondsLargerUnitDurationProperty>
int32SecondsLargerUnitWithResponse(Int32SecondsLargerUnitDurationProperty body, RequestContext requestContext) {
return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.int32SecondsLargerUnit",
requestContext,
updatedContext -> this.serviceClient.int32SecondsLargerUnitWithResponse(body, updatedContext));
}

/**
* The int32SecondsLargerUnit operation.
*
* @param body The body parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public Int32SecondsLargerUnitDurationProperty int32SecondsLargerUnit(Int32SecondsLargerUnitDurationProperty body) {
return int32SecondsLargerUnitWithResponse(body, RequestContext.none()).getValue();
}

/**
* The floatSecondsLargerUnit operation.
*
* @param body The body parameter.
* @param requestContext The context to configure the HTTP request before HTTP client sends it.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<FloatSecondsLargerUnitDurationProperty>
floatSecondsLargerUnitWithResponse(FloatSecondsLargerUnitDurationProperty body, RequestContext requestContext) {
return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.floatSecondsLargerUnit",
requestContext,
updatedContext -> this.serviceClient.floatSecondsLargerUnitWithResponse(body, updatedContext));
}

/**
* The floatSecondsLargerUnit operation.
*
* @param body The body parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public FloatSecondsLargerUnitDurationProperty floatSecondsLargerUnit(FloatSecondsLargerUnitDurationProperty body) {
return floatSecondsLargerUnitWithResponse(body, RequestContext.none()).getValue();
}

/**
* The int32MillisecondsLargerUnit operation.
*
* @param body The body parameter.
* @param requestContext The context to configure the HTTP request before HTTP client sends it.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<Int32MillisecondsLargerUnitDurationProperty> int32MillisecondsLargerUnitWithResponse(
Int32MillisecondsLargerUnitDurationProperty body, RequestContext requestContext) {
return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.int32MillisecondsLargerUnit",
requestContext,
updatedContext -> this.serviceClient.int32MillisecondsLargerUnitWithResponse(body, updatedContext));
}

/**
* The int32MillisecondsLargerUnit operation.
*
* @param body The body parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public Int32MillisecondsLargerUnitDurationProperty
int32MillisecondsLargerUnit(Int32MillisecondsLargerUnitDurationProperty body) {
return int32MillisecondsLargerUnitWithResponse(body, RequestContext.none()).getValue();
}

/**
* The floatMillisecondsLargerUnit operation.
*
* @param body The body parameter.
* @param requestContext The context to configure the HTTP request before HTTP client sends it.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<FloatMillisecondsLargerUnitDurationProperty> floatMillisecondsLargerUnitWithResponse(
FloatMillisecondsLargerUnitDurationProperty body, RequestContext requestContext) {
return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.floatMillisecondsLargerUnit",
requestContext,
updatedContext -> this.serviceClient.floatMillisecondsLargerUnitWithResponse(body, updatedContext));
}

/**
* The floatMillisecondsLargerUnit operation.
*
* @param body The body parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the service returns an error.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@Metadata(properties = { MetadataProperties.GENERATED })
@ServiceMethod(returns = ReturnType.SINGLE)
public FloatMillisecondsLargerUnitDurationProperty
floatMillisecondsLargerUnit(FloatMillisecondsLargerUnitDurationProperty body) {
return floatMillisecondsLargerUnitWithResponse(body, RequestContext.none()).getValue();
}
}
Loading
Loading