Show / Hide Table of Contents

Class EscApi.DeleteEnvironmentApiResponse

The EscApi.DeleteEnvironmentApiResponse

Inheritance
object
ApiResponse
EscApi.DeleteEnvironmentApiResponse
Implements
IDeleteEnvironmentApiResponse
IBadRequest<Error>
IUnauthorized<Error>
INotFound<Error>
IInternalServerError<Error>
IDefault<Error>
IApiResponse
Inherited Members
ApiResponse.StatusCode
ApiResponse.RawContent
ApiResponse.IsSuccessStatusCode
ApiResponse.ReasonPhrase
ApiResponse.Headers
ApiResponse.DownloadedAt
ApiResponse.RequestedAt
ApiResponse.Path
ApiResponse.RequestUri
ApiResponse._jsonSerializerOptions
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Pulumi.Esc.Sdk.Api
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)

The EscApi.DeleteEnvironmentApiResponse

Declaration
public DeleteEnvironmentApiResponse(ILogger<EscApi.DeleteEnvironmentApiResponse> logger, HttpRequestMessage httpRequestMessage, HttpResponseMessage httpResponseMessage, string rawContent, string path, DateTime requestedAt, JsonSerializerOptions jsonSerializerOptions)
Parameters
Type Name Description
ILogger<EscApi.DeleteEnvironmentApiResponse> logger
HttpRequestMessage httpRequestMessage
HttpResponseMessage httpResponseMessage
string rawContent
string path
DateTime requestedAt
JsonSerializerOptions jsonSerializerOptions

Properties

View Source

IsBadRequest

Returns true if the response is 400 BadRequest

Declaration
public bool IsBadRequest { get; }
Property Value
Type Description
bool
View Source

IsDefault

Returns true if the response is the default response type

Declaration
public bool IsDefault { get; }
Property Value
Type Description
bool
View Source

IsInternalServerError

Returns true if the response is 500 InternalServerError

Declaration
public bool IsInternalServerError { get; }
Property Value
Type Description
bool
View Source

IsNoContent

Returns true if the response is 204 NoContent

Declaration
public bool IsNoContent { get; }
Property Value
Type Description
bool
View Source

IsNotFound

Returns true if the response is 404 NotFound

Declaration
public bool IsNotFound { get; }
Property Value
Type Description
bool
View Source

IsUnauthorized

Returns true if the response is 401 Unauthorized

Declaration
public bool IsUnauthorized { get; }
Property Value
Type Description
bool
View Source

Logger

The logger

Declaration
public ILogger<EscApi.DeleteEnvironmentApiResponse> Logger { get; }
Property Value
Type Description
ILogger<EscApi.DeleteEnvironmentApiResponse>

Methods

View Source

BadRequest()

Deserializes the response if the response is 400 BadRequest

Declaration
public Error? BadRequest()
Returns
Type Description
Error
View Source

Default()

Deserializes the response if the response is 0 Default

Declaration
public Error? Default()
Returns
Type Description
Error
View Source

InternalServerError()

Deserializes the response if the response is 500 InternalServerError

Declaration
public Error? InternalServerError()
Returns
Type Description
Error
View Source

NotFound()

Deserializes the response if the response is 404 NotFound

Declaration
public Error? NotFound()
Returns
Type Description
Error
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
Type Description
bool
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
Type Description
bool
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
Type Description
bool
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
Type Description
bool
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
Type Description
bool
View Source

Unauthorized()

Deserializes the response if the response is 401 Unauthorized

Declaration
public Error? Unauthorized()
Returns
Type Description
Error

Implements

IDeleteEnvironmentApiResponse
IBadRequest<TType>
IUnauthorized<TType>
INotFound<TType>
IInternalServerError<TType>
IDefault<TType>
IApiResponse

Version 0.13.1

  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.