PatternOperations Class
PatternOperations operations.
You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.
- Inheritance
-
builtins.objectPatternOperations
Constructor
PatternOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Methods
| add_pattern |
Adds a pattern to a version of the application. |
| batch_add_patterns |
Adds a batch of patterns in a version of the application. |
| delete_pattern |
Deletes the pattern with the specified ID from a version of the application.. |
| delete_patterns |
Deletes a list of patterns in a version of the application. |
| list_intent_patterns |
Returns patterns for the specific intent in a version of the application. |
| list_patterns |
Gets patterns in a version of the application. |
| update_pattern |
Updates a pattern in a version of the application. |
| update_patterns |
Updates patterns in a version of the application. |
add_pattern
Adds a pattern to a version of the application.
add_pattern(app_id, version_id, pattern=None, intent=None, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
PatternRuleInfo or ClientRawResponse if raw=true
Return type
Exceptions
batch_add_patterns
Adds a batch of patterns in a version of the application.
batch_add_patterns(app_id, version_id, patterns, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
list or ClientRawResponse if raw=true
Return type
Exceptions
delete_pattern
Deletes the pattern with the specified ID from a version of the application..
delete_pattern(app_id, version_id, pattern_id, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
OperationStatus or ClientRawResponse if raw=true
Return type
Exceptions
delete_patterns
Deletes a list of patterns in a version of the application.
delete_patterns(app_id, version_id, pattern_ids, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
OperationStatus or ClientRawResponse if raw=true
Return type
Exceptions
list_intent_patterns
Returns patterns for the specific intent in a version of the application.
list_intent_patterns(app_id, version_id, intent_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)
Parameters
- take
- int
The number of entries to return. Maximum page size is 500. Default is 100.
- operation_config
Operation configuration overrides.
Returns
list or ClientRawResponse if raw=true
Return type
Exceptions
list_patterns
Gets patterns in a version of the application.
list_patterns(app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)
Parameters
- take
- int
The number of entries to return. Maximum page size is 500. Default is 100.
- operation_config
Operation configuration overrides.
Returns
list or ClientRawResponse if raw=true
Return type
Exceptions
update_pattern
Updates a pattern in a version of the application.
update_pattern(app_id, version_id, pattern_id, pattern, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
PatternRuleInfo or ClientRawResponse if raw=true
Return type
Exceptions
update_patterns
Updates patterns in a version of the application.
update_patterns(app_id, version_id, patterns, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
list or ClientRawResponse if raw=true
Return type
Exceptions
Attributes
models
models = <module 'azure.cognitiveservices.language.luis.authoring.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\authoring\\models\\__init__.py'>
Feedback
Submit and view feedback for