public class IssueAttachmentsApi extends Object
| Constructor and Description |
|---|
IssueAttachmentsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<List<Attachment>> |
addAttachment(String issueIdOrKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Add attachment
Adds one or more attachments to an issue.
|
io.reactivex.Single<AttachmentArchiveMetadataReadable> |
expandAttachmentForHumans(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get all metadata for an expanded attachment
Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself.
|
io.reactivex.Single<AttachmentArchiveImpl> |
expandAttachmentForMachines(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get contents metadata for an expanded attachment
Returns the metadata for the contents of an attachment, if it is an archive.
|
io.reactivex.Single<AttachmentMetadata> |
getAttachment(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get attachment metadata
Returns the metadata for an attachment.
|
io.reactivex.Single<Object> |
getAttachmentContent(String id,
Optional<Boolean> redirect,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get attachment content
Returns the contents of an attachment.
|
io.reactivex.Single<AttachmentSettings> |
getAttachmentMeta(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get Jira attachment settings
Returns the attachment settings, that is, whether attachments are enabled and the maximum attachment size allowed.
|
io.reactivex.Single<Object> |
getAttachmentThumbnail(String id,
Optional<Boolean> redirect,
Optional<Boolean> fallbackToDefault,
Optional<Integer> width,
Optional<Integer> height,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get attachment thumbnail
Returns the thumbnail of an attachment.
|
io.reactivex.Completable |
removeAttachment(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete attachment
Deletes an attachment from an issue.
|
public IssueAttachmentsApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<List<Attachment>> addAttachment(String issueIdOrKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
issueIdOrKey - The ID or key of the issue that attachments are added to. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<AttachmentArchiveMetadataReadable> expandAttachmentForHumans(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the attachment. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<AttachmentArchiveImpl> expandAttachmentForMachines(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the attachment. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<AttachmentMetadata> getAttachment(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the attachment. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Object> getAttachmentContent(String id, Optional<Boolean> redirect, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the attachment. (required)redirect - Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to `false` to avoid making multiple requests to download the attachment. (optional, default to true)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<AttachmentSettings> getAttachmentMeta(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Object> getAttachmentThumbnail(String id, Optional<Boolean> redirect, Optional<Boolean> fallbackToDefault, Optional<Integer> width, Optional<Integer> height, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the attachment. (required)redirect - Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to `false` to avoid making multiple requests to download the attachment. (optional, default to true)fallbackToDefault - Whether a default thumbnail is returned when the requested thumbnail is not found. (optional, default to true)width - The maximum width to scale the thumbnail to. (optional)height - The maximum height to scale the thumbnail to. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Completable removeAttachment(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the attachment. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2023 Everit Kft.. All rights reserved.