Skip to content

Commit bf5747d

Browse files
authored
[@azure/core-http-compat] Rename ExtendedOptions to ExtendedClientOptions (#20433)
* Rename ExtendedOptions to ExtendedClientOptions * Update ci.yml
1 parent 694ac67 commit bf5747d

5 files changed

Lines changed: 11 additions & 38 deletions

File tree

sdk/core/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

sdk/core/core-http-compat/README.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff 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

389
With `@azure/core-http` library, the `options` parameter to the custom client will look like:

sdk/core/core-http-compat/review/core-http-compat.api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ import { ServiceClientOptions } from '@azure/core-client';
1212
export 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
2424
export 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
3232
export interface KeepAliveOptions {

sdk/core/core-http-compat/src/extendedClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

sdk/core/core-http-compat/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export {
1010
ExtendedServiceClient,
1111
ExtendedServiceClientOptions,
1212
ExtendedCommonClientOptions,
13-
ExtendedOptions,
13+
ExtendedClientOptions,
1414
} from "./extendedClient";
1515
export { KeepAliveOptions } from "./policies/keepAliveOptions";
1616
export { RedirectOptions } from "./policies/redirectOptions";

0 commit comments

Comments
 (0)