Skip to content

Commit

Permalink
eventgrid
Browse files Browse the repository at this point in the history
  • Loading branch information
l0lawrence committed Sep 26, 2024
1 parent 8511234 commit 12df7ba
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ model SubscriptionValidationEventData {
/** The validation code sent by Azure Event Grid to validate an event subscription.
* To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response,
* or perform a GET request on the validationUrl (available starting version 2018-05-01-preview). */
validationCode?: string;
validationCode: string;

/** The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview).
* To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response,
* or perform a GET request on the validationUrl (available starting version 2018-05-01-preview). */
validationUrl?: string;
validationUrl: string;
}

/**
Expand All @@ -73,7 +73,7 @@ SubscriptionValidationResponse can be used to build the response.
*/
model SubscriptionValidationResponse {
/** The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. */
validationResponse?: string;
validationResponse: string;
}

/**
Expand All @@ -82,7 +82,7 @@ Microsoft.EventGrid.SubscriptionDeletedEvent event.
*/
model SubscriptionDeletedEventData {
/** The Azure resource ID of the deleted event subscription. */
eventSubscriptionId?: string;
eventSubscriptionId: string;
}

/** Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event. */
Expand All @@ -108,6 +108,7 @@ the 'createdOn' property.
updatedOn: utcDateTime;

/** The key-value attributes that are assigned to the client resource. */
@madeRequired(ServiceApiVersions.v2024_01_01)
attributes: Record<string>;
}

Expand All @@ -119,13 +120,13 @@ Unique identifier for the MQTT client that the client presents to the service
for authentication. This case-sensitive string can be up to 128 characters
long, and supports UTF-8 characters.
*/
clientAuthenticationName?: string;
clientAuthenticationName: string;

/** Name of the client resource in the Event Grid namespace. */
clientName?: string;
clientName: string;

/** Name of the Event Grid namespace where the MQTT client was created or updated. */
namespaceName?: string;
namespaceName: string;
}

/** Event data for Microsoft.EventGrid.MQTTClientDeleted event. */
Expand All @@ -143,14 +144,15 @@ model EventGridMQTTClientSessionConnectedEventData
Unique identifier for the MQTT client's session. This case-sensitive string can
be up to 128 characters long, and supports UTF-8 characters.
*/
clientSessionName?: string;
clientSessionName: string;

/**
A number that helps indicate order of MQTT client session connected or
disconnected events. Latest event will have a sequence number that is higher
than the previous event.
*/
sequenceNumber?: int64;
@madeRequired(ServiceApiVersions.v2024_01_01)
sequenceNumber: int64;
}

/** Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event. */
Expand All @@ -162,14 +164,15 @@ model EventGridMQTTClientSessionDisconnectedEventData
Unique identifier for the MQTT client's session. This case-sensitive string can
be up to 128 characters long, and supports UTF-8 characters.
*/
clientSessionName?: string;
clientSessionName: string;

/**
A number that helps indicate order of MQTT client session connected or
disconnected events. Latest event will have a sequence number that is higher
than the previous event.
*/
sequenceNumber?: int64;
@madeRequired(ServiceApiVersions.v2024_01_01)
sequenceNumber: int64;

/**
Reason for the disconnection of the MQTT client's session. The value could be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3972,9 +3972,6 @@
}
}
},
"required": [
"attributes"
],
"allOf": [
{
"$ref": "#/definitions/EventGridMQTTClientEventData"
Expand Down Expand Up @@ -4084,7 +4081,12 @@
"type": "string",
"description": "Name of the Event Grid namespace where the MQTT client was created or updated."
}
}
},
"required": [
"clientAuthenticationName",
"clientName",
"namespaceName"
]
},
"EventGridMQTTClientSessionConnectedEventData": {
"type": "object",
Expand All @@ -4100,6 +4102,9 @@
"description": "A number that helps indicate order of MQTT client session connected or\ndisconnected events. Latest event will have a sequence number that is higher\nthan the previous event."
}
},
"required": [
"clientSessionName"
],
"allOf": [
{
"$ref": "#/definitions/EventGridMQTTClientEventData"
Expand All @@ -4124,6 +4129,9 @@
"description": "Reason for the disconnection of the MQTT client's session. The value could be\none of the values in the disconnection reasons table."
}
},
"required": [
"clientSessionName"
],
"allOf": [
{
"$ref": "#/definitions/EventGridMQTTClientEventData"
Expand Down Expand Up @@ -8697,7 +8705,10 @@
"type": "string",
"description": "The Azure resource ID of the deleted event subscription."
}
}
},
"required": [
"eventSubscriptionId"
]
},
"SubscriptionValidationEventData": {
"type": "object",
Expand All @@ -8711,7 +8722,11 @@
"type": "string",
"description": "The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview).\nTo complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response,\nor perform a GET request on the validationUrl (available starting version 2018-05-01-preview)."
}
}
},
"required": [
"validationCode",
"validationUrl"
]
},
"SubscriptionValidationResponse": {
"type": "object",
Expand All @@ -8721,7 +8736,10 @@
"type": "string",
"description": "The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription."
}
}
},
"required": [
"validationResponse"
]
},
"WebAppServicePlanUpdatedEventData": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4166,7 +4166,12 @@
"type": "string",
"description": "Name of the Event Grid namespace where the MQTT client was created or updated."
}
}
},
"required": [
"clientAuthenticationName",
"clientName",
"namespaceName"
]
},
"EventGridMQTTClientSessionConnectedEventData": {
"type": "object",
Expand All @@ -4182,6 +4187,10 @@
"description": "A number that helps indicate order of MQTT client session connected or\ndisconnected events. Latest event will have a sequence number that is higher\nthan the previous event."
}
},
"required": [
"clientSessionName",
"sequenceNumber"
],
"allOf": [
{
"$ref": "#/definitions/EventGridMQTTClientEventData"
Expand All @@ -4207,6 +4216,8 @@
}
},
"required": [
"clientSessionName",
"sequenceNumber",
"disconnectionReason"
],
"allOf": [
Expand Down Expand Up @@ -8851,7 +8862,10 @@
"type": "string",
"description": "The Azure resource ID of the deleted event subscription."
}
}
},
"required": [
"eventSubscriptionId"
]
},
"SubscriptionValidationEventData": {
"type": "object",
Expand All @@ -8865,7 +8879,11 @@
"type": "string",
"description": "The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview).\nTo complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response,\nor perform a GET request on the validationUrl (available starting version 2018-05-01-preview)."
}
}
},
"required": [
"validationCode",
"validationUrl"
]
},
"SubscriptionValidationResponse": {
"type": "object",
Expand All @@ -8875,7 +8893,10 @@
"type": "string",
"description": "The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription."
}
}
},
"required": [
"validationResponse"
]
},
"WebAppServicePlanUpdatedEventData": {
"type": "object",
Expand Down

0 comments on commit 12df7ba

Please sign in to comment.