此庫提供了供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;
}