pub struct ArmResourceClient { /* private fields */ }Expand description
Generic ARM client for Foundry control-plane kinds.
Implementations§
Source§impl ArmResourceClient
impl ArmResourceClient
Sourcepub async fn for_account(
account: &str,
project: &str,
) -> Result<Self, ClientError>
pub async fn for_account( account: &str, project: &str, ) -> Result<Self, ClientError>
Resolve the ARM scope for a Foundry account by name and construct the client.
Sourcepub fn with_token(
scope: ArmScope,
project: String,
token: String,
) -> Result<Self, ClientError>
pub fn with_token( scope: ArmScope, project: String, token: String, ) -> Result<Self, ClientError>
Test constructor with explicit scope/token/base handled by arm_url.
pub fn scope(&self) -> &ArmScope
pub async fn list(&self, kind: ResourceKind) -> Result<Vec<Value>, ClientError>
pub async fn get( &self, kind: ResourceKind, name: &str, ) -> Result<Option<Value>, ClientError>
Sourcepub async fn put(
&self,
kind: ResourceKind,
name: &str,
body: &Value,
) -> Result<Value, ClientError>
pub async fn put( &self, kind: ResourceKind, name: &str, body: &Value, ) -> Result<Value, ClientError>
PUT and poll until the resource reaches a terminal provisioning state.
pub async fn delete( &self, kind: ResourceKind, name: &str, ) -> Result<(), ClientError>
Auto Trait Implementations§
impl !RefUnwindSafe for ArmResourceClient
impl !UnwindSafe for ArmResourceClient
impl Freeze for ArmResourceClient
impl Send for ArmResourceClient
impl Sync for ArmResourceClient
impl Unpin for ArmResourceClient
impl UnsafeUnpin for ArmResourceClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more