Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// <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 agent that initiated the event. For most situations, this could be
/// from the authorization context of the request.
/// </summary>
public partial class ContainerRegistryEventActor
{
/// <summary>
/// Initializes a new instance of the ContainerRegistryEventActor
/// class.
/// </summary>
public ContainerRegistryEventActor()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ContainerRegistryEventActor
/// class.
/// </summary>
/// <param name="name">The subject or username associated with the
/// request context that generated the event.</param>
public ContainerRegistryEventActor(string name = default(string))
{
Name = name;
CustomInit();
}

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

/// <summary>
/// Gets or sets the subject or username associated with the request
/// context that generated the event.
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
// <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 ContainerRegistryEventData
{
/// <summary>
/// Initializes a new instance of the ContainerRegistryEventData class.
/// </summary>
public ContainerRegistryEventData()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ContainerRegistryEventData 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>
/// <param name="request">The request that generated the event.</param>
/// <param name="actor">The agent that initiated the event. For most
/// situations, this could be from the authorization context of the
/// request.</param>
/// <param name="source">The registry node that generated the event.
/// Put differently, while the actor initiates the event, the source
/// generates it.</param>
public ContainerRegistryEventData(string id = default(string), System.DateTime? timestamp = default(System.DateTime?), string action = default(string), ContainerRegistryEventTarget target = default(ContainerRegistryEventTarget), ContainerRegistryEventRequest request = default(ContainerRegistryEventRequest), ContainerRegistryEventActor actor = default(ContainerRegistryEventActor), ContainerRegistryEventSource source = default(ContainerRegistryEventSource))
{
Id = id;
Timestamp = timestamp;
Action = action;
Target = target;
Request = request;
Actor = actor;
Source = source;
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 ContainerRegistryEventTarget Target { get; set; }

/// <summary>
/// Gets or sets the request that generated the event.
/// </summary>
[JsonProperty(PropertyName = "request")]
public ContainerRegistryEventRequest Request { get; set; }

/// <summary>
/// Gets or sets the agent that initiated the event. For most
/// situations, this could be from the authorization context of the
/// request.
/// </summary>
[JsonProperty(PropertyName = "actor")]
public ContainerRegistryEventActor Actor { get; set; }

/// <summary>
/// Gets or sets the registry node that generated the event. Put
/// differently, while the actor initiates the event, the source
/// generates it.
/// </summary>
[JsonProperty(PropertyName = "source")]
public ContainerRegistryEventSource Source { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
// <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 request that generated the event.
/// </summary>
public partial class ContainerRegistryEventRequest
{
/// <summary>
/// Initializes a new instance of the ContainerRegistryEventRequest
/// class.
/// </summary>
public ContainerRegistryEventRequest()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ContainerRegistryEventRequest
/// class.
/// </summary>
/// <param name="id">The ID of the request that initiated the
/// event.</param>
/// <param name="addr">The IP or hostname and possibly port of the
/// client connection that initiated the event. This is the RemoteAddr
/// from the standard http request.</param>
/// <param name="host">The externally accessible hostname of the
/// registry instance, as specified by the http host header on incoming
/// requests.</param>
/// <param name="method">The request method that generated the
/// event.</param>
/// <param name="useragent">The user agent header of the
/// request.</param>
public ContainerRegistryEventRequest(string id = default(string), string addr = default(string), string host = default(string), string method = default(string), string useragent = default(string))
{
Id = id;
Addr = addr;
Host = host;
Method = method;
Useragent = useragent;
CustomInit();
}

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

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

/// <summary>
/// Gets or sets the IP or hostname and possibly port of the client
/// connection that initiated the event. This is the RemoteAddr from
/// the standard http request.
/// </summary>
[JsonProperty(PropertyName = "addr")]
public string Addr { get; set; }

/// <summary>
/// Gets or sets the externally accessible hostname of the registry
/// instance, as specified by the http host header on incoming
/// requests.
/// </summary>
[JsonProperty(PropertyName = "host")]
public string Host { get; set; }

/// <summary>
/// Gets or sets the request method that generated the event.
/// </summary>
[JsonProperty(PropertyName = "method")]
public string Method { get; set; }

/// <summary>
/// Gets or sets the user agent header of the request.
/// </summary>
[JsonProperty(PropertyName = "useragent")]
public string Useragent { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// <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 registry node that generated the event. Put differently, while the
/// actor initiates the event, the source generates it.
/// </summary>
public partial class ContainerRegistryEventSource
{
/// <summary>
/// Initializes a new instance of the ContainerRegistryEventSource
/// class.
/// </summary>
public ContainerRegistryEventSource()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ContainerRegistryEventSource
/// class.
/// </summary>
/// <param name="addr">The IP or hostname and the port of the registry
/// node that generated the event. Generally, this will be resolved by
/// os.Hostname() along with the running port.</param>
/// <param name="instanceID">The running instance of an application.
/// Changes after each restart.</param>
public ContainerRegistryEventSource(string addr = default(string), string instanceID = default(string))
{
Addr = addr;
InstanceID = instanceID;
CustomInit();
}

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

/// <summary>
/// Gets or sets the IP or hostname and the port of the registry node
/// that generated the event. Generally, this will be resolved by
/// os.Hostname() along with the running port.
/// </summary>
[JsonProperty(PropertyName = "addr")]
public string Addr { get; set; }

/// <summary>
/// Gets or sets the running instance of an application. Changes after
/// each restart.
/// </summary>
[JsonProperty(PropertyName = "instanceID")]
public string InstanceID { get; set; }

}
}
Loading