EndpointKeysOperations Class

EndpointKeysOperations operations.

Inheritance
builtins.object
EndpointKeysOperations

Constructor

EndpointKeysOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Methods

get_keys

Gets endpoint keys for an endpoint.

refresh_keys

Re-generates an endpoint key.

get_keys

Gets endpoint keys for an endpoint.

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

Parameters

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

EndpointKeysDTO or ClientRawResponse if raw=true

Return type

Exceptions

refresh_keys

Re-generates an endpoint key.

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

Parameters

key_type
str
Required

Type of Key

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

EndpointKeysDTO or ClientRawResponse if raw=true

Return type

Exceptions

Attributes

models

models = <module 'azure.cognitiveservices.knowledge.qnamaker.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.12\\x64\\lib\\site-packages\\azure\\cognitiveservices\\knowledge\\qnamaker\\models\\__init__.py'>