diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/EventGridClient.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/EventGridClient.cs index b83b7d931dc06..66dea58858b9a 100644 --- a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/EventGridClient.cs +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/EventGridClient.cs @@ -24,7 +24,7 @@ namespace Microsoft.Azure.EventGrid using System.Threading.Tasks; /// - /// Azure EventGrid Client + /// EventGrid Client /// public partial class EventGridClient : ServiceClient, IEventGridClient, IAzureClient { diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/IEventGridClient.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/IEventGridClient.cs index 409b0aa1c45dc..104384e98f1dd 100644 --- a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/IEventGridClient.cs +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/IEventGridClient.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.EventGrid using System.Threading.Tasks; /// - /// Azure EventGrid Client + /// EventGrid Client /// public partial interface IEventGridClient : System.IDisposable { diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/EventHubCaptureFileCreatedEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/EventHubCaptureFileCreatedEventData.cs new file mode 100644 index 0000000000000..3a53e920bdd20 --- /dev/null +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/EventHubCaptureFileCreatedEventData.cs @@ -0,0 +1,121 @@ +// +// 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.EventHub.CaptureFileCreated event. + /// + public partial class EventHubCaptureFileCreatedEventData + { + /// + /// Initializes a new instance of the + /// EventHubCaptureFileCreatedEventData class. + /// + public EventHubCaptureFileCreatedEventData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// EventHubCaptureFileCreatedEventData class. + /// + /// The path to the capture file. + /// The file type of the capture file. + /// The shard ID. + /// The file size. + /// The number of events in the file. + /// The smallest sequence number from + /// the queue. + /// The last sequence number from the + /// queue. + /// The first time from the + /// queue. + /// The last time from the queue. + public EventHubCaptureFileCreatedEventData(string fileurl = default(string), string fileType = default(string), string partitionId = default(string), int? sizeInBytes = default(int?), int? eventCount = default(int?), int? firstSequenceNumber = default(int?), int? lastSequenceNumber = default(int?), System.DateTime? firstEnqueueTime = default(System.DateTime?), System.DateTime? lastEnqueueTime = default(System.DateTime?)) + { + Fileurl = fileurl; + FileType = fileType; + PartitionId = partitionId; + SizeInBytes = sizeInBytes; + EventCount = eventCount; + FirstSequenceNumber = firstSequenceNumber; + LastSequenceNumber = lastSequenceNumber; + FirstEnqueueTime = firstEnqueueTime; + LastEnqueueTime = lastEnqueueTime; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the path to the capture file. + /// + [JsonProperty(PropertyName = "fileurl")] + public string Fileurl { get; set; } + + /// + /// Gets or sets the file type of the capture file. + /// + [JsonProperty(PropertyName = "fileType")] + public string FileType { get; set; } + + /// + /// Gets or sets the shard ID. + /// + [JsonProperty(PropertyName = "partitionId")] + public string PartitionId { get; set; } + + /// + /// Gets or sets the file size. + /// + [JsonProperty(PropertyName = "sizeInBytes")] + public int? SizeInBytes { get; set; } + + /// + /// Gets or sets the number of events in the file. + /// + [JsonProperty(PropertyName = "eventCount")] + public int? EventCount { get; set; } + + /// + /// Gets or sets the smallest sequence number from the queue. + /// + [JsonProperty(PropertyName = "firstSequenceNumber")] + public int? FirstSequenceNumber { get; set; } + + /// + /// Gets or sets the last sequence number from the queue. + /// + [JsonProperty(PropertyName = "lastSequenceNumber")] + public int? LastSequenceNumber { get; set; } + + /// + /// Gets or sets the first time from the queue. + /// + [JsonProperty(PropertyName = "firstEnqueueTime")] + public System.DateTime? FirstEnqueueTime { get; set; } + + /// + /// Gets or sets the last time from the queue. + /// + [JsonProperty(PropertyName = "lastEnqueueTime")] + public System.DateTime? LastEnqueueTime { get; set; } + + } +} diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceDeleteCancelData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceDeleteCancelData.cs new file mode 100644 index 0000000000000..eab149e42b069 --- /dev/null +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceDeleteCancelData.cs @@ -0,0 +1,140 @@ +// +// 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.Resources.ResourceDeleteCancel event. This is raised when a + /// resource delete operation is canceled. + /// + public partial class ResourceDeleteCancelData + { + /// + /// Initializes a new instance of the ResourceDeleteCancelData class. + /// + public ResourceDeleteCancelData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceDeleteCancelData class. + /// + /// The tenant ID of the resource. + /// The subscription ID of the + /// resource. + /// The resource group of the + /// resource. + /// The resource provider performing the + /// operation. + /// The URI of the resource in the + /// operation. + /// The operation that was + /// performed. + /// The status of the operation. + /// The requested authorization for the + /// operation. + /// The properties of the claims. + /// An operation ID used for + /// troubleshooting. + /// The details of the operation. + public ResourceDeleteCancelData(string tenantId = default(string), string subscriptionId = default(string), string resourceGroup = default(string), string resourceProvider = default(string), string resourceUri = default(string), string operationName = default(string), string status = default(string), string authorization = default(string), string claims = default(string), string correlationId = default(string), string httpRequest = default(string)) + { + TenantId = tenantId; + SubscriptionId = subscriptionId; + ResourceGroup = resourceGroup; + ResourceProvider = resourceProvider; + ResourceUri = resourceUri; + OperationName = operationName; + Status = status; + Authorization = authorization; + Claims = claims; + CorrelationId = correlationId; + HttpRequest = httpRequest; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tenant ID of the resource. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; set; } + + /// + /// Gets or sets the subscription ID of the resource. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; set; } + + /// + /// Gets or sets the resource group of the resource. + /// + [JsonProperty(PropertyName = "resourceGroup")] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the resource provider performing the operation. + /// + [JsonProperty(PropertyName = "resourceProvider")] + public string ResourceProvider { get; set; } + + /// + /// Gets or sets the URI of the resource in the operation. + /// + [JsonProperty(PropertyName = "resourceUri")] + public string ResourceUri { get; set; } + + /// + /// Gets or sets the operation that was performed. + /// + [JsonProperty(PropertyName = "operationName")] + public string OperationName { get; set; } + + /// + /// Gets or sets the status of the operation. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the requested authorization for the operation. + /// + [JsonProperty(PropertyName = "authorization")] + public string Authorization { get; set; } + + /// + /// Gets or sets the properties of the claims. + /// + [JsonProperty(PropertyName = "claims")] + public string Claims { get; set; } + + /// + /// Gets or sets an operation ID used for troubleshooting. + /// + [JsonProperty(PropertyName = "correlationId")] + public string CorrelationId { get; set; } + + /// + /// Gets or sets the details of the operation. + /// + [JsonProperty(PropertyName = "httpRequest")] + public string HttpRequest { get; set; } + + } +} diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceDeleteFailureData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceDeleteFailureData.cs new file mode 100644 index 0000000000000..1dcec747ac689 --- /dev/null +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceDeleteFailureData.cs @@ -0,0 +1,140 @@ +// +// 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 a + /// Microsoft.Resources.ResourceDeleteFailure event. This is raised when a + /// resource delete operation fails. + /// + public partial class ResourceDeleteFailureData + { + /// + /// Initializes a new instance of the ResourceDeleteFailureData class. + /// + public ResourceDeleteFailureData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceDeleteFailureData class. + /// + /// The tenant ID of the resource. + /// The subscription ID of the + /// resource. + /// The resource group of the + /// resource. + /// The resource provider performing the + /// operation. + /// The URI of the resource in the + /// operation. + /// The operation that was + /// performed. + /// The status of the operation. + /// The requested authorization for the + /// operation. + /// The properties of the claims. + /// An operation ID used for + /// troubleshooting. + /// The details of the operation. + public ResourceDeleteFailureData(string tenantId = default(string), string subscriptionId = default(string), string resourceGroup = default(string), string resourceProvider = default(string), string resourceUri = default(string), string operationName = default(string), string status = default(string), string authorization = default(string), string claims = default(string), string correlationId = default(string), string httpRequest = default(string)) + { + TenantId = tenantId; + SubscriptionId = subscriptionId; + ResourceGroup = resourceGroup; + ResourceProvider = resourceProvider; + ResourceUri = resourceUri; + OperationName = operationName; + Status = status; + Authorization = authorization; + Claims = claims; + CorrelationId = correlationId; + HttpRequest = httpRequest; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tenant ID of the resource. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; set; } + + /// + /// Gets or sets the subscription ID of the resource. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; set; } + + /// + /// Gets or sets the resource group of the resource. + /// + [JsonProperty(PropertyName = "resourceGroup")] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the resource provider performing the operation. + /// + [JsonProperty(PropertyName = "resourceProvider")] + public string ResourceProvider { get; set; } + + /// + /// Gets or sets the URI of the resource in the operation. + /// + [JsonProperty(PropertyName = "resourceUri")] + public string ResourceUri { get; set; } + + /// + /// Gets or sets the operation that was performed. + /// + [JsonProperty(PropertyName = "operationName")] + public string OperationName { get; set; } + + /// + /// Gets or sets the status of the operation. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the requested authorization for the operation. + /// + [JsonProperty(PropertyName = "authorization")] + public string Authorization { get; set; } + + /// + /// Gets or sets the properties of the claims. + /// + [JsonProperty(PropertyName = "claims")] + public string Claims { get; set; } + + /// + /// Gets or sets an operation ID used for troubleshooting. + /// + [JsonProperty(PropertyName = "correlationId")] + public string CorrelationId { get; set; } + + /// + /// Gets or sets the details of the operation. + /// + [JsonProperty(PropertyName = "httpRequest")] + public string HttpRequest { get; set; } + + } +} diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceDeleteSuccessData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceDeleteSuccessData.cs new file mode 100644 index 0000000000000..07baa7d9c7304 --- /dev/null +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceDeleteSuccessData.cs @@ -0,0 +1,140 @@ +// +// 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 a + /// Microsoft.Resources.ResourceDeleteSuccess event. This is raised when a + /// resource delete operation succeeds. + /// + public partial class ResourceDeleteSuccessData + { + /// + /// Initializes a new instance of the ResourceDeleteSuccessData class. + /// + public ResourceDeleteSuccessData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceDeleteSuccessData class. + /// + /// The tenant ID of the resource. + /// The subscription ID of the + /// resource. + /// The resource group of the + /// resource. + /// The resource provider performing the + /// operation. + /// The URI of the resource in the + /// operation. + /// The operation that was + /// performed. + /// The status of the operation. + /// The requested authorization for the + /// operation. + /// The properties of the claims. + /// An operation ID used for + /// troubleshooting. + /// The details of the operation. + public ResourceDeleteSuccessData(string tenantId = default(string), string subscriptionId = default(string), string resourceGroup = default(string), string resourceProvider = default(string), string resourceUri = default(string), string operationName = default(string), string status = default(string), string authorization = default(string), string claims = default(string), string correlationId = default(string), string httpRequest = default(string)) + { + TenantId = tenantId; + SubscriptionId = subscriptionId; + ResourceGroup = resourceGroup; + ResourceProvider = resourceProvider; + ResourceUri = resourceUri; + OperationName = operationName; + Status = status; + Authorization = authorization; + Claims = claims; + CorrelationId = correlationId; + HttpRequest = httpRequest; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tenant ID of the resource. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; set; } + + /// + /// Gets or sets the subscription ID of the resource. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; set; } + + /// + /// Gets or sets the resource group of the resource. + /// + [JsonProperty(PropertyName = "resourceGroup")] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the resource provider performing the operation. + /// + [JsonProperty(PropertyName = "resourceProvider")] + public string ResourceProvider { get; set; } + + /// + /// Gets or sets the URI of the resource in the operation. + /// + [JsonProperty(PropertyName = "resourceUri")] + public string ResourceUri { get; set; } + + /// + /// Gets or sets the operation that was performed. + /// + [JsonProperty(PropertyName = "operationName")] + public string OperationName { get; set; } + + /// + /// Gets or sets the status of the operation. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the requested authorization for the operation. + /// + [JsonProperty(PropertyName = "authorization")] + public string Authorization { get; set; } + + /// + /// Gets or sets the properties of the claims. + /// + [JsonProperty(PropertyName = "claims")] + public string Claims { get; set; } + + /// + /// Gets or sets an operation ID used for troubleshooting. + /// + [JsonProperty(PropertyName = "correlationId")] + public string CorrelationId { get; set; } + + /// + /// Gets or sets the details of the operation. + /// + [JsonProperty(PropertyName = "httpRequest")] + public string HttpRequest { get; set; } + + } +} diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceWriteCancelData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceWriteCancelData.cs new file mode 100644 index 0000000000000..67121dcb0d25a --- /dev/null +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceWriteCancelData.cs @@ -0,0 +1,140 @@ +// +// 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 a + /// Microsoft.Resources.ResourceWriteCancel event. This is raised when a + /// resource create or update operation is canceled. + /// + public partial class ResourceWriteCancelData + { + /// + /// Initializes a new instance of the ResourceWriteCancelData class. + /// + public ResourceWriteCancelData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceWriteCancelData class. + /// + /// The tenant ID of the resource. + /// The subscription ID of the + /// resource. + /// The resource group of the + /// resource. + /// The resource provider performing the + /// operation. + /// The URI of the resource in the + /// operation. + /// The operation that was + /// performed. + /// The status of the operation. + /// The requested authorization for the + /// operation. + /// The properties of the claims. + /// An operation ID used for + /// troubleshooting. + /// The details of the operation. + public ResourceWriteCancelData(string tenantId = default(string), string subscriptionId = default(string), string resourceGroup = default(string), string resourceProvider = default(string), string resourceUri = default(string), string operationName = default(string), string status = default(string), string authorization = default(string), string claims = default(string), string correlationId = default(string), string httpRequest = default(string)) + { + TenantId = tenantId; + SubscriptionId = subscriptionId; + ResourceGroup = resourceGroup; + ResourceProvider = resourceProvider; + ResourceUri = resourceUri; + OperationName = operationName; + Status = status; + Authorization = authorization; + Claims = claims; + CorrelationId = correlationId; + HttpRequest = httpRequest; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tenant ID of the resource. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; set; } + + /// + /// Gets or sets the subscription ID of the resource. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; set; } + + /// + /// Gets or sets the resource group of the resource. + /// + [JsonProperty(PropertyName = "resourceGroup")] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the resource provider performing the operation. + /// + [JsonProperty(PropertyName = "resourceProvider")] + public string ResourceProvider { get; set; } + + /// + /// Gets or sets the URI of the resource in the operation. + /// + [JsonProperty(PropertyName = "resourceUri")] + public string ResourceUri { get; set; } + + /// + /// Gets or sets the operation that was performed. + /// + [JsonProperty(PropertyName = "operationName")] + public string OperationName { get; set; } + + /// + /// Gets or sets the status of the operation. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the requested authorization for the operation. + /// + [JsonProperty(PropertyName = "authorization")] + public string Authorization { get; set; } + + /// + /// Gets or sets the properties of the claims. + /// + [JsonProperty(PropertyName = "claims")] + public string Claims { get; set; } + + /// + /// Gets or sets an operation ID used for troubleshooting. + /// + [JsonProperty(PropertyName = "correlationId")] + public string CorrelationId { get; set; } + + /// + /// Gets or sets the details of the operation. + /// + [JsonProperty(PropertyName = "httpRequest")] + public string HttpRequest { get; set; } + + } +} diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceWriteFailureData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceWriteFailureData.cs new file mode 100644 index 0000000000000..d1176a1ba815e --- /dev/null +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceWriteFailureData.cs @@ -0,0 +1,140 @@ +// +// 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 a + /// Microsoft.Resources.ResourceWriteFailure event. This is raised when a + /// resource create or update operation fails. + /// + public partial class ResourceWriteFailureData + { + /// + /// Initializes a new instance of the ResourceWriteFailureData class. + /// + public ResourceWriteFailureData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceWriteFailureData class. + /// + /// The tenant ID of the resource. + /// The subscription ID of the + /// resource. + /// The resource group of the + /// resource. + /// The resource provider performing the + /// operation. + /// The URI of the resource in the + /// operation. + /// The operation that was + /// performed. + /// The status of the operation. + /// The requested authorization for the + /// operation. + /// The properties of the claims. + /// An operation ID used for + /// troubleshooting. + /// The details of the operation. + public ResourceWriteFailureData(string tenantId = default(string), string subscriptionId = default(string), string resourceGroup = default(string), string resourceProvider = default(string), string resourceUri = default(string), string operationName = default(string), string status = default(string), string authorization = default(string), string claims = default(string), string correlationId = default(string), string httpRequest = default(string)) + { + TenantId = tenantId; + SubscriptionId = subscriptionId; + ResourceGroup = resourceGroup; + ResourceProvider = resourceProvider; + ResourceUri = resourceUri; + OperationName = operationName; + Status = status; + Authorization = authorization; + Claims = claims; + CorrelationId = correlationId; + HttpRequest = httpRequest; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tenant ID of the resource. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; set; } + + /// + /// Gets or sets the subscription ID of the resource. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; set; } + + /// + /// Gets or sets the resource group of the resource. + /// + [JsonProperty(PropertyName = "resourceGroup")] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the resource provider performing the operation. + /// + [JsonProperty(PropertyName = "resourceProvider")] + public string ResourceProvider { get; set; } + + /// + /// Gets or sets the URI of the resource in the operation. + /// + [JsonProperty(PropertyName = "resourceUri")] + public string ResourceUri { get; set; } + + /// + /// Gets or sets the operation that was performed. + /// + [JsonProperty(PropertyName = "operationName")] + public string OperationName { get; set; } + + /// + /// Gets or sets the status of the operation. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the requested authorization for the operation. + /// + [JsonProperty(PropertyName = "authorization")] + public string Authorization { get; set; } + + /// + /// Gets or sets the properties of the claims. + /// + [JsonProperty(PropertyName = "claims")] + public string Claims { get; set; } + + /// + /// Gets or sets an operation ID used for troubleshooting. + /// + [JsonProperty(PropertyName = "correlationId")] + public string CorrelationId { get; set; } + + /// + /// Gets or sets the details of the operation. + /// + [JsonProperty(PropertyName = "httpRequest")] + public string HttpRequest { get; set; } + + } +} diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceWriteSuccessData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceWriteSuccessData.cs new file mode 100644 index 0000000000000..6732550dcaf81 --- /dev/null +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/ResourceWriteSuccessData.cs @@ -0,0 +1,140 @@ +// +// 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 a + /// Microsoft.Resources.ResourceWriteSuccess event. This is raised when a + /// resource create or update operation succeeds. + /// + public partial class ResourceWriteSuccessData + { + /// + /// Initializes a new instance of the ResourceWriteSuccessData class. + /// + public ResourceWriteSuccessData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceWriteSuccessData class. + /// + /// The tenant ID of the resource. + /// The subscription ID of the + /// resource. + /// The resource group of the + /// resource. + /// The resource provider performing the + /// operation. + /// The URI of the resource in the + /// operation. + /// The operation that was + /// performed. + /// The status of the operation. + /// The requested authorization for the + /// operation. + /// The properties of the claims. + /// An operation ID used for + /// troubleshooting. + /// The details of the operation. + public ResourceWriteSuccessData(string tenantId = default(string), string subscriptionId = default(string), string resourceGroup = default(string), string resourceProvider = default(string), string resourceUri = default(string), string operationName = default(string), string status = default(string), string authorization = default(string), string claims = default(string), string correlationId = default(string), string httpRequest = default(string)) + { + TenantId = tenantId; + SubscriptionId = subscriptionId; + ResourceGroup = resourceGroup; + ResourceProvider = resourceProvider; + ResourceUri = resourceUri; + OperationName = operationName; + Status = status; + Authorization = authorization; + Claims = claims; + CorrelationId = correlationId; + HttpRequest = httpRequest; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tenant ID of the resource. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; set; } + + /// + /// Gets or sets the subscription ID of the resource. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; set; } + + /// + /// Gets or sets the resource group of the resource. + /// + [JsonProperty(PropertyName = "resourceGroup")] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the resource provider performing the operation. + /// + [JsonProperty(PropertyName = "resourceProvider")] + public string ResourceProvider { get; set; } + + /// + /// Gets or sets the URI of the resource in the operation. + /// + [JsonProperty(PropertyName = "resourceUri")] + public string ResourceUri { get; set; } + + /// + /// Gets or sets the operation that was performed. + /// + [JsonProperty(PropertyName = "operationName")] + public string OperationName { get; set; } + + /// + /// Gets or sets the status of the operation. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the requested authorization for the operation. + /// + [JsonProperty(PropertyName = "authorization")] + public string Authorization { get; set; } + + /// + /// Gets or sets the properties of the claims. + /// + [JsonProperty(PropertyName = "claims")] + public string Claims { get; set; } + + /// + /// Gets or sets an operation ID used for troubleshooting. + /// + [JsonProperty(PropertyName = "correlationId")] + public string CorrelationId { get; set; } + + /// + /// Gets or sets the details of the operation. + /// + [JsonProperty(PropertyName = "httpRequest")] + public string HttpRequest { get; set; } + + } +} 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 new file mode 100644 index 0000000000000..a75cd7c5b578e --- /dev/null +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/StorageBlobCreatedEventData.cs @@ -0,0 +1,151 @@ +// +// 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.Storage.BlobCreated event. + /// + public partial class StorageBlobCreatedEventData + { + /// + /// Initializes a new instance of the StorageBlobCreatedEventData + /// class. + /// + public StorageBlobCreatedEventData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageBlobCreatedEventData + /// class. + /// + /// The name of the API/operation that triggered this + /// event. + /// A request id provided by the client + /// of the storage API operation that triggered this event. + /// The request id generated by the Storage + /// service for the storage API operation that triggered this + /// event. + /// The etag of the object at the time this event + /// was triggered. + /// The content type of the blob. This is the + /// same as what would be returned in the Content-Type header from the + /// blob. + /// The size of the blob in bytes. This is + /// the same as what would be returned in the Content-Length header + /// from the blob. + /// The type of blob. + /// The path to the blob. + /// An opaque string value representing the + /// logical sequence of events for any particular blob name. Users can + /// use standard string comparison to understand the relative sequence + /// of two events on the same blob name. + /// 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)) + { + Api = api; + ClientRequestId = clientRequestId; + RequestId = requestId; + ETag = eTag; + ContentType = contentType; + ContentLength = contentLength; + BlobType = blobType; + Url = url; + Sequencer = sequencer; + StorageDiagnostics = storageDiagnostics; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the API/operation that triggered this + /// event. + /// + [JsonProperty(PropertyName = "api")] + public string Api { get; set; } + + /// + /// Gets or sets a request id provided by the client of the storage API + /// operation that triggered this event. + /// + [JsonProperty(PropertyName = "clientRequestId")] + public string ClientRequestId { get; set; } + + /// + /// Gets or sets the request id generated by the Storage service for + /// the storage API operation that triggered this event. + /// + [JsonProperty(PropertyName = "requestId")] + public string RequestId { get; set; } + + /// + /// Gets or sets the etag of the object at the time this event was + /// triggered. + /// + [JsonProperty(PropertyName = "eTag")] + public string ETag { get; set; } + + /// + /// Gets or sets the content type of the blob. This is the same as what + /// would be returned in the Content-Type header from the blob. + /// + [JsonProperty(PropertyName = "contentType")] + public string ContentType { get; set; } + + /// + /// Gets or sets the size of the blob in bytes. This is the same as + /// what would be returned in the Content-Length header from the blob. + /// + [JsonProperty(PropertyName = "contentLength")] + public int? ContentLength { get; set; } + + /// + /// Gets or sets the type of blob. + /// + [JsonProperty(PropertyName = "blobType")] + public string BlobType { get; set; } + + /// + /// Gets or sets the path to the blob. + /// + [JsonProperty(PropertyName = "url")] + public string Url { get; set; } + + /// + /// Gets or sets an opaque string value representing the logical + /// sequence of events for any particular blob name. Users can use + /// standard string comparison to understand the relative sequence of + /// two events on the same blob name. + /// + [JsonProperty(PropertyName = "sequencer")] + public string Sequencer { get; set; } + + /// + /// Gets or sets for service use only. Diagnostic data occasionally + /// included by the Azure Storage service. This property should be + /// ignored by event consumers. + /// + [JsonProperty(PropertyName = "storageDiagnostics")] + public object StorageDiagnostics { get; set; } + + } +} diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/StorageBlobDeletedEventData.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/StorageBlobDeletedEventData.cs new file mode 100644 index 0000000000000..fb498b87e4ab8 --- /dev/null +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/Models/StorageBlobDeletedEventData.cs @@ -0,0 +1,130 @@ +// +// 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.Storage.BlobDeleted event. + /// + public partial class StorageBlobDeletedEventData + { + /// + /// Initializes a new instance of the StorageBlobDeletedEventData + /// class. + /// + public StorageBlobDeletedEventData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageBlobDeletedEventData + /// class. + /// + /// The name of the API/operation that triggered this + /// event. + /// A request id provided by the client + /// of the storage API operation that triggered this event. + /// The request id generated by the Storage + /// service for the storage API operation that triggered this + /// event. + /// The content type of the blob. This is the + /// same as what would be returned in the Content-Type header from the + /// blob. + /// The type of blob. + /// The path to the blob. + /// An opaque string value representing the + /// logical sequence of events for any particular blob name. Users can + /// use standard string comparison to understand the relative sequence + /// of two events on the same blob name. + /// For service use only. Diagnostic + /// data occasionally included by the Azure Storage service. This + /// property should be ignored by event consumers. + public StorageBlobDeletedEventData(string api = default(string), string clientRequestId = default(string), string requestId = default(string), string contentType = default(string), string blobType = default(string), string url = default(string), string sequencer = default(string), object storageDiagnostics = default(object)) + { + Api = api; + ClientRequestId = clientRequestId; + RequestId = requestId; + ContentType = contentType; + BlobType = blobType; + Url = url; + Sequencer = sequencer; + StorageDiagnostics = storageDiagnostics; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the API/operation that triggered this + /// event. + /// + [JsonProperty(PropertyName = "api")] + public string Api { get; set; } + + /// + /// Gets or sets a request id provided by the client of the storage API + /// operation that triggered this event. + /// + [JsonProperty(PropertyName = "clientRequestId")] + public string ClientRequestId { get; set; } + + /// + /// Gets or sets the request id generated by the Storage service for + /// the storage API operation that triggered this event. + /// + [JsonProperty(PropertyName = "requestId")] + public string RequestId { get; set; } + + /// + /// Gets or sets the content type of the blob. This is the same as what + /// would be returned in the Content-Type header from the blob. + /// + [JsonProperty(PropertyName = "contentType")] + public string ContentType { get; set; } + + /// + /// Gets or sets the type of blob. + /// + [JsonProperty(PropertyName = "blobType")] + public string BlobType { get; set; } + + /// + /// Gets or sets the path to the blob. + /// + [JsonProperty(PropertyName = "url")] + public string Url { get; set; } + + /// + /// Gets or sets an opaque string value representing the logical + /// sequence of events for any particular blob name. Users can use + /// standard string comparison to understand the relative sequence of + /// two events on the same blob name. + /// + [JsonProperty(PropertyName = "sequencer")] + public string Sequencer { get; set; } + + /// + /// Gets or sets for service use only. Diagnostic data occasionally + /// included by the Azure Storage service. This property should be + /// ignored by event consumers. + /// + [JsonProperty(PropertyName = "storageDiagnostics")] + public object StorageDiagnostics { get; set; } + + } +} 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 new file mode 100644 index 0000000000000..99173e39ff6d1 --- /dev/null +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Generated/SdkInfo_EventGridClient.cs @@ -0,0 +1,18 @@ + +using System; +using System.Collections.Generic; +using System.Linq; + +internal static partial class SdkInfo +{ + public static IEnumerable> ApiInfo_EventGridClient + { + get + { + return new Tuple[] + { + new Tuple("EventGridClient", "PublishEvents", "2018-01-01"), + }.AsEnumerable(); + } + } +} diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Microsoft.Azure.EventGrid.csproj b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Microsoft.Azure.EventGrid.csproj index be5329eec8644..a4e533aa3a73f 100644 --- a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Microsoft.Azure.EventGrid.csproj +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Microsoft.Azure.EventGrid.csproj @@ -6,10 +6,10 @@ Microsoft.Azure.EventGrid Provides developers with a library to publish events to Azure Event Grid. - 1.0.0-preview + 1.1.0-preview Microsoft.Azure.EventGrid Microsoft Azure EventGrid;Event Grid;Event Grid Publishing; - First version of Azure EventGrid library + Added definitions for the event types being published to EventGrid. net452;netstandard1.4 diff --git a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Properties/AssemblyInfo.cs b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Properties/AssemblyInfo.cs index b2b3d2a4ee9d4..0f002a7159d36 100644 --- a/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Properties/AssemblyInfo.cs +++ b/src/SDKs/EventGrid/DataPlane/Microsoft.Azure.EventGrid/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure EventGrid Library")] [assembly: AssemblyDescription("Provides developers with a library to publish events to Azure EventGrid.")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.1.0.0")] +[assembly: AssemblyFileVersion("1.1.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] diff --git a/src/SDKs/_metadata/eventgrid_data-plane.txt b/src/SDKs/_metadata/eventgrid_data-plane.txt index d9a801dee254f..73546eab69b9c 100644 --- a/src/SDKs/_metadata/eventgrid_data-plane.txt +++ b/src/SDKs/_metadata/eventgrid_data-plane.txt @@ -1,11 +1,11 @@ -2017-12-07 19:14:50 UTC +2018-01-24 20:28:36 UTC 1) azure-rest-api-specs repository information GitHub user: Azure -Branch: current -Commit: 1d5b7e63fde31c75dda35e52e724b4deca6df733 +Branch: master +Commit: 3852ee45fc5c853127253107157e0f419773cb57 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\kalyanaj\AppData\Roaming\npm `-- autorest@2.0.4215 +Bootstrapper version: C:\Users\kalyanaj\AppData\Roaming\npm `-- autorest@2.0.4238 Latest installed version: