共用方式為


AppsOperations 類別

AppsOperations 作業。

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

繼承
builtins.object
AppsOperations

建構函式

AppsOperations(client, config, serializer, deserializer)

參數

client
必要

服務要求的用戶端。

config
必要

服務用戶端的設定。

serializer
必要

物件模型序列化程式。

deserializer
必要

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

方法

add

建立新的 LUIS 應用程式。

add_custom_prebuilt_domain

將預先建置的網域及其意圖和實體模型新增為新的應用程式。

delete

刪除應用程式。

download_query_logs

取得應用程式過去一個月端點查詢的記錄。

get

取得應用程式資訊。

get_publish_settings

取得應用程式發佈設定,包括 'UseAllTrainingData'。

get_settings

取得應用程式設定,包括 'UseAllTrainingData'。

import_lu_format

將應用程式匯入 LUIS,應用程式的結構會包含在要求主體中。

import_method

將應用程式匯入 LUIS,應用程式的結構會包含在要求主體中。

import_v2_app

將應用程式匯入 LUIS,應用程式的結構會包含在要求主體中。

list

列出所有使用者的應用程式。

list_available_custom_prebuilt_domains

取得所有文化特性的所有可用自訂預先建置網域。

list_available_custom_prebuilt_domains_for_culture

取得特定文化特性的所有可用預先建置網域。

list_cortana_endpoints

取得預先建置 Cortana 應用程式的端點 URL。

list_domains

取得可用的應用程式域。

list_endpoints

傳回可用的端點部署區域和 URL。

list_supported_cultures

取得支援的文化特性清單。 文化特性相當於撰寫的語言和地區設定。 例如,「en-us」 代表英文的美國變化。

list_usage_scenarios

取得應用程式可用的使用案例。

package_published_application_as_gzip

package - 取得二進位資料流程 GZip 格式的已發佈 LUIS 應用程式套件。

將已發佈的 LUIS 應用程式封裝為要用於 LUIS 容器的 GZip 檔案。

package_trained_application_as_gzip

package - 取得二進位資料流程 GZip 格式的定型 LUIS 應用程式套件。

封裝將 LUIS 應用程式定型為要用於 LUIS 容器中的 GZip 檔案。

publish

發佈特定版本的應用程式。

update

更新應用程式的名稱或描述。

update_publish_settings

更新應用程式發佈設定,包括 'UseAllTrainingData'。

update_settings

更新應用程式設定,包括 'UseAllTrainingData'。

add

建立新的 LUIS 應用程式。

add(application_create_object, custom_headers=None, raw=False, **operation_config)

參數

application_create_object
ApplicationCreateObject
必要

