@azure/ai-language-text
Version:
An isomorphic client library for the text analysis features in the Azure Cognitive Language Service.
98 lines • 2.24 kB
JavaScript
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { AnalyzeAction as AnalyzeActionMapper, AnalyzeTextJobsInput as AnalyzeTextJobsInputMapper } from "../models/mappers";
export const contentType = {
parameterPath: ["options", "contentType"],
mapper: {
defaultValue: "application/json",
isConstant: true,
serializedName: "Content-Type",
type: {
name: "String"
}
}
};
export const body = {
parameterPath: "body",
mapper: AnalyzeActionMapper
};
export const accept = {
parameterPath: "accept",
mapper: {
defaultValue: "application/json",
isConstant: true,
serializedName: "Accept",
type: {
name: "String"
}
}
};
export const endpoint = {
parameterPath: "endpoint",
mapper: {
serializedName: "Endpoint",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const apiVersion = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2023-04-01",
isConstant: true,
serializedName: "api-version",
type: {
name: "String"
}
}
};
export const includeStatistics = {
parameterPath: ["options", "includeStatistics"],
mapper: {
serializedName: "showStats",
type: {
name: "Boolean"
}
}
};
export const body1 = {
parameterPath: "body",
mapper: AnalyzeTextJobsInputMapper
};
export const jobId = {
parameterPath: "jobId",
mapper: {
serializedName: "jobId",
required: true,
type: {
name: "Uuid"
}
}
};
export const top = {
parameterPath: ["options", "top"],
mapper: {
serializedName: "top",
type: {
name: "Number"
}
}
};
export const skip = {
parameterPath: ["options", "skip"],
mapper: {
serializedName: "skip",
type: {
name: "Number"
}
}
};
//# sourceMappingURL=parameters.js.map