Skip to content

Commit

Permalink
Update name to EndpointsFactory
Browse files Browse the repository at this point in the history
Change-Id: I4c3ead6096d90a49fa7f2479de40de194912733e
  • Loading branch information
EmilyZhang777 committed May 4, 2023
1 parent fb44cdc commit 82ae531
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/provideEndpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const defaultApiVersion = 20220511;
*
* @internal
*/
export class EndpointsAdapter {
export class EndpointsFactory {
private readonly environment: Environment;
private readonly cloudRegion: CloudRegion;

Expand Down Expand Up @@ -51,7 +51,7 @@ export class EndpointsAdapter {
* @public
*/
export const SandboxEndpoints: Required<Endpoints> =
new EndpointsAdapter({ environment: Environment.SANDBOX, cloudRegion: CloudRegion.US })
new EndpointsFactory({ environment: Environment.SANDBOX, cloudRegion: CloudRegion.US })
.getEndpoints();

/**
Expand All @@ -65,5 +65,5 @@ export const SandboxEndpoints: Required<Endpoints> =
* @public
*/
export function provideEndpoints(config?: ServingConfig): Required<Endpoints> {
return new EndpointsAdapter(config).getEndpoints();
return new EndpointsFactory(config).getEndpoints();
}

0 comments on commit 82ae531

Please sign in to comment.