Skip to content

Commit

Permalink
CodeGen from PR 25393 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Event Grid] [AppConfiguration] Add snapshot events support (Azure#25393)

* Add snapshot events

* Add example ref

* Remove unneeded code

* Applied comments

* Move base properties back to events

* Applied comment

* remove unneeded code

* Update description

* Fix lintdiff failure
  • Loading branch information
SDKAuto committed Sep 5, 2023
1 parent de9880c commit 468cefc
Show file tree
Hide file tree
Showing 9 changed files with 325 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ public static partial class EventGridModelFactory
public static Azure.Messaging.EventGrid.SystemEvents.ApiManagementUserUpdatedEventData ApiManagementUserUpdatedEventData(string resourceUri = null) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.AppConfigurationKeyValueDeletedEventData AppConfigurationKeyValueDeletedEventData(string key = null, string label = null, string etag = null, string syncToken = null) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.AppConfigurationKeyValueModifiedEventData AppConfigurationKeyValueModifiedEventData(string key = null, string label = null, string etag = null, string syncToken = null) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.AppConfigurationSnapshotCreatedEventData AppConfigurationSnapshotCreatedEventData(string name = null, string etag = null, string syncToken = null) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.AppConfigurationSnapshotEventData AppConfigurationSnapshotEventData(string name = null, string etag = null, string syncToken = null) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.AppConfigurationSnapshotModifiedEventData AppConfigurationSnapshotModifiedEventData(string name = null, string etag = null, string syncToken = null) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.AppEventTypeDetail AppEventTypeDetail(Azure.Messaging.EventGrid.SystemEvents.AppAction? action = default(Azure.Messaging.EventGrid.SystemEvents.AppAction?)) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.AppServicePlanEventTypeDetail AppServicePlanEventTypeDetail(Azure.Messaging.EventGrid.SystemEvents.StampKind? stampKind = default(Azure.Messaging.EventGrid.SystemEvents.StampKind?), Azure.Messaging.EventGrid.SystemEvents.AppServicePlanAction? action = default(Azure.Messaging.EventGrid.SystemEvents.AppServicePlanAction?), Azure.Messaging.EventGrid.SystemEvents.AsyncStatus? status = default(Azure.Messaging.EventGrid.SystemEvents.AsyncStatus?)) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel CommunicationIdentifierModel(string rawId = null, Azure.Messaging.EventGrid.SystemEvents.CommunicationUserIdentifierModel communicationUser = null, Azure.Messaging.EventGrid.SystemEvents.PhoneNumberIdentifierModel phoneNumber = null, Azure.Messaging.EventGrid.SystemEvents.MicrosoftTeamsUserIdentifierModel microsoftTeamsUser = null) { throw null; }
Expand Down Expand Up @@ -383,6 +386,8 @@ public static partial class SystemEventNames
public const string ApiManagementUserUpdated = "Microsoft.ApiManagement.UserUpdated";
public const string AppConfigurationKeyValueDeleted = "Microsoft.AppConfiguration.KeyValueDeleted";
public const string AppConfigurationKeyValueModified = "Microsoft.AppConfiguration.KeyValueModified";
public const string AppConfigurationSnapshotCreated = "Microsoft.AppConfiguration.SnapshotCreated";
public const string AppConfigurationSnapshotModified = "Microsoft.AppConfiguration.SnapshotModified";
public const string ContainerRegistryChartDeleted = "Microsoft.ContainerRegistry.ChartDeleted";
public const string ContainerRegistryChartPushed = "Microsoft.ContainerRegistry.ChartPushed";
public const string ContainerRegistryImageDeleted = "Microsoft.ContainerRegistry.ImageDeleted";
Expand Down Expand Up @@ -1093,6 +1098,21 @@ internal AppConfigurationKeyValueModifiedEventData() { }
public string Label { get { throw null; } }
public string SyncToken { get { throw null; } }
}
public partial class AppConfigurationSnapshotCreatedEventData : Azure.Messaging.EventGrid.SystemEvents.AppConfigurationSnapshotEventData
{
internal AppConfigurationSnapshotCreatedEventData() { }
}
public partial class AppConfigurationSnapshotEventData
{
internal AppConfigurationSnapshotEventData() { }
public string Etag { get { throw null; } }
public string Name { get { throw null; } }
public string SyncToken { get { throw null; } }
}
public partial class AppConfigurationSnapshotModifiedEventData : Azure.Messaging.EventGrid.SystemEvents.AppConfigurationSnapshotEventData
{
internal AppConfigurationSnapshotModifiedEventData() { }
}
public partial class AppEventTypeDetail
{
internal AppEventTypeDetail() { }
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.

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.

5 changes: 4 additions & 1 deletion sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Run `dotnet build /t:GenerateCode` to generate code.

``` yaml
title: EventGridClient
require: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/eventgrid/data-plane/readme.md
require:
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/eventgrid/data-plane/readme.md

generation1-convenience-client: true
model-factory-for-hlc:
- MediaJobOutputAsset
Expand Down Expand Up @@ -172,3 +174,4 @@ directive:
$.MediaLiveEventIngestHeartbeatEventData["properties"]["ingestDriftValue"]["x-ms-client-name"] = "IngestDriftValueInternal";
$.MediaLiveEventIngestHeartbeatEventData["properties"]["lastFragmentArrivalTime"]["format"] = "date-time";
```

0 comments on commit 468cefc

Please sign in to comment.