vmware / vsphere-automation-sdk-go

Go programming language SDK (Beta) for VMC. NSX-T and vSphere services will be added soon.
Other
32 stars 23 forks source link

NSXT model LBRule struct type inconsistency #5

Open martinrohrbach opened 3 years ago

martinrohrbach commented 3 years ago

I am trying to use the framework to create an NSXT loadbalancer virtual server in the policy api with some http rewrite rules.

It is my understanding that the latter uses the LBRule type in services/nsxt/model/ModelPackageTypes.go and there are also proper types defined for the Actions (LBRuleAction) and match conditions (LBRuleCondition). However, the LBRule struct type expects the []data.StructValue type for Actions and MatchConditions rather than []LBRuleAction and []*LBRuleCondition respectively.

Unless I'm missing somethign obvious this looks like an inconsistency that should be fixed to me. I'm also not sure if this part is auto-generated and needs to be fixed upsrteam somewhere else maybe?