Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EG] ServiceBus required/optional #30760

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;

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

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

#suppress "@azure-tools/typespec-azure-core/no-nullable" "Nullable backcompat with existing models"
/** 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;
subscriptionName: string | null;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -7844,17 +7844,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 @@ -7874,17 +7885,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 @@ -7904,17 +7926,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 @@ -7934,17 +7967,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 @@ -7979,17 +7979,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 @@ -8009,17 +8020,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 @@ -8039,17 +8061,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 @@ -8069,17 +8102,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
Loading