Skip to content

Commit 6faf668

Browse files
committed
Fix PR checks
1 parent f1974c4 commit 6faf668

File tree

4 files changed

+65
-50
lines changed

4 files changed

+65
-50
lines changed

specification/ai/ContentUnderstanding/models.tsp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,3 +849,26 @@ model ContentUnderstandingDefaults {
849849
@visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update)
850850
modelDeployments: Record<string>;
851851
}
852+
853+
@added(Versions.v2025_11_01)
854+
@doc("Copy operation request.")
855+
model CopyRequest {
856+
@doc("Azure resource ID of the source analyzer location. Defaults to the current resource.")
857+
sourceAzureResourceId?: string;
858+
859+
@doc("Azure region of the source analyzer location. Defaults to current region.")
860+
sourceRegion?: string;
861+
862+
@doc("Source analyzer ID.")
863+
sourceAnalyzerId: string;
864+
}
865+
866+
@added(Versions.v2025_11_01)
867+
@doc("Grant copy authorization request.")
868+
model GrantCopyAuthorizationRequest {
869+
@doc("Azure resource ID of the target analyzer location.")
870+
targetAzureResourceId: string;
871+
872+
@doc("Azure region of the target analyzer location. Defaults to current region.")
873+
targetRegion?: string;
874+
}

specification/ai/ContentUnderstanding/routes.tsp

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,7 @@ interface ContentAnalyzers {
183183
@pollingOperation(ContentAnalyzers.getOperationStatus)
184184
copy is Operations.LongRunningResourceAction<
185185
ContentAnalyzer,
186-
{
187-
@doc("Azure resource ID of the source analyzer location. Defaults to the current resource.")
188-
sourceAzureResourceId?: string;
189-
190-
@doc("Azure region of the source analyzer location. Defaults to current region.")
191-
sourceRegion?: string;
192-
193-
@doc("Source analyzer ID.")
194-
sourceAnalyzerId: string;
195-
},
186+
CopyRequest,
196187
ContentAnalyzer,
197188
Foundations.Error,
198189
AllowReplaceTrait
@@ -202,13 +193,7 @@ interface ContentAnalyzers {
202193
@doc("Get authorization for copying this analyzer to another location.")
203194
grantCopyAuthorization is Operations.ResourceAction<
204195
ContentAnalyzer,
205-
{
206-
@doc("Azure resource ID of the target analyzer location.")
207-
targetAzureResourceId: string;
208-
209-
@doc("Azure region of the target analyzer location. Defaults to current region.")
210-
targetRegion?: string;
211-
},
196+
GrantCopyAuthorizationRequest,
212197
CopyAuthorization
213198
>;
214199

specification/ai/ContentUnderstanding/tspconfig.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,3 @@ options:
4949
partial-update: true
5050
use-eclipse-language-server: false
5151
flavor: azure
52-

specification/ai/data-plane/ContentUnderstanding/stable/2025-11-01/ContentUnderstanding.json

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -734,24 +734,7 @@
734734
"in": "body",
735735
"required": true,
736736
"schema": {
737-
"type": "object",
738-
"properties": {
739-
"sourceAzureResourceId": {
740-
"type": "string",
741-
"description": "Azure resource ID of the source analyzer location. Defaults to the current resource."
742-
},
743-
"sourceRegion": {
744-
"type": "string",
745-
"description": "Azure region of the source analyzer location. Defaults to current region."
746-
},
747-
"sourceAnalyzerId": {
748-
"type": "string",
749-
"description": "Source analyzer ID."
750-
}
751-
},
752-
"required": [
753-
"sourceAnalyzerId"
754-
]
737+
"$ref": "#/definitions/CopyRequest"
755738
}
756739
}
757740
],
@@ -842,20 +825,7 @@
842825
"in": "body",
843826
"required": true,
844827
"schema": {
845-
"type": "object",
846-
"properties": {
847-
"targetAzureResourceId": {
848-
"type": "string",
849-
"description": "Azure resource ID of the target analyzer location."
850-
},
851-
"targetRegion": {
852-
"type": "string",
853-
"description": "Azure region of the target analyzer location. Defaults to current region."
854-
}
855-
},
856-
"required": [
857-
"targetAzureResourceId"
858-
]
828+
"$ref": "#/definitions/GrantCopyAuthorizationRequest"
859829
}
860830
}
861831
],
@@ -2056,6 +2026,27 @@
20562026
"expiresAt"
20572027
]
20582028
},
2029+
"CopyRequest": {
2030+
"type": "object",
2031+
"description": "Copy operation request.",
2032+
"properties": {
2033+
"sourceAzureResourceId": {
2034+
"type": "string",
2035+
"description": "Azure resource ID of the source analyzer location. Defaults to the current resource."
2036+
},
2037+
"sourceRegion": {
2038+
"type": "string",
2039+
"description": "Azure region of the source analyzer location. Defaults to current region."
2040+
},
2041+
"sourceAnalyzerId": {
2042+
"type": "string",
2043+
"description": "Source analyzer ID."
2044+
}
2045+
},
2046+
"required": [
2047+
"sourceAnalyzerId"
2048+
]
2049+
},
20592050
"DateField": {
20602051
"type": "object",
20612052
"description": "Date field extracted from the content.",
@@ -3083,6 +3074,23 @@
30833074
]
30843075
}
30853076
},
3077+
"GrantCopyAuthorizationRequest": {
3078+
"type": "object",
3079+
"description": "Grant copy authorization request.",
3080+
"properties": {
3081+
"targetAzureResourceId": {
3082+
"type": "string",
3083+
"description": "Azure resource ID of the target analyzer location."
3084+
},
3085+
"targetRegion": {
3086+
"type": "string",
3087+
"description": "Azure region of the target analyzer location. Defaults to current region."
3088+
}
3089+
},
3090+
"required": [
3091+
"targetAzureResourceId"
3092+
]
3093+
},
30863094
"IntegerField": {
30873095
"type": "object",
30883096
"description": "Integer field extracted from the content.",

0 commit comments

Comments
 (0)