Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .service_bus_message import ServiceBusMessage
class ServiceBusTopicMessage(ServiceBusMessage):
"""ServiceBusTopicMessage.
:param authentication: Gets or sets the Service Bus authentication.
:type authentication:
~azure.mgmt.scheduler.models.ServiceBusAuthentication
:param brokered_message_properties: Gets or sets the brokered message
properties.
:type brokered_message_properties:
~azure.mgmt.scheduler.models.ServiceBusBrokeredMessageProperties
:param custom_message_properties: Gets or sets the custom message
properties.
:type custom_message_properties: dict[str, str]
:param message: Gets or sets the message.
:type message: str
:param namespace: Gets or sets the namespace.
:type namespace: str
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .service_bus_message import ServiceBusMessage
class ServiceBusQueueMessage(ServiceBusMessage):
"""ServiceBusQueueMessage.
:param authentication: Gets or sets the Service Bus authentication.
:type authentication:
~azure.mgmt.scheduler.models.ServiceBusAuthentication
:param brokered_message_properties: Gets or sets the brokered message
properties.
:type brokered_message_properties:
~azure.mgmt.scheduler.models.ServiceBusBrokeredMessageProperties
:param custom_message_properties: Gets or sets the custom message
properties.
:type custom_message_properties: dict[str, str]
:param message: Gets or sets the message.
:type message: str
:param namespace: Gets or sets the namespace.
:type namespace: str
def __init__(self, **kwargs):
super(ServiceBusMessage, self).__init__(**kwargs)
self.authentication = kwargs.get('authentication', None)
self.brokered_message_properties = kwargs.get('brokered_message_properties', None)
self.custom_message_properties = kwargs.get('custom_message_properties', None)
self.message = kwargs.get('message', None)
self.namespace = kwargs.get('namespace', None)
self.transport_type = kwargs.get('transport_type', None)