-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Resource: azurerm_site_recovery_hyperv_replicated_vm
#20838
New Resource: azurerm_site_recovery_hyperv_replicated_vm
#20838
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @ziyeqf
Taking a look through here there appears to be an issue which needs to be fixed in hashicorp/go-azure-sdk
, rather than necessarily needing fixing in the Swagger - can you please open an issue there so that we can dig into this?
Thanks!
// TODO 4.0: check if this is could be removed | ||
// workaround for https://github.com/Azure/azure-rest-api-specs/issues/22947 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an issue on hashicorp/go-azure-sdk
to track this? We can likely workaround this there
package azuresdkhacks | ||
|
||
type DisableProtectionInput struct { | ||
Properties EmptyInput `json:"properties"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the model here, since ReplicationProviderInput
is a Discriminated Type that's Optional, as such this:
package main
import (
"encoding/json"
"log"
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotecteditems"
)
func main() {
foo := replicationprotecteditems.DisableProtectionInput{}
out, err := json.Marshal(foo)
if err != nil {
log.Fatalf("error: %+v", err)
}
log.Printf("JSON: %s", out)
}
Should output:
JSON: {"properties":{}}
But actually outputs:
JSON: {"properties":{"replicationProviderInput":null}}
As such this looks to be something we can workaround in hashicorp/go-azure-sdk
- can you open an issue about this, with the full HTTP Requests/Responses so that we can diagnose this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here you go: hashicorp/go-azure-sdk#387
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just want to confirm if we need to wait for the go-azure-sdk
workaround to merge this PR?
Signed-off-by: ziyeqf <[email protected]>
097056e
to
c96e43b
Compare
Signed-off-by: ziyeqf <[email protected]>
Signed-off-by: ziyeqf <[email protected]>
Signed-off-by: ziyeqf <[email protected]>
hey @ziyeqf Apologies for the delayed response here. Taking a look through since this continues to be blocked by this issue in Thanks! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
test