@azure/core-client 1.4.1-alpha.20220112.1 → 1.5.1-alpha.20220204.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,22 @@ import { PipelineRequest } from '@azure/core-rest-pipeline';
11
11
  import { PipelineResponse } from '@azure/core-rest-pipeline';
12
12
  import { TokenCredential } from '@azure/core-auth';
13
13
  import { TransferProgressEvent } from '@azure/core-rest-pipeline';
14
+ /**
15
+ * Used to configure additional policies added to the pipeline at construction.
16
+ */
17
+ export declare interface AdditionalPolicyConfig {
18
+ /**
19
+ * A policy to be added.
20
+ */
21
+ policy: PipelinePolicy;
22
+ /**
23
+ * Determines if this policy be applied before or after retry logic.
24
+ * Only use `perRetry` if you need to modify the request again
25
+ * each time the operation is retried due to retryable service
26
+ * issues.
27
+ */
28
+ position: "perCall" | "perRetry";
29
+ }
14
30
  /**
15
31
  * This function can be used as a callback for the `bearerTokenAuthenticationPolicy` of `@azure/core-rest-pipeline`, to support CAE challenges:
16
32
  * [Continuous Access Evaluation](https://docs.microsoft.com/azure/active-directory/conditional-access/concept-continuous-access-evaluation).
@@ -111,6 +127,10 @@ export declare interface CommonClientOptions extends PipelineOptions {
111
127
  * Set to true if the request is sent over HTTP instead of HTTPS
112
128
  */
113
129
  allowInsecureConnection?: boolean;
130
+ /**
131
+ * Additional policies to include in the HTTP pipeline.
132
+ */
133
+ additionalPolicies?: AdditionalPolicyConfig[];
114
134
  }
115
135
  /**
116
136
  * A mapper composed of other mappers.
@@ -12,6 +12,23 @@ import { PipelineResponse } from '@azure/core-rest-pipeline';
12
12
  import { TokenCredential } from '@azure/core-auth';
13
13
  import { TransferProgressEvent } from '@azure/core-rest-pipeline';
14
14
 
15
+ /**
16
+ * Used to configure additional policies added to the pipeline at construction.
17
+ */
18
+ export declare interface AdditionalPolicyConfig {
19
+ /**
20
+ * A policy to be added.
21
+ */
22
+ policy: PipelinePolicy;
23
+ /**
24
+ * Determines if this policy be applied before or after retry logic.
25
+ * Only use `perRetry` if you need to modify the request again
26
+ * each time the operation is retried due to retryable service
27
+ * issues.
28
+ */
29
+ position: "perCall" | "perRetry";
30
+ }
31
+
15
32
  /**
16
33
  * This function can be used as a callback for the `bearerTokenAuthenticationPolicy` of `@azure/core-rest-pipeline`, to support CAE challenges:
17
34
  * [Continuous Access Evaluation](https://docs.microsoft.com/azure/active-directory/conditional-access/concept-continuous-access-evaluation).
@@ -114,6 +131,10 @@ export declare interface CommonClientOptions extends PipelineOptions {
114
131
  * Set to true if the request is sent over HTTP instead of HTTPS
115
132
  */
116
133
  allowInsecureConnection?: boolean;
134
+ /**
135
+ * Additional policies to include in the HTTP pipeline.
136
+ */
137
+ additionalPolicies?: AdditionalPolicyConfig[];
117
138
  }
118
139
 
119
140
  /**