#![allow(dead_code, non_camel_case_types, non_snake_case, unused_imports, unused_mut)]
use crate::{AMPAPI, types::*};
use std::collections::HashMap;
use serde_json::{Value, Map};
#[derive(Debug, Clone)]
pub struct Core {
pub ampapi: AMPAPI
}
impl Core {
pub fn new(ampapi: AMPAPI) -> Core {
Core {
ampapi
}
}
pub fn AcknowledgeAMPUpdate(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/AcknowledgeAMPUpdate".to_string(), args)
}
pub fn ActivateAMPLicence(&mut self, LicenceKey: String, QueryOnly: bool) -> core::result::Result<ActionResult<LicenceInfo>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("LicenceKey".to_string(), LicenceKey.into());
args.insert("QueryOnly".to_string(), QueryOnly.into());
self.ampapi.api_call::<ActionResult<LicenceInfo>>("Core/ActivateAMPLicence".to_string(), args)
}
pub fn AddEventTrigger(&mut self, triggerId: UUID) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("triggerId".to_string(), triggerId.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/AddEventTrigger".to_string(), args)
}
pub fn AddIntervalTrigger(&mut self, months: Vec<i32>, days: Vec<i32>, hours: Vec<i32>, minutes: Vec<i32>, daysOfMonth: Vec<i32>, description: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("months".to_string(), months.into());
args.insert("days".to_string(), days.into());
args.insert("hours".to_string(), hours.into());
args.insert("minutes".to_string(), minutes.into());
args.insert("daysOfMonth".to_string(), daysOfMonth.into());
args.insert("description".to_string(), description.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/AddIntervalTrigger".to_string(), args)
}
pub fn AddTask(&mut self, TriggerID: UUID, MethodID: String, ParameterMapping: Map<String, Value>) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("TriggerID".to_string(), TriggerID.into());
args.insert("MethodID".to_string(), MethodID.into());
args.insert("ParameterMapping".to_string(), ParameterMapping.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/AddTask".to_string(), args)
}
pub fn AsyncTest(&mut self, ) -> core::result::Result<String, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<String>("Core/AsyncTest".to_string(), args)
}
pub fn CancelTask(&mut self, TaskId: UUID) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("TaskId".to_string(), TaskId.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/CancelTask".to_string(), args)
}
pub fn ChangeTaskOrder(&mut self, TriggerID: UUID, TaskID: UUID, NewOrder: i32) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("TriggerID".to_string(), TriggerID.into());
args.insert("TaskID".to_string(), TaskID.into());
args.insert("NewOrder".to_string(), NewOrder.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/ChangeTaskOrder".to_string(), args)
}
pub fn ChangeUserPassword(&mut self, Username: String, OldPassword: String, NewPassword: String, TwoFactorPIN: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Username".to_string(), Username.into());
args.insert("OldPassword".to_string(), OldPassword.into());
args.insert("NewPassword".to_string(), NewPassword.into());
args.insert("TwoFactorPIN".to_string(), TwoFactorPIN.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/ChangeUserPassword".to_string(), args)
}
pub fn ConfirmTwoFactorSetup(&mut self, Username: String, TwoFactorCode: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Username".to_string(), Username.into());
args.insert("TwoFactorCode".to_string(), TwoFactorCode.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/ConfirmTwoFactorSetup".to_string(), args)
}
pub fn CreateRole(&mut self, Name: String, AsCommonRole: bool) -> core::result::Result<ActionResult<UUID>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Name".to_string(), Name.into());
args.insert("AsCommonRole".to_string(), AsCommonRole.into());
self.ampapi.api_call::<ActionResult<UUID>>("Core/CreateRole".to_string(), args)
}
pub fn CreateTestTask(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/CreateTestTask".to_string(), args)
}
pub fn CreateUser(&mut self, Username: String) -> core::result::Result<ActionResult<UUID>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Username".to_string(), Username.into());
self.ampapi.api_call::<ActionResult<UUID>>("Core/CreateUser".to_string(), args)
}
pub fn CurrentSessionHasPermission(&mut self, PermissionNode: String) -> core::result::Result<bool, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("PermissionNode".to_string(), PermissionNode.into());
self.ampapi.api_call::<bool>("Core/CurrentSessionHasPermission".to_string(), args)
}
pub fn DeleteInstanceUsers(&mut self, InstanceId: UUID) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("InstanceId".to_string(), InstanceId.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/DeleteInstanceUsers".to_string(), args)
}
pub fn DeleteRole(&mut self, RoleId: UUID) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("RoleId".to_string(), RoleId.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/DeleteRole".to_string(), args)
}
pub fn DeleteTask(&mut self, TriggerID: UUID, TaskID: UUID) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("TriggerID".to_string(), TriggerID.into());
args.insert("TaskID".to_string(), TaskID.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/DeleteTask".to_string(), args)
}
pub fn DeleteTrigger(&mut self, TriggerID: UUID) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("TriggerID".to_string(), TriggerID.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/DeleteTrigger".to_string(), args)
}
pub fn DeleteUser(&mut self, Username: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Username".to_string(), Username.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/DeleteUser".to_string(), args)
}
pub fn DisableTwoFactor(&mut self, Password: String, TwoFactorCode: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Password".to_string(), Password.into());
args.insert("TwoFactorCode".to_string(), TwoFactorCode.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/DisableTwoFactor".to_string(), args)
}
pub fn DismissAllTasks(&mut self, ) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<ActionResult<Value>>("Core/DismissAllTasks".to_string(), args)
}
pub fn DismissTask(&mut self, TaskId: UUID) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("TaskId".to_string(), TaskId.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/DismissTask".to_string(), args)
}
pub fn EditIntervalTrigger(&mut self, Id: UUID, months: Vec<i32>, days: Vec<i32>, hours: Vec<i32>, minutes: Vec<i32>, daysOfMonth: Vec<i32>, description: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Id".to_string(), Id.into());
args.insert("months".to_string(), months.into());
args.insert("days".to_string(), days.into());
args.insert("hours".to_string(), hours.into());
args.insert("minutes".to_string(), minutes.into());
args.insert("daysOfMonth".to_string(), daysOfMonth.into());
args.insert("description".to_string(), description.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/EditIntervalTrigger".to_string(), args)
}
pub fn EditTask(&mut self, TriggerID: UUID, TaskID: UUID, ParameterMapping: Map<String, Value>) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("TriggerID".to_string(), TriggerID.into());
args.insert("TaskID".to_string(), TaskID.into());
args.insert("ParameterMapping".to_string(), ParameterMapping.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/EditTask".to_string(), args)
}
pub fn EnableTwoFactor(&mut self, Username: String, Password: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Username".to_string(), Username.into());
args.insert("Password".to_string(), Password.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/EnableTwoFactor".to_string(), args)
}
pub fn EndUserSession(&mut self, Id: UUID) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Id".to_string(), Id.into());
self.ampapi.api_call::<Value>("Core/EndUserSession".to_string(), args)
}
pub fn GetAMPRolePermissions(&mut self, RoleId: UUID) -> core::result::Result<Vec<String>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("RoleId".to_string(), RoleId.into());
self.ampapi.api_call::<Vec<String>>("Core/GetAMPRolePermissions".to_string(), args)
}
pub fn GetAMPUserInfo(&mut self, Username: String) -> core::result::Result<UserInfo, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Username".to_string(), Username.into());
self.ampapi.api_call::<UserInfo>("Core/GetAMPUserInfo".to_string(), args)
}
pub fn GetAMPUsersSummary(&mut self, ) -> core::result::Result<Vec<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Vec<Value>>("Core/GetAMPUsersSummary".to_string(), args)
}
pub fn GetAPISpec(&mut self, ) -> core::result::Result<HashMap<String, HashMap<String, Value>>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<HashMap<String, HashMap<String, Value>>>("Core/GetAPISpec".to_string(), args)
}
pub fn GetActiveAMPSessions(&mut self, ) -> core::result::Result<Vec<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Vec<Value>>("Core/GetActiveAMPSessions".to_string(), args)
}
pub fn GetAllAMPUserInfo(&mut self, ) -> core::result::Result<Vec<UserInfo>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Vec<UserInfo>>("Core/GetAllAMPUserInfo".to_string(), args)
}
pub fn GetAuditLogEntries(&mut self, Before: Option<Value>, Count: i32) -> core::result::Result<Vec<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Before".to_string(), Before.into());
args.insert("Count".to_string(), Count.into());
self.ampapi.api_call::<Vec<Value>>("Core/GetAuditLogEntries".to_string(), args)
}
pub fn GetConfig(&mut self, node: String) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("node".to_string(), node.into());
self.ampapi.api_call::<Value>("Core/GetConfig".to_string(), args)
}
pub fn GetConfigs(&mut self, nodes: Vec<String>) -> core::result::Result<Vec<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("nodes".to_string(), nodes.into());
self.ampapi.api_call::<Vec<Value>>("Core/GetConfigs".to_string(), args)
}
pub fn GetDiagnosticsInfo(&mut self, ) -> core::result::Result<Map<String, Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Map<String, Value>>("Core/GetDiagnosticsInfo".to_string(), args)
}
pub fn GetModuleInfo(&mut self, ) -> core::result::Result<ModuleInfo, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<ModuleInfo>("Core/GetModuleInfo".to_string(), args)
}
pub fn GetNewGuid(&mut self, ) -> core::result::Result<UUID, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<UUID>("Core/GetNewGuid".to_string(), args)
}
pub fn GetPermissionsSpec(&mut self, ) -> core::result::Result<Vec<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Vec<Value>>("Core/GetPermissionsSpec".to_string(), args)
}
pub fn GetPortSummaries(&mut self, ) -> core::result::Result<Vec<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Vec<Value>>("Core/GetPortSummaries".to_string(), args)
}
pub fn GetProvisionSpec(&mut self, ) -> core::result::Result<Vec<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Vec<Value>>("Core/GetProvisionSpec".to_string(), args)
}
pub fn GetRemoteLoginToken(&mut self, Description: String, IsTemporary: bool) -> core::result::Result<String, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Description".to_string(), Description.into());
args.insert("IsTemporary".to_string(), IsTemporary.into());
self.ampapi.api_call::<String>("Core/GetRemoteLoginToken".to_string(), args)
}
pub fn GetRole(&mut self, RoleId: UUID) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("RoleId".to_string(), RoleId.into());
self.ampapi.api_call::<Value>("Core/GetRole".to_string(), args)
}
pub fn GetRoleData(&mut self, ) -> core::result::Result<Vec<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Vec<Value>>("Core/GetRoleData".to_string(), args)
}
pub fn GetRoleIds(&mut self, ) -> core::result::Result<Map<UUID, Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Map<UUID, Value>>("Core/GetRoleIds".to_string(), args)
}
pub fn GetScheduleData(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/GetScheduleData".to_string(), args)
}
pub fn GetSettingValues(&mut self, SettingNode: String, WithRefresh: bool) -> core::result::Result<HashMap<String, String>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("SettingNode".to_string(), SettingNode.into());
args.insert("WithRefresh".to_string(), WithRefresh.into());
self.ampapi.api_call::<HashMap<String, String>>("Core/GetSettingValues".to_string(), args)
}
pub fn GetSettingsSpec(&mut self, ) -> core::result::Result<Map<String, Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Map<String, Value>>("Core/GetSettingsSpec".to_string(), args)
}
pub fn GetStatus(&mut self, ) -> core::result::Result<Status, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Status>("Core/GetStatus".to_string(), args)
}
pub fn GetTasks(&mut self, ) -> core::result::Result<Vec<RunningTask>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Vec<RunningTask>>("Core/GetTasks".to_string(), args)
}
pub fn GetTimeIntervalTrigger(&mut self, Id: UUID) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Id".to_string(), Id.into());
self.ampapi.api_call::<Value>("Core/GetTimeIntervalTrigger".to_string(), args)
}
pub fn GetUpdateInfo(&mut self, ) -> core::result::Result<UpdateInfo, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<UpdateInfo>("Core/GetUpdateInfo".to_string(), args)
}
pub fn GetUpdates(&mut self, ) -> core::result::Result<Updates, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Updates>("Core/GetUpdates".to_string(), args)
}
pub fn GetUserActionsSpec(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/GetUserActionsSpec".to_string(), args)
}
pub fn GetUserInfo(&mut self, UID: String) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("UID".to_string(), UID.into());
self.ampapi.api_call::<Value>("Core/GetUserInfo".to_string(), args)
}
pub fn GetUserList(&mut self, ) -> core::result::Result<Map<String, Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Map<String, Value>>("Core/GetUserList".to_string(), args)
}
pub fn GetWebauthnChallenge(&mut self, ) -> core::result::Result<ActionResult<String>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<ActionResult<String>>("Core/GetWebauthnChallenge".to_string(), args)
}
pub fn GetWebauthnCredentialIDs(&mut self, username: String) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("username".to_string(), username.into());
self.ampapi.api_call::<Value>("Core/GetWebauthnCredentialIDs".to_string(), args)
}
pub fn GetWebauthnCredentialSummaries(&mut self, ) -> core::result::Result<Vec<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Vec<Value>>("Core/GetWebauthnCredentialSummaries".to_string(), args)
}
pub fn GetWebserverMetrics(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/GetWebserverMetrics".to_string(), args)
}
pub fn Kill(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/Kill".to_string(), args)
}
pub fn Login(&mut self, username: String, password: String, token: String, rememberMe: bool) -> core::result::Result<LoginResult, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("username".to_string(), username.into());
args.insert("password".to_string(), password.into());
args.insert("token".to_string(), token.into());
args.insert("rememberMe".to_string(), rememberMe.into());
self.ampapi.api_call::<LoginResult>("Core/Login".to_string(), args)
}
pub fn Logout(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/Logout".to_string(), args)
}
pub fn RefreshSettingValueList(&mut self, Node: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Node".to_string(), Node.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/RefreshSettingValueList".to_string(), args)
}
pub fn RefreshSettingsSourceCache(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/RefreshSettingsSourceCache".to_string(), args)
}
pub fn RenameRole(&mut self, RoleId: UUID, NewName: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("RoleId".to_string(), RoleId.into());
args.insert("NewName".to_string(), NewName.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/RenameRole".to_string(), args)
}
pub fn ResetUserPassword(&mut self, Username: String, NewPassword: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Username".to_string(), Username.into());
args.insert("NewPassword".to_string(), NewPassword.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/ResetUserPassword".to_string(), args)
}
pub fn Restart(&mut self, ) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<ActionResult<Value>>("Core/Restart".to_string(), args)
}
pub fn RestartAMP(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/RestartAMP".to_string(), args)
}
pub fn Resume(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/Resume".to_string(), args)
}
pub fn RevokeWebauthnCredential(&mut self, ID: i32) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("ID".to_string(), ID.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/RevokeWebauthnCredential".to_string(), args)
}
pub fn RunEventTriggerImmediately(&mut self, triggerId: UUID) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("triggerId".to_string(), triggerId.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/RunEventTriggerImmediately".to_string(), args)
}
pub fn SendConsoleMessage(&mut self, message: String) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("message".to_string(), message.into());
self.ampapi.api_call::<Value>("Core/SendConsoleMessage".to_string(), args)
}
pub fn SetAMPRolePermission(&mut self, RoleId: UUID, PermissionNode: String, Enabled: Option<bool>) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("RoleId".to_string(), RoleId.into());
args.insert("PermissionNode".to_string(), PermissionNode.into());
args.insert("Enabled".to_string(), Enabled.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/SetAMPRolePermission".to_string(), args)
}
pub fn SetAMPUserRoleMembership(&mut self, UserId: UUID, RoleId: UUID, IsMember: bool) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("UserId".to_string(), UserId.into());
args.insert("RoleId".to_string(), RoleId.into());
args.insert("IsMember".to_string(), IsMember.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/SetAMPUserRoleMembership".to_string(), args)
}
pub fn SetConfig(&mut self, node: String, value: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("node".to_string(), node.into());
args.insert("value".to_string(), value.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/SetConfig".to_string(), args)
}
pub fn SetConfigs(&mut self, data: Map<String, Value>) -> core::result::Result<bool, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("data".to_string(), data.into());
self.ampapi.api_call::<bool>("Core/SetConfigs".to_string(), args)
}
pub fn SetTriggerEnabled(&mut self, Id: UUID, Enabled: bool) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Id".to_string(), Id.into());
args.insert("Enabled".to_string(), Enabled.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/SetTriggerEnabled".to_string(), args)
}
pub fn Sleep(&mut self, ) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<ActionResult<Value>>("Core/Sleep".to_string(), args)
}
pub fn Start(&mut self, ) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<ActionResult<Value>>("Core/Start".to_string(), args)
}
pub fn Stop(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/Stop".to_string(), args)
}
pub fn Suspend(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/Suspend".to_string(), args)
}
pub fn UpdateAMPInstance(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/UpdateAMPInstance".to_string(), args)
}
pub fn UpdateAccountInfo(&mut self, EmailAddress: String, TwoFactorPIN: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("EmailAddress".to_string(), EmailAddress.into());
args.insert("TwoFactorPIN".to_string(), TwoFactorPIN.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/UpdateAccountInfo".to_string(), args)
}
pub fn UpdateApplication(&mut self, ) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<ActionResult<Value>>("Core/UpdateApplication".to_string(), args)
}
pub fn UpdateUserInfo(&mut self, Username: String, Disabled: bool, PasswordExpires: bool, CannotChangePassword: bool, MustChangePassword: bool, EmailAddress: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Username".to_string(), Username.into());
args.insert("Disabled".to_string(), Disabled.into());
args.insert("PasswordExpires".to_string(), PasswordExpires.into());
args.insert("CannotChangePassword".to_string(), CannotChangePassword.into());
args.insert("MustChangePassword".to_string(), MustChangePassword.into());
args.insert("EmailAddress".to_string(), EmailAddress.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/UpdateUserInfo".to_string(), args)
}
pub fn UpgradeAMP(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("Core/UpgradeAMP".to_string(), args)
}
pub fn WebauthnRegister(&mut self, attestationObject: String, clientDataJSON: String, description: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("attestationObject".to_string(), attestationObject.into());
args.insert("clientDataJSON".to_string(), clientDataJSON.into());
args.insert("description".to_string(), description.into());
self.ampapi.api_call::<ActionResult<Value>>("Core/WebauthnRegister".to_string(), args)
}
}