diff --git a/output/schema/schema.json b/output/schema/schema.json index ff0a06ee9c..356866301a 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -119526,8 +119526,21 @@ "kind": "properties", "properties": [ { - "description": "Returns snapshots with timestamps after this time. Defaults to unset,\nwhich means results are not limited to specific timestamps.", - "name": "start", + "description": "Refer to the description for the `desc` query parameter.", + "name": "desc", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "internal" + } + } + }, + { + "description": "Refer to the description for the `end` query parameter.", + "name": "end", "required": false, "type": { "kind": "instance_of", @@ -119538,8 +119551,31 @@ } }, { - "description": "Returns snapshots with timestamps earlier than this time. Defaults to\nunset, which means results are not limited to specific timestamps.", - "name": "end", + "name": "page", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Page", + "namespace": "ml._types" + } + } + }, + { + "description": "Refer to the description for the `sort` query parameter.", + "name": "sort", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Field", + "namespace": "_types" + } + } + }, + { + "description": "Refer to the description for the `start` query parameter.", + "name": "start", "required": false, "type": { "kind": "instance_of", @@ -119577,7 +119613,7 @@ } }, { - "description": "A numerical character string that uniquely identifies the model snapshot.", + "description": "A numerical character string that uniquely identifies the model snapshot. You can get information for multiple\nsnapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using `_all`,\nby specifying `*` as the snapshot ID, or by omitting the snapshot ID.", "name": "snapshot_id", "required": false, "type": { @@ -119594,6 +119630,7 @@ "description": "If true, the results are sorted in descending order.", "name": "desc", "required": false, + "serverDefault": false, "type": { "kind": "instance_of", "type": { @@ -119618,6 +119655,7 @@ "description": "Skips the specified number of snapshots.", "name": "from", "required": false, + "serverDefault": 0, "type": { "kind": "instance_of", "type": { @@ -119630,6 +119668,7 @@ "description": "Specifies the maximum number of snapshots to obtain.", "name": "size", "required": false, + "serverDefault": 100, "type": { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 7902337cf2..62a2b2cc75 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -12136,8 +12136,11 @@ export interface MlGetModelSnapshotsRequest extends RequestBase { sort?: Field start?: Time body?: { - start?: Time + desc?: boolean end?: Time + page?: MlPage + sort?: Field + start?: Time } } diff --git a/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts b/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts index 675dd7d677..43261ff57e 100644 --- a/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts +++ b/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts @@ -17,6 +17,7 @@ * under the License. */ +import { Page } from '@ml/_types/Page' import { RequestBase } from '@_types/Base' import { Field, Id } from '@_types/common' import { integer } from '@_types/Numeric' @@ -36,13 +37,16 @@ export interface Request extends RequestBase { */ job_id: Id /** - * A numerical character string that uniquely identifies the model snapshot. + * A numerical character string that uniquely identifies the model snapshot. You can get information for multiple + * snapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using `_all`, + * by specifying `*` as the snapshot ID, or by omitting the snapshot ID. */ snapshot_id?: Id } query_parameters: { /** * If true, the results are sorted in descending order. + * @server_default false */ desc?: boolean /** @@ -51,10 +55,12 @@ export interface Request extends RequestBase { end?: Time /** * Skips the specified number of snapshots. + * @server_default 0 */ from?: integer /** * Specifies the maximum number of snapshots to obtain. + * @server_default 100 */ size?: integer /** @@ -69,14 +75,22 @@ export interface Request extends RequestBase { } body: { /** - * Returns snapshots with timestamps after this time. Defaults to unset, - * which means results are not limited to specific timestamps. + * Refer to the description for the `desc` query parameter. + * @server_default false */ - start?: Time + desc?: boolean /** - * Returns snapshots with timestamps earlier than this time. Defaults to - * unset, which means results are not limited to specific timestamps. + * Refer to the description for the `end` query parameter. */ end?: Time + page?: Page + /** + * Refer to the description for the `sort` query parameter. + */ + sort?: Field + /** + * Refer to the description for the `start` query parameter. + */ + start?: Time } }