Skip to content

Commit

Permalink
[EG] ServiceBus required/optional (#30760)
Browse files Browse the repository at this point in the history
* sb

* format

---------

Co-authored-by: Laurent Mazuel <[email protected]>
  • Loading branch information
l0lawrence and lmazuel authored Dec 3, 2024
1 parent 22c516b commit dcb1a57
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,24 @@ namespace Microsoft.EventGrid.SystemEvents {

alias ServiceBusBaseEventData = {
/** The namespace name of the Microsoft.ServiceBus resource. */
namespaceName?: string;
namespaceName: string;

/** The endpoint of the Microsoft.ServiceBus resource. */
requestUri?: string;
requestUri: string;

/** The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. */
entityType?: string;
entityType: string;

/** The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. */
queueName?: string;
#suppress "@azure-tools/typespec-azure-core/no-nullable" "Nullable backcompat with existing models"
queueName: string | null;

/** The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. */
topicName?: string;
#suppress "@azure-tools/typespec-azure-core/no-nullable" "Nullable backcompat with existing models"
topicName: string | null;

/** The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. */
subscriptionName?: string;
#suppress "@azure-tools/typespec-azure-core/no-nullable" "Nullable backcompat with existing models"
subscriptionName: string | null;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -7111,17 +7111,28 @@
},
"queueName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null."
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null.",
"x-nullable": true
},
"topicName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
},
"subscriptionName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
}
}
},
"required": [
"namespaceName",
"requestUri",
"entityType",
"queueName",
"topicName",
"subscriptionName"
]
},
"ServiceBusActiveMessagesAvailableWithNoListenersEventData": {
"type": "object",
Expand All @@ -7141,17 +7152,28 @@
},
"queueName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null."
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null.",
"x-nullable": true
},
"topicName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
},
"subscriptionName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
}
}
},
"required": [
"namespaceName",
"requestUri",
"entityType",
"queueName",
"topicName",
"subscriptionName"
]
},
"ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData": {
"type": "object",
Expand All @@ -7171,17 +7193,28 @@
},
"queueName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null."
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null.",
"x-nullable": true
},
"topicName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
},
"subscriptionName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
}
}
},
"required": [
"namespaceName",
"requestUri",
"entityType",
"queueName",
"topicName",
"subscriptionName"
]
},
"ServiceBusDeadletterMessagesAvailableWithNoListenersEventData": {
"type": "object",
Expand All @@ -7201,17 +7234,28 @@
},
"queueName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null."
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null.",
"x-nullable": true
},
"topicName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
},
"subscriptionName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
}
}
},
"required": [
"namespaceName",
"requestUri",
"entityType",
"queueName",
"topicName",
"subscriptionName"
]
},
"SignalRServiceClientConnectionConnectedEventData": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7218,17 +7218,28 @@
},
"queueName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null."
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null.",
"x-nullable": true
},
"topicName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
},
"subscriptionName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
}
}
},
"required": [
"namespaceName",
"requestUri",
"entityType",
"queueName",
"topicName",
"subscriptionName"
]
},
"ServiceBusActiveMessagesAvailableWithNoListenersEventData": {
"type": "object",
Expand All @@ -7248,17 +7259,28 @@
},
"queueName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null."
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null.",
"x-nullable": true
},
"topicName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
},
"subscriptionName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
}
}
},
"required": [
"namespaceName",
"requestUri",
"entityType",
"queueName",
"topicName",
"subscriptionName"
]
},
"ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData": {
"type": "object",
Expand All @@ -7278,17 +7300,28 @@
},
"queueName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null."
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null.",
"x-nullable": true
},
"topicName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
},
"subscriptionName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
}
}
},
"required": [
"namespaceName",
"requestUri",
"entityType",
"queueName",
"topicName",
"subscriptionName"
]
},
"ServiceBusDeadletterMessagesAvailableWithNoListenersEventData": {
"type": "object",
Expand All @@ -7308,17 +7341,28 @@
},
"queueName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null."
"description": "The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null.",
"x-nullable": true
},
"topicName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
},
"subscriptionName": {
"type": "string",
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null."
"description": "The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null.",
"x-nullable": true
}
}
},
"required": [
"namespaceName",
"requestUri",
"entityType",
"queueName",
"topicName",
"subscriptionName"
]
},
"SignalRServiceClientConnectionConnectedEventData": {
"type": "object",
Expand Down

0 comments on commit dcb1a57

Please sign in to comment.