Skip to content

Commit

Permalink
AutoPr-EventGrid-kapil-ms-REST Spec PrNumber 5584 (Azure#5736)
Browse files Browse the repository at this point in the history
* .NET SDK Resource Provider:'EventGrid'
REST Spec PR 'Azure/azure-rest-api-specs#5584'
REST Spec PR Author 'kapil-ms'
REST Spec PR Last commit

* .NET SDK Resource Provider:'EventGrid'
REST Spec PR 'Azure/azure-rest-api-specs#5584'
REST Spec PR Author 'kapil-ms'
REST Spec PR Last commit
  • Loading branch information
adxsdknet authored and mentat9 committed Jun 10, 2019
1 parent 1a80e89 commit b8defda
Show file tree
Hide file tree
Showing 17 changed files with 962 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.EventGrid.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Schema of the Data property of an EventGridEvent for an
/// Microsoft.AppConfiguration.KeyValueDeleted event.
/// </summary>
public partial class AppConfigurationKeyValueDeletedEventData
{
/// <summary>
/// Initializes a new instance of the
/// AppConfigurationKeyValueDeletedEventData class.
/// </summary>
public AppConfigurationKeyValueDeletedEventData()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// AppConfigurationKeyValueDeletedEventData class.
/// </summary>
/// <param name="key">The key used to identify the key-value that was
/// deleted.</param>
/// <param name="label">The label, if any, used to identify the
/// key-value that was deleted.</param>
/// <param name="etag">The etag representing the key-value that was
/// deleted.</param>
public AppConfigurationKeyValueDeletedEventData(string key = default(string), string label = default(string), string etag = default(string))
{
Key = key;
Label = label;
Etag = etag;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the key used to identify the key-value that was
/// deleted.
/// </summary>
[JsonProperty(PropertyName = "key")]
public string Key { get; set; }

/// <summary>
/// Gets or sets the label, if any, used to identify the key-value that
/// was deleted.
/// </summary>
[JsonProperty(PropertyName = "label")]
public string Label { get; set; }

/// <summary>
/// Gets or sets the etag representing the key-value that was deleted.
/// </summary>
[JsonProperty(PropertyName = "etag")]
public string Etag { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.EventGrid.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Schema of the Data property of an EventGridEvent for an
/// Microsoft.AppConfiguration.KeyValueModified event.
/// </summary>
public partial class AppConfigurationKeyValueModifiedEventData
{
/// <summary>
/// Initializes a new instance of the
/// AppConfigurationKeyValueModifiedEventData class.
/// </summary>
public AppConfigurationKeyValueModifiedEventData()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// AppConfigurationKeyValueModifiedEventData class.
/// </summary>
/// <param name="key">The key used to identify the key-value that was
/// modified.</param>
/// <param name="label">The label, if any, used to identify the
/// key-value that was modified.</param>
/// <param name="etag">The etag representing the new state of the
/// key-value.</param>
public AppConfigurationKeyValueModifiedEventData(string key = default(string), string label = default(string), string etag = default(string))
{
Key = key;
Label = label;
Etag = etag;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the key used to identify the key-value that was
/// modified.
/// </summary>
[JsonProperty(PropertyName = "key")]
public string Key { get; set; }

/// <summary>
/// Gets or sets the label, if any, used to identify the key-value that
/// was modified.
/// </summary>
[JsonProperty(PropertyName = "label")]
public string Label { get; set; }

/// <summary>
/// Gets or sets the etag representing the new state of the key-value.
/// </summary>
[JsonProperty(PropertyName = "etag")]
public string Etag { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.EventGrid.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// The content of the event request message.
/// </summary>
public partial class ContainerRegistryArtifactEventData
{
/// <summary>
/// Initializes a new instance of the
/// ContainerRegistryArtifactEventData class.
/// </summary>
public ContainerRegistryArtifactEventData()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// ContainerRegistryArtifactEventData class.
/// </summary>
/// <param name="id">The event ID.</param>
/// <param name="timestamp">The time at which the event
/// occurred.</param>
/// <param name="action">The action that encompasses the provided
/// event.</param>
/// <param name="target">The target of the event.</param>
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();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the event ID.
/// </summary>
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }

/// <summary>
/// Gets or sets the time at which the event occurred.
/// </summary>
[JsonProperty(PropertyName = "timestamp")]
public System.DateTime? Timestamp { get; set; }

/// <summary>
/// Gets or sets the action that encompasses the provided event.
/// </summary>
[JsonProperty(PropertyName = "action")]
public string Action { get; set; }

/// <summary>
/// Gets or sets the target of the event.
/// </summary>
[JsonProperty(PropertyName = "target")]
public ContainerRegistryArtifactEventTarget Target { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.EventGrid.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// The target of the event.
/// </summary>
public partial class ContainerRegistryArtifactEventTarget
{
/// <summary>
/// Initializes a new instance of the
/// ContainerRegistryArtifactEventTarget class.
/// </summary>
public ContainerRegistryArtifactEventTarget()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// ContainerRegistryArtifactEventTarget class.
/// </summary>
/// <param name="mediaType">The MIME type of the artifact.</param>
/// <param name="size">The size in bytes of the artifact.</param>
/// <param name="digest">The digest of the artifact.</param>
/// <param name="repository">The repository name of the
/// artifact.</param>
/// <param name="tag">The tag of the artifact.</param>
/// <param name="name">The name of the artifact.</param>
/// <param name="version">The version of the artifact.</param>
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();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the MIME type of the artifact.
/// </summary>
[JsonProperty(PropertyName = "mediaType")]
public string MediaType { get; set; }

/// <summary>
/// Gets or sets the size in bytes of the artifact.
/// </summary>
[JsonProperty(PropertyName = "size")]
public long? Size { get; set; }

/// <summary>
/// Gets or sets the digest of the artifact.
/// </summary>
[JsonProperty(PropertyName = "digest")]
public string Digest { get; set; }

/// <summary>
/// Gets or sets the repository name of the artifact.
/// </summary>
[JsonProperty(PropertyName = "repository")]
public string Repository { get; set; }

/// <summary>
/// Gets or sets the tag of the artifact.
/// </summary>
[JsonProperty(PropertyName = "tag")]
public string Tag { get; set; }

/// <summary>
/// Gets or sets the name of the artifact.
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }

/// <summary>
/// Gets or sets the version of the artifact.
/// </summary>
[JsonProperty(PropertyName = "version")]
public string Version { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.EventGrid.Models
{
using System.Linq;

/// <summary>
/// Schema of the Data property of an EventGridEvent for a
/// Microsoft.ContainerRegistry.ChartDeleted event.
/// </summary>
public partial class ContainerRegistryChartDeletedEventData : ContainerRegistryArtifactEventData
{
/// <summary>
/// Initializes a new instance of the
/// ContainerRegistryChartDeletedEventData class.
/// </summary>
public ContainerRegistryChartDeletedEventData()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// ContainerRegistryChartDeletedEventData class.
/// </summary>
/// <param name="id">The event ID.</param>
/// <param name="timestamp">The time at which the event
/// occurred.</param>
/// <param name="action">The action that encompasses the provided
/// event.</param>
/// <param name="target">The target of the event.</param>
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();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

}
}

0 comments on commit b8defda

Please sign in to comment.