Skip to main content

DesignAutomationClient

Struct DesignAutomationClient 

Source
pub struct DesignAutomationClient { /* private fields */ }
Expand description

Design Automation API client

Implementations§

Source§

impl DesignAutomationClient

Source

pub async fn list_activities(&self) -> Result<Vec<String>>

List all activities

Source

pub async fn create_activity( &self, request: CreateActivityRequest, ) -> Result<Activity>

Create a new activity

Source

pub async fn create_activity_alias( &self, activity_id: &str, alias: &str, version: i32, ) -> Result<()>

Create an alias for an activity

Source

pub async fn delete_activity(&self, id: &str) -> Result<()>

Delete an activity

Source§

impl DesignAutomationClient

Source

pub async fn list_appbundles(&self) -> Result<Vec<String>>

List all app bundles

Source

pub async fn create_appbundle( &self, id: &str, engine: &str, description: Option<&str>, ) -> Result<AppBundleDetails>

Create a new app bundle

Source

pub async fn create_appbundle_alias( &self, bundle_id: &str, alias: &str, version: i32, ) -> Result<()>

Create an alias for an app bundle

Source

pub async fn delete_appbundle(&self, id: &str) -> Result<()>

Delete an app bundle

Source

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 response
  • file_path - Path to the .zip archive to upload
Source§

impl DesignAutomationClient

Source

pub fn nickname(&self) -> &str

Get the configured nickname (or “default”)

Source

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).

Source

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.

Source

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

Source

pub async fn create_workitem( &self, activity_id: &str, arguments: HashMap<String, WorkItemArgument>, ) -> Result<WorkItem>

Create a work item (run an activity)

Source

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.

Source

pub async fn get_workitem_status(&self, id: &str) -> Result<WorkItem>

Get work item status

Source§

impl DesignAutomationClient

Source

pub fn new(config: Config, auth: AuthClient) -> Self

Create a new Design Automation client

Source

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

Source§

fn clone(&self) -> DesignAutomationClient

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more