OperationResult Class

An Operation Result.

Inheritance
msrest.serialization.Model
OperationResult

Constructor

OperationResult(*, status: str | None = None, status_code: str | HttpStatusCode | None = None, error: OperationError | None = None, **kwargs)

Parameters

Name Description
status
Required
str

The operation status.

status_code
Required

The status code for the operation. Possible values include: "Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "MovedPermanently", "Redirect", "SeeOther", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported".

error
Required

Error details for the operation in case of a failure.

Keyword-Only Parameters

Name Description
status
Required
status_code
Required
error
Required