vmware / vsphere-automation-sdk-go

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

Tier-1s, GW QoS Profile deprecated field #6

Open romanovna opened 3 years ago

romanovna commented 3 years ago

Found an issue when I'm trying to create GW QoS profile using this sdk agains NSXT 3.1.2.1.0. Since there're multiple fields: committed_bandwidth & committed_bandwitdth (the last one is deprecated), so I create object like this one:

obj := model.GatewayQosProfile{
            CommittedBandwitdth: proto.Int64(v.bw),
            BurstSize:           proto.Int64(v.burst),
        }

But, NSXT respond me with message like this:

Failed to create GW QoS profile 100Mbps: Both new and deprecated properties are specified for committed_bandwidth in /infra/gateway-qos-profiles/<NAME>

Is there any chance to be updated, to support both deprecated and new fields ?