Skip to content

Commit 10b2b9e

Browse files
author
Danny Tundwe (from Dev Box)
committed
Remove attachment APIs from 2025-12-01-preview
- Add 2025-12-01-preview to Versions enum - Remove addAttachment and deleteAttachment operations from EdgeActions interface - Delete related example files (EdgeActions_AddAttachment.json and EdgeActions_DeleteAttachment.json) - Regenerate openapi.json with updated version and without attachment endpoints These attachment APIs are internal to AFD RP and should not be exposed in the public EdgeActions API.
1 parent bc7c849 commit 10b2b9e

File tree

6 files changed

+2
-269
lines changed

6 files changed

+2
-269
lines changed

specification/cdn/resource-manager/Microsoft.Cdn/EdgeActions/examples/2025-12-01-preview/EdgeActions_AddAttachment.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

specification/cdn/resource-manager/Microsoft.Cdn/EdgeActions/examples/2025-12-01-preview/EdgeActions_DeleteAttachment.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

specification/cdn/resource-manager/Microsoft.Cdn/EdgeActions/main.tsp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace Microsoft.Cdn;
2323

2424
enum Versions {
2525
`2025-09-01-preview`,
26+
`2025-12-01-preview`,
2627
}
2728

2829
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "SKU property required at envelope level for backwards compatibility with 2024-07-22-preview"
@@ -88,17 +89,6 @@ interface EdgeActions {
8889
delete is ArmResourceDeleteWithoutOkAsync<EdgeAction>;
8990
listByResourceGroup is ArmResourceListByParent<EdgeAction>;
9091
listBySubscription is ArmListBySubscription<EdgeAction>;
91-
addAttachment is ArmResourceActionAsync<
92-
EdgeAction,
93-
EdgeActionAttachment,
94-
EdgeActionAttachmentResponse
95-
>;
96-
97-
#suppress "@azure-tools/typespec-azure-resource-manager/arm-post-operation-response-codes" "Operation matches 2024 baseline with 200, 202 responses"
98-
deleteAttachment is ArmResourceActionNoContentAsync<
99-
EdgeAction,
100-
EdgeActionAttachment
101-
>;
10292
}
10393

10494
@armResourceOperations

specification/cdn/resource-manager/Microsoft.Cdn/EdgeActions/preview/2025-12-01-preview/examples/EdgeActions_AddAttachment.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

specification/cdn/resource-manager/Microsoft.Cdn/EdgeActions/preview/2025-12-01-preview/examples/EdgeActions_DeleteAttachment.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

specification/cdn/resource-manager/Microsoft.Cdn/EdgeActions/preview/2025-12-01-preview/openapi.json

