Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR Azure.AI.Translation.Document] fix spread for purview datamap and translation document #8386

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

QueryConfig queryConfig = new QueryConfig();
Response<QueryResult> response = await client.QueryAsync(queryConfig);
QueryConfig body = new QueryConfig();
Response<QueryResult> response = await client.QueryAsync(body);
]]></code>
This sample shows how to call QueryAsync with all parameters.
<code><![CDATA[
Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

QueryConfig queryConfig = new QueryConfig
QueryConfig body = new QueryConfig
{
Keywords = "<keywords>",
Limit = 1234,
Expand All @@ -41,7 +41,7 @@ QueryConfig queryConfig = new QueryConfig
Facet = default,
},
};
Response<QueryResult> response = await client.QueryAsync(queryConfig);
Response<QueryResult> response = await client.QueryAsync(body);
]]></code></example>
</member>
<member name="Query(QueryConfig,CancellationToken)">
Expand All @@ -52,16 +52,16 @@ Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

QueryConfig queryConfig = new QueryConfig();
Response<QueryResult> response = client.Query(queryConfig);
QueryConfig body = new QueryConfig();
Response<QueryResult> response = client.Query(body);
]]></code>
This sample shows how to call Query with all parameters.
<code><![CDATA[
Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

QueryConfig queryConfig = new QueryConfig
QueryConfig body = new QueryConfig
{
Keywords = "<keywords>",
Limit = 1234,
Expand All @@ -84,7 +84,7 @@ QueryConfig queryConfig = new QueryConfig
Facet = default,
},
};
Response<QueryResult> response = client.Query(queryConfig);
Response<QueryResult> response = client.Query(body);
]]></code></example>
</member>
<member name="QueryAsync(RequestContent,RequestContext)">
Expand Down Expand Up @@ -313,22 +313,22 @@ Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

SuggestConfig suggestConfig = new SuggestConfig();
Response<SuggestResult> response = await client.SuggestAsync(suggestConfig);
SuggestConfig body = new SuggestConfig();
Response<SuggestResult> response = await client.SuggestAsync(body);
]]></code>
This sample shows how to call SuggestAsync with all parameters.
<code><![CDATA[
Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

SuggestConfig suggestConfig = new SuggestConfig
SuggestConfig body = new SuggestConfig
{
Keywords = "<keywords>",
Limit = 1234,
Filter = BinaryData.FromObjectAsJson(new object()),
};
Response<SuggestResult> response = await client.SuggestAsync(suggestConfig);
Response<SuggestResult> response = await client.SuggestAsync(body);
]]></code></example>
</member>
<member name="Suggest(SuggestConfig,CancellationToken)">
Expand All @@ -339,22 +339,22 @@ Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

SuggestConfig suggestConfig = new SuggestConfig();
Response<SuggestResult> response = client.Suggest(suggestConfig);
SuggestConfig body = new SuggestConfig();
Response<SuggestResult> response = client.Suggest(body);
]]></code>
This sample shows how to call Suggest with all parameters.
<code><![CDATA[
Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

SuggestConfig suggestConfig = new SuggestConfig
SuggestConfig body = new SuggestConfig
{
Keywords = "<keywords>",
Limit = 1234,
Filter = BinaryData.FromObjectAsJson(new object()),
};
Response<SuggestResult> response = client.Suggest(suggestConfig);
Response<SuggestResult> response = client.Suggest(body);
]]></code></example>
</member>
<member name="SuggestAsync(RequestContent,RequestContext)">
Expand Down Expand Up @@ -479,22 +479,22 @@ Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

AutoCompleteConfig autoCompleteConfig = new AutoCompleteConfig();
Response<AutoCompleteResult> response = await client.AutoCompleteAsync(autoCompleteConfig);
AutoCompleteConfig body = new AutoCompleteConfig();
Response<AutoCompleteResult> response = await client.AutoCompleteAsync(body);
]]></code>
This sample shows how to call AutoCompleteAsync with all parameters.
<code><![CDATA[
Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

AutoCompleteConfig autoCompleteConfig = new AutoCompleteConfig
AutoCompleteConfig body = new AutoCompleteConfig
{
Keywords = "<keywords>",
Limit = 1234,
Filter = BinaryData.FromObjectAsJson(new object()),
};
Response<AutoCompleteResult> response = await client.AutoCompleteAsync(autoCompleteConfig);
Response<AutoCompleteResult> response = await client.AutoCompleteAsync(body);
]]></code></example>
</member>
<member name="AutoComplete(AutoCompleteConfig,CancellationToken)">
Expand All @@ -505,22 +505,22 @@ Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

AutoCompleteConfig autoCompleteConfig = new AutoCompleteConfig();
Response<AutoCompleteResult> response = client.AutoComplete(autoCompleteConfig);
AutoCompleteConfig body = new AutoCompleteConfig();
Response<AutoCompleteResult> response = client.AutoComplete(body);
]]></code>
This sample shows how to call AutoComplete with all parameters.
<code><![CDATA[
Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01");

AutoCompleteConfig autoCompleteConfig = new AutoCompleteConfig
AutoCompleteConfig body = new AutoCompleteConfig
{
Keywords = "<keywords>",
Limit = 1234,
Filter = BinaryData.FromObjectAsJson(new object()),
};
Response<AutoCompleteResult> response = client.AutoComplete(autoCompleteConfig);
Response<AutoCompleteResult> response = client.AutoComplete(body);
]]></code></example>
</member>
<member name="AutoCompleteAsync(RequestContent,RequestContext)">
Expand Down
Loading