ChannelsOperations Class
ChannelsOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectChannelsOperations
Constructor
ChannelsOperations(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.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create |
Creates a Channel registration for a Bot Service. |
| delete |
Deletes a Channel registration from a Bot Service. |
| get |
Returns a BotService Channel registration specified by the parameters. |
| list_by_resource_group |
Returns all the Channel registrations of a particular BotService resource. |
| list_with_keys |
Lists a Channel registration for a Bot Service including secrets. |
| update |
Updates a Channel registration for a Bot Service. |
create
Creates a Channel registration for a Bot Service.
async create(resource_group_name: str, resource_name: str, channel_name: Union[str, azure.mgmt.botservice.models._azure_bot_service_enums.ChannelName], parameters: azure.mgmt.botservice.models._models_py3.BotChannel, **kwargs: Any) -> azure.mgmt.botservice.models._models_py3.BotChannel
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
BotChannel, or the result of cls(response)
Return type
Exceptions
delete
Deletes a Channel registration from a Bot Service.
async delete(resource_group_name: str, resource_name: str, channel_name: str, **kwargs: Any) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Returns a BotService Channel registration specified by the parameters.
async get(resource_group_name: str, resource_name: str, channel_name: str, **kwargs: Any) -> azure.mgmt.botservice.models._models_py3.BotChannel
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
BotChannel, or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Returns all the Channel registrations of a particular BotService resource.
list_by_resource_group(resource_group_name: str, resource_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.botservice.models._models_py3.ChannelResponseList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ChannelResponseList or the result of cls(response)
Return type
Exceptions
list_with_keys
Lists a Channel registration for a Bot Service including secrets.
async list_with_keys(resource_group_name: str, resource_name: str, channel_name: Union[str, azure.mgmt.botservice.models._azure_bot_service_enums.ChannelName], **kwargs: Any) -> azure.mgmt.botservice.models._models_py3.BotChannel
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
BotChannel, or the result of cls(response)
Return type
Exceptions
update
Updates a Channel registration for a Bot Service.
async update(resource_group_name: str, resource_name: str, channel_name: Union[str, azure.mgmt.botservice.models._azure_bot_service_enums.ChannelName], location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, sku: Optional[azure.mgmt.botservice.models._models_py3.Sku] = None, kind: Optional[Union[str, azure.mgmt.botservice.models._azure_bot_service_enums.Kind]] = None, etag: Optional[str] = None, properties: Optional[azure.mgmt.botservice.models._models_py3.Channel] = None, **kwargs: Any) -> azure.mgmt.botservice.models._models_py3.BotChannel
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
BotChannel, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.botservice.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\botservice\\models\\__init__.py'>
Feedback
Submit and view feedback for