Class ApiResponse
API Response
Inheritance
ApiResponse
Implements
Inherited Members
Namespace: Pulumi.Esc.Sdk.Client
Assembly: Pulumi.Esc.Sdk.dll
Syntax
public class ApiResponse : IApiResponse
Constructors
View SourceApiResponse(HttpRequestMessage, HttpResponseMessage, string, string, DateTime, JsonSerializerOptions)
Construct the response using an HttpResponseMessage
Declaration
public ApiResponse(HttpRequestMessage httpRequestMessage, HttpResponseMessage httpResponseMessage, string rawContent, string path, DateTime requestedAt, JsonSerializerOptions jsonSerializerOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequestMessage | httpRequestMessage | |
| HttpResponseMessage | httpResponseMessage | |
| string | rawContent | |
| string | path | |
| DateTime | requestedAt | |
| JsonSerializerOptions | jsonSerializerOptions |
Fields
View Source_jsonSerializerOptions
Declaration
protected JsonSerializerOptions _jsonSerializerOptions
Field Value
| Type | Description |
|---|---|
| JsonSerializerOptions |
Properties
View SourceDownloadedAt
The DateTime when the request was retrieved.
Declaration
public DateTime DownloadedAt { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Headers
The headers contained in the api response
Declaration
public HttpResponseHeaders Headers { get; }
Property Value
| Type | Description |
|---|---|
| HttpResponseHeaders |
IsSuccessStatusCode
The IsSuccessStatusCode from the api response
Declaration
public bool IsSuccessStatusCode { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Path
The path used when making the request.
Declaration
public string Path { get; }
Property Value
| Type | Description |
|---|---|
| string |
RawContent
The raw data
Declaration
public string RawContent { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
ReasonPhrase
The reason phrase contained in the api response
Declaration
public string? ReasonPhrase { get; }
Property Value
| Type | Description |
|---|---|
| string |
RequestUri
The Uri used when making the request.
Declaration
public Uri? RequestUri { get; }
Property Value
| Type | Description |
|---|---|
| Uri |
RequestedAt
The DateTime when the request was sent.
Declaration
public DateTime RequestedAt { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
StatusCode
Gets the status code (HTTP status code)
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
| Type | Description |
|---|---|
| HttpStatusCode | The status code. |