diff --git a/services/cosmos-db/mgmt/2019-12-12/documentdb/cassandraresources.go b/services/cosmos-db/mgmt/2019-12-12/documentdb/cassandraresources.go index 55cd6f056f97..221ff07bf20f 100644 --- a/services/cosmos-db/mgmt/2019-12-12/documentdb/cassandraresources.go +++ b/services/cosmos-db/mgmt/2019-12-12/documentdb/cassandraresources.go @@ -998,8 +998,8 @@ func (client CassandraResourcesClient) UpdateCassandraKeyspaceThroughput(ctx con {TargetValue: updateThroughputParameters, Constraints: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, }}, }}}}}); err != nil { return result, validation.NewError("documentdb.CassandraResourcesClient", "UpdateCassandraKeyspaceThroughput", err.Error()) @@ -1100,8 +1100,8 @@ func (client CassandraResourcesClient) UpdateCassandraTableThroughput(ctx contex {TargetValue: updateThroughputParameters, Constraints: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, }}, }}}}}); err != nil { return result, validation.NewError("documentdb.CassandraResourcesClient", "UpdateCassandraTableThroughput", err.Error()) diff --git a/services/cosmos-db/mgmt/2019-12-12/documentdb/gremlinresources.go b/services/cosmos-db/mgmt/2019-12-12/documentdb/gremlinresources.go index fafdb2d1cbed..3b3afd437ae6 100644 --- a/services/cosmos-db/mgmt/2019-12-12/documentdb/gremlinresources.go +++ b/services/cosmos-db/mgmt/2019-12-12/documentdb/gremlinresources.go @@ -1005,8 +1005,8 @@ func (client GremlinResourcesClient) UpdateGremlinDatabaseThroughput(ctx context {TargetValue: updateThroughputParameters, Constraints: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, }}, }}}}}); err != nil { return result, validation.NewError("documentdb.GremlinResourcesClient", "UpdateGremlinDatabaseThroughput", err.Error()) @@ -1106,8 +1106,8 @@ func (client GremlinResourcesClient) UpdateGremlinGraphThroughput(ctx context.Co {TargetValue: updateThroughputParameters, Constraints: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, }}, }}}}}); err != nil { return result, validation.NewError("documentdb.GremlinResourcesClient", "UpdateGremlinGraphThroughput", err.Error()) diff --git a/services/cosmos-db/mgmt/2019-12-12/documentdb/models.go b/services/cosmos-db/mgmt/2019-12-12/documentdb/models.go index 1de0c8412d9d..16157d6ffebf 100644 --- a/services/cosmos-db/mgmt/2019-12-12/documentdb/models.go +++ b/services/cosmos-db/mgmt/2019-12-12/documentdb/models.go @@ -355,16 +355,6 @@ func (arp ARMResourceProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AutopilotSettingsResource cosmos DB autopilot settings object -type AutopilotSettingsResource struct { - // MaxThroughput - Represents max throughput an autopilot container can operate at. - MaxThroughput *int32 `json:"maxThroughput,omitempty"` - // AutoUpgradePolicy - Cosmos DB resource auto-upgrade policy - AutoUpgradePolicy *AutoUpgradePolicyResource `json:"autoUpgradePolicy,omitempty"` - // TargetMaxThroughput - READ-ONLY; Represents target max throughput an autopilot container should operate at once offer is no longer in pending state. - TargetMaxThroughput *int32 `json:"targetMaxThroughput,omitempty"` -} - // AutoUpgradePolicyResource cosmos DB resource auto-upgrade policy type AutoUpgradePolicyResource struct { // ThroughputPolicy - Represents throughput policy which service must adhere to for auto-upgrade @@ -3813,6 +3803,16 @@ type PrivateLinkServiceConnectionStateProperty struct { ActionsRequired *string `json:"actionsRequired,omitempty"` } +// ProvisionedThroughputSettingsResource cosmos DB provisioned throughput settings object +type ProvisionedThroughputSettingsResource struct { + // MaxThroughput - Represents maximum throughput container can scale up to. + MaxThroughput *int32 `json:"maxThroughput,omitempty"` + // AutoUpgradePolicy - Cosmos DB resource auto-upgrade policy + AutoUpgradePolicy *AutoUpgradePolicyResource `json:"autoUpgradePolicy,omitempty"` + // TargetMaxThroughput - READ-ONLY; Represents target maximum throughput container can scale up to once offer is no longer in pending state. + TargetMaxThroughput *int32 `json:"targetMaxThroughput,omitempty"` +} + // ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than // required location and tags type ProxyResource struct { @@ -5733,10 +5733,10 @@ type ThroughputSettingsGetProperties struct { // ThroughputSettingsGetPropertiesResource ... type ThroughputSettingsGetPropertiesResource struct { - // Throughput - Value of the Cosmos DB resource throughput. Either throughput is required or autopilotSettings is required, but not both. + // Throughput - Value of the Cosmos DB resource throughput. Either throughput is required or provisionedThroughputSettings is required, but not both. Throughput *int32 `json:"throughput,omitempty"` - // AutopilotSettings - Cosmos DB resource for Autopilot settings. Either throughput is required or autopilotSettings is required, but not both. - AutopilotSettings *AutopilotSettingsResource `json:"autopilotSettings,omitempty"` + // ProvisionedThroughputSettings - Cosmos DB resource for provisioned throughput settings. Either throughput is required or provisionedThroughputSettings is required, but not both. + ProvisionedThroughputSettings *ProvisionedThroughputSettingsResource `json:"provisionedThroughputSettings,omitempty"` // MinimumThroughput - READ-ONLY; The minimum throughput of the resource MinimumThroughput *string `json:"minimumThroughput,omitempty"` // OfferReplacePending - READ-ONLY; The throughput replace is pending @@ -5850,12 +5850,12 @@ func (tsgr *ThroughputSettingsGetResults) UnmarshalJSON(body []byte) error { } // ThroughputSettingsResource cosmos DB resource throughput object. Either throughput is required or -// autopilotSettings is required, but not both. +// provisionedThroughputSettings is required, but not both. type ThroughputSettingsResource struct { - // Throughput - Value of the Cosmos DB resource throughput. Either throughput is required or autopilotSettings is required, but not both. + // Throughput - Value of the Cosmos DB resource throughput. Either throughput is required or provisionedThroughputSettings is required, but not both. Throughput *int32 `json:"throughput,omitempty"` - // AutopilotSettings - Cosmos DB resource for Autopilot settings. Either throughput is required or autopilotSettings is required, but not both. - AutopilotSettings *AutopilotSettingsResource `json:"autopilotSettings,omitempty"` + // ProvisionedThroughputSettings - Cosmos DB resource for provisioned throughput settings. Either throughput is required or provisionedThroughputSettings is required, but not both. + ProvisionedThroughputSettings *ProvisionedThroughputSettingsResource `json:"provisionedThroughputSettings,omitempty"` // MinimumThroughput - READ-ONLY; The minimum throughput of the resource MinimumThroughput *string `json:"minimumThroughput,omitempty"` // OfferReplacePending - READ-ONLY; The throughput replace is pending diff --git a/services/cosmos-db/mgmt/2019-12-12/documentdb/mongodbresources.go b/services/cosmos-db/mgmt/2019-12-12/documentdb/mongodbresources.go index 8eb2f7ae9182..3c5a8f75da1a 100644 --- a/services/cosmos-db/mgmt/2019-12-12/documentdb/mongodbresources.go +++ b/services/cosmos-db/mgmt/2019-12-12/documentdb/mongodbresources.go @@ -999,8 +999,8 @@ func (client MongoDBResourcesClient) UpdateMongoDBCollectionThroughput(ctx conte {TargetValue: updateThroughputParameters, Constraints: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, }}, }}}}}); err != nil { return result, validation.NewError("documentdb.MongoDBResourcesClient", "UpdateMongoDBCollectionThroughput", err.Error()) @@ -1101,8 +1101,8 @@ func (client MongoDBResourcesClient) UpdateMongoDBDatabaseThroughput(ctx context {TargetValue: updateThroughputParameters, Constraints: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, }}, }}}}}); err != nil { return result, validation.NewError("documentdb.MongoDBResourcesClient", "UpdateMongoDBDatabaseThroughput", err.Error()) diff --git a/services/cosmos-db/mgmt/2019-12-12/documentdb/sqlresources.go b/services/cosmos-db/mgmt/2019-12-12/documentdb/sqlresources.go index 85d3f46515a2..18df693fedb2 100644 --- a/services/cosmos-db/mgmt/2019-12-12/documentdb/sqlresources.go +++ b/services/cosmos-db/mgmt/2019-12-12/documentdb/sqlresources.go @@ -2150,8 +2150,8 @@ func (client SQLResourcesClient) UpdateSQLContainerThroughput(ctx context.Contex {TargetValue: updateThroughputParameters, Constraints: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, }}, }}}}}); err != nil { return result, validation.NewError("documentdb.SQLResourcesClient", "UpdateSQLContainerThroughput", err.Error()) @@ -2251,8 +2251,8 @@ func (client SQLResourcesClient) UpdateSQLDatabaseThroughput(ctx context.Context {TargetValue: updateThroughputParameters, Constraints: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, }}, }}}}}); err != nil { return result, validation.NewError("documentdb.SQLResourcesClient", "UpdateSQLDatabaseThroughput", err.Error()) diff --git a/services/cosmos-db/mgmt/2019-12-12/documentdb/tableresources.go b/services/cosmos-db/mgmt/2019-12-12/documentdb/tableresources.go index cbf6c04de8bd..53afdd32036f 100644 --- a/services/cosmos-db/mgmt/2019-12-12/documentdb/tableresources.go +++ b/services/cosmos-db/mgmt/2019-12-12/documentdb/tableresources.go @@ -528,8 +528,8 @@ func (client TableResourcesClient) UpdateTableThroughput(ctx context.Context, re {TargetValue: updateThroughputParameters, Constraints: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.AutopilotSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "updateThroughputParameters.ThroughputSettingsUpdateProperties.Resource.ProvisionedThroughputSettings.MaxThroughput", Name: validation.Null, Rule: true, Chain: nil}}}, }}, }}}}}); err != nil { return result, validation.NewError("documentdb.TableResourcesClient", "UpdateTableThroughput", err.Error())