Class OutputFormatClient
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Syntax
[GeneratedCode("NSwag", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public class OutputFormatClient : ClientBase, IOutputFormatClient
Constructors
OutputFormatClient(IBusinessProcessClient, IPictureparkServiceSettings, HttpClient)
Declaration
public OutputFormatClient(IBusinessProcessClient businessProcessClient, IPictureparkServiceSettings settings, HttpClient httpClient)
Parameters
IBusinessProcessClient businessProcessClient |
IPictureparkServiceSettings settings |
HttpClient httpClient |
OutputFormatClient(IPictureparkServiceSettings, HttpClient)
Declaration
public OutputFormatClient(IPictureparkServiceSettings configuration, HttpClient httpClient)
Parameters
IPictureparkServiceSettings configuration |
HttpClient httpClient |
Properties
JsonSerializerSettings
Declaration
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
JsonSerializerSettings |
ReadResponseAsString
Methods
CreateAsync(OutputFormat, TimeSpan?, CancellationToken)
Create output format
Declaration
public Task<OutputFormatOperationResult> CreateAsync(OutputFormat request, TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Parameters
OutputFormat
request
The request containing information needed to create new output format. |
TimeSpan?
timeout
Timeout for business process completion |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<OutputFormatOperationResult>
Output format |
Implements
Exceptions
ApiException
A server side error occurred. |
PictureparkException
Internal server error |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkValidationException
Validation exception |
CreateCoreAsync(OutputFormat, CancellationToken)
Create output format
Declaration
protected virtual Task<BusinessProcess> CreateCoreAsync(OutputFormat request, CancellationToken cancellationToken = default)
Parameters
OutputFormat
request
Request containing information needed to create new output format. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Remarks
Creates new output format based on the supplied request. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
CreateManyAsync(OutputFormatCreateManyRequest, TimeSpan?, CancellationToken)
Create multiple output formats
Declaration
public Task<OutputFormatBatchOperationResult> CreateManyAsync(OutputFormatCreateManyRequest request, TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Parameters
OutputFormatCreateManyRequest
request
The request containing information needed to create new output formats. |
TimeSpan?
timeout
Timeout for business process completion |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<OutputFormatBatchOperationResult>
Business process |
Implements
Exceptions
ApiException
A server side error occurred. |
PictureparkException
Internal server error |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkValidationException
Validation exception |
CreateManyCoreAsync(OutputFormatCreateManyRequest, CancellationToken)
Create multiple output formats
Declaration
protected virtual Task<BusinessProcess> CreateManyCoreAsync(OutputFormatCreateManyRequest request, CancellationToken cancellationToken = default)
Parameters
OutputFormatCreateManyRequest
request
Request containing information needed to create new output format. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Remarks
Creates new output formats based on supplied requests. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
DeleteAsync(string, TimeSpan?, CancellationToken)
Delete output format
Declaration
public Task<OutputFormatDeleteResult> DeleteAsync(string id, TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Parameters
string
id
ID of the output format that should be deleted. |
TimeSpan?
timeout
Timeout for business process completion |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<OutputFormatDeleteResult>
Business process |
Implements
Exceptions
ApiException
A server side error occurred. |
PictureparkException
Internal server error |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkValidationException
Validation exception |
DeleteCoreAsync(string, CancellationToken)
Delete output format
Declaration
protected virtual Task<BusinessProcess> DeleteCoreAsync(string id, CancellationToken cancellationToken = default)
Parameters
string
id
Output format ID. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Remarks
Deletes the output format specified by the ID. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
DeleteManyAsync(OutputFormatDeleteManyRequest, TimeSpan?, CancellationToken)
Delete multiple output formats
Declaration
public Task<OutputFormatBatchOperationResult> DeleteManyAsync(OutputFormatDeleteManyRequest request, TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Parameters
OutputFormatDeleteManyRequest
request
The request with output formats IDs to delete. |
TimeSpan?
timeout
Timeout for business process completion |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<OutputFormatBatchOperationResult>
Business process |
Implements
Exceptions
ApiException
A server side error occurred. |
PictureparkException
Internal server error |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkValidationException
Validation exception |
DeleteManyCoreAsync(OutputFormatDeleteManyRequest, CancellationToken)
Delete multiple output formats
Declaration
protected virtual Task<BusinessProcess> DeleteManyCoreAsync(OutputFormatDeleteManyRequest request, CancellationToken cancellationToken = default)
Parameters
OutputFormatDeleteManyRequest
request
The request with output format IDs to delete. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Remarks
Deletes the output formats specified by the IDs. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
GetAllAsync(CancellationToken)
Declaration
public Task<ICollection<OutputFormatDetail>> GetAllAsync(CancellationToken cancellationToken = default)
Parameters
CancellationToken cancellationToken |
Returns
Task<ICollection<OutputFormatDetail>> |
Implements
GetAsync(string, CancellationToken)
Get output format
Declaration
public virtual Task<OutputFormatDetail> GetAsync(string id, CancellationToken cancellationToken = default)
Parameters
string
id
Output format ID. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<OutputFormatDetail>
Represents an output format. |
Implements
Remarks
Gets the output format by the output format ID.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
GetManyAsync(IEnumerable<string>, CancellationToken)
Get multiple output formats
Declaration
public virtual Task<ICollection<OutputFormatDetail>> GetManyAsync(IEnumerable<string> ids = null, CancellationToken cancellationToken = default)
Parameters
IEnumerable<string>
ids
Output format IDs to get information about. If this is omitted, all output formats in the system will be returned. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<ICollection<OutputFormatDetail>>
Array of Represents an output format. |
Implements
Remarks
Gets multiple output format details by the output format IDs. Can fetch maximum of 100 output formats at once.
Exceptions
ApiException
A server side error occurred. |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
PictureparkValidationException
Validation exception |
RequestSizeLimitExceededException
List of IDs exceeded maximum size |
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
Declaration
protected virtual Task<OutputFormatClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
HttpResponseMessage response |
IReadOnlyDictionary<string, IEnumerable<string>> headers |
CancellationToken cancellationToken |
Returns
Task<OutputFormatClient.ObjectResponseResult<T>> |
Type Parameters
T |
RenderFormatPreviewAsync(OutputFormatRenderPreviewRequest, CancellationToken)
Render output format preview
Declaration
public virtual Task<FileResponse> RenderFormatPreviewAsync(OutputFormatRenderPreviewRequest request, CancellationToken cancellationToken = default)
Parameters
OutputFormatRenderPreviewRequest
request
Information about the OutputFormat as well as which Content to use for the preview. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<FileResponse>
Rendered file |
Implements
Remarks
Request rendering of the given OutputFormat for a given content.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
SetDownloadFileNamePatternsAsync(string, IDictionary<string, string>, CancellationToken)
Sets the download file name patterns for an output format
Declaration
public virtual Task<BusinessProcess> SetDownloadFileNamePatternsAsync(string id, IDictionary<string, string> patterns, CancellationToken cancellationToken = default)
Parameters
string
id
ID of the output format. |
IDictionary<string, string>
patterns
Dictionary containing patterns per metadata language.
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Implements
Remarks
This is allowed for both static and dynamic formats. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
SetDownloadFileNamePatternsManyAsync(OutputFormatDownloadFileNamePatternUpdateManyRequest, CancellationToken)
Sets the download file name patterns for multiple output formats
Declaration
public virtual Task<BusinessProcess> SetDownloadFileNamePatternsManyAsync(OutputFormatDownloadFileNamePatternUpdateManyRequest request, CancellationToken cancellationToken = default)
Parameters
OutputFormatDownloadFileNamePatternUpdateManyRequest
request
The request containing the patterns for each output format. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Implements
Remarks
This is allowed for both static and dynamic formats. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
SetPermissionAsync(string, OutputFormatSetPermissionRequest, CancellationToken)
Updates permission-related settings for an output format
Declaration
public virtual Task<BusinessProcess> SetPermissionAsync(string id, OutputFormatSetPermissionRequest request, CancellationToken cancellationToken = default)
Parameters
string
id
ID of the output format. |
OutputFormatSetPermissionRequest
request
The request containing the settings for the output format. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Implements
Remarks
This is allowed for both static and dynamic formats. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
SetPermissionManyAsync(OutputFormatSetPermissionManyRequest, CancellationToken)
Updates permission-related settings for multiple output formats
Declaration
public virtual Task<BusinessProcess> SetPermissionManyAsync(OutputFormatSetPermissionManyRequest request, CancellationToken cancellationToken = default)
Parameters
OutputFormatSetPermissionManyRequest
request
The request containing the state changes for each output format. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Implements
Remarks
This is allowed for both static and dynamic formats. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
SetXmpWritebackStateAsync(string, OutputFormatSetXmpWritebackStateRequest, CancellationToken)
Enables or disables XMP writeback for an output format
Declaration
public virtual Task<BusinessProcess> SetXmpWritebackStateAsync(string id, OutputFormatSetXmpWritebackStateRequest request, CancellationToken cancellationToken = default)
Parameters
string
id
ID of the output format. |
OutputFormatSetXmpWritebackStateRequest
request
The request containing the state to be set for the output format. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Implements
Remarks
This is allowed for both static and dynamic formats.
However, enabling XMP writeback for Thumbnail formats or temporary formats is not allowed. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
SetXmpWritebackStateManyAsync(OutputFormatSetXmpWritebackStateManyRequest, CancellationToken)
Enables or disables XMP writeback for multiple output formats
Declaration
public virtual Task<BusinessProcess> SetXmpWritebackStateManyAsync(OutputFormatSetXmpWritebackStateManyRequest request, CancellationToken cancellationToken = default)
Parameters
OutputFormatSetXmpWritebackStateManyRequest
request
The request containing the state changes for each output format. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Implements
Remarks
This is allowed for both static and dynamic formats.
However, enabling XMP writeback for Thumbnail formats or temporary formats is not allowed. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
UpdateAsync(string, OutputFormatEditable, TimeSpan?, CancellationToken)
Update output format
Declaration
public Task<OutputFormatOperationResult> UpdateAsync(string id, OutputFormatEditable request, TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Parameters
string
id
ID of output format to update |
OutputFormatEditable
request
The request containing information needed to update the output format. |
TimeSpan?
timeout
Timeout for business process completion |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<OutputFormatOperationResult>
Business process |
Implements
Exceptions
ApiException
A server side error occurred. |
PictureparkException
Internal server error |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkValidationException
Validation exception |
UpdateCoreAsync(string, OutputFormatEditable, CancellationToken)
Update output format
Declaration
protected virtual Task<BusinessProcess> UpdateCoreAsync(string id, OutputFormatEditable request, CancellationToken cancellationToken = default)
Parameters
string
id
Output format ID. |
OutputFormatEditable
request
Request containing information needed to update the output format. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Remarks
Updates the output format specified by the ID and based on supplied request. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
UpdateManyAsync(OutputFormatUpdateManyRequest, TimeSpan?, CancellationToken)
Update multiple output formats
Declaration
public Task<OutputFormatBatchOperationResult> UpdateManyAsync(OutputFormatUpdateManyRequest request, TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Parameters
OutputFormatUpdateManyRequest
request
The request containing information needed to update the output format. |
TimeSpan?
timeout
Timeout for business process completion |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<OutputFormatBatchOperationResult>
Business process |
Implements
Exceptions
ApiException
A server side error occurred. |
PictureparkException
Internal server error |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkValidationException
Validation exception |
UpdateManyCoreAsync(OutputFormatUpdateManyRequest, CancellationToken)
Update multiple output formats
Declaration
protected virtual Task<BusinessProcess> UpdateManyCoreAsync(OutputFormatUpdateManyRequest request, CancellationToken cancellationToken = default)
Parameters
OutputFormatUpdateManyRequest
request
Request containing information needed to update the output format. |
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<BusinessProcess>
Business process |
Remarks
Updates the output formats specified by the IDs and based on supplied requests. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkTooManyRequestsException
Too many requests |
PictureparkException
Internal server error |
WaitForBusinessProcessAndReturnResult(Func<Task<BusinessProcess>>, string, TimeSpan?, CancellationToken)
Declaration
public Task<OutputFormatOperationResult> WaitForBusinessProcessAndReturnResult(Func<Task<BusinessProcess>> call, string id, TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Parameters
Func<Task<BusinessProcess>> call |
string id |
TimeSpan? timeout |
CancellationToken cancellationToken |
Returns
Task<OutputFormatOperationResult> |
WaitForBusinessProcessAndReturnResultMany(Func<Task<BusinessProcess>>, TimeSpan?, CancellationToken)
Declaration
public Task<OutputFormatBatchOperationResult> WaitForBusinessProcessAndReturnResultMany(Func<Task<BusinessProcess>> call, TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Parameters
Func<Task<BusinessProcess>> call |
TimeSpan? timeout |
CancellationToken cancellationToken |
Returns
Task<OutputFormatBatchOperationResult> |