Skip to content

Commit

Permalink
Update lib/serviceClient.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>
  • Loading branch information
sadasant and ramya-rao-a authored Jul 29, 2021
1 parent 5bfb351 commit 1d4884b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/serviceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,12 @@ export interface ServiceClientOptions {
*/
export class ServiceClient {
/**
* If specified:
* - This `baseUri` becomes the base URI that requests will be made against for this ServiceClient.
* - If a `TokenCredential` was passed through the constructor, this `baseUri` defines the `getToken` scope to be `${options.baseUri}/.default`.
* The base URI against which requests will be made when using this ServiceClient instance.
*
* If it is not specified:
* - All OperationSpecs must contain a baseUrl property.
* - If a `TokenCredential` was passed through the constructor, the `getToken` scope is set to be "https://management.azure.com/.default".
* This can be set either by setting the `baseUri` in the `options` parameter to the ServiceClient constructor or directly after constructing the ServiceClient.
* If set via the ServiceClient constructor when using the overload that takes the `TokenCredential`, this base URI sets the scope used to get the AAD token to `${baseUri}/.default` instead of the default "https://management.azure.com/.default"
*
* If it is not specified, all OperationSpecs must contain a baseUrl property.
*/
protected baseUri?: string;

Expand Down

0 comments on commit 1d4884b

Please sign in to comment.