Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MI Cassandra preview swagger #25704

Merged
merged 2 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/backups/1611250348",
"name": "1611250348",
"type": "Microsoft.DocumentDB/cassandraClusters/backups",
"properties": {
"timestamp": "2021-01-21T17:32:28Z"
}
"backupId": "2517222704776158383",
"backupState": "Succeeded",
"backupStartTimestamp": "2023-03-28T19:05:22.3841617+00:00",
"backupStopTimestamp": "2023-03-28T19:05:22.3841617+00:00",
"backupExpiryTimestamp": "2023-03-28T20:05:22.3841617+00:00"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,30 @@
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/backups/1611250348",
"name": "1611250348",
"type": "Microsoft.DocumentDB/cassandraClusters/backups",
"properties": {
"timestamp": "2021-01-21T17:32:28Z"
}
"backupId": "2517222701827037570",
"backupState": "Initiated",
"backupStartTimestamp": "2023-03-28T19:10:17.2962429+00:00",
"backupExpiryTimestamp": "2023-03-28T20:10:17.2962429+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/backups/1611214220",
"name": "1611214220",
"type": "Microsoft.DocumentDB/cassandraClusters/backups",
"properties": {
"timestamp": "2021-01-21T07:30:20Z"
}
"backupId": "2517222704776158382",
"backupState": "InProgress",
"backupStartTimestamp": "2023-03-28T19:05:22.3841617+00:00",
"backupExpiryTimestamp": "2023-03-28T20:05:22.3841617+00:00"
},
{
"backupId": "2517222704776158383",
"backupState": "Succeeded",
"backupStartTimestamp": "2023-03-28T19:05:22.3841617+00:00",
"backupStopTimestamp": "2023-03-28T19:05:22.3841617+00:00",
"backupExpiryTimestamp": "2023-03-28T20:05:22.3841617+00:00"
},
{
"backupId": "2517222704776158384",
"backupState": "Failed",
"backupStartTimestamp": "2023-03-28T19:05:22.3841617+00:00",
"backupStopTimestamp": "2023-03-28T19:05:22.3841617+00:00",
"backupExpiryTimestamp": "2023-03-28T20:05:22.3841617+00:00"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@
"memoryBuffersAndCachedKB": 10453856,
"memoryFreeKB": 36104980,
"memoryTotalKB": 57610444,
"cpuUsage": 0.4
"cpuUsage": 0.4,
"isLatestModel": true
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,9 @@
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/forceDeallocate"
}
],
"responses": {
Expand Down Expand Up @@ -788,6 +791,14 @@
"maxLength": 100,
"pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$"
},
"forceDeallocate": {
"name": "x-ms-force-deallocate",
"in": "header",
"required": false,
"type": "boolean",
"x-ms-parameter-location": "method",
"description": "Force to deallocate a cluster of Cluster Type Production. Force to deallocate a cluster of Cluster Type Production might cause data loss"
},
"dataCenterNameParameter": {
"name": "dataCenterName",
"in": "path",
Expand Down Expand Up @@ -1027,9 +1038,35 @@
"type": "boolean",
"description": "Whether Cassandra audit logging is enabled"
},
"clusterType": {
"type": "string",
"description": "Type of the cluster. If set to Production, some operations might not be permitted on cluster.",
"enum": [
"Production",
"NonProduction"
],
"x-ms-enum": {
"name": "ClusterType",
"modelAsString": true
}
},
"provisionError": {
"$ref": "#/definitions/CassandraError",
"description": "Error related to resource provisioning."
},
"extensions": {
"type": "array",
"description": "Extensions to be added or updated on cluster.",
"items": {
"type": "string"
}
},
"backupSchedules": {
"type": "array",
"items": {
"$ref": "#/definitions/BackupSchedule"
},
"description": "List of backup schedules that define when you want to back up your data."
}
}
}
Expand Down Expand Up @@ -1183,6 +1220,10 @@
"description": "A float representing the current system-wide CPU utilization as a percentage.",
"type": "number",
"format": "double"
},
"isLatestModel": {
"type": "boolean",
"description": "If node has been updated to latest model"
}
}
}
Expand Down Expand Up @@ -1331,21 +1372,39 @@
"BackupResource": {
"description": "A restorable backup of a Cassandra cluster.",
"type": "object",
"allOf": [
{
"$ref": "cosmos-db.json#/definitions/ARMProxyResource"
}
],
"properties": {
"properties": {
"type": "object",
"properties": {
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The time this backup was taken, formatted like 2021-01-21T17:35:21"
}
"backupId": {
"description": "The unique identifier of backup.",
"type": "string"
},
"backupState": {
"description": "The current state of the backup.",
"type": "string",
"enum": [
"Initiated",
"InProgress",
"Succeeded",
"Failed"
],
"x-ms-enum": {
"name": "BackupState",
"modelAsString": true
}
},
"backupStartTimestamp": {
"description": "The time at which the backup process begins.",
"type": "string",
"format": "date-time"
},
"backupStopTimestamp": {
"description": "The time at which the backup process ends.",
"type": "string",
"format": "date-time"
},
"backupExpiryTimestamp": {
"description": "The time at which the backup will expire.",
"type": "string",
"format": "date-time"
}
}
},
Expand Down Expand Up @@ -1381,6 +1440,24 @@
}
}
},
"BackupSchedule": {
"type": "object",
"properties": {
"scheduleName": {
"description": "The unique identifier of backup schedule.",
"type": "string"
},
"cronExpression": {
"description": "The cron expression that defines when you want to back up your data.",
"type": "string"
},
"retentionInHours": {
"description": "The retention period (hours) of the backups. If you want to retain data forever, set retention to 0.",
"type": "integer",
"format": "int32"
}
}
},
"DataCenterResource": {
"description": "A managed Cassandra data center.",
"type": "object",
Expand Down