Class ConfluenceRestClientContentAttachmentsConsumerApi
java.lang.Object
io.github.primelib.confluence4j.rest.v1.client.ConfluenceRestClientContentAttachmentsConsumerApi
@Generated("io.github.primelib.primecodegen")
public class ConfluenceRestClientContentAttachmentsConsumerApi
extends Object
ConfluenceRestClientContentAttachmentsConsumerApi
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidGetContentByIDChildAttachmentByAttachmentIDDownloadV1(Consumer<GetContentByIDChildAttachmentByAttachmentIDDownloadV1OperationSpec> spec) GetContentByIDChildAttachmentByAttachmentIDDownloadV1 Get URI to download attachment Redirects the client to a URL that serves an attachment's binary data.PutContentByIDChildAttachmentByAttachmentIDV1(Consumer<PutContentByIDChildAttachmentByAttachmentIDV1OperationSpec> spec) PutContentByIDChildAttachmentByAttachmentIDV1 Update attachment properties Updates the attachment properties, i.e.
-
Constructor Details
-
ConfluenceRestClientContentAttachmentsConsumerApi
public ConfluenceRestClientContentAttachmentsConsumerApi(ConfluenceRestClientContentAttachmentsApi api)
-
-
Method Details
-
PutContentByIDChildAttachmentByAttachmentIDV1
public Content PutContentByIDChildAttachmentByAttachmentIDV1(Consumer<PutContentByIDChildAttachmentByAttachmentIDV1OperationSpec> spec) PutContentByIDChildAttachmentByAttachmentIDV1 Update attachment properties Updates the attachment properties, i.e. the non-binary data of an attachment like the filename, media-type, comment, and parent container. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.- Parameters:
spec- a consumer that creates the payload for this operation. Supports the following properties:- id: The ID of the content that the attachment is attached to.
- attachmentId: The ID of the attachment to update.
- payload: The details of the attachment to be updated.
-
GetContentByIDChildAttachmentByAttachmentIDDownloadV1
public void GetContentByIDChildAttachmentByAttachmentIDDownloadV1(Consumer<GetContentByIDChildAttachmentByAttachmentIDDownloadV1OperationSpec> spec) GetContentByIDChildAttachmentByAttachmentIDDownloadV1 Get URI to download attachment Redirects the client to a URL that serves an attachment's binary data.- Parameters:
spec- a consumer that creates the payload for this operation. Supports the following properties:- id: The ID of the content that the attachment is attached to.
- attachmentId: The ID of the attachment to download.
- version: The version of the attachment. If this parameter is absent, the redirect URI will download the latest version of the attachment.
- status: The statuses allowed on the retrieved attachment. If this parameter is absent, it will default to `current`.
-