/// <summary> /// Delete multiple ThreeDModel in the same project, along with all their descendants in the ThreeD hierarchy if /// recursive is true. /// </summary> /// <param name="ids">Ids of ThreeDModels to delete.</param> /// <param name="token">Optional cancellation token.</param> public async Task <EmptyResponse> DeleteAsync(IEnumerable <Identity> ids, CancellationToken token = default) { if (ids is null) { throw new ArgumentNullException(nameof(ids)); } var req = ThreeDModels.delete(ids); return(await RunAsync(req, token).ConfigureAwait(false)); }
/// <summary> /// Create ThreeDModel. /// </summary> /// <param name="ThreeDModel">ThreeDModel to create.</param> /// <param name="token">Optional cancellation token.</param> /// <returns>Sequence of created ThreeDModel.</returns> public async Task <IEnumerable <ThreeDModel> > CreateAsync(IEnumerable <ThreeDModelCreate> ThreeDModel, CancellationToken token = default) { if (ThreeDModel is null) { throw new ArgumentNullException(nameof(ThreeDModel)); } var req = ThreeDModels.create(ThreeDModel); return(await RunAsync(req, token).ConfigureAwait(false)); }
/// <summary> /// Retrieves list of ThreeDModels matching query. /// </summary> /// <param name="query">The query filter to use.</param> /// <param name="token">Optional cancellation token to use.</param> /// <returns>List of ThreeDModel matching given filters and optional cursor</returns> public async Task <ItemsWithCursor <ThreeDModel> > ListAsync(ThreeDModelQuery query, CancellationToken token = default) { if (query is null) { throw new ArgumentNullException(nameof(query)); } var req = ThreeDModels.list(query); return(await RunAsync(req, token).ConfigureAwait(false)); }
/// <summary> /// Update one or more ThreeDModel. Supports partial updates, meaning that fields omitted from the requests are not /// changed /// </summary> /// <param name="query">The list of ThreeDModel to update.</param> /// <param name="token">Optional cancellation token.</param> /// <returns>List of updated ThreeDModel.</returns> public async Task <IEnumerable <ThreeDModel> > UpdateAsync(IEnumerable <ThreeDModelUpdateItem> query, CancellationToken token = default) { if (query is null) { throw new ArgumentNullException(nameof(query)); } var req = ThreeDModels.update(query); return(await RunAsync(req, token).ConfigureAwait(false)); }
public UpdateModel3DCommand(ThreeDModels parameters) : base("update", parameters) { }
public Model3DCommand(string type, ThreeDModels parameters) : base(type, parameters) { }
/// <summary> /// Retrieves information about multiple ThreeDModel in the same project. A maximum of 1000 ThreeDModel IDs may be listed /// per request and all of them must be unique. /// </summary> /// <param name="modelId">The ThreeDModel id to retrieve.</param> /// <param name="token">Optional cancellation token.</param> public async Task <ThreeDModel> RetrieveAsync(long modelId, CancellationToken token = default) { var req = ThreeDModels.retrieve(modelId); return(await RunAsync(req, token).ConfigureAwait(false)); }