From cfd51d1876092b7af83b45c1083ff7b46379712b Mon Sep 17 00:00:00 2001
From: adxsdknet <39844661+adxsdknet@users.noreply.github.com>
Date: Wed, 10 Apr 2019 11:49:02 -0700
Subject: [PATCH] AutoPr-EventGrid-kapil-ms-REST Spec PrNumber 5584 (#5736)
* .NET SDK Resource Provider:'EventGrid'
REST Spec PR 'https://github.com/Azure/azure-rest-api-specs/pull/5584'
REST Spec PR Author 'kapil-ms'
REST Spec PR Last commit
* .NET SDK Resource Provider:'EventGrid'
REST Spec PR 'https://github.com/Azure/azure-rest-api-specs/pull/5584'
REST Spec PR Author 'kapil-ms'
REST Spec PR Last commit
---
...ppConfigurationKeyValueDeletedEventData.cs | 75 +++++++++++
...pConfigurationKeyValueModifiedEventData.cs | 75 +++++++++++
.../ContainerRegistryArtifactEventData.cs | 79 ++++++++++++
.../ContainerRegistryArtifactEventTarget.cs | 102 +++++++++++++++
.../ContainerRegistryChartDeletedEventData.cs | 52 ++++++++
.../ContainerRegistryChartPushedEventData.cs | 52 ++++++++
.../Models/DeviceTelemetryEventProperties.cs | 78 ++++++++++++
.../Models/IotHubDeviceTelemetryEventData.cs | 54 ++++++++
.../Models/MapsGeofenceEnteredEventData.cs | 60 +++++++++
.../Models/MapsGeofenceEventProperties.cs | 94 ++++++++++++++
.../Models/MapsGeofenceExitedEventData.cs | 60 +++++++++
.../Generated/Models/MapsGeofenceGeometry.cs | 117 ++++++++++++++++++
.../Models/MapsGeofenceResultEventData.cs | 60 +++++++++
...eEventIncomingDataChunkDroppedEventData.cs | 2 +-
.../MediaLiveEventIngestHeartbeatEventData.cs | 2 +-
.../Models/StorageBlobCreatedEventData.cs | 4 +-
.../Generated/SdkInfo_EventGridClient.cs | 11 --
17 files changed, 962 insertions(+), 15 deletions(-)
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/AppConfigurationKeyValueDeletedEventData.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/AppConfigurationKeyValueModifiedEventData.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryArtifactEventData.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryArtifactEventTarget.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryChartDeletedEventData.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryChartPushedEventData.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/DeviceTelemetryEventProperties.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/IotHubDeviceTelemetryEventData.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceEnteredEventData.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceEventProperties.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceExitedEventData.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceGeometry.cs
create mode 100644 src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceResultEventData.cs
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/AppConfigurationKeyValueDeletedEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/AppConfigurationKeyValueDeletedEventData.cs
new file mode 100644
index 0000000000000..8acca0d0db217
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/AppConfigurationKeyValueDeletedEventData.cs
@@ -0,0 +1,75 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Schema of the Data property of an EventGridEvent for an
+ /// Microsoft.AppConfiguration.KeyValueDeleted event.
+ ///
+ public partial class AppConfigurationKeyValueDeletedEventData
+ {
+ ///
+ /// Initializes a new instance of the
+ /// AppConfigurationKeyValueDeletedEventData class.
+ ///
+ public AppConfigurationKeyValueDeletedEventData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// AppConfigurationKeyValueDeletedEventData class.
+ ///
+ /// The key used to identify the key-value that was
+ /// deleted.
+ /// The label, if any, used to identify the
+ /// key-value that was deleted.
+ /// The etag representing the key-value that was
+ /// deleted.
+ public AppConfigurationKeyValueDeletedEventData(string key = default(string), string label = default(string), string etag = default(string))
+ {
+ Key = key;
+ Label = label;
+ Etag = etag;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the key used to identify the key-value that was
+ /// deleted.
+ ///
+ [JsonProperty(PropertyName = "key")]
+ public string Key { get; set; }
+
+ ///
+ /// Gets or sets the label, if any, used to identify the key-value that
+ /// was deleted.
+ ///
+ [JsonProperty(PropertyName = "label")]
+ public string Label { get; set; }
+
+ ///
+ /// Gets or sets the etag representing the key-value that was deleted.
+ ///
+ [JsonProperty(PropertyName = "etag")]
+ public string Etag { get; set; }
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/AppConfigurationKeyValueModifiedEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/AppConfigurationKeyValueModifiedEventData.cs
new file mode 100644
index 0000000000000..948d2b51af0bd
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/AppConfigurationKeyValueModifiedEventData.cs
@@ -0,0 +1,75 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Schema of the Data property of an EventGridEvent for an
+ /// Microsoft.AppConfiguration.KeyValueModified event.
+ ///
+ public partial class AppConfigurationKeyValueModifiedEventData
+ {
+ ///
+ /// Initializes a new instance of the
+ /// AppConfigurationKeyValueModifiedEventData class.
+ ///
+ public AppConfigurationKeyValueModifiedEventData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// AppConfigurationKeyValueModifiedEventData class.
+ ///
+ /// The key used to identify the key-value that was
+ /// modified.
+ /// The label, if any, used to identify the
+ /// key-value that was modified.
+ /// The etag representing the new state of the
+ /// key-value.
+ public AppConfigurationKeyValueModifiedEventData(string key = default(string), string label = default(string), string etag = default(string))
+ {
+ Key = key;
+ Label = label;
+ Etag = etag;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the key used to identify the key-value that was
+ /// modified.
+ ///
+ [JsonProperty(PropertyName = "key")]
+ public string Key { get; set; }
+
+ ///
+ /// Gets or sets the label, if any, used to identify the key-value that
+ /// was modified.
+ ///
+ [JsonProperty(PropertyName = "label")]
+ public string Label { get; set; }
+
+ ///
+ /// Gets or sets the etag representing the new state of the key-value.
+ ///
+ [JsonProperty(PropertyName = "etag")]
+ public string Etag { get; set; }
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryArtifactEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryArtifactEventData.cs
new file mode 100644
index 0000000000000..e4ccdee1a73e2
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryArtifactEventData.cs
@@ -0,0 +1,79 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The content of the event request message.
+ ///
+ public partial class ContainerRegistryArtifactEventData
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ContainerRegistryArtifactEventData class.
+ ///
+ public ContainerRegistryArtifactEventData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ContainerRegistryArtifactEventData class.
+ ///
+ /// The event ID.
+ /// The time at which the event
+ /// occurred.
+ /// The action that encompasses the provided
+ /// event.
+ /// The target of the event.
+ public ContainerRegistryArtifactEventData(string id = default(string), System.DateTime? timestamp = default(System.DateTime?), string action = default(string), ContainerRegistryArtifactEventTarget target = default(ContainerRegistryArtifactEventTarget))
+ {
+ Id = id;
+ Timestamp = timestamp;
+ Action = action;
+ Target = target;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the event ID.
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; set; }
+
+ ///
+ /// Gets or sets the time at which the event occurred.
+ ///
+ [JsonProperty(PropertyName = "timestamp")]
+ public System.DateTime? Timestamp { get; set; }
+
+ ///
+ /// Gets or sets the action that encompasses the provided event.
+ ///
+ [JsonProperty(PropertyName = "action")]
+ public string Action { get; set; }
+
+ ///
+ /// Gets or sets the target of the event.
+ ///
+ [JsonProperty(PropertyName = "target")]
+ public ContainerRegistryArtifactEventTarget Target { get; set; }
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryArtifactEventTarget.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryArtifactEventTarget.cs
new file mode 100644
index 0000000000000..f0f0fc9211c6e
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryArtifactEventTarget.cs
@@ -0,0 +1,102 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The target of the event.
+ ///
+ public partial class ContainerRegistryArtifactEventTarget
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ContainerRegistryArtifactEventTarget class.
+ ///
+ public ContainerRegistryArtifactEventTarget()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ContainerRegistryArtifactEventTarget class.
+ ///
+ /// The MIME type of the artifact.
+ /// The size in bytes of the artifact.
+ /// The digest of the artifact.
+ /// The repository name of the
+ /// artifact.
+ /// The tag of the artifact.
+ /// The name of the artifact.
+ /// The version of the artifact.
+ public ContainerRegistryArtifactEventTarget(string mediaType = default(string), long? size = default(long?), string digest = default(string), string repository = default(string), string tag = default(string), string name = default(string), string version = default(string))
+ {
+ MediaType = mediaType;
+ Size = size;
+ Digest = digest;
+ Repository = repository;
+ Tag = tag;
+ Name = name;
+ Version = version;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the MIME type of the artifact.
+ ///
+ [JsonProperty(PropertyName = "mediaType")]
+ public string MediaType { get; set; }
+
+ ///
+ /// Gets or sets the size in bytes of the artifact.
+ ///
+ [JsonProperty(PropertyName = "size")]
+ public long? Size { get; set; }
+
+ ///
+ /// Gets or sets the digest of the artifact.
+ ///
+ [JsonProperty(PropertyName = "digest")]
+ public string Digest { get; set; }
+
+ ///
+ /// Gets or sets the repository name of the artifact.
+ ///
+ [JsonProperty(PropertyName = "repository")]
+ public string Repository { get; set; }
+
+ ///
+ /// Gets or sets the tag of the artifact.
+ ///
+ [JsonProperty(PropertyName = "tag")]
+ public string Tag { get; set; }
+
+ ///
+ /// Gets or sets the name of the artifact.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets the version of the artifact.
+ ///
+ [JsonProperty(PropertyName = "version")]
+ public string Version { get; set; }
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryChartDeletedEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryChartDeletedEventData.cs
new file mode 100644
index 0000000000000..0106bf9c75884
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryChartDeletedEventData.cs
@@ -0,0 +1,52 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using System.Linq;
+
+ ///
+ /// Schema of the Data property of an EventGridEvent for a
+ /// Microsoft.ContainerRegistry.ChartDeleted event.
+ ///
+ public partial class ContainerRegistryChartDeletedEventData : ContainerRegistryArtifactEventData
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ContainerRegistryChartDeletedEventData class.
+ ///
+ public ContainerRegistryChartDeletedEventData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ContainerRegistryChartDeletedEventData class.
+ ///
+ /// The event ID.
+ /// The time at which the event
+ /// occurred.
+ /// The action that encompasses the provided
+ /// event.
+ /// The target of the event.
+ public ContainerRegistryChartDeletedEventData(string id = default(string), System.DateTime? timestamp = default(System.DateTime?), string action = default(string), ContainerRegistryArtifactEventTarget target = default(ContainerRegistryArtifactEventTarget))
+ : base(id, timestamp, action, target)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryChartPushedEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryChartPushedEventData.cs
new file mode 100644
index 0000000000000..10d13e47cc032
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ContainerRegistryChartPushedEventData.cs
@@ -0,0 +1,52 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using System.Linq;
+
+ ///
+ /// Schema of the Data property of an EventGridEvent for a
+ /// Microsoft.ContainerRegistry.ChartPushed event.
+ ///
+ public partial class ContainerRegistryChartPushedEventData : ContainerRegistryArtifactEventData
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ContainerRegistryChartPushedEventData class.
+ ///
+ public ContainerRegistryChartPushedEventData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ContainerRegistryChartPushedEventData class.
+ ///
+ /// The event ID.
+ /// The time at which the event
+ /// occurred.
+ /// The action that encompasses the provided
+ /// event.
+ /// The target of the event.
+ public ContainerRegistryChartPushedEventData(string id = default(string), System.DateTime? timestamp = default(System.DateTime?), string action = default(string), ContainerRegistryArtifactEventTarget target = default(ContainerRegistryArtifactEventTarget))
+ : base(id, timestamp, action, target)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/DeviceTelemetryEventProperties.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/DeviceTelemetryEventProperties.cs
new file mode 100644
index 0000000000000..66b15bee29d69
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/DeviceTelemetryEventProperties.cs
@@ -0,0 +1,78 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Schema of the Data property of an EventGridEvent for a device telemetry
+ /// event (DeviceTelemetry).
+ ///
+ public partial class DeviceTelemetryEventProperties
+ {
+ ///
+ /// Initializes a new instance of the DeviceTelemetryEventProperties
+ /// class.
+ ///
+ public DeviceTelemetryEventProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DeviceTelemetryEventProperties
+ /// class.
+ ///
+ /// The content of the message from the
+ /// device.
+ /// Application properties are user-defined
+ /// strings that can be added to the message. These fields are
+ /// optional.
+ /// System properties help identify
+ /// contents and source of the messages.
+ public DeviceTelemetryEventProperties(object body = default(object), IDictionary properties = default(IDictionary), IDictionary systemProperties = default(IDictionary))
+ {
+ Body = body;
+ Properties = properties;
+ SystemProperties = systemProperties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the content of the message from the device.
+ ///
+ [JsonProperty(PropertyName = "body")]
+ public object Body { get; set; }
+
+ ///
+ /// Gets or sets application properties are user-defined strings that
+ /// can be added to the message. These fields are optional.
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public IDictionary Properties { get; set; }
+
+ ///
+ /// Gets or sets system properties help identify contents and source of
+ /// the messages.
+ ///
+ [JsonProperty(PropertyName = "systemProperties")]
+ public IDictionary SystemProperties { get; set; }
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/IotHubDeviceTelemetryEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/IotHubDeviceTelemetryEventData.cs
new file mode 100644
index 0000000000000..f3d08d50a3a8f
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/IotHubDeviceTelemetryEventData.cs
@@ -0,0 +1,54 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Event data for Microsoft.Devices.DeviceTelemetry event.
+ ///
+ public partial class IotHubDeviceTelemetryEventData : DeviceTelemetryEventProperties
+ {
+ ///
+ /// Initializes a new instance of the IotHubDeviceTelemetryEventData
+ /// class.
+ ///
+ public IotHubDeviceTelemetryEventData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the IotHubDeviceTelemetryEventData
+ /// class.
+ ///
+ /// The content of the message from the
+ /// device.
+ /// Application properties are user-defined
+ /// strings that can be added to the message. These fields are
+ /// optional.
+ /// System properties help identify
+ /// contents and source of the messages.
+ public IotHubDeviceTelemetryEventData(object body = default(object), IDictionary properties = default(IDictionary), IDictionary systemProperties = default(IDictionary))
+ : base(body, properties, systemProperties)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceEnteredEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceEnteredEventData.cs
new file mode 100644
index 0000000000000..a1f97d7c1a25f
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceEnteredEventData.cs
@@ -0,0 +1,60 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Schema of the Data property of an EventGridEvent for a
+ /// Microsoft.Maps.GeofenceEntered event.
+ ///
+ public partial class MapsGeofenceEnteredEventData : MapsGeofenceEventProperties
+ {
+ ///
+ /// Initializes a new instance of the MapsGeofenceEnteredEventData
+ /// class.
+ ///
+ public MapsGeofenceEnteredEventData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the MapsGeofenceEnteredEventData
+ /// class.
+ ///
+ /// Lists of the geometry ID of
+ /// the geofence which is expired relative to the user time in the
+ /// request.
+ /// Lists the fence geometries that either
+ /// fully contain the coordinate position or have an overlap with the
+ /// searchBuffer around the fence.
+ /// Lists of the geometry
+ /// ID of the geofence which is in invalid period relative to the user
+ /// time in the request.
+ /// True if at least one event is
+ /// published to the Azure Maps event subscriber, false if no event is
+ /// published to the Azure Maps event subscriber.
+ public MapsGeofenceEnteredEventData(IList expiredGeofenceGeometryId = default(IList), IList geometries = default(IList), IList invalidPeriodGeofenceGeometryId = default(IList), bool? isEventPublished = default(bool?))
+ : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceEventProperties.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceEventProperties.cs
new file mode 100644
index 0000000000000..95551c6ad8367
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceEventProperties.cs
@@ -0,0 +1,94 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Schema of the Data property of an EventGridEvent for a Geofence event
+ /// (GeofenceEntered, GeofenceExited, GeofenceResult).
+ ///
+ public partial class MapsGeofenceEventProperties
+ {
+ ///
+ /// Initializes a new instance of the MapsGeofenceEventProperties
+ /// class.
+ ///
+ public MapsGeofenceEventProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the MapsGeofenceEventProperties
+ /// class.
+ ///
+ /// Lists of the geometry ID of
+ /// the geofence which is expired relative to the user time in the
+ /// request.
+ /// Lists the fence geometries that either
+ /// fully contain the coordinate position or have an overlap with the
+ /// searchBuffer around the fence.
+ /// Lists of the geometry
+ /// ID of the geofence which is in invalid period relative to the user
+ /// time in the request.
+ /// True if at least one event is
+ /// published to the Azure Maps event subscriber, false if no event is
+ /// published to the Azure Maps event subscriber.
+ public MapsGeofenceEventProperties(IList expiredGeofenceGeometryId = default(IList), IList geometries = default(IList), IList invalidPeriodGeofenceGeometryId = default(IList), bool? isEventPublished = default(bool?))
+ {
+ ExpiredGeofenceGeometryId = expiredGeofenceGeometryId;
+ Geometries = geometries;
+ InvalidPeriodGeofenceGeometryId = invalidPeriodGeofenceGeometryId;
+ IsEventPublished = isEventPublished;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets lists of the geometry ID of the geofence which is
+ /// expired relative to the user time in the request.
+ ///
+ [JsonProperty(PropertyName = "expiredGeofenceGeometryId")]
+ public IList ExpiredGeofenceGeometryId { get; set; }
+
+ ///
+ /// Gets or sets lists the fence geometries that either fully contain
+ /// the coordinate position or have an overlap with the searchBuffer
+ /// around the fence.
+ ///
+ [JsonProperty(PropertyName = "geometries")]
+ public IList Geometries { get; set; }
+
+ ///
+ /// Gets or sets lists of the geometry ID of the geofence which is in
+ /// invalid period relative to the user time in the request.
+ ///
+ [JsonProperty(PropertyName = "invalidPeriodGeofenceGeometryId")]
+ public IList InvalidPeriodGeofenceGeometryId { get; set; }
+
+ ///
+ /// Gets or sets true if at least one event is published to the Azure
+ /// Maps event subscriber, false if no event is published to the Azure
+ /// Maps event subscriber.
+ ///
+ [JsonProperty(PropertyName = "isEventPublished")]
+ public bool? IsEventPublished { get; set; }
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceExitedEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceExitedEventData.cs
new file mode 100644
index 0000000000000..41a2e49258d61
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceExitedEventData.cs
@@ -0,0 +1,60 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Schema of the Data property of an EventGridEvent for a
+ /// Microsoft.Maps.GeofenceExited event.
+ ///
+ public partial class MapsGeofenceExitedEventData : MapsGeofenceEventProperties
+ {
+ ///
+ /// Initializes a new instance of the MapsGeofenceExitedEventData
+ /// class.
+ ///
+ public MapsGeofenceExitedEventData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the MapsGeofenceExitedEventData
+ /// class.
+ ///
+ /// Lists of the geometry ID of
+ /// the geofence which is expired relative to the user time in the
+ /// request.
+ /// Lists the fence geometries that either
+ /// fully contain the coordinate position or have an overlap with the
+ /// searchBuffer around the fence.
+ /// Lists of the geometry
+ /// ID of the geofence which is in invalid period relative to the user
+ /// time in the request.
+ /// True if at least one event is
+ /// published to the Azure Maps event subscriber, false if no event is
+ /// published to the Azure Maps event subscriber.
+ public MapsGeofenceExitedEventData(IList expiredGeofenceGeometryId = default(IList), IList geometries = default(IList), IList invalidPeriodGeofenceGeometryId = default(IList), bool? isEventPublished = default(bool?))
+ : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceGeometry.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceGeometry.cs
new file mode 100644
index 0000000000000..a1a26b448a1c9
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceGeometry.cs
@@ -0,0 +1,117 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The geofence geometry.
+ ///
+ public partial class MapsGeofenceGeometry
+ {
+ ///
+ /// Initializes a new instance of the MapsGeofenceGeometry class.
+ ///
+ public MapsGeofenceGeometry()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the MapsGeofenceGeometry class.
+ ///
+ /// ID of the device.
+ /// Distance from the coordinate to the closest
+ /// border of the geofence. Positive means the coordinate is outside of
+ /// the geofence. If the coordinate is outside of the geofence, but
+ /// more than the value of searchBuffer away from the closest geofence
+ /// border, then the value is 999. Negative means the coordinate is
+ /// inside of the geofence. If the coordinate is inside the polygon,
+ /// but more than the value of searchBuffer away from the closest
+ /// geofencing border,then the value is -999. A value of 999 means that
+ /// there is great confidence the coordinate is well outside the
+ /// geofence. A value of -999 means that there is great confidence the
+ /// coordinate is well within the geofence.
+ /// The unique ID for the geofence
+ /// geometry.
+ /// Latitude of the nearest point of the
+ /// geometry.
+ /// Longitude of the nearest point of the
+ /// geometry.
+ /// The unique id returned from user upload service
+ /// when uploading a geofence. Will not be included in geofencing post
+ /// API.
+ public MapsGeofenceGeometry(string deviceId = default(string), double? distance = default(double?), string geometryId = default(string), double? nearestLat = default(double?), double? nearestLon = default(double?), string udId = default(string))
+ {
+ DeviceId = deviceId;
+ Distance = distance;
+ GeometryId = geometryId;
+ NearestLat = nearestLat;
+ NearestLon = nearestLon;
+ UdId = udId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets ID of the device.
+ ///
+ [JsonProperty(PropertyName = "deviceId")]
+ public string DeviceId { get; set; }
+
+ ///
+ /// Gets or sets distance from the coordinate to the closest border of
+ /// the geofence. Positive means the coordinate is outside of the
+ /// geofence. If the coordinate is outside of the geofence, but more
+ /// than the value of searchBuffer away from the closest geofence
+ /// border, then the value is 999. Negative means the coordinate is
+ /// inside of the geofence. If the coordinate is inside the polygon,
+ /// but more than the value of searchBuffer away from the closest
+ /// geofencing border,then the value is -999. A value of 999 means that
+ /// there is great confidence the coordinate is well outside the
+ /// geofence. A value of -999 means that there is great confidence the
+ /// coordinate is well within the geofence.
+ ///
+ [JsonProperty(PropertyName = "distance")]
+ public double? Distance { get; set; }
+
+ ///
+ /// Gets or sets the unique ID for the geofence geometry.
+ ///
+ [JsonProperty(PropertyName = "geometryId")]
+ public string GeometryId { get; set; }
+
+ ///
+ /// Gets or sets latitude of the nearest point of the geometry.
+ ///
+ [JsonProperty(PropertyName = "nearestLat")]
+ public double? NearestLat { get; set; }
+
+ ///
+ /// Gets or sets longitude of the nearest point of the geometry.
+ ///
+ [JsonProperty(PropertyName = "nearestLon")]
+ public double? NearestLon { get; set; }
+
+ ///
+ /// Gets or sets the unique id returned from user upload service when
+ /// uploading a geofence. Will not be included in geofencing post API.
+ ///
+ [JsonProperty(PropertyName = "udId")]
+ public string UdId { get; set; }
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceResultEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceResultEventData.cs
new file mode 100644
index 0000000000000..39c305cee7e18
--- /dev/null
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MapsGeofenceResultEventData.cs
@@ -0,0 +1,60 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.EventGrid.Models
+{
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Schema of the Data property of an EventGridEvent for a
+ /// Microsoft.Maps.GeofenceResult event.
+ ///
+ public partial class MapsGeofenceResultEventData : MapsGeofenceEventProperties
+ {
+ ///
+ /// Initializes a new instance of the MapsGeofenceResultEventData
+ /// class.
+ ///
+ public MapsGeofenceResultEventData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the MapsGeofenceResultEventData
+ /// class.
+ ///
+ /// Lists of the geometry ID of
+ /// the geofence which is expired relative to the user time in the
+ /// request.
+ /// Lists the fence geometries that either
+ /// fully contain the coordinate position or have an overlap with the
+ /// searchBuffer around the fence.
+ /// Lists of the geometry
+ /// ID of the geofence which is in invalid period relative to the user
+ /// time in the request.
+ /// True if at least one event is
+ /// published to the Azure Maps event subscriber, false if no event is
+ /// published to the Azure Maps event subscriber.
+ public MapsGeofenceResultEventData(IList expiredGeofenceGeometryId = default(IList), IList geometries = default(IList), IList invalidPeriodGeofenceGeometryId = default(IList), bool? isEventPublished = default(bool?))
+ : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MediaLiveEventIncomingDataChunkDroppedEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MediaLiveEventIncomingDataChunkDroppedEventData.cs
index d1aacda2298d0..8181c973ae4e9 100644
--- a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MediaLiveEventIncomingDataChunkDroppedEventData.cs
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MediaLiveEventIncomingDataChunkDroppedEventData.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.EventGrid.Models
using System.Linq;
///
- /// Ingest fragment dropped event event data.
+ /// Ingest fragment dropped event data.
///
public partial class MediaLiveEventIncomingDataChunkDroppedEventData
{
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MediaLiveEventIngestHeartbeatEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MediaLiveEventIngestHeartbeatEventData.cs
index 8a0d96abb628d..01411774c1f37 100644
--- a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MediaLiveEventIngestHeartbeatEventData.cs
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/MediaLiveEventIngestHeartbeatEventData.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.EventGrid.Models
using System.Linq;
///
- /// Ingest fragment dropped event event data.
+ /// Ingest fragment dropped event data.
///
public partial class MediaLiveEventIngestHeartbeatEventData
{
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/StorageBlobCreatedEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/StorageBlobCreatedEventData.cs
index a75cd7c5b578e..5719e20cc7624 100644
--- a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/StorageBlobCreatedEventData.cs
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/StorageBlobCreatedEventData.cs
@@ -56,7 +56,7 @@ public StorageBlobCreatedEventData()
/// For service use only. Diagnostic
/// data occasionally included by the Azure Storage service. This
/// property should be ignored by event consumers.
- public StorageBlobCreatedEventData(string api = default(string), string clientRequestId = default(string), string requestId = default(string), string eTag = default(string), string contentType = default(string), int? contentLength = default(int?), string blobType = default(string), string url = default(string), string sequencer = default(string), object storageDiagnostics = default(object))
+ public StorageBlobCreatedEventData(string api = default(string), string clientRequestId = default(string), string requestId = default(string), string eTag = default(string), string contentType = default(string), long? contentLength = default(long?), string blobType = default(string), string url = default(string), string sequencer = default(string), object storageDiagnostics = default(object))
{
Api = api;
ClientRequestId = clientRequestId;
@@ -116,7 +116,7 @@ public StorageBlobCreatedEventData()
/// what would be returned in the Content-Length header from the blob.
///
[JsonProperty(PropertyName = "contentLength")]
- public int? ContentLength { get; set; }
+ public long? ContentLength { get; set; }
///
/// Gets or sets the type of blob.
diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/SdkInfo_EventGridClient.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/SdkInfo_EventGridClient.cs
index 9ed573a63f963..66554afe660a7 100644
--- a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/SdkInfo_EventGridClient.cs
+++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/SdkInfo_EventGridClient.cs
@@ -23,16 +23,5 @@ public static IEnumerable> ApiInfo_EventGridClient
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "latest";
- public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/eventgrid/data-plane/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\github\\azure-sdk-for-net-qb\\src\\SDKs";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "15095b486206899c2ec77d2abddbaee9480021e3";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-