Skip to content

Commit 86dacb1

Browse files
authored
[cognitiveservices] Normalize Swagger Model Names and Properties Suffix (#39371)
* Normalize Swagger Model Names and Properties Suffix * Update RaiBlocklistItemsBulkDeleteRequest to an Array of Strings * Update RaiBlocklistItemsBulkDeleteRequest to object type
1 parent d9a9465 commit 86dacb1

1 file changed

Lines changed: 40 additions & 47 deletions

File tree

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

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

Lines changed: 40 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5532,7 +5532,7 @@
55325532
"200": {
55335533
"description": "Success",
55345534
"schema": {
5535-
"$ref": "#/definitions/CapabilityHostResource"
5535+
"$ref": "#/definitions/CapabilityHost"
55365536
}
55375537
},
55385538
"default": {
@@ -5582,21 +5582,21 @@
55825582
"description": "CapabilityHost definition.",
55835583
"required": true,
55845584
"schema": {
5585-
"$ref": "#/definitions/CapabilityHostResource"
5585+
"$ref": "#/definitions/CapabilityHost"
55865586
}
55875587
}
55885588
],
55895589
"responses": {
55905590
"200": {
55915591
"description": "Create or update request is successful.",
55925592
"schema": {
5593-
"$ref": "#/definitions/CapabilityHostResource"
5593+
"$ref": "#/definitions/CapabilityHost"
55945594
}
55955595
},
55965596
"201": {
55975597
"description": "Created",
55985598
"schema": {
5599-
"$ref": "#/definitions/CapabilityHostResource"
5599+
"$ref": "#/definitions/CapabilityHost"
56005600
},
56015601
"headers": {
56025602
"x-ms-async-operation-timeout": {
@@ -5784,7 +5784,7 @@
57845784
"200": {
57855785
"description": "Success",
57865786
"schema": {
5787-
"$ref": "#/definitions/ProjectCapabilityHostResource"
5787+
"$ref": "#/definitions/ProjectCapabilityHost"
57885788
}
57895789
},
57905790
"default": {
@@ -5837,21 +5837,21 @@
58375837
"description": "CapabilityHost definition.",
58385838
"required": true,
58395839
"schema": {
5840-
"$ref": "#/definitions/ProjectCapabilityHostResource"
5840+
"$ref": "#/definitions/ProjectCapabilityHost"
58415841
}
58425842
}
58435843
],
58445844
"responses": {
58455845
"200": {
58465846
"description": "Create or update request is successful.",
58475847
"schema": {
5848-
"$ref": "#/definitions/ProjectCapabilityHostResource"
5848+
"$ref": "#/definitions/ProjectCapabilityHost"
58495849
}
58505850
},
58515851
"201": {
58525852
"description": "Created",
58535853
"schema": {
5854-
"$ref": "#/definitions/ProjectCapabilityHostResource"
5854+
"$ref": "#/definitions/ProjectCapabilityHost"
58555855
},
58565856
"headers": {
58575857
"x-ms-async-operation-timeout": {
@@ -6919,7 +6919,7 @@
69196919
"200": {
69206920
"description": "Success",
69216921
"schema": {
6922-
"$ref": "#/definitions/AgentApplicationResource"
6922+
"$ref": "#/definitions/AgentApplication"
69236923
}
69246924
},
69256925
"default": {
@@ -6977,21 +6977,21 @@
69776977
"description": "Agent Application definition object.",
69786978
"required": true,
69796979
"schema": {
6980-
"$ref": "#/definitions/AgentApplicationResource"
6980+
"$ref": "#/definitions/AgentApplication"
69816981
}
69826982
}
69836983
],
69846984
"responses": {
69856985
"200": {
69866986
"description": "Create or update request is successful.",
69876987
"schema": {
6988-
"$ref": "#/definitions/AgentApplicationResource"
6988+
"$ref": "#/definitions/AgentApplication"
69896989
}
69906990
},
69916991
"201": {
69926992
"description": "Created",
69936993
"schema": {
6994-
"$ref": "#/definitions/AgentApplicationResource"
6994+
"$ref": "#/definitions/AgentApplication"
69956995
},
69966996
"headers": {
69976997
"x-ms-async-operation-timeout": {
@@ -7374,7 +7374,7 @@
73747374
"200": {
73757375
"description": "Success",
73767376
"schema": {
7377-
"$ref": "#/definitions/AgentDeploymentResource"
7377+
"$ref": "#/definitions/AgentDeployment"
73787378
}
73797379
},
73807380
"default": {
@@ -7430,21 +7430,21 @@
74307430
"description": "Agent Deployment definition object.",
74317431
"required": true,
74327432
"schema": {
7433-
"$ref": "#/definitions/AgentDeploymentResource"
7433+
"$ref": "#/definitions/AgentDeployment"
74347434
}
74357435
}
74367436
],
74377437
"responses": {
74387438
"200": {
74397439
"description": "Create or update request is successful.",
74407440
"schema": {
7441-
"$ref": "#/definitions/AgentDeploymentResource"
7441+
"$ref": "#/definitions/AgentDeployment"
74427442
}
74437443
},
74447444
"201": {
74457445
"description": "Created",
74467446
"schema": {
7447-
"$ref": "#/definitions/AgentDeploymentResource"
7447+
"$ref": "#/definitions/AgentDeployment"
74487448
},
74497449
"headers": {
74507450
"x-ms-async-operation-timeout": {
@@ -11942,7 +11942,7 @@
1194211942
"description": "An array of objects of type Capability Host.",
1194311943
"type": "array",
1194411944
"items": {
11945-
"$ref": "#/definitions/CapabilityHostResource"
11945+
"$ref": "#/definitions/CapabilityHost"
1194611946
},
1194711947
"x-nullable": true
1194811948
}
@@ -11962,14 +11962,14 @@
1196211962
"description": "An array of objects of type Project Capability Host.",
1196311963
"type": "array",
1196411964
"items": {
11965-
"$ref": "#/definitions/ProjectCapabilityHostResource"
11965+
"$ref": "#/definitions/ProjectCapabilityHost"
1196611966
},
1196711967
"x-nullable": true
1196811968
}
1196911969
},
1197011970
"additionalProperties": false
1197111971
},
11972-
"CapabilityHostResource": {
11972+
"CapabilityHost": {
1197311973
"description": "Azure Resource Manager resource envelope.",
1197411974
"required": [
1197511975
"properties"
@@ -11983,13 +11983,12 @@
1198311983
"properties": {
1198411984
"properties": {
1198511985
"description": "[Required] Additional attributes of the entity.",
11986-
"$ref": "#/definitions/CapabilityHost"
11986+
"$ref": "#/definitions/CapabilityHostProperties"
1198711987
}
1198811988
},
11989-
"x-ms-client-name": "CapabilityHost",
1199011989
"additionalProperties": false
1199111990
},
11992-
"CapabilityHost": {
11991+
"CapabilityHostProperties": {
1199311992
"type": "object",
1199411993
"allOf": [
1199511994
{
@@ -12051,7 +12050,6 @@
1205112050
"description": "Whether public hosting environment is enabled for the capability host"
1205212051
}
1205312052
},
12054-
"x-ms-client-name": "CapabilityHostProperties",
1205512053
"additionalProperties": false
1205612054
},
1205712055
"CapabilityHostProvisioningState": {
@@ -12108,7 +12106,7 @@
1210812106
},
1210912107
"additionalProperties": false
1211012108
},
12111-
"ProjectCapabilityHostResource": {
12109+
"ProjectCapabilityHost": {
1211212110
"description": "Azure Resource Manager resource envelope for Project CapabilityHost.",
1211312111
"required": [
1211412112
"properties"
@@ -12122,13 +12120,12 @@
1212212120
"properties": {
1212312121
"properties": {
1212412122
"description": "[Required] Additional attributes of the entity.",
12125-
"$ref": "#/definitions/ProjectCapabilityHost"
12123+
"$ref": "#/definitions/ProjectCapabilityHostProperties"
1212612124
}
1212712125
},
12128-
"x-ms-client-name": "ProjectCapabilityHost",
1212912126
"additionalProperties": false
1213012127
},
12131-
"ProjectCapabilityHost": {
12128+
"ProjectCapabilityHostProperties": {
1213212129
"type": "object",
1213312130
"properties": {
1213412131
"aiServicesConnections": {
@@ -12172,7 +12169,6 @@
1217212169
]
1217312170
}
1217412171
},
12175-
"x-ms-client-name": "ProjectCapabilityHostProperties",
1217612172
"additionalProperties": false
1217712173
},
1217812174
"ResourceBase": {
@@ -12774,7 +12770,7 @@
1277412770
"modelAsString": true
1277512771
}
1277612772
},
12777-
"AgentApplicationResource": {
12773+
"AgentApplication": {
1277812774
"description": "Agent Application resource",
1277912775
"required": [
1278012776
"properties"
@@ -12788,10 +12784,9 @@
1278812784
"properties": {
1278912785
"properties": {
1279012786
"description": "[Required] Additional attributes of the entity.",
12791-
"$ref": "#/definitions/AgenticApplication"
12787+
"$ref": "#/definitions/AgenticApplicationProperties"
1279212788
}
1279312789
},
12794-
"x-ms-client-name": "AgentApplication",
1279512790
"additionalProperties": false
1279612791
},
1279712792
"AgentApplicationResourceArmPaginatedResult": {
@@ -12807,14 +12802,14 @@
1280712802
"description": "An array of objects of type Agent Application.",
1280812803
"type": "array",
1280912804
"items": {
12810-
"$ref": "#/definitions/AgentApplicationResource"
12805+
"$ref": "#/definitions/AgentApplication"
1281112806
},
1281212807
"x-nullable": true
1281312808
}
1281412809
},
1281512810
"additionalProperties": false
1281612811
},
12817-
"AgentReferenceResource": {
12812+
"AgentReference": {
1281812813
"description": "Agent Reference resource",
1281912814
"required": [
1282012815
"properties"
@@ -12828,10 +12823,9 @@
1282812823
"properties": {
1282912824
"properties": {
1283012825
"description": "[Required] Additional attributes of the entity.",
12831-
"$ref": "#/definitions/AgentReference"
12826+
"$ref": "#/definitions/AgentReferenceProperties"
1283212827
}
1283312828
},
12834-
"x-ms-client-name": "AgentReference",
1283512829
"additionalProperties": false
1283612830
},
1283712831
"AgentReferenceResourceArmPaginatedResult": {
@@ -12847,14 +12841,14 @@
1284712841
"description": "An array of objects of type Agent Reference.",
1284812842
"type": "array",
1284912843
"items": {
12850-
"$ref": "#/definitions/AgentReferenceResource"
12844+
"$ref": "#/definitions/AgentReference"
1285112845
},
1285212846
"x-nullable": true
1285312847
}
1285412848
},
1285512849
"additionalProperties": false
1285612850
},
12857-
"AgentDeploymentResource": {
12851+
"AgentDeployment": {
1285812852
"description": "Agent Deployment resource",
1285912853
"required": [
1286012854
"properties"
@@ -12868,10 +12862,9 @@
1286812862
"properties": {
1286912863
"properties": {
1287012864
"description": "[Required] Additional attributes of the entity.",
12871-
"$ref": "#/definitions/AgentDeployment"
12865+
"$ref": "#/definitions/AgentDeploymentProperties"
1287212866
}
1287312867
},
12874-
"x-ms-client-name": "AgentDeployment",
1287512868
"additionalProperties": false
1287612869
},
1287712870
"AgentDeploymentResourceArmPaginatedResult": {
@@ -12887,14 +12880,14 @@
1288712880
"description": "An array of objects of type Agent Deployment.",
1288812881
"type": "array",
1288912882
"items": {
12890-
"$ref": "#/definitions/AgentDeploymentResource"
12883+
"$ref": "#/definitions/AgentDeployment"
1289112884
},
1289212885
"x-nullable": true
1289312886
}
1289412887
},
1289512888
"additionalProperties": false
1289612889
},
12897-
"AgenticApplication": {
12890+
"AgenticApplicationProperties": {
1289812891
"description": "Resource type representing an agentic application as a management construct.",
1289912892
"type": "object",
1290012893
"allOf": [
@@ -12917,7 +12910,7 @@
1291712910
"description": "The list of agent definitions comprising this application, returned as references to the objects under the parent project; use this to obtain a flat list of all agent-version pairs represented by this application.",
1291812911
"type": "array",
1291912912
"items": {
12920-
"$ref": "#/definitions/AgentReference"
12913+
"$ref": "#/definitions/AgentReferenceProperties"
1292112914
},
1292212915
"x-nullable": true
1292312916
},
@@ -12954,7 +12947,7 @@
1295412947
},
1295512948
"additionalProperties": false
1295612949
},
12957-
"AgentDeployment": {
12950+
"AgentDeploymentProperties": {
1295812951
"description": "Type representing an agent deployment as a management construct.",
1295912952
"type": "object",
1296012953
"discriminator": "deploymentType",
@@ -13022,7 +13015,7 @@
1302213015
"x-ms-discriminator-value": "Managed",
1302313016
"allOf": [
1302413017
{
13025-
"$ref": "#/definitions/AgentDeployment"
13018+
"$ref": "#/definitions/AgentDeploymentProperties"
1302613019
}
1302713020
],
1302813021
"additionalProperties": false
@@ -13033,7 +13026,7 @@
1303313026
"x-ms-discriminator-value": "Hosted",
1303413027
"allOf": [
1303513028
{
13036-
"$ref": "#/definitions/AgentDeployment"
13029+
"$ref": "#/definitions/AgentDeploymentProperties"
1303713030
}
1303813031
],
1303913032
"properties": {
@@ -13052,7 +13045,7 @@
1305213045
},
1305313046
"additionalProperties": false
1305413047
},
13055-
"AgentReference": {
13048+
"AgentReferenceProperties": {
1305613049
"description": "Type modeling a reference to a version of an agent definition.",
1305713050
"type": "object",
1305813051
"properties": {
@@ -13074,7 +13067,7 @@
1307413067
"type": "object",
1307513068
"allOf": [
1307613069
{
13077-
"$ref": "#/definitions/AgentReference"
13070+
"$ref": "#/definitions/AgentReferenceProperties"
1307813071
}
1307913072
],
1308013073
"properties": {

0 commit comments

Comments
 (0)