次の方法で共有


JavaScript 用の Azure Core HTTP 互換性ライブラリ

このライブラリは、パブリック API サーフェスに破壊的な変更を加えることなく、 @azure/core-http の使用から @azure/core-client@azure/core-rest-pipeline に移行したい Azure クライアント ライブラリで使用されるクラスとインターフェイスを提供します。

使用方法

拡張された共通クライアントオプション

@azure/core-httpライブラリを使用すると、カスタムクライアントへの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;
}