#![allow(
dead_code,
unused_variables,
clippy::let_and_return,
clippy::single_match
)]
#[allow(unused_imports)]
use http::header::HeaderName;
use winterbaume_core::MockResponse;
pub use super::model::*;
pub fn serialize_associate_to_configuration_response(
result: &AssociateToConfigurationResult,
) -> MockResponse {
let status = 201_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_create_chime_webhook_configuration_response(
result: &CreateChimeWebhookConfigurationResult,
) -> MockResponse {
let status = 201_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_create_custom_action_response(result: &CreateCustomActionResult) -> MockResponse {
let status = 201_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_create_microsoft_teams_channel_configuration_response(
result: &CreateTeamsChannelConfigurationResult,
) -> MockResponse {
let status = 201_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_create_slack_channel_configuration_response(
result: &CreateSlackChannelConfigurationResult,
) -> MockResponse {
let status = 201_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_delete_chime_webhook_configuration_response(
result: &DeleteChimeWebhookConfigurationResult,
) -> MockResponse {
let status = 204_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_delete_custom_action_response(result: &DeleteCustomActionResult) -> MockResponse {
let status = 204_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_delete_microsoft_teams_channel_configuration_response(
result: &DeleteTeamsChannelConfigurationResult,
) -> MockResponse {
let status = 204_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_delete_microsoft_teams_configured_team_response(
result: &DeleteTeamsConfiguredTeamResult,
) -> MockResponse {
let status = 204_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_delete_microsoft_teams_user_identity_response(
result: &DeleteMicrosoftTeamsUserIdentityResult,
) -> MockResponse {
let status = 204_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_delete_slack_channel_configuration_response(
result: &DeleteSlackChannelConfigurationResult,
) -> MockResponse {
let status = 204_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_delete_slack_user_identity_response(
result: &DeleteSlackUserIdentityResult,
) -> MockResponse {
let status = 204_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_delete_slack_workspace_authorization_response(
result: &DeleteSlackWorkspaceAuthorizationResult,
) -> MockResponse {
let status = 204_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_describe_chime_webhook_configurations_response(
result: &DescribeChimeWebhookConfigurationsResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_describe_slack_channel_configurations_response(
result: &DescribeSlackChannelConfigurationsResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_describe_slack_user_identities_response(
result: &DescribeSlackUserIdentitiesResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_describe_slack_workspaces_response(
result: &DescribeSlackWorkspacesResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_disassociate_from_configuration_response(
result: &DisassociateFromConfigurationResult,
) -> MockResponse {
let status = 204_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_get_account_preferences_response(
result: &GetAccountPreferencesResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_get_custom_action_response(result: &GetCustomActionResult) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_get_microsoft_teams_channel_configuration_response(
result: &GetTeamsChannelConfigurationResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_list_associations_response(result: &ListAssociationsResult) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_list_custom_actions_response(result: &ListCustomActionsResult) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_list_microsoft_teams_channel_configurations_response(
result: &ListTeamsChannelConfigurationsResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_list_microsoft_teams_configured_teams_response(
result: &ListMicrosoftTeamsConfiguredTeamsResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_list_microsoft_teams_user_identities_response(
result: &ListMicrosoftTeamsUserIdentitiesResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_list_tags_for_resource_response(
result: &ListTagsForResourceResponse,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_tag_resource_response(result: &TagResourceResponse) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_untag_resource_response(result: &UntagResourceResponse) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_update_account_preferences_response(
result: &UpdateAccountPreferencesResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_update_chime_webhook_configuration_response(
result: &UpdateChimeWebhookConfigurationResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_update_custom_action_response(result: &UpdateCustomActionResult) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_update_microsoft_teams_channel_configuration_response(
result: &UpdateTeamsChannelConfigurationResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}
pub fn serialize_update_slack_channel_configuration_response(
result: &UpdateSlackChannelConfigurationResult,
) -> MockResponse {
let status = 200_u16;
let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
MockResponse::rest_json(status, body)
}