Lines changed: 1 addition & 166 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"swagger": "2.0",
33
"info": {
44
"title": "Microsoft.Cdn/EdgeAction",
5-
"version": "2025-09-01-preview",
5+
"version": "2025-12-01-preview",
66
"x-typespec-generated": [
77
{
88
"emitter": "@azure-tools/typespec-autorest"
@@ -388,153 +388,6 @@
388388
"x-ms-long-running-operation": true
389389
}
390390
},
391-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/addAttachment": {
392-
"post": {
393-
"operationId": "EdgeActions_AddAttachment",
394-
"tags": [
395-
"EdgeActions"
396-
],
397-
"description": "A long-running resource action.",
398-
"parameters": [
399-
{
400-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter"
401-
},
402-
{
403-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter"
404-
},
405-
{
406-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter"
407-
},
408-
{
409-
"name": "edgeActionName",
410-
"in": "path",
411-
"description": "The name of the Edge Action",
412-
"required": true,
413-
"type": "string",
414-
"maxLength": 50,
415-
"pattern": "[a-zA-Z0-9]+"
416-
},
417-
{
418-
"name": "body",
419-
"in": "body",
420-
"description": "The content of the action request",
421-
"required": true,
422-
"schema": {
423-
"$ref": "#/definitions/EdgeActionAttachment"
424-
}
425-
}
426-
],
427-
"responses": {
428-
"200": {
429-
"description": "Azure operation completed successfully.",
430-
"schema": {
431-
"$ref": "#/definitions/EdgeActionAttachmentResponse"
432-
}
433-
},
434-
"202": {
435-
"description": "Resource operation accepted.",
436-
"headers": {
437-
"Location": {
438-
"type": "string",
439-
"description": "The Location header contains the URL where the status of the long running operation can be checked."
440-
},
441-
"Retry-After": {
442-
"type": "integer",
443-
"format": "int32",
444-
"description": "The Retry-After header can indicate how long the client should wait before polling the operation status."
445-
}
446-
}
447-
},
448-
"default": {
449-
"description": "An unexpected error response.",
450-
"schema": {
451-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
452-
}
453-
}
454-
},
455-
"x-ms-examples": {
456-
"AddAttachment": {
457-
"$ref": "./examples/EdgeActions_AddAttachment.json"
458-
}
459-
},
460-
"x-ms-long-running-operation-options": {
461-
"final-state-via": "location"
462-
},
463-
"x-ms-long-running-operation": true
464-
}
465-
},
466-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/deleteAttachment": {
467-
"post": {
468-
"operationId": "EdgeActions_DeleteAttachment",
469-
"tags": [
470-
"EdgeActions"
471-
],
472-
"description": "A long-running resource action.",
473-
"parameters": [
474-
{
475-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter"
476-
},
477-
{
478-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter"
479-
},
480-
{
481-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter"
482-
},
483-
{
484-
"name": "edgeActionName",
485-
"in": "path",
486-
"description": "The name of the Edge Action",
487-
"required": true,
488-
"type": "string",
489-
"maxLength": 50,
490-
"pattern": "[a-zA-Z0-9]+"
491-
},
492-
{
493-
"name": "body",
494-
"in": "body",
495-
"description": "The content of the action request",
496-
"required": true,
497-
"schema": {
498-
"$ref": "#/definitions/EdgeActionAttachment"
499-
}
500-
}
501-
],
502-
"responses": {
503-
"202": {
504-
"description": "Resource operation accepted.",
505-
"headers": {
506-
"Location": {
507-
"type": "string",
508-
"description": "The Location header contains the URL where the status of the long running operation can be checked."
509-
},
510-
"Retry-After": {
511-
"type": "integer",
512-
"format": "int32",
513-
"description": "The Retry-After header can indicate how long the client should wait before polling the operation status."
514-
}
515-
}
516-
},
517-
"204": {
518-
"description": "Action completed successfully."
519-
},
520-
"default": {
521-
"description": "An unexpected error response.",
522-
"schema": {
523-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
524-
}
525-
}
526-
},
527-
"x-ms-examples": {
528-
"DeleteAttachment": {
529-
"$ref": "./examples/EdgeActions_DeleteAttachment.json"
530-
}
531-
},
532-
"x-ms-long-running-operation-options": {
533-
"final-state-via": "location"
534-
},
535-
"x-ms-long-running-operation": true
536-
}
537-
},
538391
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters": {
539392
"get": {
540393
"operationId": "EdgeActionExecutionFilters_ListByEdgeAction",
@@ -1540,24 +1393,6 @@
15401393
"attachedResourceId"
15411394
]
15421395
},
1543-
"EdgeActionAttachmentResponse": {
1544-
"type": "object",
1545-
"description": "Edge action attachment response",
1546-
"properties": {
1547-
"edgeActionId": {
1548-
"type": "string",
1549-
"description": "Non changing guid to identity edge action",
1550-
"x-ms-mutability": [
1551-
"read",
1552-
"update",
1553-
"create"
1554-
]
1555-
}
1556-
},
1557-
"required": [
1558-
"edgeActionId"
1559-
]
1560-
},
15611396
"EdgeActionExecutionFilter": {
15621397
"type": "object",
15631398
"description": "Concrete tracked resource types can be created by aliasing this type using a specific property type.",

0 commit comments

Comments
 (0)