@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
546 lines (545 loc) • 12.5 kB
TypeScript
/**
* Defines constants for use with HTTP headers.
*/
export declare const headerConstants: {
/**
* The accept language header.
*/
ACCEPT_LANGUAGE: string;
/**
* The accept ranges header.
*/
ACCEPT_RANGES: string;
/**
* The content transfer encoding header.
*/
CONTENT_TRANSFER_ENCODING: string;
/**
* The transfer encoding header.
*/
TRANSFER_ENCODING: string;
/**
* The server header.
*/
SERVER: string;
/**
* The location header.
*/
LOCATION: string;
/**
* The Last-Modified header
*/
LAST_MODIFIED: string;
/**
* The data service version.
*/
DATA_SERVICE_VERSION: string;
/**
* The maximum data service version.
*/
MAX_DATA_SERVICE_VERSION: string;
/**
* The master Windows Azure Storage header prefix.
*/
PREFIX_FOR_STORAGE: string;
/**
* The client request Id header.
*/
CLIENT_REQUEST_ID: string;
/**
* The header that specifies the approximate message count of a queue.
*/
APPROXIMATE_MESSAGES_COUNT: string;
/**
* The Authorization header.
*/
AUTHORIZATION: string;
/**
* The header that specifies public access to blobs.
*/
BLOB_PUBLIC_ACCESS: string;
/**
* The header for the blob type.
*/
BLOB_TYPE: string;
/**
* The header for the type.
*/
TYPE: string;
/**
* Specifies the block blob type.
*/
BLOCK_BLOB: string;
/**
* The CacheControl header.
*/
CACHE_CONTROL: string;
/**
* The header that specifies blob caching control.
*/
BLOB_CACHE_CONTROL: string;
/**
* The header that specifies caching control.
*/
FILE_CACHE_CONTROL: string;
/**
* The copy status.
*/
COPY_STATUS: string;
/**
* The copy completion time
*/
COPY_COMPLETION_TIME: string;
/**
* The copy status message
*/
COPY_STATUS_DESCRIPTION: string;
/**
* The copy identifier.
*/
COPY_ID: string;
/**
* Progress of any copy operation
*/
COPY_PROGRESS: string;
/**
* The copy action.
*/
COPY_ACTION: string;
/**
* The ContentID header.
*/
CONTENT_ID: string;
/**
* The ContentEncoding header.
*/
CONTENT_ENCODING: string;
/**
* The header that specifies blob content encoding.
*/
BLOB_CONTENT_ENCODING: string;
/**
* The header that specifies content encoding.
*/
FILE_CONTENT_ENCODING: string;
/**
* The ContentLangauge header.
*/
CONTENT_LANGUAGE: string;
/**
* The header that specifies blob content language.
*/
BLOB_CONTENT_LANGUAGE: string;
/**
* The header that specifies content language.
*/
FILE_CONTENT_LANGUAGE: string;
/**
* The ContentLength header.
*/
CONTENT_LENGTH: string;
/**
* The header that specifies blob content length.
*/
BLOB_CONTENT_LENGTH: string;
/**
* The header that specifies content length.
*/
FILE_CONTENT_LENGTH: string;
/**
* The ContentDisposition header.
*/
CONTENT_DISPOSITION: string;
/**
* The header that specifies blob content disposition.
*/
BLOB_CONTENT_DISPOSITION: string;
/**
* The header that specifies content disposition.
*/
FILE_CONTENT_DISPOSITION: string;
/**
* The ContentMD5 header.
*/
CONTENT_MD5: string;
/**
* The header that specifies blob content MD5.
*/
BLOB_CONTENT_MD5: string;
/**
* The header that specifies content MD5.
*/
FILE_CONTENT_MD5: string;
/**
* The ContentRange header.
*/
CONTENT_RANGE: string;
/**
* The ContentType header.
*/
CONTENT_TYPE: string;
/**
* The header that specifies blob content type.
*/
BLOB_CONTENT_TYPE: string;
/**
* The header that specifies content type.
*/
FILE_CONTENT_TYPE: string;
/**
* The header for copy source.
*/
COPY_SOURCE: string;
/**
* The header that specifies the date.
*/
DATE: string;
/**
* The header that specifies the date.
*/
MS_DATE: string;
/**
* The header to delete snapshots.
*/
DELETE_SNAPSHOT: string;
/**
* The ETag header.
*/
ETAG: string;
/**
* The IfMatch header.
*/
IF_MATCH: string;
/**
* The IfModifiedSince header.
*/
IF_MODIFIED_SINCE: string;
/**
* The IfNoneMatch header.
*/
IF_NONE_MATCH: string;
/**
* The IfUnmodifiedSince header.
*/
IF_UNMODIFIED_SINCE: string;
/**
* Specifies snapshots are to be included.
*/
INCLUDE_SNAPSHOTS_VALUE: string;
/**
* Specifies that the content-type is JSON.
*/
JSON_CONTENT_TYPE_VALUE: string;
/**
* The header that specifies lease ID.
*/
LEASE_ID: string;
/**
* The header that specifies the lease break period.
*/
LEASE_BREAK_PERIOD: string;
/**
* The header that specifies the proposed lease identifier.
*/
PROPOSED_LEASE_ID: string;
/**
* The header that specifies the lease duration.
*/
LEASE_DURATION: string;
/**
* The header that specifies the source lease ID.
*/
SOURCE_LEASE_ID: string;
/**
* The header that specifies lease time.
*/
LEASE_TIME: string;
/**
* The header that specifies lease status.
*/
LEASE_STATUS: string;
/**
* The header that specifies lease state.
*/
LEASE_STATE: string;
/**
* Specifies the page blob type.
*/
PAGE_BLOB: string;
/**
* The header that specifies page write mode.
*/
PAGE_WRITE: string;
/**
* The header that specifies file range write mode.
*/
FILE_WRITE: string;
/**
* The header that specifies whether the response should include the inserted entity.
*/
PREFER: string;
/**
* The header value which specifies that the response should include the inserted entity.
*/
PREFER_CONTENT: string;
/**
* The header value which specifies that the response should not include the inserted entity.
*/
PREFER_NO_CONTENT: string;
/**
* The header prefix for metadata.
*/
PREFIX_FOR_STORAGE_METADATA: string;
/**
* The header prefix for properties.
*/
PREFIX_FOR_STORAGE_PROPERTIES: string;
/**
* The Range header.
*/
RANGE: string;
/**
* The header that specifies if the request will populate the ContentMD5 header for range gets.
*/
RANGE_GET_CONTENT_MD5: string;
/**
* The format string for specifying ranges.
*/
RANGE_HEADER_FORMAT: string;
/**
* The header that indicates the request ID.
*/
REQUEST_ID: string;
/**
* The header for specifying the sequence number.
*/
SEQUENCE_NUMBER: string;
/**
* The header for specifying the If-Sequence-Number-EQ condition.
*/
SEQUENCE_NUMBER_EQUAL: string;
/**
* The header for specifying the If-Sequence-Number-LT condition.
*/
SEQUENCE_NUMBER_LESS_THAN: string;
/**
* The header for specifying the If-Sequence-Number-LE condition.
*/
SEQUENCE_NUMBER_LESS_THAN_OR_EQUAL: string;
/**
* The header that specifies sequence number action.
*/
SEQUENCE_NUMBER_ACTION: string;
/**
* The header for the blob content length.
*/
SIZE: string;
/**
* The header for snapshots.
*/
SNAPSHOT: string;
/**
* Specifies only snapshots are to be included.
*/
SNAPSHOTS_ONLY_VALUE: string;
/**
* The header for the If-Match condition.
*/
SOURCE_IF_MATCH: string;
/**
* The header for the If-Modified-Since condition.
*/
SOURCE_IF_MODIFIED_SINCE: string;
/**
* The header for the If-None-Match condition.
*/
SOURCE_IF_NONE_MATCH: string;
/**
* The header for the If-Unmodified-Since condition.
*/
SOURCE_IF_UNMODIFIED_SINCE: string;
/**
* The header for data ranges.
*/
STORAGE_RANGE: string;
/**
* The header for storage version.
*/
STORAGE_VERSION: string;
/**
* The current storage version header value.
*/
TARGET_STORAGE_VERSION: string;
/**
* The UserAgent header.
*/
USER_AGENT: string;
/**
* The pop receipt header.
*/
POP_RECEIPT: string;
/**
* The time next visibile header.
*/
TIME_NEXT_VISIBLE: string;
/**
* The approximate message counter header.
*/
APPROXIMATE_MESSAGE_COUNT: string;
/**
* The lease action header.
*/
LEASE_ACTION: string;
/**
* The accept header.
*/
ACCEPT: string;
/**
* The accept charset header.
*/
ACCEPT_CHARSET: string;
/**
* The host header.
*/
HOST: string;
/**
* The correlation identifier header.
*/
CORRELATION_ID: string;
/**
* The group identifier header.
*/
GROUP_ID: string;
/**
* The share quota header.
*/
SHARE_QUOTA: string;
/**
* The max blob size header.
*/
BLOB_CONDITION_MAX_SIZE: string;
/**
* The append blob position header.
*/
BLOB_CONDITION_APPEND_POSITION: string;
/**
* The append blob append offset header.
*/
BLOB_APPEND_OFFSET: string;
/**
* The append blob committed block header.
*/
BLOB_COMMITTED_BLOCK_COUNT: string;
/**
* If the data and application metadata are completely encrypted using the specified algorithm.
*/
SERVER_ENCRYPTED: string;
/**
* The SME authorization header.
*/
SME_AUTHORIZATION: string;
/**
* The SME AAD authorization header.
*/
SME_AAD_AUTHORIZATION: string;
/**
* The secure extension data header
*/
SECURE_EXTENSION: string;
/**
* The Use Laps Header.
*/
USE_LAPS: string;
/**
* The Laps local admin name.
*/
LAPS_LOCALADMINNAME: string;
/**
* Flag to log audit for the request
*/
LOG_AUDIT: string;
/**
* Flag to log telemetry for the request
*/
LOG_TELEMETRY: string;
/**
* Name of module making the request
*/
MODULE_NAME: string;
/**
* Version of module making the request.
*/
MODULE_VERSION: string;
/**
* PowerShell JEA endpoint.
*/
POWERSHELL_ENDPOINT: string;
/**
* Cross-site request forgery token.
* Use `X-XSRF-TOKEN` for the header name and `XSRF-TOKEN` for the cookie name.
*/
CROSS_SITE_REQUEST_FORGERY_TOKEN: string;
/**
* Authentication mechanism request.
*/
AUTHENTICATION_MECHANISM: string;
/**
* Version of requested static content.
*/
STATIC_VERSION: string;
};
export declare const enum HttpStatusCode {
GenericError = 0,
CorsRequestFailed = 0,
Continue = 100,
SwitchingProtocols = 101,
Ok = 200,
Created = 201,
Accepted = 202,
NonAuthoritativeInformation = 203,
NoContent = 204,
ResetContent = 205,
PartialContent = 206,
Ambiguous = 300,
MultipleChoices = 300,
Moved = 301,
MovedPermanently = 301,
Found = 302,
Redirect = 302,
RedirectMethod = 303,
SeeOther = 303,
NotModified = 304,
UseProxy = 305,
Unused = 306,
RedirectKeepVerb = 307,
TemporaryRedirect = 307,
BadRequest = 400,
Unauthorized = 401,
PaymentRequired = 402,
Forbidden = 403,
NotFound = 404,
MethodNotAllowed = 405,
NotAcceptable = 406,
ProxyAuthenticationRequired = 407,
RequestTimeout = 408,
Conflict = 409,
Gone = 410,
LengthRequired = 411,
PreconditionFailed = 412,
RequestEntityTooLarge = 413,
RequestUriTooLong = 414,
UnsupportedMediaType = 415,
RequestedRangeNotSatisfiable = 416,
ExpectationFailed = 417,
UpgradeRequired = 426,
PreconditionRequired = 428,
InternalServerError = 500,
NotImplemented = 501,
BadGateway = 502,
ServiceUnavailable = 503,
GatewayTimeout = 504,
HttpVersionNotSupported = 505
}
export declare enum HttpResponseTypes {
Json = "application/json"
}