EndpointKeysOperations 類別
EndpointKeysOperations 作業。
- 繼承
-
builtins.objectEndpointKeysOperations
建構函式
EndpointKeysOperations(client, config, serializer, deserializer)
參數
名稱 | Description |
---|---|
client
必要
|
服務要求的用戶端。 |
config
必要
|
服務用戶端的設定。 |
serializer
必要
|
物件模型序列化程式。 |
deserializer
必要
|
物件模型還原序列化程式。 |
方法
get_keys |
取得端點的端點金鑰。 |
refresh_keys |
重新產生端點金鑰。 |
get_keys
取得端點的端點金鑰。
get_keys(custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回直接回應與還原序列化回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
如果 raw=true,EndpointKeysDTO 或 ClientRawResponse |
例外狀況
類型 | Description |
---|---|
refresh_keys
重新產生端點金鑰。
refresh_keys(key_type, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
key_type
必要
|
機碼類型 |
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回直接回應與還原序列化回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
如果 raw=true,EndpointKeysDTO 或 ClientRawResponse |
例外狀況
類型 | Description |
---|---|
屬性
models
models = <module 'azure.cognitiveservices.knowledge.qnamaker.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\cognitiveservices\\knowledge\\qnamaker\\models\\__init__.py'>
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應