Skip to content

Commit 0136d35

Browse files
committed
fix: commenting out regionID as present in swagger but not actually populated by API
1 parent cff47a3 commit 0136d35

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

service/subscriptions/model.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,16 +278,16 @@ type listSubscriptionResponse struct {
278278
Subscriptions []*Subscription `json:"subscriptions"`
279279
}
280280

281-
type ListSubscriptionRegionsResponse struct {
281+
type ListAASubscriptionRegionsResponse struct {
282282
SubscriptionId *int `json:"subscriptionId,omitempty"`
283283
Regions []*ActiveActiveRegion `json:"regions"`
284284
}
285285

286286
// have to redeclare these here (copied from regions model) to avoid an import cycle
287287
type ActiveActiveRegion struct {
288-
RegionId *int `json:"regionId,omitempty"`
288+
//RegionId *int `json:"regionId,omitempty"` // not populated by the API
289289
Region *string `json:"region,omitempty"`
290-
DeploymentCIDR *string `json:"deploymentCIDR,omitempty"`
290+
DeploymentCIDR *string `json:"deploymentCidr,omitempty"`
291291
VpcId *string `json:"vpcId,omitempty"`
292292
Databases []ActiveActiveDatabase `json:"databases,omitempty"`
293293
}

service/subscriptions/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func (a *API) DeleteActiveActiveVPCPeering(ctx context.Context, subscription int
239239
}
240240

241241
func (a *API) ListActiveActiveRegions(ctx context.Context, subscription int) ([]*ActiveActiveRegion, error) {
242-
var response ListSubscriptionRegionsResponse
242+
var response ListAASubscriptionRegionsResponse
243243
err := a.client.Get(ctx, "list regions", fmt.Sprintf("/subscriptions/%d/regions", subscription), &response)
244244

245245
if err != nil {

0 commit comments

Comments
 (0)