pub struct DesignAutomationClient { /* private fields */ }Expand description
Design Automation API client
Implementations§
Source§impl DesignAutomationClient
impl DesignAutomationClient
Sourcepub async fn list_activities(&self) -> Result<Vec<String>>
pub async fn list_activities(&self) -> Result<Vec<String>>
List all activities
Sourcepub async fn create_activity(
&self,
request: CreateActivityRequest,
) -> Result<Activity>
pub async fn create_activity( &self, request: CreateActivityRequest, ) -> Result<Activity>
Create a new activity
Sourcepub async fn create_activity_alias(
&self,
activity_id: &str,
alias: &str,
version: i32,
) -> Result<()>
pub async fn create_activity_alias( &self, activity_id: &str, alias: &str, version: i32, ) -> Result<()>
Create an alias for an activity
Sourcepub async fn delete_activity(&self, id: &str) -> Result<()>
pub async fn delete_activity(&self, id: &str) -> Result<()>
Delete an activity
Source§impl DesignAutomationClient
impl DesignAutomationClient
Sourcepub async fn list_appbundles(&self) -> Result<Vec<String>>
pub async fn list_appbundles(&self) -> Result<Vec<String>>
List all app bundles
Sourcepub async fn create_appbundle(
&self,
id: &str,
engine: &str,
description: Option<&str>,
) -> Result<AppBundleDetails>
pub async fn create_appbundle( &self, id: &str, engine: &str, description: Option<&str>, ) -> Result<AppBundleDetails>
Create a new app bundle
Sourcepub async fn create_appbundle_alias(
&self,
bundle_id: &str,
alias: &str,
version: i32,
) -> Result<()>
pub async fn create_appbundle_alias( &self, bundle_id: &str, alias: &str, version: i32, ) -> Result<()>
Create an alias for an app bundle
Sourcepub async fn delete_appbundle(&self, id: &str) -> Result<()>
pub async fn delete_appbundle(&self, id: &str) -> Result<()>
Delete an app bundle
Sourcepub async fn upload_appbundle(
&self,
upload_params: &UploadParameters,
file_path: &Path,
) -> Result<()>
pub async fn upload_appbundle( &self, upload_params: &UploadParameters, file_path: &Path, ) -> Result<()>
Upload an app bundle archive (.zip) using pre-signed S3 URL
After creating an app bundle, the response includes upload_parameters
with an endpoint_url and form_data fields. This method POSTs the
archive file as multipart/form-data to that pre-signed URL.
§Arguments
upload_params- The upload parameters from the create_appbundle responsefile_path- Path to the .zip archive to upload
Source§impl DesignAutomationClient
impl DesignAutomationClient
Sourcepub async fn effective_nickname(&self) -> Result<String>
pub async fn effective_nickname(&self) -> Result<String>
Fetch the effective nickname from the DA API.
Returns the configured nickname if set, otherwise calls
GET /forgeapps/me to get the actual owner name (usually the client_id).
Sourcepub async fn list_engines(&self) -> Result<Vec<String>>
pub async fn list_engines(&self) -> Result<Vec<String>>
List available engines
Returns a list of engine IDs (e.g., “Autodesk.Revit+2024”).
Use get_engine to fetch full details for a specific engine.
Sourcepub async fn list_engines_detailed(&self) -> Result<Vec<Engine>>
pub async fn list_engines_detailed(&self) -> Result<Vec<Engine>>
List all engines with pagination, returning structured Engine objects.
The API returns engine IDs as strings. This method parses the ID to extract product name and version as the description.
Source§impl DesignAutomationClient
impl DesignAutomationClient
Sourcepub async fn create_workitem(
&self,
activity_id: &str,
arguments: HashMap<String, WorkItemArgument>,
) -> Result<WorkItem>
pub async fn create_workitem( &self, activity_id: &str, arguments: HashMap<String, WorkItemArgument>, ) -> Result<WorkItem>
Create a work item (run an activity)
Sourcepub async fn list_workitems(&self) -> Result<Vec<WorkItem>>
pub async fn list_workitems(&self) -> Result<Vec<WorkItem>>
List all workitems
The DA API requires a startAfterTime query parameter.
Defaults to 24 hours ago if not specified.
Sourcepub async fn get_workitem_status(&self, id: &str) -> Result<WorkItem>
pub async fn get_workitem_status(&self, id: &str) -> Result<WorkItem>
Get work item status
Source§impl DesignAutomationClient
impl DesignAutomationClient
Sourcepub fn new(config: Config, auth: AuthClient) -> Self
pub fn new(config: Config, auth: AuthClient) -> Self
Create a new Design Automation client
Sourcepub fn new_with_http_config(
config: Config,
auth: AuthClient,
http_config: HttpClientConfig,
) -> Self
pub fn new_with_http_config( config: Config, auth: AuthClient, http_config: HttpClientConfig, ) -> Self
Create a new Design Automation client with custom HTTP config
Trait Implementations§
Source§impl Clone for DesignAutomationClient
impl Clone for DesignAutomationClient
Source§fn clone(&self) -> DesignAutomationClient
fn clone(&self) -> DesignAutomationClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more