Skip to content

Commit

Permalink
swagger changes for capacityMode changes (#28457)
Browse files Browse the repository at this point in the history
* swagger changes for capacityMode changes

* Ran the npx Prettier command

* fixing swagger lint

* fixing camelcase issue
  • Loading branch information
chandugunturi authored Apr 15, 2024
1 parent 1f7d467 commit e5658f3
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8560,6 +8560,16 @@
"type": "object",
"$ref": "#/definitions/Capacity"
},
"capacityMode": {
"description": "Indicates the capacityMode of the Cosmos DB account.",
"type": "string",
"$ref": "#/definitions/CapacityMode"
},
"capacityModeChangeTransitionState": {
"description": "The object that represents the migration state for the CapacityMode of the Cosmos DB account.",
"type": "object",
"$ref": "#/definitions/CapacityModeChangeTransitionState"
},
"enableMaterializedViews": {
"description": "Flag to indicate whether to enable MaterializedViews on the Cosmos DB account",
"type": "boolean"
Expand Down Expand Up @@ -8740,6 +8750,11 @@
"type": "object",
"$ref": "#/definitions/Capacity"
},
"capacityMode": {
"description": "Indicates the capacityMode of the Cosmos DB account.",
"type": "string",
"$ref": "#/definitions/CapacityMode"
},
"enableMaterializedViews": {
"description": "Flag to indicate whether to enable MaterializedViews on the Cosmos DB account",
"type": "boolean"
Expand Down Expand Up @@ -8944,6 +8959,11 @@
"type": "object",
"$ref": "#/definitions/Capacity"
},
"capacityMode": {
"description": "Indicates the capacityMode of the Cosmos DB account.",
"type": "string",
"$ref": "#/definitions/CapacityMode"
},
"enableMaterializedViews": {
"description": "Flag to indicate whether to enable MaterializedViews on the Cosmos DB account",
"type": "boolean"
Expand Down Expand Up @@ -10904,6 +10924,84 @@
}
}
},
"CapacityMode": {
"description": "Indicates the capacity mode of the account.",
"type": "string",
"enum": [
"None",
"Provisioned",
"Serverless"
],
"x-ms-enum": {
"name": "CapacityMode",
"modelAsString": true
}
},
"CapacityModeChangeTransitionState": {
"description": "The transition state information related capacity mode change with update request.",
"type": "object",
"properties": {
"capacityModeTransitionStatus": {
"type": "string",
"description": "The transition status of capacity mode.",
"enum": [
"Invalid",
"Initialized",
"InProgress",
"Completed",
"Failed"
],
"x-ms-enum": {
"name": "CapacityModeTransitionStatus",
"modelAsString": true
}
},
"currentCapacityMode": {
"description": "Indicates the current capacity mode of the account.",
"type": "string",
"enum": [
"None",
"Provisioned",
"Serverless"
],
"x-ms-enum": {
"name": "CapacityMode",
"modelAsString": true
}
},
"previousCapacityMode": {
"description": "Indicates the previous capacity mode of the account before successful transition.",
"type": "string",
"enum": [
"None",
"Provisioned",
"Serverless"
],
"x-ms-enum": {
"name": "CapacityMode",
"modelAsString": true
}
},
"capacityModeTransitionBeginTimestamp": {
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "Begin time in UTC of the capacity mode change."
},
"capacityModeTransitionEndTimestamp": {
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "End time in UTC of the capacity mode change."
},
"capacityModeLastSuccessfulTransitionEndTimestamp": {
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "End time in UTC of the last successful capacity mode change."
}
}
},
"Tags": {
"type": "object",
"additionalProperties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"capacity": {
"totalThroughputLimit": 2000
},
"capacityMode": "Provisioned",
"enableMaterializedViews": false,
"enableBurstCapacity": true,
"minimalTlsVersion": "Tls12",
Expand Down Expand Up @@ -218,6 +219,7 @@
"capacity": {
"totalThroughputLimit": 2000
},
"capacityMode": "Provisioned",
"enableMaterializedViews": false,
"enableBurstCapacity": true,
"minimalTlsVersion": "Tls12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"backupStorageRedundancy": "Geo"
}
},
"capacityMode": "Provisioned",
"enableMaterializedViews": false,
"minimalTlsVersion": "Tls",
"keysMetadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@
"diagnosticLogSettings": {
"enableFullTextQuery": "False"
},
"capacityMode": "Provisioned",
"capacityModeChangeTransitionState": {
"capacityModeTransitionBeginTimestamp": "2024-03-24T03:02:16.2747253Z",
"capacityModeTransitionStatus": "Completed",
"capacityModeLastSuccessfulTransitionEndTimestamp": "2024-03-24T03:02:18.8758329Z",
"capacityModeTransitionEndTimestamp": "2024-03-24T03:02:18.8758329Z",
"currentCapacityMode": "Provisioned",
"previousCapacityMode": "Serverless"
},
"enableMaterializedViews": false,
"keysMetadata": {
"primaryMasterKey": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@
"enablePartitionMerge": true,
"enableBurstCapacity": true,
"minimalTlsVersion": "Tls",
"capacityMode": "Provisioned",
"capacityModeChangeTransitionState": {
"capacityModeTransitionBeginTimestamp": "2024-03-24T03:02:16.2747253Z",
"capacityModeTransitionStatus": "Completed",
"capacityModeLastSuccessfulTransitionEndTimestamp": "2024-03-24T03:02:18.8758329Z",
"capacityModeTransitionEndTimestamp": "2024-03-24T03:02:18.8758329Z",
"currentCapacityMode": "Provisioned",
"previousCapacityMode": "Serverless"
},
"enableMaterializedViews": false,
"keysMetadata": {
"primaryMasterKey": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@
},
"networkAclBypass": "None",
"networkAclBypassResourceIds": [],
"capacityMode": "Provisioned",
"capacityModeChangeTransitionState": {
"capacityModeTransitionBeginTimestamp": "2024-03-24T03:02:16.2747253Z",
"capacityModeTransitionStatus": "Completed",
"capacityModeLastSuccessfulTransitionEndTimestamp": "2024-03-24T03:02:18.8758329Z",
"capacityModeTransitionEndTimestamp": "2024-03-24T03:02:18.8758329Z",
"currentCapacityMode": "Provisioned",
"previousCapacityMode": "Serverless"
},
"enableMaterializedViews": false,
"minimalTlsVersion": "Tls",
"keysMetadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"capacity": {
"totalThroughputLimit": 2000
},
"capacityMode": "Provisioned",
"diagnosticLogSettings": {
"enableFullTextQuery": "True"
},
Expand Down Expand Up @@ -192,6 +193,15 @@
"diagnosticLogSettings": {
"enableFullTextQuery": "True"
},
"capacityMode": "Provisioned",
"capacityModeChangeTransitionState": {
"capacityModeTransitionBeginTimestamp": "2024-03-24T03:02:16.2747253Z",
"capacityModeTransitionStatus": "Completed",
"capacityModeLastSuccessfulTransitionEndTimestamp": "2024-03-24T03:02:18.8758329Z",
"capacityModeTransitionEndTimestamp": "2024-03-24T03:02:18.8758329Z",
"currentCapacityMode": "Provisioned",
"previousCapacityMode": "Serverless"
},
"enableMaterializedViews": false,
"enableBurstCapacity": true,
"minimalTlsVersion": "Tls",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
"analyticalStorageConfiguration": null,
"networkAclBypass": "None",
"networkAclBypassResourceIds": [],
"capacityMode": "Provisioned",
"enableMaterializedViews": false,
"keysMetadata": {
"primaryMasterKey": {
Expand Down

0 comments on commit e5658f3

Please sign in to comment.