latitudesh-typescript-sdk 0.8.30 → 0.8.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/bin/mcp-server.js +2825 -1554
- package/bin/mcp-server.js.map +51 -27
- package/dist/commonjs/funcs/filesystemStorageAttachFilesystem.d.ts +17 -0
- package/dist/commonjs/funcs/filesystemStorageAttachFilesystem.d.ts.map +1 -0
- package/dist/commonjs/funcs/filesystemStorageAttachFilesystem.js +122 -0
- package/dist/commonjs/funcs/filesystemStorageAttachFilesystem.js.map +1 -0
- package/dist/commonjs/funcs/filesystemStorageDetachFilesystem.d.ts +17 -0
- package/dist/commonjs/funcs/filesystemStorageDetachFilesystem.d.ts.map +1 -0
- package/dist/commonjs/funcs/filesystemStorageDetachFilesystem.js +122 -0
- package/dist/commonjs/funcs/filesystemStorageDetachFilesystem.js.map +1 -0
- package/dist/commonjs/funcs/filesystemStorageGetFilesystemAttachment.d.ts +17 -0
- package/dist/commonjs/funcs/filesystemStorageGetFilesystemAttachment.d.ts.map +1 -0
- package/dist/commonjs/funcs/filesystemStorageGetFilesystemAttachment.js +126 -0
- package/dist/commonjs/funcs/filesystemStorageGetFilesystemAttachment.js.map +1 -0
- package/dist/commonjs/funcs/lksCreateLKSNodePool.d.ts +5 -2
- package/dist/commonjs/funcs/lksCreateLKSNodePool.d.ts.map +1 -1
- package/dist/commonjs/funcs/lksCreateLKSNodePool.js +5 -2
- package/dist/commonjs/funcs/lksCreateLKSNodePool.js.map +1 -1
- package/dist/commonjs/funcs/lksListLKSAllocatableServers.d.ts +21 -0
- package/dist/commonjs/funcs/lksListLKSAllocatableServers.d.ts.map +1 -0
- package/dist/commonjs/funcs/lksListLKSAllocatableServers.js +132 -0
- package/dist/commonjs/funcs/lksListLKSAllocatableServers.js.map +1 -0
- package/dist/commonjs/funcs/lksListLKSNodes.d.ts +19 -0
- package/dist/commonjs/funcs/lksListLKSNodes.d.ts.map +1 -0
- package/dist/commonjs/funcs/lksListLKSNodes.js +139 -0
- package/dist/commonjs/funcs/lksListLKSNodes.js.map +1 -0
- package/dist/commonjs/funcs/lksUpdateLKSNodePool.d.ts +4 -2
- package/dist/commonjs/funcs/lksUpdateLKSNodePool.d.ts.map +1 -1
- package/dist/commonjs/funcs/lksUpdateLKSNodePool.js +4 -2
- package/dist/commonjs/funcs/lksUpdateLKSNodePool.js.map +1 -1
- package/dist/commonjs/funcs/publicNetworksUpdatePublicNetworkIp.d.ts +21 -0
- package/dist/commonjs/funcs/publicNetworksUpdatePublicNetworkIp.d.ts.map +1 -0
- package/dist/commonjs/funcs/publicNetworksUpdatePublicNetworkIp.js +134 -0
- package/dist/commonjs/funcs/publicNetworksUpdatePublicNetworkIp.js.map +1 -0
- package/dist/commonjs/funcs/serversLock.d.ts +2 -1
- package/dist/commonjs/funcs/serversLock.d.ts.map +1 -1
- package/dist/commonjs/funcs/serversLock.js +7 -1
- package/dist/commonjs/funcs/serversLock.js.map +1 -1
- package/dist/commonjs/funcs/serversReinstall.js +1 -1
- package/dist/commonjs/funcs/serversReinstall.js.map +1 -1
- package/dist/commonjs/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts +10 -1
- package/dist/commonjs/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts.map +1 -1
- package/dist/commonjs/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.js +10 -1
- package/dist/commonjs/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.js.map +1 -1
- package/dist/commonjs/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts +5 -1
- package/dist/commonjs/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts.map +1 -1
- package/dist/commonjs/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.js +6 -2
- package/dist/commonjs/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +13 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/filesystemStorageAttachFilesystem.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/filesystemStorageAttachFilesystem.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/filesystemStorageAttachFilesystem.js +63 -0
- package/dist/commonjs/mcp-server/tools/filesystemStorageAttachFilesystem.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/filesystemStorageDetachFilesystem.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/filesystemStorageDetachFilesystem.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/filesystemStorageDetachFilesystem.js +63 -0
- package/dist/commonjs/mcp-server/tools/filesystemStorageDetachFilesystem.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/filesystemStorageGetFilesystemAttachment.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/filesystemStorageGetFilesystemAttachment.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/filesystemStorageGetFilesystemAttachment.js +64 -0
- package/dist/commonjs/mcp-server/tools/filesystemStorageGetFilesystemAttachment.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/lksCreateLKSNodePool.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/lksCreateLKSNodePool.js +5 -2
- package/dist/commonjs/mcp-server/tools/lksCreateLKSNodePool.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/lksListLKSAllocatableServers.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/lksListLKSAllocatableServers.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/lksListLKSAllocatableServers.js +67 -0
- package/dist/commonjs/mcp-server/tools/lksListLKSAllocatableServers.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/lksListLKSNodes.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/lksListLKSNodes.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/lksListLKSNodes.js +65 -0
- package/dist/commonjs/mcp-server/tools/lksListLKSNodes.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/lksUpdateLKSNodePool.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/lksUpdateLKSNodePool.js +4 -2
- package/dist/commonjs/mcp-server/tools/lksUpdateLKSNodePool.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/publicNetworksUpdatePublicNetworkIp.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/publicNetworksUpdatePublicNetworkIp.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/publicNetworksUpdatePublicNetworkIp.js +66 -0
- package/dist/commonjs/mcp-server/tools/publicNetworksUpdatePublicNetworkIp.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.js +10 -1
- package/dist/commonjs/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.js +5 -1
- package/dist/commonjs/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.js.map +1 -1
- package/dist/commonjs/models/createlksnodepool.d.ts +31 -6
- package/dist/commonjs/models/createlksnodepool.d.ts.map +1 -1
- package/dist/commonjs/models/createlksnodepool.js +22 -5
- package/dist/commonjs/models/createlksnodepool.js.map +1 -1
- package/dist/commonjs/models/filesystemattachmentdata.d.ts +115 -0
- package/dist/commonjs/models/filesystemattachmentdata.d.ts.map +1 -0
- package/dist/commonjs/models/filesystemattachmentdata.js +154 -0
- package/dist/commonjs/models/filesystemattachmentdata.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +6 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +6 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/lksallocatableserverdata.d.ts +82 -0
- package/dist/commonjs/models/lksallocatableserverdata.d.ts.map +1 -0
- package/dist/commonjs/models/lksallocatableserverdata.js +128 -0
- package/dist/commonjs/models/lksallocatableserverdata.js.map +1 -0
- package/dist/commonjs/models/lksallocatableservers.d.ts +33 -0
- package/dist/commonjs/models/lksallocatableservers.d.ts.map +1 -0
- package/dist/commonjs/models/lksallocatableservers.js +77 -0
- package/dist/commonjs/models/lksallocatableservers.js.map +1 -0
- package/dist/commonjs/models/lksnodedata.d.ts +90 -0
- package/dist/commonjs/models/lksnodedata.d.ts.map +1 -0
- package/dist/commonjs/models/lksnodedata.js +130 -0
- package/dist/commonjs/models/lksnodedata.js.map +1 -0
- package/dist/commonjs/models/lksnodepooldata.d.ts +12 -1
- package/dist/commonjs/models/lksnodepooldata.d.ts.map +1 -1
- package/dist/commonjs/models/lksnodepooldata.js +4 -0
- package/dist/commonjs/models/lksnodepooldata.js.map +1 -1
- package/dist/commonjs/models/lksnodes.d.ts +33 -0
- package/dist/commonjs/models/lksnodes.d.ts.map +1 -0
- package/dist/commonjs/models/lksnodes.js +77 -0
- package/dist/commonjs/models/lksnodes.js.map +1 -0
- package/dist/commonjs/models/operations/attachfilesystem.d.ts +75 -0
- package/dist/commonjs/models/operations/attachfilesystem.d.ts.map +1 -0
- package/dist/commonjs/models/operations/attachfilesystem.js +136 -0
- package/dist/commonjs/models/operations/attachfilesystem.js.map +1 -0
- package/dist/commonjs/models/operations/detachfilesystem.d.ts +75 -0
- package/dist/commonjs/models/operations/detachfilesystem.d.ts.map +1 -0
- package/dist/commonjs/models/operations/detachfilesystem.js +136 -0
- package/dist/commonjs/models/operations/detachfilesystem.js.map +1 -0
- package/dist/commonjs/models/operations/getfilesystemattachment.d.ts +53 -0
- package/dist/commonjs/models/operations/getfilesystemattachment.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getfilesystemattachment.js +102 -0
- package/dist/commonjs/models/operations/getfilesystemattachment.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +6 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +6 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listlksallocatableservers.d.ts +25 -0
- package/dist/commonjs/models/operations/listlksallocatableservers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listlksallocatableservers.js +71 -0
- package/dist/commonjs/models/operations/listlksallocatableservers.js.map +1 -0
- package/dist/commonjs/models/operations/listlksnodes.d.ts +30 -0
- package/dist/commonjs/models/operations/listlksnodes.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listlksnodes.js +75 -0
- package/dist/commonjs/models/operations/listlksnodes.js.map +1 -0
- package/dist/commonjs/models/operations/updatepublicnetworkip.d.ts +20 -0
- package/dist/commonjs/models/operations/updatepublicnetworkip.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatepublicnetworkip.js +70 -0
- package/dist/commonjs/models/operations/updatepublicnetworkip.js.map +1 -0
- package/dist/commonjs/models/publicnetworkdata.d.ts +3 -3
- package/dist/commonjs/models/publicnetworkdata.js +1 -1
- package/dist/commonjs/models/updatelksnodepool.d.ts +8 -3
- package/dist/commonjs/models/updatelksnodepool.d.ts.map +1 -1
- package/dist/commonjs/models/updatelksnodepool.js +4 -0
- package/dist/commonjs/models/updatelksnodepool.js.map +1 -1
- package/dist/commonjs/models/updatepublicnetworkip.d.ts +62 -0
- package/dist/commonjs/models/updatepublicnetworkip.d.ts.map +1 -0
- package/dist/commonjs/models/updatepublicnetworkip.js +103 -0
- package/dist/commonjs/models/updatepublicnetworkip.js.map +1 -0
- package/dist/commonjs/models/virtualmachineattributes.d.ts +5 -0
- package/dist/commonjs/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachineattributes.js +4 -0
- package/dist/commonjs/models/virtualmachineattributes.js.map +1 -1
- package/dist/commonjs/models/virtualmachinenetworkattachmentcreatepayload.d.ts +1 -1
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.d.ts +10 -0
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.js +6 -0
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.js.map +1 -1
- package/dist/commonjs/models/virtualmachinepayload.d.ts +5 -0
- package/dist/commonjs/models/virtualmachinepayload.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachinepayload.js +4 -0
- package/dist/commonjs/models/virtualmachinepayload.js.map +1 -1
- package/dist/commonjs/models/volumedata.d.ts +8 -8
- package/dist/commonjs/models/volumedata.d.ts.map +1 -1
- package/dist/commonjs/models/volumedata.js +11 -13
- package/dist/commonjs/models/volumedata.js.map +1 -1
- package/dist/commonjs/sdk/filesystemstorage.d.ts +21 -0
- package/dist/commonjs/sdk/filesystemstorage.d.ts.map +1 -1
- package/dist/commonjs/sdk/filesystemstorage.js +30 -0
- package/dist/commonjs/sdk/filesystemstorage.js.map +1 -1
- package/dist/commonjs/sdk/lks.d.ts +25 -4
- package/dist/commonjs/sdk/lks.d.ts.map +1 -1
- package/dist/commonjs/sdk/lks.js +31 -4
- package/dist/commonjs/sdk/lks.js.map +1 -1
- package/dist/commonjs/sdk/publicnetworks.d.ts +9 -0
- package/dist/commonjs/sdk/publicnetworks.d.ts.map +1 -1
- package/dist/commonjs/sdk/publicnetworks.js +12 -0
- package/dist/commonjs/sdk/publicnetworks.js.map +1 -1
- package/dist/commonjs/sdk/virtualmachines.d.ts +15 -2
- package/dist/commonjs/sdk/virtualmachines.d.ts.map +1 -1
- package/dist/commonjs/sdk/virtualmachines.js +15 -2
- package/dist/commonjs/sdk/virtualmachines.js.map +1 -1
- package/dist/esm/funcs/filesystemStorageAttachFilesystem.d.ts +17 -0
- package/dist/esm/funcs/filesystemStorageAttachFilesystem.d.ts.map +1 -0
- package/dist/esm/funcs/filesystemStorageAttachFilesystem.js +86 -0
- package/dist/esm/funcs/filesystemStorageAttachFilesystem.js.map +1 -0
- package/dist/esm/funcs/filesystemStorageDetachFilesystem.d.ts +17 -0
- package/dist/esm/funcs/filesystemStorageDetachFilesystem.d.ts.map +1 -0
- package/dist/esm/funcs/filesystemStorageDetachFilesystem.js +86 -0
- package/dist/esm/funcs/filesystemStorageDetachFilesystem.js.map +1 -0
- package/dist/esm/funcs/filesystemStorageGetFilesystemAttachment.d.ts +17 -0
- package/dist/esm/funcs/filesystemStorageGetFilesystemAttachment.d.ts.map +1 -0
- package/dist/esm/funcs/filesystemStorageGetFilesystemAttachment.js +90 -0
- package/dist/esm/funcs/filesystemStorageGetFilesystemAttachment.js.map +1 -0
- package/dist/esm/funcs/lksCreateLKSNodePool.d.ts +5 -2
- package/dist/esm/funcs/lksCreateLKSNodePool.d.ts.map +1 -1
- package/dist/esm/funcs/lksCreateLKSNodePool.js +5 -2
- package/dist/esm/funcs/lksCreateLKSNodePool.js.map +1 -1
- package/dist/esm/funcs/lksListLKSAllocatableServers.d.ts +21 -0
- package/dist/esm/funcs/lksListLKSAllocatableServers.d.ts.map +1 -0
- package/dist/esm/funcs/lksListLKSAllocatableServers.js +96 -0
- package/dist/esm/funcs/lksListLKSAllocatableServers.js.map +1 -0
- package/dist/esm/funcs/lksListLKSNodes.d.ts +19 -0
- package/dist/esm/funcs/lksListLKSNodes.d.ts.map +1 -0
- package/dist/esm/funcs/lksListLKSNodes.js +103 -0
- package/dist/esm/funcs/lksListLKSNodes.js.map +1 -0
- package/dist/esm/funcs/lksUpdateLKSNodePool.d.ts +4 -2
- package/dist/esm/funcs/lksUpdateLKSNodePool.d.ts.map +1 -1
- package/dist/esm/funcs/lksUpdateLKSNodePool.js +4 -2
- package/dist/esm/funcs/lksUpdateLKSNodePool.js.map +1 -1
- package/dist/esm/funcs/publicNetworksUpdatePublicNetworkIp.d.ts +21 -0
- package/dist/esm/funcs/publicNetworksUpdatePublicNetworkIp.d.ts.map +1 -0
- package/dist/esm/funcs/publicNetworksUpdatePublicNetworkIp.js +98 -0
- package/dist/esm/funcs/publicNetworksUpdatePublicNetworkIp.js.map +1 -0
- package/dist/esm/funcs/serversLock.d.ts +2 -1
- package/dist/esm/funcs/serversLock.d.ts.map +1 -1
- package/dist/esm/funcs/serversLock.js +7 -1
- package/dist/esm/funcs/serversLock.js.map +1 -1
- package/dist/esm/funcs/serversReinstall.js +1 -1
- package/dist/esm/funcs/serversReinstall.js.map +1 -1
- package/dist/esm/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts +10 -1
- package/dist/esm/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts.map +1 -1
- package/dist/esm/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.js +10 -1
- package/dist/esm/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.js.map +1 -1
- package/dist/esm/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts +5 -1
- package/dist/esm/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts.map +1 -1
- package/dist/esm/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.js +6 -2
- package/dist/esm/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +13 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/filesystemStorageAttachFilesystem.d.ts +8 -0
- package/dist/esm/mcp-server/tools/filesystemStorageAttachFilesystem.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/filesystemStorageAttachFilesystem.js +27 -0
- package/dist/esm/mcp-server/tools/filesystemStorageAttachFilesystem.js.map +1 -0
- package/dist/esm/mcp-server/tools/filesystemStorageDetachFilesystem.d.ts +8 -0
- package/dist/esm/mcp-server/tools/filesystemStorageDetachFilesystem.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/filesystemStorageDetachFilesystem.js +27 -0
- package/dist/esm/mcp-server/tools/filesystemStorageDetachFilesystem.js.map +1 -0
- package/dist/esm/mcp-server/tools/filesystemStorageGetFilesystemAttachment.d.ts +8 -0
- package/dist/esm/mcp-server/tools/filesystemStorageGetFilesystemAttachment.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/filesystemStorageGetFilesystemAttachment.js +28 -0
- package/dist/esm/mcp-server/tools/filesystemStorageGetFilesystemAttachment.js.map +1 -0
- package/dist/esm/mcp-server/tools/lksCreateLKSNodePool.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/lksCreateLKSNodePool.js +5 -2
- package/dist/esm/mcp-server/tools/lksCreateLKSNodePool.js.map +1 -1
- package/dist/esm/mcp-server/tools/lksListLKSAllocatableServers.d.ts +8 -0
- package/dist/esm/mcp-server/tools/lksListLKSAllocatableServers.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/lksListLKSAllocatableServers.js +31 -0
- package/dist/esm/mcp-server/tools/lksListLKSAllocatableServers.js.map +1 -0
- package/dist/esm/mcp-server/tools/lksListLKSNodes.d.ts +8 -0
- package/dist/esm/mcp-server/tools/lksListLKSNodes.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/lksListLKSNodes.js +29 -0
- package/dist/esm/mcp-server/tools/lksListLKSNodes.js.map +1 -0
- package/dist/esm/mcp-server/tools/lksUpdateLKSNodePool.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/lksUpdateLKSNodePool.js +4 -2
- package/dist/esm/mcp-server/tools/lksUpdateLKSNodePool.js.map +1 -1
- package/dist/esm/mcp-server/tools/publicNetworksUpdatePublicNetworkIp.d.ts +8 -0
- package/dist/esm/mcp-server/tools/publicNetworksUpdatePublicNetworkIp.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/publicNetworksUpdatePublicNetworkIp.js +30 -0
- package/dist/esm/mcp-server/tools/publicNetworksUpdatePublicNetworkIp.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.js +10 -1
- package/dist/esm/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.js.map +1 -1
- package/dist/esm/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.js +5 -1
- package/dist/esm/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.js.map +1 -1
- package/dist/esm/models/createlksnodepool.d.ts +31 -6
- package/dist/esm/models/createlksnodepool.d.ts.map +1 -1
- package/dist/esm/models/createlksnodepool.js +21 -4
- package/dist/esm/models/createlksnodepool.js.map +1 -1
- package/dist/esm/models/filesystemattachmentdata.d.ts +115 -0
- package/dist/esm/models/filesystemattachmentdata.d.ts.map +1 -0
- package/dist/esm/models/filesystemattachmentdata.js +112 -0
- package/dist/esm/models/filesystemattachmentdata.js.map +1 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/lksallocatableserverdata.d.ts +82 -0
- package/dist/esm/models/lksallocatableserverdata.d.ts.map +1 -0
- package/dist/esm/models/lksallocatableserverdata.js +86 -0
- package/dist/esm/models/lksallocatableserverdata.js.map +1 -0
- package/dist/esm/models/lksallocatableservers.d.ts +33 -0
- package/dist/esm/models/lksallocatableservers.d.ts.map +1 -0
- package/dist/esm/models/lksallocatableservers.js +37 -0
- package/dist/esm/models/lksallocatableservers.js.map +1 -0
- package/dist/esm/models/lksnodedata.d.ts +90 -0
- package/dist/esm/models/lksnodedata.d.ts.map +1 -0
- package/dist/esm/models/lksnodedata.js +88 -0
- package/dist/esm/models/lksnodedata.js.map +1 -0
- package/dist/esm/models/lksnodepooldata.d.ts +12 -1
- package/dist/esm/models/lksnodepooldata.d.ts.map +1 -1
- package/dist/esm/models/lksnodepooldata.js +4 -0
- package/dist/esm/models/lksnodepooldata.js.map +1 -1
- package/dist/esm/models/lksnodes.d.ts +33 -0
- package/dist/esm/models/lksnodes.d.ts.map +1 -0
- package/dist/esm/models/lksnodes.js +37 -0
- package/dist/esm/models/lksnodes.js.map +1 -0
- package/dist/esm/models/operations/attachfilesystem.d.ts +75 -0
- package/dist/esm/models/operations/attachfilesystem.d.ts.map +1 -0
- package/dist/esm/models/operations/attachfilesystem.js +92 -0
- package/dist/esm/models/operations/attachfilesystem.js.map +1 -0
- package/dist/esm/models/operations/detachfilesystem.d.ts +75 -0
- package/dist/esm/models/operations/detachfilesystem.d.ts.map +1 -0
- package/dist/esm/models/operations/detachfilesystem.js +92 -0
- package/dist/esm/models/operations/detachfilesystem.js.map +1 -0
- package/dist/esm/models/operations/getfilesystemattachment.d.ts +53 -0
- package/dist/esm/models/operations/getfilesystemattachment.d.ts.map +1 -0
- package/dist/esm/models/operations/getfilesystemattachment.js +60 -0
- package/dist/esm/models/operations/getfilesystemattachment.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +6 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +6 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listlksallocatableservers.d.ts +25 -0
- package/dist/esm/models/operations/listlksallocatableservers.d.ts.map +1 -0
- package/dist/esm/models/operations/listlksallocatableservers.js +33 -0
- package/dist/esm/models/operations/listlksallocatableservers.js.map +1 -0
- package/dist/esm/models/operations/listlksnodes.d.ts +30 -0
- package/dist/esm/models/operations/listlksnodes.d.ts.map +1 -0
- package/dist/esm/models/operations/listlksnodes.js +37 -0
- package/dist/esm/models/operations/listlksnodes.js.map +1 -0
- package/dist/esm/models/operations/updatepublicnetworkip.d.ts +20 -0
- package/dist/esm/models/operations/updatepublicnetworkip.d.ts.map +1 -0
- package/dist/esm/models/operations/updatepublicnetworkip.js +32 -0
- package/dist/esm/models/operations/updatepublicnetworkip.js.map +1 -0
- package/dist/esm/models/publicnetworkdata.d.ts +3 -3
- package/dist/esm/models/publicnetworkdata.js +1 -1
- package/dist/esm/models/updatelksnodepool.d.ts +8 -3
- package/dist/esm/models/updatelksnodepool.d.ts.map +1 -1
- package/dist/esm/models/updatelksnodepool.js +4 -0
- package/dist/esm/models/updatelksnodepool.js.map +1 -1
- package/dist/esm/models/updatepublicnetworkip.d.ts +62 -0
- package/dist/esm/models/updatepublicnetworkip.d.ts.map +1 -0
- package/dist/esm/models/updatepublicnetworkip.js +61 -0
- package/dist/esm/models/updatepublicnetworkip.js.map +1 -0
- package/dist/esm/models/virtualmachineattributes.d.ts +5 -0
- package/dist/esm/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/esm/models/virtualmachineattributes.js +4 -0
- package/dist/esm/models/virtualmachineattributes.js.map +1 -1
- package/dist/esm/models/virtualmachinenetworkattachmentcreatepayload.d.ts +1 -1
- package/dist/esm/models/virtualmachinenetworkattachmentresource.d.ts +10 -0
- package/dist/esm/models/virtualmachinenetworkattachmentresource.d.ts.map +1 -1
- package/dist/esm/models/virtualmachinenetworkattachmentresource.js +6 -0
- package/dist/esm/models/virtualmachinenetworkattachmentresource.js.map +1 -1
- package/dist/esm/models/virtualmachinepayload.d.ts +5 -0
- package/dist/esm/models/virtualmachinepayload.d.ts.map +1 -1
- package/dist/esm/models/virtualmachinepayload.js +4 -0
- package/dist/esm/models/virtualmachinepayload.js.map +1 -1
- package/dist/esm/models/volumedata.d.ts +8 -8
- package/dist/esm/models/volumedata.d.ts.map +1 -1
- package/dist/esm/models/volumedata.js +8 -10
- package/dist/esm/models/volumedata.js.map +1 -1
- package/dist/esm/sdk/filesystemstorage.d.ts +21 -0
- package/dist/esm/sdk/filesystemstorage.d.ts.map +1 -1
- package/dist/esm/sdk/filesystemstorage.js +30 -0
- package/dist/esm/sdk/filesystemstorage.js.map +1 -1
- package/dist/esm/sdk/lks.d.ts +25 -4
- package/dist/esm/sdk/lks.d.ts.map +1 -1
- package/dist/esm/sdk/lks.js +31 -4
- package/dist/esm/sdk/lks.js.map +1 -1
- package/dist/esm/sdk/publicnetworks.d.ts +9 -0
- package/dist/esm/sdk/publicnetworks.d.ts.map +1 -1
- package/dist/esm/sdk/publicnetworks.js +12 -0
- package/dist/esm/sdk/publicnetworks.js.map +1 -1
- package/dist/esm/sdk/virtualmachines.d.ts +15 -2
- package/dist/esm/sdk/virtualmachines.d.ts.map +1 -1
- package/dist/esm/sdk/virtualmachines.js +15 -2
- package/dist/esm/sdk/virtualmachines.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/filesystemStorageAttachFilesystem.ts +171 -0
- package/src/funcs/filesystemStorageDetachFilesystem.ts +171 -0
- package/src/funcs/filesystemStorageGetFilesystemAttachment.ts +177 -0
- package/src/funcs/lksCreateLKSNodePool.ts +5 -2
- package/src/funcs/lksListLKSAllocatableServers.ts +187 -0
- package/src/funcs/lksListLKSNodes.ts +195 -0
- package/src/funcs/lksUpdateLKSNodePool.ts +4 -2
- package/src/funcs/publicNetworksUpdatePublicNetworkIp.ts +187 -0
- package/src/funcs/serversLock.ts +12 -1
- package/src/funcs/serversReinstall.ts +1 -1
- package/src/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.ts +10 -1
- package/src/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts +6 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/filesystemStorageAttachFilesystem.ts +37 -0
- package/src/mcp-server/tools/filesystemStorageDetachFilesystem.ts +37 -0
- package/src/mcp-server/tools/filesystemStorageGetFilesystemAttachment.ts +39 -0
- package/src/mcp-server/tools/lksCreateLKSNodePool.ts +5 -2
- package/src/mcp-server/tools/lksListLKSAllocatableServers.ts +40 -0
- package/src/mcp-server/tools/lksListLKSNodes.ts +38 -0
- package/src/mcp-server/tools/lksUpdateLKSNodePool.ts +4 -2
- package/src/mcp-server/tools/publicNetworksUpdatePublicNetworkIp.ts +41 -0
- package/src/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.ts +10 -1
- package/src/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts +5 -1
- package/src/models/createlksnodepool.ts +47 -10
- package/src/models/filesystemattachmentdata.ts +282 -0
- package/src/models/index.ts +6 -0
- package/src/models/lksallocatableserverdata.ts +220 -0
- package/src/models/lksallocatableservers.ts +104 -0
- package/src/models/lksnodedata.ts +219 -0
- package/src/models/lksnodepooldata.ts +16 -1
- package/src/models/lksnodes.ts +96 -0
- package/src/models/operations/attachfilesystem.ts +232 -0
- package/src/models/operations/detachfilesystem.ts +232 -0
- package/src/models/operations/getfilesystemattachment.ts +164 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/listlksallocatableservers.ts +74 -0
- package/src/models/operations/listlksnodes.ts +81 -0
- package/src/models/operations/updatepublicnetworkip.ts +67 -0
- package/src/models/publicnetworkdata.ts +3 -3
- package/src/models/updatelksnodepool.ts +12 -3
- package/src/models/updatepublicnetworkip.ts +172 -0
- package/src/models/virtualmachineattributes.ts +9 -0
- package/src/models/virtualmachinenetworkattachmentcreatepayload.ts +1 -1
- package/src/models/virtualmachinenetworkattachmentresource.ts +16 -0
- package/src/models/virtualmachinepayload.ts +9 -0
- package/src/models/volumedata.ts +25 -19
- package/src/sdk/filesystemstorage.ts +54 -0
- package/src/sdk/lks.ts +47 -4
- package/src/sdk/publicnetworks.ts +20 -0
- package/src/sdk/virtualmachines.ts +15 -2
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ListLksAllocatableServersRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* Project id or slug
|
|
14
|
+
*/
|
|
15
|
+
filterProject: string;
|
|
16
|
+
/**
|
|
17
|
+
* Site slug
|
|
18
|
+
*/
|
|
19
|
+
filterSite: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ListLksAllocatableServersRequest$inboundSchema: z.ZodType<
|
|
24
|
+
ListLksAllocatableServersRequest,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
"filter[project]": z.string(),
|
|
29
|
+
"filter[site]": z.string(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"filter[project]": "filterProject",
|
|
33
|
+
"filter[site]": "filterSite",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type ListLksAllocatableServersRequest$Outbound = {
|
|
38
|
+
"filter[project]": string;
|
|
39
|
+
"filter[site]": string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ListLksAllocatableServersRequest$outboundSchema: z.ZodType<
|
|
44
|
+
ListLksAllocatableServersRequest$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
ListLksAllocatableServersRequest
|
|
47
|
+
> = z.object({
|
|
48
|
+
filterProject: z.string(),
|
|
49
|
+
filterSite: z.string(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
filterProject: "filter[project]",
|
|
53
|
+
filterSite: "filter[site]",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export function listLksAllocatableServersRequestToJSON(
|
|
58
|
+
listLksAllocatableServersRequest: ListLksAllocatableServersRequest,
|
|
59
|
+
): string {
|
|
60
|
+
return JSON.stringify(
|
|
61
|
+
ListLksAllocatableServersRequest$outboundSchema.parse(
|
|
62
|
+
listLksAllocatableServersRequest,
|
|
63
|
+
),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
export function listLksAllocatableServersRequestFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<ListLksAllocatableServersRequest, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => ListLksAllocatableServersRequest$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'ListLksAllocatableServersRequest' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ListLksNodesRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* The cluster ID (format: `lksc_<hash>`).
|
|
14
|
+
*/
|
|
15
|
+
clusterId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The node pool ID (format: `lksnp_<hash>`).
|
|
18
|
+
*/
|
|
19
|
+
nodePoolId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Only return nodes in this status: `pending`, `ready`, `not_ready`, or `deleting`.
|
|
22
|
+
*/
|
|
23
|
+
filterStatus?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const ListLksNodesRequest$inboundSchema: z.ZodType<
|
|
28
|
+
ListLksNodesRequest,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
cluster_id: z.string(),
|
|
33
|
+
node_pool_id: z.string(),
|
|
34
|
+
"filter[status]": z.string().optional(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"cluster_id": "clusterId",
|
|
38
|
+
"node_pool_id": "nodePoolId",
|
|
39
|
+
"filter[status]": "filterStatus",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type ListLksNodesRequest$Outbound = {
|
|
44
|
+
cluster_id: string;
|
|
45
|
+
node_pool_id: string;
|
|
46
|
+
"filter[status]"?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const ListLksNodesRequest$outboundSchema: z.ZodType<
|
|
51
|
+
ListLksNodesRequest$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
ListLksNodesRequest
|
|
54
|
+
> = z.object({
|
|
55
|
+
clusterId: z.string(),
|
|
56
|
+
nodePoolId: z.string(),
|
|
57
|
+
filterStatus: z.string().optional(),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
clusterId: "cluster_id",
|
|
61
|
+
nodePoolId: "node_pool_id",
|
|
62
|
+
filterStatus: "filter[status]",
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export function listLksNodesRequestToJSON(
|
|
67
|
+
listLksNodesRequest: ListLksNodesRequest,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
ListLksNodesRequest$outboundSchema.parse(listLksNodesRequest),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
export function listLksNodesRequestFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<ListLksNodesRequest, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => ListLksNodesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'ListLksNodesRequest' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import * as models from "../index.js";
|
|
11
|
+
|
|
12
|
+
export type UpdatePublicNetworkIpRequest = {
|
|
13
|
+
id: string;
|
|
14
|
+
updatePublicNetworkIp: models.UpdatePublicNetworkIp;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const UpdatePublicNetworkIpRequest$inboundSchema: z.ZodType<
|
|
19
|
+
UpdatePublicNetworkIpRequest,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
id: z.string(),
|
|
24
|
+
update_public_network_ip: models.UpdatePublicNetworkIp$inboundSchema,
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"update_public_network_ip": "updatePublicNetworkIp",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type UpdatePublicNetworkIpRequest$Outbound = {
|
|
32
|
+
id: string;
|
|
33
|
+
update_public_network_ip: models.UpdatePublicNetworkIp$Outbound;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const UpdatePublicNetworkIpRequest$outboundSchema: z.ZodType<
|
|
38
|
+
UpdatePublicNetworkIpRequest$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
UpdatePublicNetworkIpRequest
|
|
41
|
+
> = z.object({
|
|
42
|
+
id: z.string(),
|
|
43
|
+
updatePublicNetworkIp: models.UpdatePublicNetworkIp$outboundSchema,
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
updatePublicNetworkIp: "update_public_network_ip",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function updatePublicNetworkIpRequestToJSON(
|
|
51
|
+
updatePublicNetworkIpRequest: UpdatePublicNetworkIpRequest,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
UpdatePublicNetworkIpRequest$outboundSchema.parse(
|
|
55
|
+
updatePublicNetworkIpRequest,
|
|
56
|
+
),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export function updatePublicNetworkIpRequestFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<UpdatePublicNetworkIpRequest, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => UpdatePublicNetworkIpRequest$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'UpdatePublicNetworkIpRequest' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -31,7 +31,7 @@ export const PublicNetworkDataSize = {
|
|
|
31
31
|
export type PublicNetworkDataSize = ClosedEnum<typeof PublicNetworkDataSize>;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* gateway: reserved for the network gateway; server: a server on the network; elastic_ip: an elastic IP; reserved: held in IPAM but not by a server; available: free to use
|
|
34
|
+
* gateway: reserved for the network gateway; server: a server on the network; elastic_ip: an elastic IP; reserved: held in IPAM but not by a server, including addresses you reserved; available: free to use
|
|
35
35
|
*/
|
|
36
36
|
export const PublicNetworkDataRole = {
|
|
37
37
|
Gateway: "gateway",
|
|
@@ -41,7 +41,7 @@ export const PublicNetworkDataRole = {
|
|
|
41
41
|
Available: "available",
|
|
42
42
|
} as const;
|
|
43
43
|
/**
|
|
44
|
-
* gateway: reserved for the network gateway; server: a server on the network; elastic_ip: an elastic IP; reserved: held in IPAM but not by a server; available: free to use
|
|
44
|
+
* gateway: reserved for the network gateway; server: a server on the network; elastic_ip: an elastic IP; reserved: held in IPAM but not by a server, including addresses you reserved; available: free to use
|
|
45
45
|
*/
|
|
46
46
|
export type PublicNetworkDataRole = ClosedEnum<typeof PublicNetworkDataRole>;
|
|
47
47
|
|
|
@@ -66,7 +66,7 @@ export type PublicNetworkDataAssignment = {
|
|
|
66
66
|
export type Ip = {
|
|
67
67
|
address?: string | undefined;
|
|
68
68
|
/**
|
|
69
|
-
* gateway: reserved for the network gateway; server: a server on the network; elastic_ip: an elastic IP; reserved: held in IPAM but not by a server; available: free to use
|
|
69
|
+
* gateway: reserved for the network gateway; server: a server on the network; elastic_ip: an elastic IP; reserved: held in IPAM but not by a server, including addresses you reserved; available: free to use
|
|
70
70
|
*/
|
|
71
71
|
role?: PublicNetworkDataRole | undefined;
|
|
72
72
|
/**
|
|
@@ -21,14 +21,18 @@ export const UpdateLksNodePoolType = {
|
|
|
21
21
|
export type UpdateLksNodePoolType = ClosedEnum<typeof UpdateLksNodePoolType>;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* At least one attribute must be provided. max_pods_per_node
|
|
24
|
+
* At least one attribute must be provided. max_pods_per_node and mode are set once, at creation, and are not updatable: a PATCH that carries either is rejected with 422.
|
|
25
25
|
*/
|
|
26
26
|
export type UpdateLksNodePoolAttributes = {
|
|
27
27
|
name?: string | undefined;
|
|
28
28
|
/**
|
|
29
|
-
* must be >= 1
|
|
29
|
+
* must be >= 1. on_demand node pools only; rejected for allocated node pools
|
|
30
30
|
*/
|
|
31
31
|
count?: number | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Allocated node pools only. Declarative: send the whole set of servers the pool should have. Added servers are checked like on create and reinstalled to join; removed servers are drained and reinstalled with a clean OS. Cannot be combined with a kubernetes_version change.
|
|
34
|
+
*/
|
|
35
|
+
serverIds?: Array<string> | undefined;
|
|
32
36
|
/**
|
|
33
37
|
* A newer patch rolls a node-recreating upgrade. Must not be lower than the current patch (422 DOWNGRADE_NOT_ALLOWED) nor newer than the control-plane patch (422 VERSION_SKEW)
|
|
34
38
|
*/
|
|
@@ -47,7 +51,7 @@ export type UpdateLksNodePoolAttributes = {
|
|
|
47
51
|
export type UpdateLksNodePoolData = {
|
|
48
52
|
type: UpdateLksNodePoolType;
|
|
49
53
|
/**
|
|
50
|
-
* At least one attribute must be provided. max_pods_per_node
|
|
54
|
+
* At least one attribute must be provided. max_pods_per_node and mode are set once, at creation, and are not updatable: a PATCH that carries either is rejected with 422.
|
|
51
55
|
*/
|
|
52
56
|
attributes?: UpdateLksNodePoolAttributes | undefined;
|
|
53
57
|
};
|
|
@@ -73,12 +77,14 @@ export const UpdateLksNodePoolAttributes$inboundSchema: z.ZodType<
|
|
|
73
77
|
> = z.object({
|
|
74
78
|
name: z.string().optional(),
|
|
75
79
|
count: z.number().int().optional(),
|
|
80
|
+
server_ids: z.array(z.string()).optional(),
|
|
76
81
|
kubernetes_version: z.string().optional(),
|
|
77
82
|
labels: z.record(z.string()).optional(),
|
|
78
83
|
taints: z.array(LksNodePoolTaint$inboundSchema).optional(),
|
|
79
84
|
description: z.string().optional(),
|
|
80
85
|
}).transform((v) => {
|
|
81
86
|
return remap$(v, {
|
|
87
|
+
"server_ids": "serverIds",
|
|
82
88
|
"kubernetes_version": "kubernetesVersion",
|
|
83
89
|
});
|
|
84
90
|
});
|
|
@@ -86,6 +92,7 @@ export const UpdateLksNodePoolAttributes$inboundSchema: z.ZodType<
|
|
|
86
92
|
export type UpdateLksNodePoolAttributes$Outbound = {
|
|
87
93
|
name?: string | undefined;
|
|
88
94
|
count?: number | undefined;
|
|
95
|
+
server_ids?: Array<string> | undefined;
|
|
89
96
|
kubernetes_version?: string | undefined;
|
|
90
97
|
labels?: { [k: string]: string } | undefined;
|
|
91
98
|
taints?: Array<LksNodePoolTaint$Outbound> | undefined;
|
|
@@ -100,12 +107,14 @@ export const UpdateLksNodePoolAttributes$outboundSchema: z.ZodType<
|
|
|
100
107
|
> = z.object({
|
|
101
108
|
name: z.string().optional(),
|
|
102
109
|
count: z.number().int().optional(),
|
|
110
|
+
serverIds: z.array(z.string()).optional(),
|
|
103
111
|
kubernetesVersion: z.string().optional(),
|
|
104
112
|
labels: z.record(z.string()).optional(),
|
|
105
113
|
taints: z.array(LksNodePoolTaint$outboundSchema).optional(),
|
|
106
114
|
description: z.string().optional(),
|
|
107
115
|
}).transform((v) => {
|
|
108
116
|
return remap$(v, {
|
|
117
|
+
serverIds: "server_ids",
|
|
109
118
|
kubernetesVersion: "kubernetes_version",
|
|
110
119
|
});
|
|
111
120
|
});
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const UpdatePublicNetworkIpType = {
|
|
12
|
+
PublicNetworks: "public_networks",
|
|
13
|
+
} as const;
|
|
14
|
+
export type UpdatePublicNetworkIpType = ClosedEnum<
|
|
15
|
+
typeof UpdatePublicNetworkIpType
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export type UpdatePublicNetworkIpAttributes = {
|
|
19
|
+
/**
|
|
20
|
+
* The IPv4 address, e.g. 203.0.113.4
|
|
21
|
+
*/
|
|
22
|
+
address: string;
|
|
23
|
+
/**
|
|
24
|
+
* true reserves an available address so servers are never attached with it; false releases an address you reserved
|
|
25
|
+
*/
|
|
26
|
+
reserved: boolean;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type UpdatePublicNetworkIpData = {
|
|
30
|
+
type: UpdatePublicNetworkIpType;
|
|
31
|
+
attributes?: UpdatePublicNetworkIpAttributes | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type UpdatePublicNetworkIp = {
|
|
35
|
+
data: UpdatePublicNetworkIpData;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const UpdatePublicNetworkIpType$inboundSchema: z.ZodNativeEnum<
|
|
40
|
+
typeof UpdatePublicNetworkIpType
|
|
41
|
+
> = z.nativeEnum(UpdatePublicNetworkIpType);
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const UpdatePublicNetworkIpType$outboundSchema: z.ZodNativeEnum<
|
|
44
|
+
typeof UpdatePublicNetworkIpType
|
|
45
|
+
> = UpdatePublicNetworkIpType$inboundSchema;
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const UpdatePublicNetworkIpAttributes$inboundSchema: z.ZodType<
|
|
49
|
+
UpdatePublicNetworkIpAttributes,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
unknown
|
|
52
|
+
> = z.object({
|
|
53
|
+
address: z.string(),
|
|
54
|
+
reserved: z.boolean(),
|
|
55
|
+
});
|
|
56
|
+
/** @internal */
|
|
57
|
+
export type UpdatePublicNetworkIpAttributes$Outbound = {
|
|
58
|
+
address: string;
|
|
59
|
+
reserved: boolean;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const UpdatePublicNetworkIpAttributes$outboundSchema: z.ZodType<
|
|
64
|
+
UpdatePublicNetworkIpAttributes$Outbound,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
UpdatePublicNetworkIpAttributes
|
|
67
|
+
> = z.object({
|
|
68
|
+
address: z.string(),
|
|
69
|
+
reserved: z.boolean(),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export function updatePublicNetworkIpAttributesToJSON(
|
|
73
|
+
updatePublicNetworkIpAttributes: UpdatePublicNetworkIpAttributes,
|
|
74
|
+
): string {
|
|
75
|
+
return JSON.stringify(
|
|
76
|
+
UpdatePublicNetworkIpAttributes$outboundSchema.parse(
|
|
77
|
+
updatePublicNetworkIpAttributes,
|
|
78
|
+
),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
export function updatePublicNetworkIpAttributesFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<UpdatePublicNetworkIpAttributes, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => UpdatePublicNetworkIpAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'UpdatePublicNetworkIpAttributes' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const UpdatePublicNetworkIpData$inboundSchema: z.ZodType<
|
|
93
|
+
UpdatePublicNetworkIpData,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
unknown
|
|
96
|
+
> = z.object({
|
|
97
|
+
type: UpdatePublicNetworkIpType$inboundSchema,
|
|
98
|
+
attributes: z.lazy(() => UpdatePublicNetworkIpAttributes$inboundSchema)
|
|
99
|
+
.optional(),
|
|
100
|
+
});
|
|
101
|
+
/** @internal */
|
|
102
|
+
export type UpdatePublicNetworkIpData$Outbound = {
|
|
103
|
+
type: string;
|
|
104
|
+
attributes?: UpdatePublicNetworkIpAttributes$Outbound | undefined;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const UpdatePublicNetworkIpData$outboundSchema: z.ZodType<
|
|
109
|
+
UpdatePublicNetworkIpData$Outbound,
|
|
110
|
+
z.ZodTypeDef,
|
|
111
|
+
UpdatePublicNetworkIpData
|
|
112
|
+
> = z.object({
|
|
113
|
+
type: UpdatePublicNetworkIpType$outboundSchema,
|
|
114
|
+
attributes: z.lazy(() => UpdatePublicNetworkIpAttributes$outboundSchema)
|
|
115
|
+
.optional(),
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
export function updatePublicNetworkIpDataToJSON(
|
|
119
|
+
updatePublicNetworkIpData: UpdatePublicNetworkIpData,
|
|
120
|
+
): string {
|
|
121
|
+
return JSON.stringify(
|
|
122
|
+
UpdatePublicNetworkIpData$outboundSchema.parse(updatePublicNetworkIpData),
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
export function updatePublicNetworkIpDataFromJSON(
|
|
126
|
+
jsonString: string,
|
|
127
|
+
): SafeParseResult<UpdatePublicNetworkIpData, SDKValidationError> {
|
|
128
|
+
return safeParse(
|
|
129
|
+
jsonString,
|
|
130
|
+
(x) => UpdatePublicNetworkIpData$inboundSchema.parse(JSON.parse(x)),
|
|
131
|
+
`Failed to parse 'UpdatePublicNetworkIpData' from JSON`,
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const UpdatePublicNetworkIp$inboundSchema: z.ZodType<
|
|
137
|
+
UpdatePublicNetworkIp,
|
|
138
|
+
z.ZodTypeDef,
|
|
139
|
+
unknown
|
|
140
|
+
> = z.object({
|
|
141
|
+
data: z.lazy(() => UpdatePublicNetworkIpData$inboundSchema),
|
|
142
|
+
});
|
|
143
|
+
/** @internal */
|
|
144
|
+
export type UpdatePublicNetworkIp$Outbound = {
|
|
145
|
+
data: UpdatePublicNetworkIpData$Outbound;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
/** @internal */
|
|
149
|
+
export const UpdatePublicNetworkIp$outboundSchema: z.ZodType<
|
|
150
|
+
UpdatePublicNetworkIp$Outbound,
|
|
151
|
+
z.ZodTypeDef,
|
|
152
|
+
UpdatePublicNetworkIp
|
|
153
|
+
> = z.object({
|
|
154
|
+
data: z.lazy(() => UpdatePublicNetworkIpData$outboundSchema),
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
export function updatePublicNetworkIpToJSON(
|
|
158
|
+
updatePublicNetworkIp: UpdatePublicNetworkIp,
|
|
159
|
+
): string {
|
|
160
|
+
return JSON.stringify(
|
|
161
|
+
UpdatePublicNetworkIp$outboundSchema.parse(updatePublicNetworkIp),
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
export function updatePublicNetworkIpFromJSON(
|
|
165
|
+
jsonString: string,
|
|
166
|
+
): SafeParseResult<UpdatePublicNetworkIp, SDKValidationError> {
|
|
167
|
+
return safeParse(
|
|
168
|
+
jsonString,
|
|
169
|
+
(x) => UpdatePublicNetworkIp$inboundSchema.parse(JSON.parse(x)),
|
|
170
|
+
`Failed to parse 'UpdatePublicNetworkIp' from JSON`,
|
|
171
|
+
);
|
|
172
|
+
}
|
|
@@ -181,6 +181,10 @@ export type VirtualMachineAttributesAttributes = {
|
|
|
181
181
|
tags?: Array<VirtualMachineAttributesTag> | undefined;
|
|
182
182
|
team?: TeamInclude | undefined;
|
|
183
183
|
project?: ProjectInclude | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* Whether the VM re-applies the platform network configuration on every boot. Set at creation; false for VMs created before this option was available. When false, configure networks attached to the VM inside the guest yourself, as described in [Private networks: configure the OS](https://www.latitude.sh/docs/networking/private-networks#step-3-configure-the-os).
|
|
186
|
+
*/
|
|
187
|
+
applyNetworkOnBoot?: boolean | undefined;
|
|
184
188
|
/**
|
|
185
189
|
* Deprecated, always false. Opt-in extra field, requested via `extra_fields[virtual_machines]=pending_restart`. Attaching and detaching restart the VM automatically.
|
|
186
190
|
*/
|
|
@@ -733,6 +737,7 @@ export const VirtualMachineAttributesAttributes$inboundSchema: z.ZodType<
|
|
|
733
737
|
.optional(),
|
|
734
738
|
team: TeamInclude$inboundSchema.optional(),
|
|
735
739
|
project: ProjectInclude$inboundSchema.optional(),
|
|
740
|
+
apply_network_on_boot: z.boolean().optional(),
|
|
736
741
|
pending_restart: z.boolean().optional(),
|
|
737
742
|
}).transform((v) => {
|
|
738
743
|
return remap$(v, {
|
|
@@ -741,6 +746,7 @@ export const VirtualMachineAttributesAttributes$inboundSchema: z.ZodType<
|
|
|
741
746
|
"operating_system": "operatingSystem",
|
|
742
747
|
"user_data": "userData",
|
|
743
748
|
"marketplace_app": "marketplaceApp",
|
|
749
|
+
"apply_network_on_boot": "applyNetworkOnBoot",
|
|
744
750
|
"pending_restart": "pendingRestart",
|
|
745
751
|
});
|
|
746
752
|
});
|
|
@@ -767,6 +773,7 @@ export type VirtualMachineAttributesAttributes$Outbound = {
|
|
|
767
773
|
tags?: Array<VirtualMachineAttributesTag$Outbound> | undefined;
|
|
768
774
|
team?: TeamInclude$Outbound | undefined;
|
|
769
775
|
project?: ProjectInclude$Outbound | undefined;
|
|
776
|
+
apply_network_on_boot?: boolean | undefined;
|
|
770
777
|
pending_restart?: boolean | undefined;
|
|
771
778
|
};
|
|
772
779
|
|
|
@@ -798,6 +805,7 @@ export const VirtualMachineAttributesAttributes$outboundSchema: z.ZodType<
|
|
|
798
805
|
.optional(),
|
|
799
806
|
team: TeamInclude$outboundSchema.optional(),
|
|
800
807
|
project: ProjectInclude$outboundSchema.optional(),
|
|
808
|
+
applyNetworkOnBoot: z.boolean().optional(),
|
|
801
809
|
pendingRestart: z.boolean().optional(),
|
|
802
810
|
}).transform((v) => {
|
|
803
811
|
return remap$(v, {
|
|
@@ -806,6 +814,7 @@ export const VirtualMachineAttributesAttributes$outboundSchema: z.ZodType<
|
|
|
806
814
|
operatingSystem: "operating_system",
|
|
807
815
|
userData: "user_data",
|
|
808
816
|
marketplaceApp: "marketplace_app",
|
|
817
|
+
applyNetworkOnBoot: "apply_network_on_boot",
|
|
809
818
|
pendingRestart: "pending_restart",
|
|
810
819
|
});
|
|
811
820
|
});
|
|
@@ -22,7 +22,7 @@ export type VirtualMachineNetworkAttachmentCreatePayloadAttributes = {
|
|
|
22
22
|
*/
|
|
23
23
|
virtualNetworkId: string;
|
|
24
24
|
/**
|
|
25
|
-
* Optional static IPv4 address with prefix (e.g. 10.0.0.5/24) for the NIC inside the guest. When omitted the NIC is configured for DHCP without a default route.
|
|
25
|
+
* Optional static IPv4 address with prefix (e.g. 10.0.0.5/24) for the NIC inside the guest. When omitted the NIC is configured for DHCP without a default route. VMs created with `apply_network_on_boot` enabled apply it on the restart the attach performs; on other VMs, configure it yourself on the interface whose MAC matches the attachment `mac_address`.
|
|
26
26
|
*/
|
|
27
27
|
address?: string | undefined;
|
|
28
28
|
};
|
|
@@ -25,6 +25,14 @@ export type VirtualMachineNetworkAttachmentResourceAttributes = {
|
|
|
25
25
|
* The 802.1Q VLAN ID
|
|
26
26
|
*/
|
|
27
27
|
vid?: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The static IPv4 address with prefix given when the network was attached (e.g. 10.0.0.5/24). Null when the attachment has no static address.
|
|
30
|
+
*/
|
|
31
|
+
address?: string | null | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* MAC address of the NIC inside the guest. Interface names differ between images, so use the MAC to find the interface. Null until the VM has restarted with the network attached.
|
|
34
|
+
*/
|
|
35
|
+
macAddress?: string | null | undefined;
|
|
28
36
|
/**
|
|
29
37
|
* Deprecated, always false. Attaching and detaching restart the VM automatically, so an attachment never waits on a manual restart.
|
|
30
38
|
*/
|
|
@@ -58,10 +66,13 @@ export const VirtualMachineNetworkAttachmentResourceAttributes$inboundSchema:
|
|
|
58
66
|
> = z.object({
|
|
59
67
|
virtual_network_id: z.string().optional(),
|
|
60
68
|
vid: z.number().int().optional(),
|
|
69
|
+
address: z.nullable(z.string()).optional(),
|
|
70
|
+
mac_address: z.nullable(z.string()).optional(),
|
|
61
71
|
pending_restart: z.boolean().optional(),
|
|
62
72
|
}).transform((v) => {
|
|
63
73
|
return remap$(v, {
|
|
64
74
|
"virtual_network_id": "virtualNetworkId",
|
|
75
|
+
"mac_address": "macAddress",
|
|
65
76
|
"pending_restart": "pendingRestart",
|
|
66
77
|
});
|
|
67
78
|
});
|
|
@@ -69,6 +80,8 @@ export const VirtualMachineNetworkAttachmentResourceAttributes$inboundSchema:
|
|
|
69
80
|
export type VirtualMachineNetworkAttachmentResourceAttributes$Outbound = {
|
|
70
81
|
virtual_network_id?: string | undefined;
|
|
71
82
|
vid?: number | undefined;
|
|
83
|
+
address?: string | null | undefined;
|
|
84
|
+
mac_address?: string | null | undefined;
|
|
72
85
|
pending_restart?: boolean | undefined;
|
|
73
86
|
};
|
|
74
87
|
|
|
@@ -81,10 +94,13 @@ export const VirtualMachineNetworkAttachmentResourceAttributes$outboundSchema:
|
|
|
81
94
|
> = z.object({
|
|
82
95
|
virtualNetworkId: z.string().optional(),
|
|
83
96
|
vid: z.number().int().optional(),
|
|
97
|
+
address: z.nullable(z.string()).optional(),
|
|
98
|
+
macAddress: z.nullable(z.string()).optional(),
|
|
84
99
|
pendingRestart: z.boolean().optional(),
|
|
85
100
|
}).transform((v) => {
|
|
86
101
|
return remap$(v, {
|
|
87
102
|
virtualNetworkId: "virtual_network_id",
|
|
103
|
+
macAddress: "mac_address",
|
|
88
104
|
pendingRestart: "pending_restart",
|
|
89
105
|
});
|
|
90
106
|
});
|
|
@@ -64,6 +64,10 @@ export type VirtualMachinePayloadAttributes = {
|
|
|
64
64
|
* Array of tag IDs to assign to the VM.
|
|
65
65
|
*/
|
|
66
66
|
tags?: Array<string> | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Re-apply the platform network configuration on every boot, so a virtual network attached to or detached from the VM is configured in the guest by the restart the attach or detach performs. Every boot, including a restart started inside the guest, rewrites cloud-init's own network file (for example `/etc/netplan/50-cloud-init.yaml`): keep custom network configuration in a separate file. Set at creation only; it cannot be changed later through the API. To stop the re-apply from inside the guest, create `/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg` containing `network: {config: disabled}`; networks attached afterwards must then be configured by hand. Defaults to true.
|
|
69
|
+
*/
|
|
70
|
+
applyNetworkOnBoot?: boolean | undefined;
|
|
67
71
|
/**
|
|
68
72
|
* Site/region slug where the VM is provisioned (e.g. DAL, SAO). Defaults to DAL when omitted.
|
|
69
73
|
*/
|
|
@@ -141,6 +145,7 @@ export const VirtualMachinePayloadAttributes$inboundSchema: z.ZodType<
|
|
|
141
145
|
user_data: z.nullable(z.union([z.number().int(), z.string()])).optional(),
|
|
142
146
|
marketplace_app: z.nullable(z.string()).optional(),
|
|
143
147
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
148
|
+
apply_network_on_boot: z.boolean().default(true),
|
|
144
149
|
site: z.nullable(z.string().default("DAL")),
|
|
145
150
|
}).transform((v) => {
|
|
146
151
|
return remap$(v, {
|
|
@@ -148,6 +153,7 @@ export const VirtualMachinePayloadAttributes$inboundSchema: z.ZodType<
|
|
|
148
153
|
"operating_system": "operatingSystem",
|
|
149
154
|
"user_data": "userData",
|
|
150
155
|
"marketplace_app": "marketplaceApp",
|
|
156
|
+
"apply_network_on_boot": "applyNetworkOnBoot",
|
|
151
157
|
});
|
|
152
158
|
});
|
|
153
159
|
/** @internal */
|
|
@@ -161,6 +167,7 @@ export type VirtualMachinePayloadAttributes$Outbound = {
|
|
|
161
167
|
user_data?: number | string | null | undefined;
|
|
162
168
|
marketplace_app?: string | null | undefined;
|
|
163
169
|
tags?: Array<string> | null | undefined;
|
|
170
|
+
apply_network_on_boot: boolean;
|
|
164
171
|
site: string | null;
|
|
165
172
|
};
|
|
166
173
|
|
|
@@ -179,6 +186,7 @@ export const VirtualMachinePayloadAttributes$outboundSchema: z.ZodType<
|
|
|
179
186
|
userData: z.nullable(z.union([z.number().int(), z.string()])).optional(),
|
|
180
187
|
marketplaceApp: z.nullable(z.string()).optional(),
|
|
181
188
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
189
|
+
applyNetworkOnBoot: z.boolean().default(true),
|
|
182
190
|
site: z.nullable(z.string().default("DAL")),
|
|
183
191
|
}).transform((v) => {
|
|
184
192
|
return remap$(v, {
|
|
@@ -186,6 +194,7 @@ export const VirtualMachinePayloadAttributes$outboundSchema: z.ZodType<
|
|
|
186
194
|
operatingSystem: "operating_system",
|
|
187
195
|
userData: "user_data",
|
|
188
196
|
marketplaceApp: "marketplace_app",
|
|
197
|
+
applyNetworkOnBoot: "apply_network_on_boot",
|
|
189
198
|
});
|
|
190
199
|
});
|
|
191
200
|
|