Bagikan melalui


Request Class

Definition

The request that generated the event.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.RequestTypeConverter))]
public class Request : Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRequest
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.RequestTypeConverter))>]
type Request = class
    interface IRequest
    interface IJsonSerializable
Public Class Request
Implements IRequest
Inheritance
Request
Attributes
Implements

Constructors

Request()

Creates an new Request instance.

Properties

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.

Host

The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.

Id

The ID of the request that initiated the event.

Method

The request method that generated the event.

Useragent

The user agent header of the request.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Request.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Request.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRequest.

FromJsonString(String)

Creates a new instance of Request, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Request into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to