pub struct ArmClient { /* private fields */ }Expand description
Azure Resource Manager client for subscription/service discovery
Implementations§
Source§impl ArmClient
impl ArmClient
Sourcepub fn new() -> Result<Self, ClientError>
pub fn new() -> Result<Self, ClientError>
Create a new ARM client using Azure CLI credentials
Sourcepub async fn list_subscriptions(&self) -> Result<Vec<Subscription>, ClientError>
pub async fn list_subscriptions(&self) -> Result<Vec<Subscription>, ClientError>
List subscriptions the user has access to
Sourcepub async fn list_search_services(
&self,
subscription_id: &str,
) -> Result<Vec<SearchService>, ClientError>
pub async fn list_search_services( &self, subscription_id: &str, ) -> Result<Vec<SearchService>, ClientError>
List Azure AI Search services in a subscription
Sourcepub async fn find_resource_group(
&self,
subscription_id: &str,
service_name: &str,
) -> Result<String, ClientError>
pub async fn find_resource_group( &self, subscription_id: &str, service_name: &str, ) -> Result<String, ClientError>
Find the resource group of a search service by scanning the subscription.
Returns the resource group name extracted from the service’s ARM resource ID.
Sourcepub async fn list_storage_accounts(
&self,
subscription_id: &str,
resource_group: &str,
) -> Result<Vec<StorageAccount>, ClientError>
pub async fn list_storage_accounts( &self, subscription_id: &str, resource_group: &str, ) -> Result<Vec<StorageAccount>, ClientError>
List storage accounts in a resource group.
Sourcepub async fn get_storage_account_key(
&self,
subscription_id: &str,
resource_group: &str,
account_name: &str,
) -> Result<String, ClientError>
pub async fn get_storage_account_key( &self, subscription_id: &str, resource_group: &str, account_name: &str, ) -> Result<String, ClientError>
Get the primary access key for a storage account.
Sourcepub async fn get_storage_connection_string(
&self,
subscription_id: &str,
resource_group: &str,
account_name: &str,
) -> Result<String, ClientError>
pub async fn get_storage_connection_string( &self, subscription_id: &str, resource_group: &str, account_name: &str, ) -> Result<String, ClientError>
Build a full connection string for a storage account.
Auto Trait Implementations§
impl Freeze for ArmClient
impl !RefUnwindSafe for ArmClient
impl Send for ArmClient
impl Sync for ArmClient
impl Unpin for ArmClient
impl !UnwindSafe for ArmClient
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