.../services/compute/mgmt/2018-06-01/computegithub.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-07-01/compute/computeapimaster, latest, 18.1.0v34.2.0s.Client.ListComplete undefined (type "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-07-01/compute/computeapi".ResourceSkusClientAPI has no field or method ListComplete)Would like to be able to add the ListComplete ResourceSkusClient func https://github.com/Azure/azure-sdk-for-go/blob/master/services/compute/mgmt/2019-07-01/compute/resourceskus.go#L143 to the ResourceSkusClientAPI https://github.com/Azure/azure-sdk-for-go/blob/master/services/compute/mgmt/2019-07-01/compute/computeapi/interfaces.go#L261
I would love to contribute this if it's something that can be fixed but the interfaces.go file is autogenerated so I'm not sure if it's something that I can add and if so how.
Hi @CecileRobertMichon thanks for opening this issue!
The XXXAPI interface is designed to correspond to every method defined in swagger (in your case, is this swagger). In the swagger definition, ResourceSkus only possesses one method - List. The ListComplete is added by the code generator to make SDK more user friendly. Therefore the ResourceSkusAPI will not contain the ListComplete method.
Hi @jhendrixMSFT do you want to share a thought about this issue?
Hi @ArcturusZhang and @jhendrixMSFT, I think the omission of ListComplete was probably an oversight when enumeration / paging was implemented. The interface should probably included this to provide a more accurate representation of the struct.
@devigned is correct, it was an oversight when the mock interface was added to the code generator. I'll get this fixed.
Closed since this has been fixed in autorest.go v2.1.140
Most helpful comment
@devigned is correct, it was an oversight when the mock interface was added to the code generator. I'll get this fixed.