File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,3 +66,5 @@ extends:
6666 safeName : azurecoreutil
6767 - name : azure-logger
6868 safeName : azurelogger
69+ - name : azure-core-http-compat
70+ safeName : azurecorehttpcompat
Original file line number Diff line number Diff line change @@ -4,35 +4,6 @@ This library provides classes and interfaces to be used by Azure client librarie
44
55## Usage
66
7- ### ExtendedServiceClientOptions
8-
9- With ` @azure/core-http ` library, the ` options ` parameter to the generated client will look like:
10-
11- ```
12- export interface SearchClientOptionalParams extends coreHttp.ServiceClientOptions {
13- /** Overrides client endpoint. */
14- endpoint?: string;
15- }
16- ```
17-
18- With the ` @azure/core-client ` & ` @azure/core-rest-pipeline ` libraries, the ` options ` parameter to the generated client will look like:
19-
20- ```
21- export interface SearchClientOptionalParams extends coreClient.ServiceClientOptions {
22- /** Overrides client endpoint. */
23- endpoint?: string;
24- }
25- ```
26-
27- With the Core HTTP Compatibility library, the ` options ` parameter to the generated client will look like:
28-
29- ```
30- export interface SearchClientOptionalParams extends coreHttpCompat.ExtendedServiceClientOptions {
31- /** Overrides client endpoint. */
32- endpoint?: string;
33- }
34- ```
35-
367### ExtendedCommonClientOptions
378
389With ` @azure/core-http ` library, the ` options ` parameter to the custom client will look like:
Original file line number Diff line number Diff line change @@ -12,21 +12,21 @@ import { ServiceClientOptions } from '@azure/core-client';
1212export const disbaleKeepAlivePolicyName = " DisableKeepAlivePolicy" ;
1313
1414// @public
15- export type ExtendedCommonClientOptions = CommonClientOptions & ExtendedOptions ;
16-
17- // @public
18- export interface ExtendedOptions {
15+ export interface ExtendedClientOptions {
1916 keepAliveOptions? : KeepAliveOptions ;
2017 redirectOptions? : RedirectOptions ;
2118}
2219
20+ // @public
21+ export type ExtendedCommonClientOptions = CommonClientOptions & ExtendedClientOptions ;
22+
2323// @public
2424export class ExtendedServiceClient extends ServiceClient {
2525 constructor (options : ExtendedServiceClientOptions );
2626}
2727
2828// @public
29- export type ExtendedServiceClientOptions = ServiceClientOptions & ExtendedOptions ;
29+ export type ExtendedServiceClientOptions = ServiceClientOptions & ExtendedClientOptions ;
3030
3131// @public
3232export interface KeepAliveOptions {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { CommonClientOptions } from "@azure/core-client";
1212/**
1313 * Options specific to Shim Clients.
1414 */
15- export interface ExtendedOptions {
15+ export interface ExtendedClientOptions {
1616 /**
1717 * Options to disable keep alive.
1818 */
@@ -26,12 +26,12 @@ export interface ExtendedOptions {
2626/**
2727 * Options that shim clients are expected to expose.
2828 */
29- export type ExtendedServiceClientOptions = ServiceClientOptions & ExtendedOptions ;
29+ export type ExtendedServiceClientOptions = ServiceClientOptions & ExtendedClientOptions ;
3030
3131/**
3232 * The common set of options that custom shim clients are expected to expose.
3333 */
34- export type ExtendedCommonClientOptions = CommonClientOptions & ExtendedOptions ;
34+ export type ExtendedCommonClientOptions = CommonClientOptions & ExtendedClientOptions ;
3535
3636/**
3737 * Client to provide compatability between core V1 & V2.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export {
1010 ExtendedServiceClient ,
1111 ExtendedServiceClientOptions ,
1212 ExtendedCommonClientOptions ,
13- ExtendedOptions ,
13+ ExtendedClientOptions ,
1414} from "./extendedClient" ;
1515export { KeepAliveOptions } from "./policies/keepAliveOptions" ;
1616export { RedirectOptions } from "./policies/redirectOptions" ;
You can’t perform that action at this time.
0 commit comments