Skip to content
Merged
Show file tree
Hide file tree
Changes from 20 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
266 changes: 167 additions & 99 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions packages/typespec-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"type": "module",
"dependencies": {
"@azure-tools/typespec-ts": "workspace:^0.23.0",
"@typespec/openapi": ">=0.53.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.39.0 <1.0.0",
"@typespec/openapi3": ">=0.53.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.39.1 <1.0.0",
"@typespec/openapi": ">=0.54.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.40.0 <1.0.0",
"@typespec/openapi3": ">=0.54.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.40.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": "0.40.0-dev.17",
"@typespec/compiler": ">=0.53.1 <1.0.0",
"@typespec/http": ">=0.53.0 <1.0.0",
"@typespec/rest": ">=0.53.0 <1.0.0",
"@typespec/versioning": ">=0.53.0 <1.0.0",
"@typespec/compiler": ">=0.54.0 <1.0.0",
"@typespec/http": ">=0.54.0 <1.0.0",
"@typespec/rest": ">=0.54.0 <1.0.0",
"@typespec/versioning": ">=0.54.0 <1.0.0",
"prettier": "^3.1.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,8 @@
"nextLink": {
"type": "string",
"format": "uri",
"description": "The link to the next page of items"
"description": "The link to the next page of items",
"readOnly": true
}
},
"required": [
Expand All @@ -1166,7 +1167,8 @@
"nextLink": {
"type": "string",
"format": "uri",
"description": "The link to the next page of items"
"description": "The link to the next page of items",
"readOnly": true
}
},
"required": [
Expand All @@ -1188,7 +1190,8 @@
"nextLink": {
"type": "string",
"format": "uri",
"description": "The link to the next page of items"
"description": "The link to the next page of items",
"readOnly": true
}
},
"required": [
Expand All @@ -1210,7 +1213,8 @@
"nextLink": {
"type": "string",
"format": "uri",
"description": "The link to the next page of items"
"description": "The link to the next page of items",
"readOnly": true
}
},
"required": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,18 @@ export interface CreateOrUpdateMediaTypesParam {
}

// @public (undocumented)
export type CreateOrUpdateParameters = CreateOrUpdateMediaTypesParam & CreateOrUpdateBodyParam & RequestParameters;
export type CreateOrUpdateParameters = CreateOrUpdateQueryParam & CreateOrUpdateMediaTypesParam & CreateOrUpdateBodyParam & RequestParameters;

// @public (undocumented)
export interface CreateOrUpdateQueryParam {
// (undocumented)
queryParameters: CreateOrUpdateQueryParamProperties;
}

// @public (undocumented)
export interface CreateOrUpdateQueryParamProperties {
"api-version": string;
}

