@@ -16,7 +16,6 @@ export class Nodes extends APIResource {
1616 * const listResponseNode = await client.nodes.create({
1717 * desired_count: 1,
1818 * max_price_per_node_hour: 1000,
19- * zone: 'hayesvalley',
2019 * });
2120 * ```
2221 */
@@ -119,9 +118,9 @@ export interface CreateNodesRequest {
119118 max_price_per_node_hour : number ;
120119
121120 /**
122- * Zone to create the nodes in
121+ * Allow auto reserved nodes to be created in any zone that meets the requirements
123122 */
124- zone : string ;
123+ any_zone ?: boolean ;
125124
126125 /**
127126 * User script to be executed during the VM's boot process Data should be base64
@@ -154,6 +153,12 @@ export interface CreateNodesRequest {
154153 * provided, defaults to now
155154 */
156155 start_at ?: number ;
156+
157+ /**
158+ * Zone to create the nodes in. Required for auto reserved nodes if any_zone is
159+ * false.
160+ */
161+ zone ?: string ;
157162}
158163
159164export interface ErrorContent {
@@ -293,6 +298,8 @@ export namespace ListResponseNode {
293298
294299 updated_at : number ;
295300
301+ zone : string ;
302+
296303 image_id ?: string | null ;
297304 }
298305
@@ -318,6 +325,8 @@ export namespace ListResponseNode {
318325
319326 updated_at : number ;
320327
328+ zone : string ;
329+
321330 image_id ?: string | null ;
322331 }
323332 }
@@ -397,6 +406,8 @@ export namespace Node {
397406
398407 updated_at : number ;
399408
409+ zone : string ;
410+
400411 image_id ?: string | null ;
401412 }
402413
@@ -422,6 +433,8 @@ export namespace Node {
422433
423434 updated_at : number ;
424435
436+ zone : string ;
437+
425438 image_id ?: string | null ;
426439 }
427440 }
@@ -451,9 +464,9 @@ export interface NodeCreateParams {
451464 max_price_per_node_hour : number ;
452465
453466 /**
454- * Zone to create the nodes in
467+ * Allow auto reserved nodes to be created in any zone that meets the requirements
455468 */
456- zone : string ;
469+ any_zone ?: boolean ;
457470
458471 /**
459472 * User script to be executed during the VM's boot process Data should be base64
@@ -486,6 +499,12 @@ export interface NodeCreateParams {
486499 * provided, defaults to now
487500 */
488501 start_at ?: number ;
502+
503+ /**
504+ * Zone to create the nodes in. Required for auto reserved nodes if any_zone is
505+ * false.
506+ */
507+ zone ?: string ;
489508}
490509
491510export interface NodeListParams {
0 commit comments