共用方式為


ExamplesOperations 類別

ExamplesOperations 作業。

您不應該直接具現化此類別,而是建立用戶端實例來為您建立它,並將其附加為屬性。

繼承
builtins.object
ExamplesOperations

建構函式

ExamplesOperations(client, config, serializer, deserializer)

參數

名稱 Description
client
必要

服務要求的用戶端。

config
必要

服務用戶端的設定。

serializer
必要

物件模型序列化程式。

deserializer
必要

物件模型還原序列化程式。

方法

add

在應用程式的版本中加入加上標籤的範例語句。

batch

將標記的範例語句批次新增至應用程式的版本。

delete

從應用程式的版本中,刪除具有指定識別碼的已標記範例語句。

list

傳回要從應用程式版本檢閱的範例語句。

add

在應用程式的版本中加入加上標籤的範例語句。

add(app_id, version_id, example_label_object, enable_nested_children=False, custom_headers=None, raw=False, **operation_config)

參數

名稱 Description
app_id
必要
str

應用程式識別碼。

version_id
必要
str

版本識別碼。

example_label_object
必要

標示為具有預期意圖和實體的範例語句。

enable_nested_children

切換巢狀/一般格式

預設值: False
custom_headers

將新增至要求的標頭

預設值: None
raw

傳回與還原序列化回應一起的直接回應

預設值: False
operation_config
必要

作業組態覆寫

傳回

類型 Description
<xref:msrest.pipeline.ClientRawResponse>

LabelExampleResponse 或 ClientRawResponse if raw=true

例外狀況

類型 Description

batch

將標記的範例語句批次新增至應用程式的版本。

batch(app_id, version_id, example_label_object_array, enable_nested_children=False, custom_headers=None, raw=False, **operation_config)

參數

名稱 Description
app_id
必要
str

應用程式識別碼。

version_id
必要
str

版本識別碼。

example_label_object_array
必要

範例語句的陣列。

enable_nested_children

切換巢狀/一般格式

預設值: False
custom_headers

將新增至要求的標頭

預設值: None
raw

傳回與還原序列化回應一起的直接回應

預設值: False
operation_config
必要

作業組態覆寫

傳回

類型 Description
<xref:msrest.pipeline.ClientRawResponse>

list 或 ClientRawResponse if raw=true

例外狀況

類型 Description

delete

從應用程式的版本中,刪除具有指定識別碼的已標記範例語句。

delete(app_id, version_id, example_id, custom_headers=None, raw=False, **operation_config)

參數

名稱 Description
app_id
必要
str

應用程式識別碼。

version_id
必要
str

版本識別碼。

example_id
必要
int

範例識別碼。

custom_headers

將新增至要求的標頭

預設值: None
raw

傳回與還原序列化回應一起的直接回應

預設值: False
operation_config
必要

作業組態覆寫

傳回

類型 Description
<xref:msrest.pipeline.ClientRawResponse>

OperationStatus 或 ClientRawResponse if raw=true

例外狀況

類型 Description

list

傳回要從應用程式版本檢閱的範例語句。

list(app_id, version_id, skip=0, take=100, enable_nested_children=False, custom_headers=None, raw=False, **operation_config)

參數

名稱 Description
app_id
必要
str

應用程式識別碼。

version_id
必要
str

版本識別碼。

skip
int

要略過的專案數。 預設值為 0。

預設值: 0
take
int

要傳回的專案數。 頁面大小上限為 500。預設值為 100。

預設值: 100
enable_nested_children

切換巢狀/一般格式

預設值: False
custom_headers

將新增至要求的標頭

預設值: None
raw

傳回與還原序列化回應一起的直接回應

預設值: False
operation_config
必要

作業組態覆寫

傳回

類型 Description
<xref:msrest.pipeline.ClientRawResponse>

list 或 ClientRawResponse if raw=true

例外狀況

類型 Description

屬性

models

models = <module 'azure.cognitiveservices.language.luis.authoring.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\authoring\\models\\__init__.py'>