// @public (undocumented)
export interface DeleteDeployment202Headers {
Expand Down Expand Up @@ -141,7 +152,18 @@ export interface DeleteDeploymentLogicalResponse extends HttpResponse {
}

// @public (undocumented)
export type DeleteDeploymentParameters = RequestParameters;
export type DeleteDeploymentParameters = DeleteDeploymentQueryParam & RequestParameters;

// @public (undocumented)
export interface DeleteDeploymentQueryParam {
// (undocumented)
queryParameters: DeleteDeploymentQueryParamProperties;
}

// @public (undocumented)
export interface DeleteDeploymentQueryParamProperties {
"api-version": string;
}

// @public
export interface DeleteLogicalResponse extends HttpResponse {
Expand Down Expand Up @@ -182,7 +204,18 @@ export interface DeleteOperationDefaultResponse extends HttpResponse {
}

// @public (undocumented)
export type DeleteParameters = RequestParameters;
export type DeleteParameters = DeleteQueryParam & RequestParameters;

// @public (undocumented)
export interface DeleteQueryParam {
// (undocumented)
queryParameters: DeleteQueryParamProperties;
}

// @public (undocumented)
export interface DeleteQueryParamProperties {
"api-version": string;
}

// @public
export interface Deployment {
Expand Down Expand Up @@ -264,7 +297,18 @@ export interface DeployProjectLogicalResponse extends HttpResponse {
}

// @public (undocumented)
export type DeployProjectParameters = DeployProjectBodyParam & RequestParameters;
export type DeployProjectParameters = DeployProjectQueryParam & DeployProjectBodyParam & RequestParameters;

// @public (undocumented)
export interface DeployProjectQueryParam {
// (undocumented)
queryParameters: DeployProjectQueryParamProperties;
}

// @public (undocumented)
export interface DeployProjectQueryParamProperties {
"api-version": string;
}

// @public (undocumented)
export interface Export {
Expand Down Expand Up @@ -316,6 +360,7 @@ export interface ExportQueryParam {

// @public (undocumented)
export interface ExportQueryParamProperties {
"api-version": string;
projectFileVersion: string;
}

Expand Down Expand Up @@ -376,7 +421,18 @@ export interface GetDeploymentDefaultResponse extends HttpResponse {
}

// @public (undocumented)
export type GetDeploymentParameters = RequestParameters;
export type GetDeploymentParameters = GetDeploymentQueryParam & RequestParameters;

// @public (undocumented)
export interface GetDeploymentQueryParam {
// (undocumented)
queryParameters: GetDeploymentQueryParamProperties;
}

// @public (undocumented)
export interface GetDeploymentQueryParamProperties {
"api-version": string;
}

// @public (undocumented)
export interface GetDeploymentStatus {
Expand Down Expand Up @@ -407,7 +463,18 @@ export interface GetDeploymentStatusDefaultResponse extends HttpResponse {
}

// @public (undocumented)
export type GetDeploymentStatusParameters = RequestParameters;
export type GetDeploymentStatusParameters = GetDeploymentStatusQueryParam & RequestParameters;

// @public (undocumented)
export interface GetDeploymentStatusQueryParam {
// (undocumented)
queryParameters: GetDeploymentStatusQueryParamProperties;
}

// @public (undocumented)
export interface GetDeploymentStatusQueryParamProperties {
"api-version": string;
}

// @public
export function getLongRunningPoller<TResult extends CreateOrUpdateLogicalResponse | CreateOrUpdateDefaultResponse>(client: Client, initialResponse: CreateOrUpdate200Response | CreateOrUpdate201Response | CreateOrUpdateDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
Expand Down Expand Up @@ -440,7 +507,18 @@ export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise
}>;

// @public (undocumented)
export type GetParameters = RequestParameters;
export type GetParameters = GetQueryParam & RequestParameters;

// @public (undocumented)
export interface GetQueryParam {
// (undocumented)
queryParameters: GetQueryParamProperties;
}

// @public (undocumented)
export interface GetQueryParamProperties {
"api-version": string;
}

// @public (undocumented)
export interface GetSupportedLanguages {
Expand Down Expand Up @@ -476,11 +554,12 @@ export type GetSupportedLanguagesParameters = GetSupportedLanguagesQueryParam &
// @public (undocumented)
export interface GetSupportedLanguagesQueryParam {
// (undocumented)
queryParameters?: GetSupportedLanguagesQueryParamProperties;
queryParameters: GetSupportedLanguagesQueryParamProperties;
}

// @public (undocumented)
export interface GetSupportedLanguagesQueryParamProperties {
"api-version": string;
maxpagesize?: number;
skip?: number;
top?: number;
Expand Down Expand Up @@ -515,7 +594,18 @@ export interface GetSwapDeploymentsStatusDefaultResponse extends HttpResponse {
}

// @public (undocumented)
export type GetSwapDeploymentsStatusParameters = RequestParameters;
export type GetSwapDeploymentsStatusParameters = GetSwapDeploymentsStatusQueryParam & RequestParameters;

// @public (undocumented)
export interface GetSwapDeploymentsStatusQueryParam {
// (undocumented)
queryParameters: GetSwapDeploymentsStatusQueryParamProperties;
}

// @public (undocumented)
export interface GetSwapDeploymentsStatusQueryParamProperties {
"api-version": string;
}

// @public (undocumented)
export interface Importx {
Expand Down Expand Up @@ -557,7 +647,18 @@ export interface ImportxLogicalResponse extends HttpResponse {
}

// @public (undocumented)
export type ImportxParameters = RequestParameters;
export type ImportxParameters = ImportxQueryParam & RequestParameters;

// @public (undocumented)
export interface ImportxQueryParam {
// (undocumented)
queryParameters: ImportxQueryParamProperties;
}

// @public (undocumented)
export interface ImportxQueryParamProperties {
"api-version": string;
}

// @public (undocumented)
export function isUnexpected(response: CreateOrUpdate200Response | CreateOrUpdate201Response | CreateOrUpdateLogicalResponse | CreateOrUpdateDefaultResponse): response is CreateOrUpdateDefaultResponse;
Expand Down Expand Up @@ -642,7 +743,18 @@ export interface ListDeploymentsDefaultResponse extends HttpResponse {
}

// @public (undocumented)
export type ListDeploymentsParameters = RequestParameters;
export type ListDeploymentsParameters = ListDeploymentsQueryParam & RequestParameters;

// @public (undocumented)
export interface ListDeploymentsQueryParam {
// (undocumented)
queryParameters: ListDeploymentsQueryParamProperties;
}

// @public (undocumented)
export interface ListDeploymentsQueryParamProperties {
"api-version": string;
}

// @public (undocumented)
export interface ListProjects {
Expand Down Expand Up @@ -673,7 +785,18 @@ export interface ListProjectsDefaultResponse extends HttpResponse {
}

// @public (undocumented)
export type ListProjectsParameters = RequestParameters;
export type ListProjectsParameters = ListProjectsQueryParam & RequestParameters;

// @public (undocumented)
export interface ListProjectsQueryParam {
// (undocumented)
queryParameters: ListProjectsQueryParamProperties;
}

// @public (undocumented)
export interface ListProjectsQueryParamProperties {
"api-version": string;
}

// @public (undocumented)
export interface ListTrainingConfigVersions {
Expand Down Expand Up @@ -709,11 +832,12 @@ export type ListTrainingConfigVersionsParameters = ListTrainingConfigVersionsQue
// @public (undocumented)
export interface ListTrainingConfigVersionsQueryParam {
// (undocumented)
queryParameters?: ListTrainingConfigVersionsQueryParamProperties;
queryParameters: ListTrainingConfigVersionsQueryParamProperties;
}

// @public (undocumented)
export interface ListTrainingConfigVersionsQueryParamProperties {
"api-version": string;
maxpagesize?: number;
skip?: number;
top?: number;
Expand Down Expand Up @@ -874,7 +998,18 @@ export interface SwapDeploymentsOptions {
}

// @public (undocumented)
export type SwapDeploymentsParameters = SwapDeploymentsBodyParam & RequestParameters;
export type SwapDeploymentsParameters = SwapDeploymentsQueryParam & SwapDeploymentsBodyParam & RequestParameters;

// @public (undocumented)
export interface SwapDeploymentsQueryParam {
// (undocumented)
queryParameters: SwapDeploymentsQueryParamProperties;
}

// @public (undocumented)
export interface SwapDeploymentsQueryParamProperties {
"api-version": string;
}

// @public (undocumented)
export interface Train {
Expand Down Expand Up @@ -932,7 +1067,18 @@ export interface TrainLogicalResponse extends HttpResponse {
}

// @public (undocumented)
export type TrainParameters = TrainBodyParam & RequestParameters;
export type TrainParameters = TrainQueryParam & TrainBodyParam & RequestParameters;

// @public (undocumented)
export interface TrainQueryParam {
// (undocumented)
queryParameters: TrainQueryParamProperties;
}

// @public (undocumented)
export interface TrainQueryParamProperties {
"api-version": string;
}

// (No @packageDocumentation comment for this package)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async function createOrUpdateSample() {
description: "{Your description}",
language: "{Your language}",
},
queryParameters: { "api-version": "{Your api-version}" },
contentType: "application/merge-patch+json",
});
const poller = await getLongRunningPoller(client, initialResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function deleteDeploymentSample() {
projectName,
deploymentName,
)
.delete();
.delete({ queryParameters: { "api-version": "{Your api-version}" } });
const poller = await getLongRunningPoller(client, initialResponse);
const result = await poller.pollUntilDone();
console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function deleteSample() {
const projectName = "{Your projectName}";
const initialResponse = await client
.path("/authoring/analyze-text/projects/{projectName}", projectName)
.delete();
.delete({ queryParameters: { "api-version": "{Your api-version}" } });
const poller = await getLongRunningPoller(client, initialResponse);
const result = await poller.pollUntilDone();
console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ async function deployProjectSample() {
projectName,
deploymentName,
)
.put({ body: {} });
.put({
body: {},
queryParameters: { "api-version": "{Your api-version}" },
});
const poller = await getLongRunningPoller(client, initialResponse);
const result = await poller.pollUntilDone();
console.log(result);
Expand Down
Loading