你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
此库提供了供Azure客户端库使用的类和接口,这些客户端库希望从使用 @azure/core-http 转变为 @azure/core-client 和 @azure/core-rest-pipeline ,而不会在其公共API表面引起突破性变化。
用法
ExtendedCommonClientOptions
使用 @azure/core-http
library 时, options
自定义客户端的参数将如下所示:
export interface SearchClientOptions extends PipelineOptions {
apiVersion?: string;
}
@azure/core-client
使用&@azure/core-rest-pipeline
库,options
自定义客户端的参数将如下所示:
export interface SearchClientOptions extends CommonClientOptions {
apiVersion?: string;
}
使用 Core HTTP 兼容性库, options
自定义客户端的参数将如下所示:
export interface SearchClientOptions extends ExtendedCommonClientOptions {
apiVersion?: string;
}