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

[Microsoft.App] Label history Delete API and Label History Status #32337

Draft
wants to merge 2 commits into
base: release-app-Microsoft.app-2025-01-01
Choose a base branch
from
Draft
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 @@ -73,7 +73,7 @@
"tags": [
"ContainerAppsLabelHistory"
],
"summary": "Get the history of a label.",
"summary": "Get the history for a label.",
"operationId": "ContainerAppsLabelHistory_GetLabelHistory",
"parameters": [
{
Expand Down Expand Up @@ -116,6 +116,54 @@
"$ref": "./examples/LabelHistory_Get.json"
}
}
},
"delete": {
"tags": [
"ContainerAppsLabelHistory"
],
"summary": "Delete the history of a label.",
"operationId": "ContainerAppsLabelHistory_DeleteLabelHistory",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./CommonDefinitions.json#/parameters/ContainerAppsNameParameter"
},
{
"name": "labelName",
"in": "path",
"description": "Name of the Container App label.",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"204": {
"description": "Label history deleted successfully."
},
"409": {
"description": "Conflict."
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Delete Container App's label history for a given label": {
"$ref": "./examples/LabelHistory_Delete.json"
}
}
}
}
},
Expand Down Expand Up @@ -169,6 +217,16 @@
"description": "Timestamp describing when the label was removed from the revision. Only meaningful when the label is currently applied to the revision.",
"type": "string",
"readOnly": true
},
"status": {
"description": "Status of the label history record.",
"type": "string",
"enum": [
"Starting",
"Succeeded",
"Failed"
],
"readOnly": true
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"containerAppName": "testContainerApp",
"labelName": "dev",
"api-version": "2024-10-02-preview"
},
"responses": {
"204": {},
"409": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
"records": [
{
"revision": "testContainerApp--2",
"start": "2024-10-15T05:49:47+00:00"
"start": "2024-10-15T05:49:47+00:00",
"status": "Succeeded"
},
{
"revision": "testContainerApp--1",
"start": "2024-10-15T01:12:56+00:00",
"stop": "2024-10-15T05:45:08+00:00"
"stop": "2024-10-15T05:45:08+00:00",
"status": "Succeeded"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
"records": [
{
"revision": "testContainerApp--2",
"start": "2024-10-15T05:49:47+00:00"
"start": "2024-10-15T05:49:47+00:00",
"status": "Starting"
},
{
"revision": "testContainerApp--1",
"start": "2024-10-15T01:12:56+00:00",
"stop": "2024-10-15T05:45:08+00:00"
"stop": "2024-10-15T05:45:08+00:00",
"status": "Failed"
}
]
}
Expand All @@ -37,7 +39,8 @@
{
"revision": "testContainerApp--1",
"start": "2024-10-15T05:45:08+00:00",
"stop": "2024-10-15T05:49:47+00:00"
"stop": "2024-10-15T05:49:47+00:00",
"status": "Succeeded"
}
]
}
Expand Down
Loading