feat(provider): регистрация ресурсов-модификаторов vc_org_ip_allocation и vc_nsxt_snat

This commit is contained in:
Repinoid
2026-09-24 10:22:17 +03:00
parent 80d82a145a
commit 73a7459a38
+5
View File
@@ -182,6 +182,11 @@ func (p *NubesProvider) Configure(ctx context.Context, req provider.ConfigureReq
func (p *NubesProvider) Resources(ctx context.Context) []func() resource.Resource {
resources := resources_gen.AllResources()
resources = append(resources, resources_core.NewServiceOperationResource)
// Ресурсы-модификаторы для операций, которых нет в create-схеме ресурсов-инстансов.
// Организация и шлюз создаются вручную в ЛК (docs/TODO/what_not_in_terraform.md),
// поэтому адресуются по uid, а не ссылкой на ресурс.
resources = append(resources, resources_core.NewOrgIpAllocationResource)
resources = append(resources, resources_core.NewNsxtSnatResource)
return resources
}