Skip to content

Commit 915c0ce

Browse files
[Conv Authoring] modify Python clientname 20250515preview (#36074)
* add python clientnames * move clientName to client.tsp * update the endpoint from string to url * Add python customize code in client.tsp * remove all the sub-client config, because clientinitialization does not support python * Add python customize code in client.tsp * change the functions distribution of authoringClient and projectAuthoringClient * move import and export to authoring client level * move getImportStatus and getExportStatus into authoringClient level * remove the @clientInitialization * remove the projectClient, and move all operations to authoringClient * update clientName for operationGroup in Python * add ConversationAuthoringProjectClient and clientInitialization for parameter * remove operations suffix from operation group clientName * adjust the name for ProjectKind and ErrorCode * remove the prefix ConversationAuthoring from the models * modify a model name to "UtteranceEvaluationResult" * add @access(Access.internal, "python") on some operations for test * make remaining getStatus internal in Python * removed prefix "AnalyzeConversationAuthoring" from models * update the clientname AnalyzeConversationAuthoringExportedEntityListSynonym.values to `synonyms` * update clientname for projectMetadata to projectDetails * add internal decorators to all LROPoller[None] LRO * renamed import to `importProject` in Python clientname * moved import to ProjectOperations * make import and deleteProject private in Python * added @access(Access.internal, "python") for some remaining features * fix typespec validation
1 parent 2d9f47f commit 915c0ce

File tree

8 files changed

+917
-142
lines changed

8 files changed

+917
-142
lines changed

specification/cognitiveservices/Language.AnalyzeConversations-authoring/client.tsp

Lines changed: 896 additions & 0 deletions
Large diffs are not rendered by default.

specification/cognitiveservices/Language.AnalyzeConversations-authoring/main.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ using TypeSpec.Versioning;
3434
/**
3535
* Supported Cognitive Services endpoint e.g., https://<resource-name>.api.cognitiveservices.azure.com.
3636
*/
37-
Endpoint: string,
37+
Endpoint: url,
3838
}
3939
)
4040
namespace Language.Conversations.Authoring;

specification/cognitiveservices/Language.AnalyzeConversations-authoring/models/common.tsp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ using Azure.Core.Traits;
1414
namespace Language.Conversations.Authoring;
1515

1616
#suppress "@azure-tools/typespec-azure-core/documentation-required"
17-
@clientName("ConversationAuthoringProjectKind", "csharp")
1817
union ProjectKind {
1918
string,
2019

@@ -39,7 +38,6 @@ union ProjectKind {
3938
* Human-readable error code.
4039
*/
4140
#suppress "@azure-tools/typespec-azure-core/documentation-required"
42-
@clientName("ConversationAuthoringErrorCode", "csharp")
4341
union ErrorCode {
4442
string,
4543
InvalidRequest: "InvalidRequest",
@@ -66,7 +64,6 @@ union ErrorCode {
6664
* Human-readable error code.
6765
*/
6866
#suppress "@azure-tools/typespec-azure-core/documentation-required"
69-
@clientName("ConversationAuthoringInnerErrorCode", "csharp")
7067
union InnerErrorCode {
7168
string,
7269
InvalidRequest: "InvalidRequest",
@@ -86,7 +83,6 @@ union InnerErrorCode {
8683
}
8784

8885
#suppress "@azure-tools/typespec-azure-core/documentation-required"
89-
@clientName("StringIndexType", "csharp")
9086
union StringIndexType {
9187
string,
9288

@@ -100,7 +96,6 @@ union StringIndexType {
10096
}
10197

10298
#suppress "@azure-tools/typespec-azure-core/documentation-required"
103-
@clientName("ConversationAuthoringExportedProjectFormat", "csharp")
10499
union ExportedProjectFormat {
105100
string,
106101

@@ -116,7 +111,6 @@ union ExportedProjectFormat {
116111
}
117112

118113
#suppress "@azure-tools/typespec-azure-core/documentation-required"
119-
@clientName("ConversationAuthoringTrainingMode", "csharp")
120114
union TrainingMode {
121115
string,
122116

@@ -132,7 +126,6 @@ union TrainingMode {
132126
}
133127

134128
#suppress "@azure-tools/typespec-azure-core/documentation-required"
135-
@clientName("ConversationAuthoringEvaluationKind", "csharp")
136129
union EvaluationKind {
137130
string,
138131

@@ -149,7 +142,6 @@ union EvaluationKind {
149142

150143
#suppress "@azure-tools/typespec-azure-core/documentation-required"
151144
@lroStatus
152-
@clientName("ConversationAuthoringOperationStatus", "csharp")
153145
union JobStatus {
154146
string,
155147
notStarted: "notStarted",
@@ -169,7 +161,6 @@ union JobStatus {
169161
}
170162

171163
#suppress "@azure-tools/typespec-azure-core/documentation-required"
172-
@clientName("ConversationAuthoringCompositionMode", "csharp")
173164
union CompositionSetting {
174165
string,
175166

@@ -195,7 +186,6 @@ union CompositionSetting {
195186
}
196187

197188
#suppress "@azure-tools/typespec-azure-core/documentation-required"
198-
@clientName("OrchestrationTargetProjectKind", "csharp")
199189
union OrchestrationTargetProjectKind {
200190
string,
201191
Luis: "Luis",

0 commit comments

Comments
 (0)