EndpointKeysOperations 類別

EndpointKeysOperations 作業。

繼承
builtins.object
EndpointKeysOperations

建構函式

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
必要
str

金鑰類型

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'>