diff --git a/api/default.service.ts b/api/default.service.ts index 25b4fdf..43df3da 100644 --- a/api/default.service.ts +++ b/api/default.service.ts @@ -1425,19 +1425,21 @@ export class DefaultService { /** * Get Cluster Operation Logs - * Get cluster operation logs. + * Get cluster operation logs in time order, with the latest log being first. * @param x_ms_as_user The name of user whom you want to make request as. You must be an HPC Pack administrator or HPC Pack Job administrator to make it work. * @param fromTime The start time(exclusive) in UTC * @param toTime The end time(exclusive) in UTC + * @param limit The max number of logs to return * @param nodeNames A comma-separated list of names for which the logs will be retrieved. * @param withDetail Whether to include the \"Entries\" property for each log. By deafult no \"Entries\" will be returned. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getClusterOperations(x_ms_as_user?: string, fromTime?: Date, toTime?: Date, nodeNames?: string, withDetail?: boolean, observe?: 'body', reportProgress?: boolean): Observable>; - public getClusterOperations(x_ms_as_user?: string, fromTime?: Date, toTime?: Date, nodeNames?: string, withDetail?: boolean, observe?: 'response', reportProgress?: boolean): Observable>>; - public getClusterOperations(x_ms_as_user?: string, fromTime?: Date, toTime?: Date, nodeNames?: string, withDetail?: boolean, observe?: 'events', reportProgress?: boolean): Observable>>; - public getClusterOperations(x_ms_as_user?: string, fromTime?: Date, toTime?: Date, nodeNames?: string, withDetail?: boolean, observe: any = 'body', reportProgress: boolean = false ): Observable { + public getClusterOperations(x_ms_as_user?: string, fromTime?: Date, toTime?: Date, limit?: number, nodeNames?: string, withDetail?: boolean, observe?: 'body', reportProgress?: boolean): Observable>; + public getClusterOperations(x_ms_as_user?: string, fromTime?: Date, toTime?: Date, limit?: number, nodeNames?: string, withDetail?: boolean, observe?: 'response', reportProgress?: boolean): Observable>>; + public getClusterOperations(x_ms_as_user?: string, fromTime?: Date, toTime?: Date, limit?: number, nodeNames?: string, withDetail?: boolean, observe?: 'events', reportProgress?: boolean): Observable>>; + public getClusterOperations(x_ms_as_user?: string, fromTime?: Date, toTime?: Date, limit?: number, nodeNames?: string, withDetail?: boolean, observe: any = 'body', reportProgress: boolean = false ): Observable { + @@ -1451,6 +1453,9 @@ export class DefaultService { if (toTime !== undefined && toTime !== null) { queryParameters = queryParameters.set('toTime', toTime.toISOString()); } + if (limit !== undefined && limit !== null) { + queryParameters = queryParameters.set('limit', limit); + } if (nodeNames !== undefined && nodeNames !== null) { queryParameters = queryParameters.set('nodeNames', nodeNames); }