/// <summary> /// Initializes a new instance of the SBQueue class. /// </summary> /// <param name="id">Resource Id</param> /// <param name="name">Resource name</param> /// <param name="type">Resource type</param> /// <param name="countDetails">Message Count Details.</param> /// <param name="createdAt">The exact time the message was /// created.</param> /// <param name="updatedAt">The exact time the message was /// updated.</param> /// <param name="accessedAt">Last time a message was sent, or the last /// time there was a receive request to this queue.</param> /// <param name="sizeInBytes">The size of the queue, in bytes.</param> /// <param name="messageCount">The number of messages in the /// queue.</param> /// <param name="lockDuration">ISO 8601 timespan duration of a /// peek-lock; that is, the amount of time that the message is locked /// for other receivers. The maximum value for LockDuration is 5 /// minutes; the default value is 1 minute.</param> /// <param name="maxSizeInMegabytes">The maximum size of the queue in /// megabytes, which is the size of memory allocated for the queue. /// Default is 1024.</param> /// <param name="maxMessageSizeInKilobytes">Maximum size (in KB) of the /// message payload that can be accepted by the queue. This property is /// only used in Premium today and default is 1024.</param> /// <param name="requiresDuplicateDetection">A value indicating if this /// queue requires duplicate detection.</param> /// <param name="requiresSession">A value that indicates whether the /// queue supports the concept of sessions.</param> /// <param name="defaultMessageTimeToLive">ISO 8601 default message /// timespan to live value. This is the duration after which the /// message expires, starting from when the message is sent to Service /// Bus. This is the default value used when TimeToLive is not set on a /// message itself.</param> /// <param name="deadLetteringOnMessageExpiration">A value that /// indicates whether this queue has dead letter support when a message /// expires.</param> /// <param name="duplicateDetectionHistoryTimeWindow">ISO 8601 timeSpan /// structure that defines the duration of the duplicate detection /// history. The default value is 10 minutes.</param> /// <param name="maxDeliveryCount">The maximum delivery count. A /// message is automatically deadlettered after this number of /// deliveries. default value is 10.</param> /// <param name="status">Enumerates the possible values for the status /// of a messaging entity. Possible values include: 'Active', /// 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', /// 'Creating', 'Deleting', 'Renaming', 'Unknown'</param> /// <param name="enableBatchedOperations">Value that indicates whether /// server-side batched operations are enabled.</param> /// <param name="autoDeleteOnIdle">ISO 8061 timeSpan idle interval /// after which the queue is automatically deleted. The minimum /// duration is 5 minutes.</param> /// <param name="enablePartitioning">A value that indicates whether the /// queue is to be partitioned across multiple message brokers.</param> /// <param name="enableExpress">A value that indicates whether Express /// Entities are enabled. An express queue holds a message in memory /// temporarily before writing it to persistent storage.</param> /// <param name="forwardTo">Queue/Topic name to forward the /// messages</param> /// <param name="forwardDeadLetteredMessagesTo">Queue/Topic name to /// forward the Dead Letter message</param> /// <param name="systemData">The system meta data relating to this /// resource.</param> public SBQueue(string id = default(string), string name = default(string), string type = default(string), MessageCountDetails countDetails = default(MessageCountDetails), System.DateTime?createdAt = default(System.DateTime?), System.DateTime?updatedAt = default(System.DateTime?), System.DateTime?accessedAt = default(System.DateTime?), long?sizeInBytes = default(long?), long?messageCount = default(long?), System.TimeSpan?lockDuration = default(System.TimeSpan?), int?maxSizeInMegabytes = default(int?), long?maxMessageSizeInKilobytes = default(long?), bool?requiresDuplicateDetection = default(bool?), bool?requiresSession = default(bool?), System.TimeSpan?defaultMessageTimeToLive = default(System.TimeSpan?), bool?deadLetteringOnMessageExpiration = default(bool?), System.TimeSpan?duplicateDetectionHistoryTimeWindow = default(System.TimeSpan?), int?maxDeliveryCount = default(int?), EntityStatus?status = default(EntityStatus?), bool?enableBatchedOperations = default(bool?), System.TimeSpan?autoDeleteOnIdle = default(System.TimeSpan?), bool?enablePartitioning = default(bool?), bool?enableExpress = default(bool?), string forwardTo = default(string), string forwardDeadLetteredMessagesTo = default(string), SystemData systemData = default(SystemData)) : base(id, name, type) { CountDetails = countDetails; CreatedAt = createdAt; UpdatedAt = updatedAt; AccessedAt = accessedAt; SizeInBytes = sizeInBytes; MessageCount = messageCount; LockDuration = lockDuration; MaxSizeInMegabytes = maxSizeInMegabytes; MaxMessageSizeInKilobytes = maxMessageSizeInKilobytes; RequiresDuplicateDetection = requiresDuplicateDetection; RequiresSession = requiresSession; DefaultMessageTimeToLive = defaultMessageTimeToLive; DeadLetteringOnMessageExpiration = deadLetteringOnMessageExpiration; DuplicateDetectionHistoryTimeWindow = duplicateDetectionHistoryTimeWindow; MaxDeliveryCount = maxDeliveryCount; Status = status; EnableBatchedOperations = enableBatchedOperations; AutoDeleteOnIdle = autoDeleteOnIdle; EnablePartitioning = enablePartitioning; EnableExpress = enableExpress; ForwardTo = forwardTo; ForwardDeadLetteredMessagesTo = forwardDeadLetteredMessagesTo; SystemData = systemData; CustomInit(); }
/// <summary> /// Initializes a new instance of the SBSubscription class. /// </summary> /// <param name="id">Resource Id</param> /// <param name="name">Resource name</param> /// <param name="type">Resource type</param> /// <param name="messageCount">Number of messages.</param> /// <param name="createdAt">Exact time the message was created.</param> /// <param name="accessedAt">Last time there was a receive request to /// this subscription.</param> /// <param name="updatedAt">The exact time the message was /// updated.</param> /// <param name="countDetails">Message count details</param> /// <param name="lockDuration">ISO 8061 lock duration timespan for the /// subscription. The default value is 1 minute.</param> /// <param name="requiresSession">Value indicating if a subscription /// supports the concept of sessions.</param> /// <param name="defaultMessageTimeToLive">ISO 8061 Default message /// timespan to live value. This is the duration after which the /// message expires, starting from when the message is sent to Service /// Bus. This is the default value used when TimeToLive is not set on a /// message itself.</param> /// <param name="deadLetteringOnFilterEvaluationExceptions">Value that /// indicates whether a subscription has dead letter support on filter /// evaluation exceptions.</param> /// <param name="deadLetteringOnMessageExpiration">Value that indicates /// whether a subscription has dead letter support when a message /// expires.</param> /// <param name="duplicateDetectionHistoryTimeWindow">ISO 8601 timeSpan /// structure that defines the duration of the duplicate detection /// history. The default value is 10 minutes.</param> /// <param name="maxDeliveryCount">Number of maximum /// deliveries.</param> /// <param name="status">Enumerates the possible values for the status /// of a messaging entity. Possible values include: 'Active', /// 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', /// 'Creating', 'Deleting', 'Renaming', 'Unknown'</param> /// <param name="enableBatchedOperations">Value that indicates whether /// server-side batched operations are enabled.</param> /// <param name="autoDeleteOnIdle">ISO 8061 timeSpan idle interval /// after which the topic is automatically deleted. The minimum /// duration is 5 minutes.</param> /// <param name="forwardTo">Queue/Topic name to forward the /// messages</param> /// <param name="forwardDeadLetteredMessagesTo">Queue/Topic name to /// forward the Dead Letter message</param> /// <param name="isClientAffine">Value that indicates whether the /// subscription has an affinity to the client id.</param> /// <param name="clientAffineProperties">Properties specific to client /// affine subscriptions.</param> /// <param name="systemData">The system meta data relating to this /// resource.</param> public SBSubscription(string id = default(string), string name = default(string), string type = default(string), long?messageCount = default(long?), System.DateTime?createdAt = default(System.DateTime?), System.DateTime?accessedAt = default(System.DateTime?), System.DateTime?updatedAt = default(System.DateTime?), MessageCountDetails countDetails = default(MessageCountDetails), System.TimeSpan?lockDuration = default(System.TimeSpan?), bool?requiresSession = default(bool?), System.TimeSpan?defaultMessageTimeToLive = default(System.TimeSpan?), bool?deadLetteringOnFilterEvaluationExceptions = default(bool?), bool?deadLetteringOnMessageExpiration = default(bool?), System.TimeSpan?duplicateDetectionHistoryTimeWindow = default(System.TimeSpan?), int?maxDeliveryCount = default(int?), EntityStatus?status = default(EntityStatus?), bool?enableBatchedOperations = default(bool?), System.TimeSpan?autoDeleteOnIdle = default(System.TimeSpan?), string forwardTo = default(string), string forwardDeadLetteredMessagesTo = default(string), bool?isClientAffine = default(bool?), SBClientAffineProperties clientAffineProperties = default(SBClientAffineProperties), SystemData systemData = default(SystemData)) : base(id, name, type) { MessageCount = messageCount; CreatedAt = createdAt; AccessedAt = accessedAt; UpdatedAt = updatedAt; CountDetails = countDetails; LockDuration = lockDuration; RequiresSession = requiresSession; DefaultMessageTimeToLive = defaultMessageTimeToLive; DeadLetteringOnFilterEvaluationExceptions = deadLetteringOnFilterEvaluationExceptions; DeadLetteringOnMessageExpiration = deadLetteringOnMessageExpiration; DuplicateDetectionHistoryTimeWindow = duplicateDetectionHistoryTimeWindow; MaxDeliveryCount = maxDeliveryCount; Status = status; EnableBatchedOperations = enableBatchedOperations; AutoDeleteOnIdle = autoDeleteOnIdle; ForwardTo = forwardTo; ForwardDeadLetteredMessagesTo = forwardDeadLetteredMessagesTo; IsClientAffine = isClientAffine; ClientAffineProperties = clientAffineProperties; SystemData = systemData; CustomInit(); }
/// <summary> /// Initializes a new instance of the SBTopic class. /// </summary> /// <param name="id">Resource Id</param> /// <param name="name">Resource name</param> /// <param name="type">Resource type</param> /// <param name="sizeInBytes">Size of the topic, in bytes.</param> /// <param name="createdAt">Exact time the message was created.</param> /// <param name="updatedAt">The exact time the message was /// updated.</param> /// <param name="accessedAt">Last time the message was sent, or a /// request was received, for this topic.</param> /// <param name="subscriptionCount">Number of subscriptions.</param> /// <param name="countDetails">Message count deatils</param> /// <param name="defaultMessageTimeToLive">ISO 8601 Default message /// timespan to live value. This is the duration after which the /// message expires, starting from when the message is sent to Service /// Bus. This is the default value used when TimeToLive is not set on a /// message itself.</param> /// <param name="maxSizeInMegabytes">Maximum size of the topic in /// megabytes, which is the size of the memory allocated for the topic. /// Default is 1024.</param> /// <param name="requiresDuplicateDetection">Value indicating if this /// topic requires duplicate detection.</param> /// <param name="duplicateDetectionHistoryTimeWindow">ISO8601 timespan /// structure that defines the duration of the duplicate detection /// history. The default value is 10 minutes.</param> /// <param name="enableBatchedOperations">Value that indicates whether /// server-side batched operations are enabled.</param> /// <param name="status">Enumerates the possible values for the status /// of a messaging entity. Possible values include: 'Active', /// 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', /// 'Creating', 'Deleting', 'Renaming', 'Unknown'</param> /// <param name="supportOrdering">Value that indicates whether the /// topic supports ordering.</param> /// <param name="autoDeleteOnIdle">ISO 8601 timespan idle interval /// after which the topic is automatically deleted. The minimum /// duration is 5 minutes.</param> /// <param name="enablePartitioning">Value that indicates whether the /// topic to be partitioned across multiple message brokers is /// enabled.</param> /// <param name="enableExpress">Value that indicates whether Express /// Entities are enabled. An express topic holds a message in memory /// temporarily before writing it to persistent storage.</param> public SBTopic(string id = default(string), string name = default(string), string type = default(string), long?sizeInBytes = default(long?), System.DateTime?createdAt = default(System.DateTime?), System.DateTime?updatedAt = default(System.DateTime?), System.DateTime?accessedAt = default(System.DateTime?), int?subscriptionCount = default(int?), MessageCountDetails countDetails = default(MessageCountDetails), System.TimeSpan?defaultMessageTimeToLive = default(System.TimeSpan?), int?maxSizeInMegabytes = default(int?), bool?requiresDuplicateDetection = default(bool?), System.TimeSpan?duplicateDetectionHistoryTimeWindow = default(System.TimeSpan?), bool?enableBatchedOperations = default(bool?), EntityStatus?status = default(EntityStatus?), bool?supportOrdering = default(bool?), System.TimeSpan?autoDeleteOnIdle = default(System.TimeSpan?), bool?enablePartitioning = default(bool?), bool?enableExpress = default(bool?)) : base(id, name, type) { SizeInBytes = sizeInBytes; CreatedAt = createdAt; UpdatedAt = updatedAt; AccessedAt = accessedAt; SubscriptionCount = subscriptionCount; CountDetails = countDetails; DefaultMessageTimeToLive = defaultMessageTimeToLive; MaxSizeInMegabytes = maxSizeInMegabytes; RequiresDuplicateDetection = requiresDuplicateDetection; DuplicateDetectionHistoryTimeWindow = duplicateDetectionHistoryTimeWindow; EnableBatchedOperations = enableBatchedOperations; Status = status; SupportOrdering = supportOrdering; AutoDeleteOnIdle = autoDeleteOnIdle; EnablePartitioning = enablePartitioning; EnableExpress = enableExpress; CustomInit(); }