Class ContainerRegistryImagePushedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.ContainerRegistryEventData
com.azure.messaging.eventgrid.systemevents.ContainerRegistryImagePushedEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerRegistryEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ImagePushed event.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerRegistryImagePushedEventData from the JsonReader.getActor()Get the actor property: The agent that initiated the event.Get the connectedRegistry property: The connected registry information if the event is generated by a connected registry.Get the request property: The request that generated the event.Get the source property: The registry node that generated the event.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.messaging.eventgrid.systemevents.ContainerRegistryEventData
getAction, getId, getLocation, getTarget, getTimestampMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getConnectedRegistry
Get the connectedRegistry property: The connected registry information if the event is generated by a connected registry.- Overrides:
getConnectedRegistryin classContainerRegistryEventData- Returns:
- the connectedRegistry value.
-
getSource
Get the source property: The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.- Overrides:
getSourcein classContainerRegistryEventData- Returns:
- the source value.
-
getActor
Get the actor property: The agent that initiated the event. For most situations, this could be from the authorization context of the request.- Overrides:
getActorin classContainerRegistryEventData- Returns:
- the actor value.
-
getRequest
Get the request property: The request that generated the event.- Overrides:
getRequestin classContainerRegistryEventData- Returns:
- the request value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ContainerRegistryEventData>- Overrides:
toJsonin classContainerRegistryEventData- Throws:
IOException
-
fromJson
public static ContainerRegistryImagePushedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerRegistryImagePushedEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerRegistryImagePushedEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ContainerRegistryImagePushedEventData.
-