Open ziyeqf opened 1 year ago
@tombuildsstuff we need DisableProtectionProviderSpecificInput
struct but we only have an interface. It seems a little wired to me accroding to the swagger, but the API only accept requests with that.
like the line4044@azure-sdk-for-go
@ziyeqf DisableProtectionProviderSpecificInput
isn't a valid discriminator type, a Discriminator must have two things:
discriminator
fieldallOf
) with a x-ms-discriminator-value
(for example InMageDisableProtectionProviderSpecificInput
: https://github.com/Azure/azure-rest-api-specs/blob/2278f5552561a7959a49a1e38cb7ddbb349d1589/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/service.json#LL14536)Since DisableProtectionProviderSpecificInput
is the Parent Type there isn't a discriminator for it.. could you highlight where this is being used?
@tombuildsstuff I get the point. The usage is https://github.com/hashicorp/terraform-provider-azurerm/blob/main/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go#L621
@ziyeqf sent a PR to introduce a base type to fix this: https://github.com/Azure/azure-rest-api-specs/pull/21652
in the swagger there is a model named
DisableProtectionProviderSpecificInput
. but generated sdk only containsInMageDisableProtectionProviderSpecificInput
.