Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 2
0
        /// <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));
        }
Ejemplo n.º 3
0
        /// <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));
        }
Ejemplo n.º 4
0
        /// <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));
        }
Ejemplo n.º 5
0
 public UpdateModel3DCommand(ThreeDModels parameters) : base("update", parameters)
 {
 }
Ejemplo n.º 6
0
 public Model3DCommand(string type, ThreeDModels parameters) : base(type, parameters)
 {
 }
Ejemplo n.º 7
0
        /// <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));
        }