-
Notifications
You must be signed in to change notification settings - Fork 35
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
files: DeleteV2 method isn't working #22
Comments
Looking at the code I see // DeleteResult : has no documentation (yet)
type DeleteResult struct {
FileOpsResult
// Metadata : Metadata of the deleted object.
Metadata IsMetadata `json:"metadata"`
}
// IsMetadata is the interface type for Metadata and its subtypes
type IsMetadata interface {
IsMetadata()
} I don't think it is possible to unmarshal into an interface type. Here is an example modified from the json docs. This probably needs to be done differently with a |
@ncw hmm, the generator probably needs to be tweaked. I'll take a look later today. And yep, as you noted, |
Alright, I know the problem. I might push a hacky fix first, and generalize later. Are you blocked on this @ncw ? |
I can't update the library as the depreciation warnings make too much noise in my logs without changing the Delete to DeleteV2. I have a vendored working copy though so take your time! I noticed in my investigations that IsMetadataFromJSON isn't being called at all at the moment. |
I can confirm that this works fine now - thanks :-) |
When I tried the DeleteV2 method I get this error
The HTTP transaction looks like this
request
response
The verbose logging from the SDK looks like this
The text was updated successfully, but these errors were encountered: