Skip to content

Commit

Permalink
Generate communication events (#15382)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLove-msft authored Sep 23, 2020
1 parent 15d6840 commit e3ab9e1
Show file tree
Hide file tree
Showing 37 changed files with 1,838 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/eventgrid/Azure.Messaging.EventGrid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Release History
## 4.0.0-beta.2 (Unreleased)
## 4.0.0-beta.2 (2020-09-23)

### Added

- Added support for system events sent by the Azure Communication Services.

## 4.0.0-beta.1 (2020-09-08)
This is the first preview of the Azure Event Grid client library that follows the [.NET Azure SDK Design Guidelines](https://azure.github.io/azure-sdk/dotnet_introduction.html). This library is not a drop-in replacement for `Microsoft.Azure.EventGrid`, as code changes would be required to use the new library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,113 @@ public void Update(string signature) { }
}
namespace Azure.Messaging.EventGrid.SystemEvents
{
public partial class ACSChatEventBaseProperties
{
internal ACSChatEventBaseProperties() { }
public string RecipientId { get { throw null; } }
public string ThreadId { get { throw null; } }
public string TransactionId { get { throw null; } }
}
public partial class ACSChatMemberAddedToThreadWithUserEventData : Azure.Messaging.EventGrid.SystemEvents.ACSChatThreadEventBaseProperties
{
internal ACSChatMemberAddedToThreadWithUserEventData() { }
public string AddedBy { get { throw null; } }
public Azure.Messaging.EventGrid.SystemEvents.ACSChatThreadMemberProperties MemberAdded { get { throw null; } }
public System.DateTimeOffset? Time { get { throw null; } }
}
public partial class ACSChatMemberRemovedFromThreadWithUserEventData : Azure.Messaging.EventGrid.SystemEvents.ACSChatThreadEventBaseProperties
{
internal ACSChatMemberRemovedFromThreadWithUserEventData() { }
public Azure.Messaging.EventGrid.SystemEvents.ACSChatThreadMemberProperties MemberRemoved { get { throw null; } }
public string RemovedBy { get { throw null; } }
public System.DateTimeOffset? Time { get { throw null; } }
}
public partial class ACSChatMessageDeletedEventData : Azure.Messaging.EventGrid.SystemEvents.ACSChatMessageEventBaseProperties
{
internal ACSChatMessageDeletedEventData() { }
public System.DateTimeOffset? DeleteTime { get { throw null; } }
}
public partial class ACSChatMessageEditedEventData : Azure.Messaging.EventGrid.SystemEvents.ACSChatMessageEventBaseProperties
{
internal ACSChatMessageEditedEventData() { }
public System.DateTimeOffset? EditTime { get { throw null; } }
public string MessageBody { get { throw null; } }
}
public partial class ACSChatMessageEventBaseProperties : Azure.Messaging.EventGrid.SystemEvents.ACSChatEventBaseProperties
{
internal ACSChatMessageEventBaseProperties() { }
public System.DateTimeOffset? ComposeTime { get { throw null; } }
public string MessageId { get { throw null; } }
public string SenderDisplayName { get { throw null; } }
public string SenderId { get { throw null; } }
public string Type { get { throw null; } }
public int? Version { get { throw null; } }
}
public partial class ACSChatMessageReceivedEventData : Azure.Messaging.EventGrid.SystemEvents.ACSChatMessageEventBaseProperties
{
internal ACSChatMessageReceivedEventData() { }
public string MessageBody { get { throw null; } }
}
public partial class ACSChatThreadCreatedWithUserEventData : Azure.Messaging.EventGrid.SystemEvents.ACSChatThreadEventBaseProperties
{
internal ACSChatThreadCreatedWithUserEventData() { }
public string CreatedBy { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.Messaging.EventGrid.SystemEvents.ACSChatThreadMemberProperties> Members { get { throw null; } }
public System.Collections.Generic.IReadOnlyDictionary<string, object> Properties { get { throw null; } }
}
public partial class ACSChatThreadEventBaseProperties : Azure.Messaging.EventGrid.SystemEvents.ACSChatEventBaseProperties
{
internal ACSChatThreadEventBaseProperties() { }
public System.DateTimeOffset? CreateTime { get { throw null; } }
public int? Version { get { throw null; } }
}
public partial class ACSChatThreadMemberProperties
{
internal ACSChatThreadMemberProperties() { }
public string DisplayName { get { throw null; } }
public string MemberId { get { throw null; } }
}
public partial class ACSChatThreadPropertiesUpdatedPerUserEventData : Azure.Messaging.EventGrid.SystemEvents.ACSChatThreadEventBaseProperties
{
internal ACSChatThreadPropertiesUpdatedPerUserEventData() { }
public string EditedBy { get { throw null; } }
public System.DateTimeOffset? EditTime { get { throw null; } }
public System.Collections.Generic.IReadOnlyDictionary<string, object> Properties { get { throw null; } }
}
public partial class ACSChatThreadWithUserDeletedEventData : Azure.Messaging.EventGrid.SystemEvents.ACSChatThreadEventBaseProperties
{
internal ACSChatThreadWithUserDeletedEventData() { }
public string DeletedBy { get { throw null; } }
public System.DateTimeOffset? DeleteTime { get { throw null; } }
}
public partial class AcssmsDeliveryAttemptProperties
{
internal AcssmsDeliveryAttemptProperties() { }
public int? SegmentsFailed { get { throw null; } }
public int? SegmentsSucceeded { get { throw null; } }
public System.DateTimeOffset? Timestamp { get { throw null; } }
}
public partial class AcssmsDeliveryReportReceivedEventData : Azure.Messaging.EventGrid.SystemEvents.AcssmsEventBaseProperties
{
internal AcssmsDeliveryReportReceivedEventData() { }
public System.Collections.Generic.IReadOnlyList<Azure.Messaging.EventGrid.SystemEvents.AcssmsDeliveryAttemptProperties> DeliveryAttempts { get { throw null; } }
public string DeliveryStatus { get { throw null; } }
public string DeliveryStatusDetails { get { throw null; } }
public System.DateTimeOffset? ReceivedTimestamp { get { throw null; } }
}
public partial class AcssmsEventBaseProperties
{
internal AcssmsEventBaseProperties() { }
public string From { get { throw null; } }
public string MessageId { get { throw null; } }
public string To { get { throw null; } }
}
public partial class AcssmsReceivedEventData : Azure.Messaging.EventGrid.SystemEvents.AcssmsEventBaseProperties
{
internal AcssmsReceivedEventData() { }
public string Message { get { throw null; } }
public System.DateTimeOffset? ReceivedTimestamp { get { throw null; } }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct AppAction : System.IEquatable<Azure.Messaging.EventGrid.SystemEvents.AppAction>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ internal static class EventTypes
public const string AppConfigurationKeyValueDeletedEvent = "Microsoft.AppConfiguration.KeyValueDeleted";
public const string AppConfigurationKeyValueModifiedEvent = "Microsoft.AppConfiguration.KeyValueModified";

// Communication events
public const string ACSChatMemberAddedToThreadWithUserEvent = "Microsoft.Communication.ChatMemberAddedToThreadWithUser";
public const string ACSChatMemberRemovedFromThreadWithUserEvent = "Microsoft.Communication.ChatMemberRemovedFromThreadWithUser";
public const string ACSChatMessageDeletedEvent = "Microsoft.Communication.ChatMessageDeleted";
public const string ACSChatMessageEditedEvent = "Microsoft.Communication.ChatMessageEdited";
public const string ACSChatMessageReceivedEvent = "Microsoft.Communication.ChatMessageReceived";
public const string ACSChatThreadCreatedWithUserEvent = "Microsoft.Communication.ChatThreadCreatedWithUser";
public const string ACSChatThreadPropertiesUpdatedPerUserEvent = "Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser";
public const string ACSChatThreadWithUserDeletedEvent = "Microsoft.Communication.ChatThreadWithUserDeleted";
public const string ACSSMSDeliveryReportReceivedEvent = "Microsoft.Communication.SMSDeliveryReportReceived";
public const string ACSSMSReceivedEvent= "Microsoft.Communication.SMSReceived";

// ContainerRegistry events
public const string ContainerRegistryImagePushedEvent = "Microsoft.ContainerRegistry.ImagePushed";
public const string ContainerRegistryImageDeletedEvent = "Microsoft.ContainerRegistry.ImageDeleted";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ internal class SystemEventTypeMappings
{ EventTypes.AppConfigurationKeyValueDeletedEvent, AppConfigurationKeyValueDeletedEventData.DeserializeAppConfigurationKeyValueDeletedEventData },
{ EventTypes.AppConfigurationKeyValueModifiedEvent, AppConfigurationKeyValueModifiedEventData.DeserializeAppConfigurationKeyValueModifiedEventData },

// Communication events
{ EventTypes.ACSChatMemberAddedToThreadWithUserEvent, ACSChatMemberAddedToThreadWithUserEventData.DeserializeACSChatMemberAddedToThreadWithUserEventData },
{ EventTypes.ACSChatMemberRemovedFromThreadWithUserEvent, ACSChatMemberRemovedFromThreadWithUserEventData.DeserializeACSChatMemberRemovedFromThreadWithUserEventData },
{ EventTypes.ACSChatMessageDeletedEvent, ACSChatMessageDeletedEventData.DeserializeACSChatMessageDeletedEventData },
{ EventTypes.ACSChatMessageEditedEvent, ACSChatMessageEditedEventData.DeserializeACSChatMessageEditedEventData },
{ EventTypes.ACSChatMessageReceivedEvent, ACSChatMessageReceivedEventData.DeserializeACSChatMessageReceivedEventData },
{ EventTypes.ACSChatThreadCreatedWithUserEvent, ACSChatThreadCreatedWithUserEventData.DeserializeACSChatThreadCreatedWithUserEventData },
{ EventTypes.ACSChatThreadPropertiesUpdatedPerUserEvent, ACSChatThreadPropertiesUpdatedPerUserEventData.DeserializeACSChatThreadPropertiesUpdatedPerUserEventData },
{ EventTypes.ACSChatThreadWithUserDeletedEvent, ACSChatThreadWithUserDeletedEventData.DeserializeACSChatThreadWithUserDeletedEventData },
{ EventTypes.ACSSMSDeliveryReportReceivedEvent, AcssmsDeliveryReportReceivedEventData.DeserializeAcssmsDeliveryReportReceivedEventData },
{ EventTypes.ACSSMSReceivedEvent, AcssmsReceivedEventData.DeserializeAcssmsReceivedEventData },

// ContainerRegistry events
{ EventTypes.ContainerRegistryImagePushedEvent, ContainerRegistryImagePushedEventData.DeserializeContainerRegistryImagePushedEventData },
{ EventTypes.ContainerRegistryImageDeletedEvent, ContainerRegistryImageDeletedEventData.DeserializeContainerRegistryImageDeletedEventData },
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e3ab9e1

Please sign in to comment.