Class EscApi.DeleteEnvironmentApiResponse
Inheritance
EscApi.DeleteEnvironmentApiResponse
Assembly: Pulumi.Esc.Sdk.dll
Syntax
public class EscApi.DeleteEnvironmentApiResponse : ApiResponse, IDeleteEnvironmentApiResponse, IBadRequest<Error?>, IUnauthorized<Error?>, INotFound<Error?>, IInternalServerError<Error?>, IDefault<Error?>, IApiResponse
Constructors
View Source
DeleteEnvironmentApiResponse(ILogger<DeleteEnvironmentApiResponse>, HttpRequestMessage, HttpResponseMessage, string, string, DateTime, JsonSerializerOptions)
Declaration
public DeleteEnvironmentApiResponse(ILogger<EscApi.DeleteEnvironmentApiResponse> logger, HttpRequestMessage httpRequestMessage, HttpResponseMessage httpResponseMessage, string rawContent, string path, DateTime requestedAt, JsonSerializerOptions jsonSerializerOptions)
Parameters
Properties
View Source
IsBadRequest
Returns true if the response is 400 BadRequest
Declaration
public bool IsBadRequest { get; }
Property Value
View Source
IsDefault
Returns true if the response is the default response type
Declaration
public bool IsDefault { get; }
Property Value
View Source
IsInternalServerError
Returns true if the response is 500 InternalServerError
Declaration
public bool IsInternalServerError { get; }
Property Value
View Source
IsNoContent
Returns true if the response is 204 NoContent
Declaration
public bool IsNoContent { get; }
Property Value
View Source
IsNotFound
Returns true if the response is 404 NotFound
Declaration
public bool IsNotFound { get; }
Property Value
View Source
IsUnauthorized
Returns true if the response is 401 Unauthorized
Declaration
public bool IsUnauthorized { get; }
Property Value
View Source
Logger
Declaration
public ILogger<EscApi.DeleteEnvironmentApiResponse> Logger { get; }
Property Value
Methods
View Source
BadRequest()
Deserializes the response if the response is 400 BadRequest
Declaration
public Error? BadRequest()
Returns
View Source
Default()
Deserializes the response if the response is 0 Default
Declaration
Returns
View Source
InternalServerError()
Deserializes the response if the response is 500 InternalServerError
Declaration
public Error? InternalServerError()
Returns
View Source
NotFound()
Deserializes the response if the response is 404 NotFound
Declaration
Returns
View Source
TryBadRequest(out Error?)
Returns true if the response is 400 BadRequest and the deserialized response is not null
Declaration
public bool TryBadRequest(out Error? result)
Parameters
| Type |
Name |
Description |
| Error |
result |
|
Returns
View Source
TryDefault(out Error?)
Returns true if the response is 0 Default and the deserialized response is not null
Declaration
public bool TryDefault(out Error? result)
Parameters
| Type |
Name |
Description |
| Error |
result |
|
Returns
View Source
TryInternalServerError(out Error?)
Returns true if the response is 500 InternalServerError and the deserialized response is not null
Declaration
public bool TryInternalServerError(out Error? result)
Parameters
| Type |
Name |
Description |
| Error |
result |
|
Returns
View Source
TryNotFound(out Error?)
Returns true if the response is 404 NotFound and the deserialized response is not null
Declaration
public bool TryNotFound(out Error? result)
Parameters
| Type |
Name |
Description |
| Error |
result |
|
Returns
View Source
TryUnauthorized(out Error?)
Returns true if the response is 401 Unauthorized and the deserialized response is not null
Declaration
public bool TryUnauthorized(out Error? result)
Parameters
| Type |
Name |
Description |
| Error |
result |
|
Returns
View Source
Unauthorized()
Deserializes the response if the response is 401 Unauthorized
Declaration
public Error? Unauthorized()
Returns
Implements