Skip to content

Commit

Permalink
fix: Fix cached contents list url
Browse files Browse the repository at this point in the history
FUTURE_COPYBARA_INTEGRATE_REVIEW=#427 from googleapis:release-please--branches--main--components--vertexai bf25091
PiperOrigin-RevId: 678767399
  • Loading branch information
happy-qiao authored and copybara-github committed Sep 25, 2024
1 parent 7114841 commit b66b09f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/resources/cached_contents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ class CachedContentsClient {
pageToken?: string
): Promise<ListCachedContentsResponse> {
const url = new URL(
this.apiClient.getBaseUrl() + '/' + this.apiClient.getBaseResourePath()
this.apiClient.getBaseUrl() +
'/' +
this.apiClient.getBaseResourePath() +
'/cachedContents'
);
if (pageSize) url.searchParams.append('pageSize', String(pageSize));
if (pageToken) url.searchParams.append('pageToken', pageToken);
Expand Down

0 comments on commit b66b09f

Please sign in to comment.