你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EndpointKeysOperations 类

EndpointKeysOperations 操作。

继承
builtins.object
EndpointKeysOperations

构造函数

EndpointKeysOperations(client, config, serializer, deserializer)

参数

名称 说明
client
必需

服务请求的客户端。

config
必需

服务客户端的配置。

serializer
必需

对象模型序列化程序。

deserializer
必需

对象模型反序列化程序。

方法

get_keys

获取终结点的终结点密钥。

refresh_keys

重新生成终结点密钥。

get_keys

获取终结点的终结点密钥。

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

参数

名称 说明
custom_headers

将添加到请求的标头

默认值: None
raw

返回直接响应以及反序列化的响应

默认值: False
operation_config
必需

操作配置替代

返回

类型 说明
<xref:msrest.pipeline.ClientRawResponse>

EndpointKeysDTO 或 ClientRawResponse(如果 raw=true)

例外

类型 说明

refresh_keys

重新生成终结点密钥。

refresh_keys(key_type, custom_headers=None, raw=False, **operation_config)

参数

名称 说明
key_type
必需
str

密钥类型

custom_headers

将添加到请求的标头

默认值: None
raw

返回直接响应以及反序列化的响应

默认值: False
operation_config
必需

操作配置替代

返回

类型 说明
<xref:msrest.pipeline.ClientRawResponse>

EndpointKeysDTO 或 ClientRawResponse(如果 raw=true)

例外

类型 说明

属性

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