|
46 | 46 | AttachServerVolumeRequest, |
47 | 47 | AttachServerVolumeResponse, |
48 | 48 | Bootscript, |
| 49 | + CheckBlockMigrationOrganizationQuotasRequest, |
49 | 50 | CreateImageRequest, |
50 | 51 | CreateImageResponse, |
51 | 52 | CreateIpRequest, |
|
207 | 208 | unmarshal__SetSnapshotResponse, |
208 | 209 | marshal_ApplyBlockMigrationRequest, |
209 | 210 | marshal_AttachServerVolumeRequest, |
| 211 | + marshal_CheckBlockMigrationOrganizationQuotasRequest, |
210 | 212 | marshal_CreateImageRequest, |
211 | 213 | marshal_CreateIpRequest, |
212 | 214 | marshal_CreatePlacementGroupRequest, |
@@ -4052,3 +4054,35 @@ async def apply_block_migration( |
4052 | 4054 | ) |
4053 | 4055 |
|
4054 | 4056 | self._throw_on_error(res) |
| 4057 | + |
| 4058 | + async def check_block_migration_organization_quotas( |
| 4059 | + self, |
| 4060 | + *, |
| 4061 | + zone: Optional[Zone] = None, |
| 4062 | + organization: Optional[str] = None, |
| 4063 | + ) -> None: |
| 4064 | + """ |
| 4065 | + :param zone: Zone to target. If none is passed will use default zone from the config. |
| 4066 | + :param organization: |
| 4067 | +
|
| 4068 | + Usage: |
| 4069 | + :: |
| 4070 | +
|
| 4071 | + result = await api.check_block_migration_organization_quotas() |
| 4072 | + """ |
| 4073 | + |
| 4074 | + param_zone = validate_path_param("zone", zone or self.client.default_zone) |
| 4075 | + |
| 4076 | + res = self._request( |
| 4077 | + "POST", |
| 4078 | + f"/instance/v1/zones/{param_zone}/block-migration/check-organization-quotas", |
| 4079 | + body=marshal_CheckBlockMigrationOrganizationQuotasRequest( |
| 4080 | + CheckBlockMigrationOrganizationQuotasRequest( |
| 4081 | + zone=zone, |
| 4082 | + organization=organization, |
| 4083 | + ), |
| 4084 | + self.client, |
| 4085 | + ), |
| 4086 | + ) |
| 4087 | + |
| 4088 | + self._throw_on_error(res) |
0 commit comments