Skip to content

Commit 7154068

Browse files
authored
Merge branch 'main' into vikeshi26/arm-lease-files
2 parents ffe2077 + 62ce2e0 commit 7154068

15 files changed

Lines changed: 34 additions & 315 deletions

File tree

specification/cognitiveservices/CognitiveServices.Management/Project.tsp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,12 @@ interface Projects {
8686
/**
8787
* Deletes a Cognitive Services project from the resource group.
8888
*/
89+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "Delete response codes match existing service endpoint behavior — Projects_Delete always completes synchronously (HTTP 200)"
8990
@tag("CognitiveServicesProjects")
90-
delete is ArmResourceDeleteWithoutOkAsync<Project>;
91+
delete is ArmResourceDeleteWithoutOkAsync<
92+
Project,
93+
Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse
94+
>;
9195

9296
/**
9397
* Returns all the projects in a Cognitive Services account.

specification/cognitiveservices/CognitiveServices.Management/RaiExternalSafetyProviderSchema.tsp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,11 @@ interface RaiExternalSafetyProviderSchemas {
5353
/**
5454
* Create the rai safety provider associated with the subscription.
5555
*/
56-
#suppress "@azure-tools/typespec-azure-core/response-schema-problem" "Response schema for 'get' matches existing service wire format"
5756
@tag("RaiExternalSafetyProvider")
5857
createOrUpdate is ArmResourceCreateOrReplaceSync<
5958
RaiExternalSafetyProviderSchema,
6059
BaseParameters = Azure.ResourceManager.Foundations.SubscriptionBaseParameters,
61-
Response = ArmResourceUpdatedResponse<RaiExternalSafetyProviderSchema> | ArmResourceCreatedSyncResponse<RaiExternalSafetyProvider>
60+
Response = ArmResourceUpdatedResponse<RaiExternalSafetyProviderSchema> | ArmResourceCreatedSyncResponse<RaiExternalSafetyProviderSchema>
6261
>;
6362

6463
/**

specification/cognitiveservices/CognitiveServices.Management/examples/2025-10-01-preview/DeleteProject.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
"title": "Delete Project",
1111
"responses": {
12+
"200": {},
1213
"202": {
1314
"headers": {
1415
"azure-asyncoperation": "http://azure.async.operation/status"

specification/cognitiveservices/CognitiveServices.Management/examples/2025-12-01/DeleteProject.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
"title": "Delete Project",
1111
"responses": {
12+
"200": {},
1213
"202": {
1314
"headers": {
1415
"azure-asyncoperation": "http://azure.async.operation/status"

specification/cognitiveservices/CognitiveServices.Management/examples/2026-01-15-preview/DeleteProject.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
"title": "Delete Project",
1111
"responses": {
12+
"200": {},
1213
"202": {
1314
"headers": {
1415
"azure-asyncoperation": "http://azure.async.operation/status"

specification/cognitiveservices/CognitiveServices.Management/examples/2026-03-01/DeleteProject.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
"title": "Delete Project",
1111
"responses": {
12+
"200": {},
1213
"202": {
1314
"headers": {
1415
"azure-asyncoperation": "http://azure.async.operation/status"

specification/cognitiveservices/CognitiveServices.Management/models.tsp

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -3679,66 +3679,6 @@ model RaiExternalSafetyProviderSchemaProperties {
36793679
lastModifiedAt?: utcDateTime;
36803680
}
36813681

3682-
/**
3683-
* Cognitive Services Rai External Safety provider.
3684-
*/
3685-
#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "'RaiExternalSafetyProvider' uses base type inheritance matching service-side object hierarchy"
3686-
model RaiExternalSafetyProvider
3687-
extends Azure.ResourceManager.CommonTypes.ProxyResource {
3688-
/**
3689-
* Resource Etag.
3690-
*/
3691-
@visibility(Lifecycle.Read)
3692-
etag?: string;
3693-
3694-
/**
3695-
* Resource tags.
3696-
*/
3697-
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Record<tags> type used for 'RaiExternalSafetyProvider' to support extensible key-value pairs matching service behavior"
3698-
@visibility(Lifecycle.Read)
3699-
tags?: Record<string>;
3700-
3701-
/**
3702-
* Properties of Cognitive Services Rai External Safety provider.
3703-
*/
3704-
properties?: RaiExternalSafetyProviderProperties;
3705-
}
3706-
3707-
/**
3708-
* RAI External SafetyProvider properties.
3709-
*/
3710-
model RaiExternalSafetyProviderProperties {
3711-
/**
3712-
* The unique identifier of the safety provider.
3713-
*/
3714-
providerId?: string;
3715-
3716-
/**
3717-
* Name of the safety provider.
3718-
*/
3719-
providerName?: string;
3720-
3721-
/**
3722-
* Safety provider mode sync/async.
3723-
*/
3724-
mode?: string;
3725-
3726-
/**
3727-
* Webhook URL for the safety provider.
3728-
*/
3729-
url?: url;
3730-
3731-
/**
3732-
* Creation time of the safety provider.
3733-
*/
3734-
createdAt?: utcDateTime;
3735-
3736-
/**
3737-
* Last modified time of the safety provider.
3738-
*/
3739-
lastModifiedAt?: utcDateTime;
3740-
}
3741-
37423682
/**
37433683
* The list of cognitive services RAI Topics.
37443684
*/

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json

Lines changed: 5 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,9 +1211,9 @@
12111211
}
12121212
},
12131213
"201": {
1214-
"description": "Resource 'RaiExternalSafetyProvider' create operation succeeded",
1214+
"description": "Resource 'RaiExternalSafetyProviderSchema' create operation succeeded",
12151215
"schema": {
1216-
"$ref": "#/definitions/RaiExternalSafetyProvider"
1216+
"$ref": "#/definitions/RaiExternalSafetyProviderSchema"
12171217
}
12181218
},
12191219
"default": {
@@ -5346,6 +5346,9 @@
53465346
}
53475347
],
53485348
"responses": {
5349+
"200": {
5350+
"description": "Resource deleted successfully."
5351+
},
53495352
"202": {
53505353
"description": "Resource deletion accepted.",
53515354
"headers": {
@@ -15402,67 +15405,6 @@
1540215405
}
1540315406
}
1540415407
},
15405-
"RaiExternalSafetyProvider": {
15406-
"type": "object",
15407-
"description": "Cognitive Services Rai External Safety provider.",
15408-
"properties": {
15409-
"etag": {
15410-
"type": "string",
15411-
"description": "Resource Etag.",
15412-
"readOnly": true
15413-
},
15414-
"tags": {
15415-
"type": "object",
15416-
"description": "Resource tags.",
15417-
"additionalProperties": {
15418-
"type": "string"
15419-
},
15420-
"readOnly": true
15421-
},
15422-
"properties": {
15423-
"$ref": "#/definitions/RaiExternalSafetyProviderProperties",
15424-
"description": "Properties of Cognitive Services Rai External Safety provider."
15425-
}
15426-
},
15427-
"allOf": [
15428-
{
15429-
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
15430-
}
15431-
]
15432-
},
15433-
"RaiExternalSafetyProviderProperties": {
15434-
"type": "object",
15435-
"description": "RAI External SafetyProvider properties.",
15436-
"properties": {
15437-
"providerId": {
15438-
"type": "string",
15439-
"description": "The unique identifier of the safety provider."
15440-
},
15441-
"providerName": {
15442-
"type": "string",
15443-
"description": "Name of the safety provider."
15444-
},
15445-
"mode": {
15446-
"type": "string",
15447-
"description": "Safety provider mode sync/async."
15448-
},
15449-
"url": {
15450-
"type": "string",
15451-
"format": "uri",
15452-
"description": "Webhook URL for the safety provider."
15453-
},
15454-
"createdAt": {
15455-
"type": "string",
15456-
"format": "date-time",
15457-
"description": "Creation time of the safety provider."
15458-
},
15459-
"lastModifiedAt": {
15460-
"type": "string",
15461-
"format": "date-time",
15462-
"description": "Last modified time of the safety provider."
15463-
}
15464-
}
15465-
},
1546615408
"RaiExternalSafetyProviderResult": {
1546715409
"type": "object",
1546815410
"description": "The list of cognitive services RAI External Safety Providers.",

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/examples/DeleteProject.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
"title": "Delete Project",
1111
"responses": {
12+
"200": {},
1213
"202": {
1314
"headers": {
1415
"azure-asyncoperation": "http://azure.async.operation/status"

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2026-01-15-preview/cognitiveservices.json

Lines changed: 5 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,9 +1287,9 @@
12871287
}
12881288
},
12891289
"201": {
1290-
"description": "Resource 'RaiExternalSafetyProvider' create operation succeeded",
1290+
"description": "Resource 'RaiExternalSafetyProviderSchema' create operation succeeded",
12911291
"schema": {
1292-
"$ref": "#/definitions/RaiExternalSafetyProvider"
1292+
"$ref": "#/definitions/RaiExternalSafetyProviderSchema"
12931293
}
12941294
},
12951295
"default": {
@@ -5493,6 +5493,9 @@
54935493
}
54945494
],
54955495
"responses": {
5496+
"200": {
5497+
"description": "Resource deleted successfully."
5498+
},
54965499
"202": {
54975500
"description": "Resource deletion accepted.",
54985501
"headers": {
@@ -15729,67 +15732,6 @@
1572915732
}
1573015733
}
1573115734
},
15732-
"RaiExternalSafetyProvider": {
15733-
"type": "object",
15734-
"description": "Cognitive Services Rai External Safety provider.",
15735-
"properties": {
15736-
"etag": {
15737-
"type": "string",
15738-
"description": "Resource Etag.",
15739-
"readOnly": true
15740-
},
15741-
"tags": {
15742-
"type": "object",
15743-
"description": "Resource tags.",
15744-
"additionalProperties": {
15745-
"type": "string"
15746-
},
15747-
"readOnly": true
15748-
},
15749-
"properties": {
15750-
"$ref": "#/definitions/RaiExternalSafetyProviderProperties",
15751-
"description": "Properties of Cognitive Services Rai External Safety provider."
15752-
}
15753-
},
15754-
"allOf": [
15755-
{
15756-
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
15757-
}
15758-
]
15759-
},
15760-
"RaiExternalSafetyProviderProperties": {
15761-
"type": "object",
15762-
"description": "RAI External SafetyProvider properties.",
15763-
"properties": {
15764-
"providerId": {
15765-
"type": "string",
15766-
"description": "The unique identifier of the safety provider."
15767-
},
15768-
"providerName": {
15769-
"type": "string",
15770-
"description": "Name of the safety provider."
15771-
},
15772-
"mode": {
15773-
"type": "string",
15774-
"description": "Safety provider mode sync/async."
15775-
},
15776-
"url": {
15777-
"type": "string",
15778-
"format": "uri",
15779-
"description": "Webhook URL for the safety provider."
15780-
},
15781-
"createdAt": {
15782-
"type": "string",
15783-
"format": "date-time",
15784-
"description": "Creation time of the safety provider."
15785-
},
15786-
"lastModifiedAt": {
15787-
"type": "string",
15788-
"format": "date-time",
15789-
"description": "Last modified time of the safety provider."
15790-
}
15791-
}
15792-
},
1579315735
"RaiExternalSafetyProviderResult": {
1579415736
"type": "object",
1579515737
"description": "The list of cognitive services RAI External Safety Providers.",

0 commit comments

Comments
 (0)