Condividi tramite


EventGridModelFactory.ContainerRegistryEventData Method

Definition

Initializes a new instance of ContainerRegistryEventData.

public static Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventData ContainerRegistryEventData (string id = default, DateTimeOffset? timestamp = default, string action = default, string location = default, Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventTarget target = default, Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventRequest request = default, Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventActor actor = default, Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventSource source = default, Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventConnectedRegistry connectedRegistry = default);
static member ContainerRegistryEventData : string * Nullable<DateTimeOffset> * string * string * Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventTarget * Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventRequest * Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventActor * Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventSource * Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventConnectedRegistry -> Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventData
Public Shared Function ContainerRegistryEventData (Optional id As String = Nothing, Optional timestamp As Nullable(Of DateTimeOffset) = Nothing, Optional action As String = Nothing, Optional location As String = Nothing, Optional target As ContainerRegistryEventTarget = Nothing, Optional request As ContainerRegistryEventRequest = Nothing, Optional actor As ContainerRegistryEventActor = Nothing, Optional source As ContainerRegistryEventSource = Nothing, Optional connectedRegistry As ContainerRegistryEventConnectedRegistry = Nothing) As ContainerRegistryEventData

Parameters

id
String

The event ID.

timestamp
Nullable<DateTimeOffset>

The time at which the event occurred.

action
String

The action that encompasses the provided event.

location
String

The location of the event.

target
ContainerRegistryEventTarget

The target of the event.

request
ContainerRegistryEventRequest

The request that generated the event.

actor
ContainerRegistryEventActor

The agent that initiated the event. For most situations, this could be from the authorization context of the request.

source
ContainerRegistryEventSource

The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.

connectedRegistry
ContainerRegistryEventConnectedRegistry

The connected registry information if the event is generated by a connected registry.

Returns

A new ContainerRegistryEventData instance for mocking.

Applies to