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<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.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<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.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–2021 Everit Kft.. All rights reserved.