@@ -10,6 +10,7 @@ import type { Zone } from '../../../bridge'
1010import {
1111 marshalApplyBlockMigrationRequest ,
1212 marshalAttachServerVolumeRequest ,
13+ marshalCheckBlockMigrationOrganizationQuotasRequest ,
1314 marshalCreateImageRequest ,
1415 marshalCreateIpRequest ,
1516 marshalCreatePlacementGroupRequest ,
@@ -103,6 +104,7 @@ import type {
103104 ApplyBlockMigrationRequest ,
104105 AttachServerVolumeRequest ,
105106 AttachServerVolumeResponse ,
107+ CheckBlockMigrationOrganizationQuotasRequest ,
106108 CreateImageRequest ,
107109 CreateImageResponse ,
108110 CreateIpRequest ,
@@ -1588,4 +1590,19 @@ export class API extends ParentAPI {
15881590 method : 'POST' ,
15891591 path : `/instance/v1/zones/${ validatePathParam ( 'zone' , request . zone ?? this . client . settings . defaultZone ) } /block-migration/apply` ,
15901592 } )
1593+
1594+ checkBlockMigrationOrganizationQuotas = (
1595+ request : Readonly < CheckBlockMigrationOrganizationQuotasRequest > = { } ,
1596+ ) =>
1597+ this . client . fetch < void > ( {
1598+ body : JSON . stringify (
1599+ marshalCheckBlockMigrationOrganizationQuotasRequest (
1600+ request ,
1601+ this . client . settings ,
1602+ ) ,
1603+ ) ,
1604+ headers : jsonContentHeaders ,
1605+ method : 'POST' ,
1606+ path : `/instance/v1/zones/${ validatePathParam ( 'zone' , request . zone ?? this . client . settings . defaultZone ) } /block-migration/check-organization-quotas` ,
1607+ } )
15911608}
0 commit comments