Skip to content

Commit f0b4fa0

Browse files
authored
modify client name of conversation authoring to align with text authoring (Azure#48583)
* modified the clientname to align with Text Authoring * modifed the tests * udpated exported api and updated snippets
1 parent 09bceeb commit f0b4fa0

File tree

159 files changed

+3887
-3898
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+3887
-3898
lines changed

sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ try
183183
{
184184
string invalidProjectName = "InvalidProject";
185185
ConversationAuthoringProject projectClient = client.GetProject(invalidProjectName);
186-
CreateProjectDetails projectData = new CreateProjectDetails(
186+
ConversationAuthoringCreateProjectDetails projectData = new ConversationAuthoringCreateProjectDetails(
187187
projectKind: "Conversation",
188188
language: "invalid-lang"
189189
)

sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/api/Azure.AI.Language.Conversations.Authoring.net8.0.cs

Lines changed: 805 additions & 807 deletions
Large diffs are not rendered by default.

sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/api/Azure.AI.Language.Conversations.Authoring.netstandard2.0.cs

Lines changed: 805 additions & 807 deletions
Large diffs are not rendered by default.

sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/samples/Sample12_ConversationsAuthoring_SwapDeployments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To swap two deployments, call SwapDeployments on the `ConversationAuthoringDeplo
2121
string projectName = "SampleProject";
2222
string deploymentName1 = "deployment1";
2323
string deploymentName2 = "deployment2";
24-
SwapDeploymentsDetails swapDetails = new SwapDeploymentsDetails(deploymentName1, deploymentName2);
24+
ConversationAuthoringSwapDeploymentsDetails swapDetails = new ConversationAuthoringSwapDeploymentsDetails(deploymentName1, deploymentName2);
2525
ConversationAuthoringProject projectClient = client.GetProject(projectName);
2626
Operation operation = projectClient.SwapDeployments(
2727
waitUntil: WaitUntil.Completed,

sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/samples/Sample12_ConversationsAuthoring_SwapDeploymentsAsync.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ string deploymentName1 = "deployment1";
2323
string deploymentName2 = "deployment2";
2424
ConversationAuthoringProject projectClient = client.GetProject(projectName);
2525

26-
SwapDeploymentsDetails swapDetails = new SwapDeploymentsDetails(deploymentName1, deploymentName2);
26+
ConversationAuthoringSwapDeploymentsDetails swapDetails = new ConversationAuthoringSwapDeploymentsDetails(deploymentName1, deploymentName2);
2727

2828
Operation operation = await projectClient.SwapDeploymentsAsync(
2929
waitUntil: WaitUntil.Completed,

sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/samples/Sample14_ConversationsAuthoring_DeployProject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ string deploymentName = "staging";
2323

2424
ConversationAuthoringDeployment deploymentClient = client.GetDeployment(projectName, deploymentName);
2525

26-
CreateDeploymentDetails trainedModeDetails = new CreateDeploymentDetails("m1");
26+
ConversationAuthoringCreateDeploymentDetails trainedModeDetails = new ConversationAuthoringCreateDeploymentDetails("m1");
2727

2828
Operation operation = deploymentClient.DeployProject(
2929
waitUntil: WaitUntil.Completed,

sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/samples/Sample14_ConversationsAuthoring_DeployProjectAsync.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ string deploymentName = "staging";
2323

2424
ConversationAuthoringDeployment deploymentClient = client.GetDeployment(projectName, deploymentName);
2525

26-
CreateDeploymentDetails trainedModeDetails = new CreateDeploymentDetails("m1");
26+
ConversationAuthoringCreateDeploymentDetails trainedModeDetails = new ConversationAuthoringCreateDeploymentDetails("m1");
2727

2828
Operation operation = await deploymentClient.DeployProjectAsync(
2929
waitUntil: WaitUntil.Completed,

sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/samples/Sample1_ConversationsAuthoring_CreateProject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To create a new project synchronously, call CreateProject on the `ConversationAu
2222
```C# Snippet:Sample1_ConversationsAuthoring_CreateProject
2323
string projectName = "MyNewProject";
2424
ConversationAuthoringProject projectClient = client.GetProject(projectName);
25-
CreateProjectDetails projectData = new CreateProjectDetails(
25+
ConversationAuthoringCreateProjectDetails projectData = new ConversationAuthoringCreateProjectDetails(
2626
projectKind: "Conversation",
2727
language: "en-us"
2828
)

sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/samples/Sample1_ConversationsAuthoring_CreateProjectAsync.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To create a new project, call `CreateProjectAsync` on the `ConversationAuthoring
2222
```C# Snippet:Sample1_ConversationsAuthoring_CreateProjectAsync
2323
string projectName = "MyNewProjectAsync";
2424
ConversationAuthoringProject projectClient = client.GetProject(projectName);
25-
CreateProjectDetails projectData = new CreateProjectDetails(
25+
ConversationAuthoringCreateProjectDetails projectData = new ConversationAuthoringCreateProjectDetails(
2626
projectKind: "Conversation",
2727
language: "en-us"
2828
)

sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/samples/Sample2_ConversationsAuthoring_Import.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ To import a project synchronously, call Import on the ConversationAuthoringProje
2323
string projectName = "MyImportedProject";
2424
ConversationAuthoringProject projectClient = client.GetProject(projectName);
2525

26-
CreateProjectDetails projectMetadata = new CreateProjectDetails(
26+
ConversationAuthoringCreateProjectDetails projectMetadata = new ConversationAuthoringCreateProjectDetails(
2727
projectKind: "Conversation",
2828
language: "en"
2929
)
3030
{
31-
Settings = new ProjectSettings(0.7F),
31+
Settings = new ConversationAuthoringProjectSettings(0.7F),
3232
Multilingual = true,
3333
Description = "Trying out CLU with assets"
3434
};
@@ -64,7 +64,7 @@ projectAssets.Utterances.Add(new ConversationExportedUtterance(
6464
Dataset = "dataset1"
6565
});
6666

67-
ExportedProject exportedProject = new ExportedProject(
67+
ConversationAuthoringExportedProject exportedProject = new ConversationAuthoringExportedProject(
6868
projectFileVersion: "2023-10-01",
6969
stringIndexType: StringIndexType.Utf16CodeUnit,
7070
metadata: projectMetadata

0 commit comments

Comments
 (0)