From 339ea3192b86dfcbbf3b4f511ff36d67539d267a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 24 May 2019 15:07:16 -0700 Subject: [PATCH 1/2] Generated from 3146578c10bbed0127fbf3e4772c978a5d831822 (#4868) Fix limit and currentValue properties Types need to be long since they can have 64-bit values. --- services/cosmos-db/mgmt/2015-04-08/documentdb/models.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go index 1dc9ff610b1d..f754dc43430d 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go @@ -2918,9 +2918,9 @@ type PartitionUsage struct { // QuotaPeriod - READ-ONLY; The quota period used to summarize the usage values. QuotaPeriod *string `json:"quotaPeriod,omitempty"` // Limit - READ-ONLY; Maximum value for this metric - Limit *int32 `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` // CurrentValue - READ-ONLY; Current value for this metric - CurrentValue *int32 `json:"currentValue,omitempty"` + CurrentValue *int64 `json:"currentValue,omitempty"` } // PartitionUsagesResult the response to a list partition level usage request. @@ -3607,9 +3607,9 @@ type Usage struct { // QuotaPeriod - READ-ONLY; The quota period used to summarize the usage values. QuotaPeriod *string `json:"quotaPeriod,omitempty"` // Limit - READ-ONLY; Maximum value for this metric - Limit *int32 `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` // CurrentValue - READ-ONLY; Current value for this metric - CurrentValue *int32 `json:"currentValue,omitempty"` + CurrentValue *int64 `json:"currentValue,omitempty"` } // UsagesResult the response to a list usage request. From 279777b5c4817d4973819fe5b58da762f17a2000 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 29 May 2019 12:47:49 -0700 Subject: [PATCH 2/2] Generated from 41c0c7e343b202dccd533178235425eef5b2703e (#4895) added optional flag to indicate if location is an availability zone --- services/cosmos-db/mgmt/2015-04-08/documentdb/models.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go b/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go index f754dc43430d..7bce427fd45a 100644 --- a/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go +++ b/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go @@ -2214,6 +2214,8 @@ type Location struct { ProvisioningState *string `json:"provisioningState,omitempty"` // FailoverPriority - The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. FailoverPriority *int32 `json:"failoverPriority,omitempty"` + // IsZoneRedundant - Flag to indicate whether or not this region is an AvailabilityZone region + IsZoneRedundant *bool `json:"isZoneRedundant,omitempty"` } // Metric metric data