@@ -23,7 +23,12 @@ async def publish_cloud_events(
2323 content_type : str = "application/cloudevents-batch+json; charset=utf-8" ,
2424 ** kwargs : Any
2525 ) -> None :
26- """Publish Batch of Cloud Events to namespace topic.
26+ """Publish Batch Cloud Event to namespace topic. In case of success, the server responds with an
27+ HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return
28+ various error codes. For example, 401: which indicates authorization failure, 403: which
29+ indicates quota exceeded or message is too large, 410: which indicates that specific topic is
30+ not found, 400: for bad request, and 500: for internal server error.
31+
2732 :param topic_name: Topic Name. Required.
2833 :type topic_name: str
2934 :param body: Array of Cloud Events being published. Required.
@@ -34,7 +39,7 @@ async def publish_cloud_events(
3439 :keyword bool stream: Whether to stream the response of this operation. Defaults to False. You
3540 will have to context manage the returned stream.
3641 :return: None
37- :rtype: None
42+ :rtype: None
3843 :raises ~azure.core.exceptions.HttpResponseError:
3944 """
4045
@@ -47,7 +52,12 @@ async def publish_cloud_events(
4752 content_type : str = "application/cloudevents+json; charset=utf-8" ,
4853 ** kwargs : Any
4954 ) -> None :
50- """Publish Single Cloud Event to namespace topic.
55+ """Publish Single Cloud Event to namespace topic. In case of success, the server responds with an
56+ HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return
57+ various error codes. For example, 401: which indicates authorization failure, 403: which
58+ indicates quota exceeded or message is too large, 410: which indicates that specific topic is
59+ not found, 400: for bad request, and 500: for internal server error.
60+
5161 :param topic_name: Topic Name. Required.
5262 :type topic_name: str
5363 :param body: Single Cloud Event being published. Required.
@@ -58,26 +68,31 @@ async def publish_cloud_events(
5868 :keyword bool stream: Whether to stream the response of this operation. Defaults to False. You
5969 will have to context manage the returned stream.
6070 :return: None
61- :rtype: None
71+ :rtype: None
6272 :raises ~azure.core.exceptions.HttpResponseError:
6373 """
6474
6575 @distributed_trace_async
6676 async def publish_cloud_events (
6777 self , topic_name : str , body : Union [List [CloudEvent ], CloudEvent ], ** kwargs
6878 ) -> None :
69- """Publish Cloud Events to namespace topic.
79+ """Publish Batch Cloud Event or Events to namespace topic. In case of success, the server responds with an
80+ HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return
81+ various error codes. For example, 401: which indicates authorization failure, 403: which
82+ indicates quota exceeded or message is too large, 410: which indicates that specific topic is
83+ not found, 400: for bad request, and 500: for internal server error.
84+
7085 :param topic_name: Topic Name. Required.
7186 :type topic_name: str
72- :param body: Single Cloud Event or list of Cloud Events being published. Required.
87+ :param body: Cloud Event or Array of Cloud Events being published. Required.
7388 :type body: ~azure.core.messaging.CloudEvent or list[~azure.core.messaging.CloudEvent]
7489 :keyword content_type: content type. Default value is "application/cloudevents+json;
7590 charset=utf-8".
7691 :paramtype content_type: str
7792 :keyword bool stream: Whether to stream the response of this operation. Defaults to False. You
7893 will have to context manage the returned stream.
7994 :return: None
80- :rtype: None
95+ :rtype: None
8196 :raises ~azure.core.exceptions.HttpResponseError:
8297 """
8398 if isinstance (body , CloudEvent ):
0 commit comments