pub struct ClientRpcManagedSettings<'a> { /* private fields */ }Expand description
managedSettings.* RPCs.
Implementations§
Source§impl<'a> ClientRpcManagedSettings<'a>
impl<'a> ClientRpcManagedSettings<'a>
Sourcepub async fn read(&self) -> Result<ManagedSettingsReadResult, Error>
pub async fn read(&self) -> Result<ManagedSettingsReadResult, Error>
Discovers device-managed settings from production MDM and managed-file sources, validates them against the runtime-owned managed-settings schema, and returns the canonical JSON without requiring a session.
Wire method: managedSettings.read.
§Returns
Validated device-managed settings discovered before a session exists.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn clear_cache(&self) -> Result<(), Error>
pub async fn clear_cache(&self) -> Result<(), Error>
Force-refreshes enterprise managed settings for every account: wipes the persistent server-policy cache (the whole <cacheHome>/managed-settings directory) and drops this runtime process’s in-memory retained server policy. It does not itself fetch policy — the effect is that the next time a session resolves managed settings for an account, that resolution re-fetches the account’s org policy from the network instead of serving a cached response. Note that managedSettings.read returns only device/MDM settings and never triggers the account server-policy fetch, so a host implementing “sync account policy” should start a fresh session resolution rather than treat a subsequent managedSettings.read as the refreshed org policy. Mirrors the invalidation a sign-out performs, broadened from the one signing-out account to all of them; device/MDM layers describe the machine, not the account, and are left untouched. Rejects if the on-disk cache cannot be removed.
Wire method: managedSettings.clearCache.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for ClientRpcManagedSettings<'a>
impl<'a> Clone for ClientRpcManagedSettings<'a>
Source§fn clone(&self) -> ClientRpcManagedSettings<'a>
fn clone(&self) -> ClientRpcManagedSettings<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more