Skip to content

Commit f2fe7a4

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
feat: Expose public update() and update_async() methods on Sessions and AsyncSessions client modules.
PiperOrigin-RevId: 958351313
1 parent 1980fce commit f2fe7a4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/sessions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ export class Sessions extends BaseModule {
234234

235235
async updateInternal(
236236
params: types.UpdateAgentEngineSessionRequestParameters,
237-
): Promise<types.AgentEngineSessionOperation> {
238-
let response: Promise<types.AgentEngineSessionOperation>;
237+
): Promise<types.Session> {
238+
let response: Promise<types.Session>;
239239

240240
let path: string = '';
241241
let queryParams: Record<string, string> = {};
@@ -262,10 +262,10 @@ export class Sessions extends BaseModule {
262262
})
263263
.then((httpResponse) => {
264264
return httpResponse.json();
265-
}) as Promise<types.AgentEngineSessionOperation>;
265+
}) as Promise<types.Session>;
266266

267267
return response.then((resp) => {
268-
return resp as types.AgentEngineSessionOperation;
268+
return resp as types.Session;
269269
});
270270
} else {
271271
throw new Error(

0 commit comments

Comments
 (0)