包含 [名稱]、[描述 (選擇性) 、文化特性、使用案例 (選擇性) 、網域 (選擇性) 和初始版本識別碼的應用程式, (應用程式的選擇性) 。 版本識別碼的預設值為 「0.1」。 注意:建立應用程式之後,無法變更文化特性。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

operation_config
必要

作業組態覆寫

傳回

str 或 ClientRawResponse if raw=true

傳回類型

str,

例外狀況

add_custom_prebuilt_domain

將預先建置的網域及其意圖和實體模型新增為新的應用程式。

add_custom_prebuilt_domain(domain_name=None, culture=None, custom_headers=None, raw=False, **operation_config)

參數

domain_name
str
預設值: None

網域名稱。

culture
str
預設值: None

新網域的文化特性。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

operation_config
必要

作業組態覆寫

傳回

str 或 ClientRawResponse if raw=true

傳回類型

str,

例外狀況

delete

刪除應用程式。

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

參數

app_id
str
必要

應用程式識別碼。

force
bool
預設值: False

指出是否強制作業的旗標。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

operation_config
必要

作業組態覆寫

傳回

OperationStatus 或 ClientRawResponse if raw=true

傳回類型

例外狀況

download_query_logs

取得應用程式過去一個月端點查詢的記錄。

download_query_logs(app_id, custom_headers=None, raw=False, callback=None, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

callback
Callable[<xref:Bytes>, <xref:response=None>]
預設值: None

指定時,將會使用資料流程處理的每個資料區塊來呼叫。 回呼應該採用兩個引數:目前資料區塊的位元組和回應物件。 如果資料正在上傳,回應會是 None。

operation_config
必要

作業組態覆寫

傳回

object 或 ClientRawResponse if raw=true

傳回類型

例外狀況

get

取得應用程式資訊。

get(app_id, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

operation_config
必要

作業組態覆寫

傳回

如果 raw=true,ApplicationInfoResponse 或 ClientRawResponse

傳回類型

例外狀況

get_publish_settings

取得應用程式發佈設定,包括 'UseAllTrainingData'。

get_publish_settings(app_id, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

operation_config
必要

作業組態覆寫

傳回

如果 raw=true,PublishSettings 或 ClientRawResponse

傳回類型

例外狀況

get_settings

取得應用程式設定,包括 'UseAllTrainingData'。

get_settings(app_id, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

operation_config
必要

作業組態覆寫

傳回

如果 raw=true,ApplicationSettings 或 ClientRawResponse

傳回類型

例外狀況

import_lu_format

將應用程式匯入 LUIS,應用程式的結構會包含在要求主體中。

import_lu_format(luis_app_lu, app_name=None, custom_headers=None, raw=False, **operation_config)

參數

luis_app_lu
str
必要

LUIS 應用程式結構。

app_name
str
預設值: None

要建立的應用程式名稱。 如果未指定,則會從匯入的物件讀取應用程式名稱。 如果應用程式名稱已經存在,則會傳回錯誤。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

operation_config
必要

作業組態覆寫

傳回

str 或 ClientRawResponse if raw=true

傳回類型

str,

例外狀況

import_method

將應用程式匯入 LUIS,應用程式的結構會包含在要求主體中。

import_method(luis_app, app_name=None, custom_headers=None, raw=False, **operation_config)

參數

luis_app
LuisApp
必要

LUIS 應用程式結構。

app_name
str
預設值: None

要建立的應用程式名稱。 如果未指定,則會從匯入的物件讀取應用程式名稱。 如果應用程式名稱已經存在,則會傳回錯誤。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

operation_config
必要

作業組態覆寫

傳回

str 或 ClientRawResponse if raw=true

傳回類型

str,

例外狀況

import_v2_app

將應用程式匯入 LUIS,應用程式的結構會包含在要求主體中。

import_v2_app(luis_app_v2, app_name=None, custom_headers=None, raw=False, **operation_config)

參數

luis_app_v2
LuisAppV2
必要

LUIS 應用程式結構。

app_name
str
預設值: None

要建立的應用程式名稱。 如果未指定,則會從匯入的物件讀取應用程式名稱。 如果應用程式名稱已經存在,則會傳回錯誤。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

operation_config
必要

作業組態覆寫

傳回

str 或 ClientRawResponse if raw=true

傳回類型

str,

例外狀況

list

列出所有使用者的應用程式。

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

參數

skip
int
預設值: 0

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

take
int
預設值: 100

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

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

operation_config
必要

作業組態覆寫

傳回

list 或 ClientRawResponse if raw=true

傳回類型

例外狀況

list_available_custom_prebuilt_domains

取得所有文化特性的所有可用自訂預先建置網域。

list_available_custom_prebuilt_domains(custom_headers=None, raw=False, **operation_config)

參數

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回直接回應與還原序列化回應

operation_config
必要

作業組態覆寫

傳回

list 或 ClientRawResponse if raw=true

傳回類型

例外狀況

list_available_custom_prebuilt_domains_for_culture

取得特定文化特性的所有可用預先建置網域。

list_available_custom_prebuilt_domains_for_culture(culture, custom_headers=None, raw=False, **operation_config)

參數

culture
str
必要

文化特性。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

operation_config
必要

作業組態覆寫

傳回

list 或 ClientRawResponse if raw=true

傳回類型

例外狀況

list_cortana_endpoints

取得預先建置 Cortana 應用程式的端點 URL。

list_cortana_endpoints(custom_headers=None, raw=False, **operation_config)

參數

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

operation_config
必要

作業組態覆寫

傳回

PersonalAssistantsResponse 或 ClientRawResponse if raw=true

傳回類型

例外狀況

list_domains

取得可用的應用程式域。

list_domains(custom_headers=None, raw=False, **operation_config)

參數

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

operation_config
必要

作業組態覆寫

傳回

list 或 ClientRawResponse if raw=true

傳回類型

list[str],

例外狀況

list_endpoints

傳回可用的端點部署區域和 URL。

list_endpoints(app_id, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

operation_config
必要

作業組態覆寫

傳回

dict 或 ClientRawResponse if raw=true

傳回類型

dict[str, str],

例外狀況

list_supported_cultures

取得支援的文化特性清單。 文化特性相當於撰寫的語言和地區設定。 例如,「en-us」 代表英文的美國變化。

list_supported_cultures(custom_headers=None, raw=False, **operation_config)

參數

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

operation_config
必要

作業組態覆寫

傳回

list 或 ClientRawResponse if raw=true

傳回類型

例外狀況

list_usage_scenarios

取得應用程式可用的使用案例。

list_usage_scenarios(custom_headers=None, raw=False, **operation_config)

參數

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

operation_config
必要

作業組態覆寫

傳回

list 或 ClientRawResponse if raw=true

傳回類型

list[str],

例外狀況

package_published_application_as_gzip

package - 取得二進位資料流程 GZip 格式的已發佈 LUIS 應用程式套件。

將已發佈的 LUIS 應用程式封裝為要用於 LUIS 容器的 GZip 檔案。

package_published_application_as_gzip(app_id, slot_name, custom_headers=None, raw=False, callback=None, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

slot_name
str
必要

發佈位置名稱。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

callback
Callable[<xref:Bytes>, <xref:response=None>]
預設值: None

指定時,將會使用串流處理的每個資料區塊來呼叫 。 回呼應該採用兩個引數:目前資料區塊的位元組和回應物件。 如果資料正在上傳,回應會是 None。

operation_config
必要

作業組態覆寫

傳回

object 或 ClientRawResponse if raw=true

傳回類型

例外狀況

package_trained_application_as_gzip

package - 取得二進位資料流程 GZip 格式的定型 LUIS 應用程式套件。

封裝將 LUIS 應用程式定型為要用於 LUIS 容器中的 GZip 檔案。

package_trained_application_as_gzip(app_id, version_id, custom_headers=None, raw=False, callback=None, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

version_id
str
必要

版本識別碼。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

callback
Callable[<xref:Bytes>, <xref:response=None>]
預設值: None

指定時,將會使用串流處理的每個資料區塊來呼叫 。 回呼應該採用兩個引數:目前資料區塊的位元組和回應物件。 如果資料正在上傳,回應會是 None。

operation_config
必要

作業組態覆寫

傳回

object 或 ClientRawResponse if raw=true

傳回類型

例外狀況

publish

發佈特定版本的應用程式。

publish(app_id, version_id=None, is_staging=False, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

version_id
str
預設值: None

要發行的版本識別碼。

is_staging
bool
預設值: False

指出是否應該使用預備位置,而不是生產位置。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

operation_config
必要

作業組態覆寫

傳回

ProductionOrStagingEndpointInfo 或 ClientRawResponse if raw=true

傳回類型

例外狀況

update

更新應用程式的名稱或描述。

update(app_id, name=None, description=None, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

name
str
預設值: None

應用程式的新名稱。

description
str
預設值: None

應用程式的新描述。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

operation_config
必要

作業組態覆寫

傳回

OperationStatus 或 ClientRawResponse if raw=true

傳回類型

例外狀況

update_publish_settings

更新應用程式發佈設定,包括 'UseAllTrainingData'。

update_publish_settings(app_id, publish_setting_update_object, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

publish_setting_update_object
PublishSettingUpdateObject
必要

物件,包含新的發佈應用程式設定。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

operation_config
必要

作業組態覆寫

傳回

OperationStatus 或 ClientRawResponse if raw=true

傳回類型

例外狀況

update_settings

更新應用程式設定,包括 'UseAllTrainingData'。

update_settings(app_id, is_public=None, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

is_public
bool
預設值: None

將應用程式設定為公用可讓其他人使用自己的金鑰來使用應用程式的端點。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

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

operation_config
必要

作業組態覆寫

傳回

OperationStatus 或 ClientRawResponse if raw=true

傳回類型

例外狀況

屬性

models

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