CommunicationsOperations Class
CommunicationsOperations 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.objectCommunicationsOperations
Constructor
CommunicationsOperations(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
| begin_create |
Adds a new customer communication to an Azure support ticket. |
| check_name_availability |
Check the availability of a resource name. This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. |
| get |
Returns communication details for a support ticket. |
| list |
Lists all communications (attachments not included) for a support ticket. |
begin_create
Adds a new customer communication to an Azure support ticket.
async begin_create(support_ticket_name: str, communication_name: str, create_communication_parameters: azure.mgmt.support.models._models_py3.CommunicationDetails, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.support.models._models_py3.CommunicationDetails]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either CommunicationDetails or the result of cls(response)
Return type
Exceptions
check_name_availability
Check the availability of a resource name. This API should be used to check the uniqueness of the name for adding a new communication to the support ticket.
async check_name_availability(support_ticket_name: str, check_name_availability_input: azure.mgmt.support.models._models_py3.CheckNameAvailabilityInput, **kwargs) -> azure.mgmt.support.models._models_py3.CheckNameAvailabilityOutput
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CheckNameAvailabilityOutput, or the result of cls(response)
Return type
Exceptions
get
Returns communication details for a support ticket.
async get(support_ticket_name: str, communication_name: str, **kwargs) -> azure.mgmt.support.models._models_py3.CommunicationDetails
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CommunicationDetails, or the result of cls(response)
Return type
Exceptions
list
Lists all communications (attachments not included) for a support ticket. <br/>
You can also filter support ticket communications by CreatedDate or CommunicationType using
the $filter parameter. The only type of communication supported today is Web. Output will be
a paged result with nextLink\ , using which you can retrieve the next set of Communication
results. :code:<br/>:code:>><<<br/>Support ticket data is available for 18 months after ticket
creation. If a ticket was created more than 18 months ago, a request for data might cause an
error.
list(support_ticket_name: str, top: Optional[int] = None, filter: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.support.models._models_py3.CommunicationsListResult]
Parameters
- top
- int
The number of values to return in the collection. Default is 10 and max is 10.
- filter
- str
The filter to apply on the operation. You can filter by communicationType and createdDate properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either CommunicationsListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.support.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\support\\models\\__init__.py'>
Feedback
Submit and view feedback for