|
26 | 26 | ListPrivateNetworksResponse, |
27 | 27 | ListSubnetsResponse, |
28 | 28 | ListVPCsResponse, |
29 | | - MigrateZonalPrivateNetworksRequest, |
30 | 29 | PrivateNetwork, |
31 | 30 | Route, |
32 | 31 | SetSubnetsRequest, |
|
52 | 51 | marshal_CreateRouteRequest, |
53 | 52 | marshal_CreateVPCRequest, |
54 | 53 | marshal_DeleteSubnetsRequest, |
55 | | - marshal_MigrateZonalPrivateNetworksRequest, |
56 | 54 | marshal_SetSubnetsRequest, |
57 | 55 | marshal_UpdatePrivateNetworkRequest, |
58 | 56 | marshal_UpdateRouteRequest, |
@@ -626,50 +624,6 @@ async def delete_private_network( |
626 | 624 |
|
627 | 625 | self._throw_on_error(res) |
628 | 626 |
|
629 | | - async def migrate_zonal_private_networks( |
630 | | - self, |
631 | | - *, |
632 | | - region: Optional[ScwRegion] = None, |
633 | | - organization_id: Optional[str] = None, |
634 | | - project_id: Optional[str] = None, |
635 | | - private_network_ids: Optional[List[str]] = None, |
636 | | - ) -> None: |
637 | | - """ |
638 | | - Migrate Private Networks from zoned to regional. |
639 | | - Transform multiple existing zoned Private Networks (scoped to a single Availability Zone) into regional Private Networks, scoped to an entire region. You can transform one or many Private Networks (specified by their Private Network IDs) within a single Scaleway Organization or Project, with the same call. |
640 | | - :param region: Region to target. If none is passed will use default region from the config. |
641 | | - :param organization_id: Organization ID to target. The specified zoned Private Networks within this Organization will be migrated to regional. |
642 | | - One-Of ('scope'): at most one of 'organization_id', 'project_id' could be set. |
643 | | - :param project_id: Project to target. The specified zoned Private Networks within this Project will be migrated to regional. |
644 | | - One-Of ('scope'): at most one of 'organization_id', 'project_id' could be set. |
645 | | - :param private_network_ids: IDs of the Private Networks to migrate. |
646 | | -
|
647 | | - Usage: |
648 | | - :: |
649 | | -
|
650 | | - result = await api.migrate_zonal_private_networks() |
651 | | - """ |
652 | | - |
653 | | - param_region = validate_path_param( |
654 | | - "region", region or self.client.default_region |
655 | | - ) |
656 | | - |
657 | | - res = self._request( |
658 | | - "POST", |
659 | | - f"/vpc/v2/regions/{param_region}/private-networks/migrate-zonal", |
660 | | - body=marshal_MigrateZonalPrivateNetworksRequest( |
661 | | - MigrateZonalPrivateNetworksRequest( |
662 | | - region=region, |
663 | | - private_network_ids=private_network_ids, |
664 | | - organization_id=organization_id, |
665 | | - project_id=project_id, |
666 | | - ), |
667 | | - self.client, |
668 | | - ), |
669 | | - ) |
670 | | - |
671 | | - self._throw_on_error(res) |
672 | | - |
673 | 627 | async def enable_dhcp( |
674 | 628 | self, |
675 | 629 | *, |
|
0 commit comments