@@ -16,7 +16,7 @@ import {
1616 RPN_V2_GROUP_TRANSIENT_STATUSES as RPN_V2_GROUP_TRANSIENT_STATUSES_DEDIBOX ,
1717 SERVER_INSTALL_TRANSIENT_STATUSES as SERVER_INSTALL_TRANSIENT_STATUSES_DEDIBOX ,
1818 SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_DEDIBOX ,
19- } from './content.gen'
19+ } from './content.gen.js '
2020import {
2121 marshalAttachFailoverIPsRequest ,
2222 marshalAttachFailoverIPToMacAddressRequest ,
@@ -65,6 +65,7 @@ import {
6565 unmarshalListFailoverIPsResponse ,
6666 unmarshalListInvoicesResponse ,
6767 unmarshalListIPv6BlockSubnetsAvailableResponse ,
68+ unmarshalListIPv6BlocksResponse ,
6869 unmarshalListIpsResponse ,
6970 unmarshalListOffersResponse ,
7071 unmarshalListOSResponse ,
@@ -98,7 +99,7 @@ import {
9899 unmarshalServerInstall ,
99100 unmarshalService ,
100101 unmarshalSubscribeStorageOptionsResponse ,
101- } from './marshalling.gen'
102+ } from './marshalling.gen.js '
102103import type {
103104 AttachFailoverIPsRequest ,
104105 AttachFailoverIPToMacAddressRequest ,
@@ -148,11 +149,13 @@ import type {
148149 IPv6BlockApiGetIPv6BlockQuotasRequest ,
149150 IPv6BlockApiGetIPv6BlockRequest ,
150151 IPv6BlockApiListIPv6BlockSubnetsAvailableRequest ,
152+ IPv6BlockApiListIPv6BlocksRequest ,
151153 IPv6BlockApiUpdateIPv6BlockRequest ,
152154 ListFailoverIPsRequest ,
153155 ListFailoverIPsResponse ,
154156 ListInvoicesResponse ,
155157 ListIPv6BlockSubnetsAvailableResponse ,
158+ ListIPv6BlocksResponse ,
156159 ListIpsResponse ,
157160 ListOffersRequest ,
158161 ListOffersResponse ,
@@ -245,7 +248,7 @@ import type {
245248 UpdateServerBackupRequest ,
246249 UpdateServerRequest ,
247250 UpdateServerTagsRequest ,
248- } from './types.gen'
251+ } from './types.gen.js '
249252
250253const jsonContentHeaders = {
251254 'Content-Type' : 'application/json; charset=utf-8' ,
@@ -1315,7 +1318,25 @@ export class IPv6BlockAPI extends ParentAPI {
13151318 )
13161319
13171320 /**
1318- * Get a specific IPv6 block. Get the IPv6 block associated with the given ID.
1321+ * List IPv6 blocks. List IPv6 blocks associated given project ID.
1322+ *
1323+ * @param request - The request {@link IPv6BlockApiListIPv6BlocksRequest}
1324+ * @returns A Promise of ListIPv6BlocksResponse
1325+ */
1326+ listIPv6Blocks = (
1327+ request : Readonly < IPv6BlockApiListIPv6BlocksRequest > = { } ,
1328+ ) =>
1329+ this . client . fetch < ListIPv6BlocksResponse > (
1330+ {
1331+ method : 'GET' ,
1332+ path : `/dedibox/v1/ipv6-blocks` ,
1333+ urlParams : urlParams ( [ 'project_id' , request . projectId ] ) ,
1334+ } ,
1335+ unmarshalListIPv6BlocksResponse ,
1336+ )
1337+
1338+ /**
1339+ * Get first IPv6 block. Get the first IPv6 block associated with the given project ID.
13191340 *
13201341 * @param request - The request {@link IPv6BlockApiGetIPv6BlockRequest}
13211342 * @returns A Promise of IPv6Block
0 commit comments