pub mod resource_manager_endpoint {
static_url!(
AZURE_CHINA_CLOUD,
"https://management.chinacloudapi.cn"
);
static_url!(
AZURE_GERMANY_CLOUD,
"https://management.microsoftazure.de"
);
static_url!(
AZURE_PUBLIC_CLOUD,
"https://management.azure.com"
);
static_url!(
AZURE_US_GOVERNMENT_CLOUD,
"https://management.usgovcloudapi.net"
);
}
pub mod authority_hosts {
static_url!(
AZURE_CHINA_CLOUD,
"https://login.chinacloudapi.cn"
);
static_url!(
AZURE_GERMANY_CLOUD,
"https://login.microsoftonline.de"
);
static_url!(
AZURE_US_GOVERNMENT_CLOUD,
"https://login.microsoftonline.us"
);
static_url!(
AZURE_PUBLIC_CLOUD,
"https://login.microsoftonline.com"
);
}
pub mod content_type {
use crate::headers::HeaderValue;
pub const MULTIPART_FORM_DATA: HeaderValue = HeaderValue::from_static("multipart/form-data");
pub const APPLICATION_X_WWW_FORM_URLENCODED: HeaderValue =
HeaderValue::from_static("application/x-www-form-urlencoded");
pub const APPLICATION_XML: HeaderValue = HeaderValue::from_static("application/xml");
pub const APPLICATION_JSON: HeaderValue = HeaderValue::from_static("application/json");
pub const APPLICATION_OCTET_STREAM: HeaderValue =
HeaderValue::from_static("application/octet-stream");
pub const TEXT_PLAIN: HeaderValue = HeaderValue::from_static("text/plain");
}
pub mod query_param {
pub const API_VERSION: &str = "api-version";
}