/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT-37416ade0f89f7cb291510843b8a4bbd682b33a1
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BulkFetchIssueRequestBean {
/// Use [expand](#expansion) to include additional information about issues in the response. Note that, unlike the majority of instances where `expand` is specified, `expand` is defined as a list of values. The expand options are: * `renderedFields` Returns field values rendered in HTML format. * `names` Returns the display name of each field. * `schema` Returns the schema describing a field type. * `transitions` Returns all possible transitions for the issue. * `operations` Returns all possible operations for the issue. * `editmeta` Returns information about how each field can be edited. * `changelog` Returns a list of recent updates to an issue, sorted by date, starting from the most recent. This returns a maximum of 40 changelogs. If you require more, please refer to [Bulk fetch changelogs](#api-rest-api-3-changelog-bulkfetch-post). * `versionedRepresentations` Instead of `fields`, returns `versionedRepresentations` a JSON array containing each version of a field's value, with the highest numbered item representing the most recent version.
#[serde(rename = "expand", skip_serializing_if = "Option::is_none")]
pub expand: Option<Vec<String>>,
/// A list of fields to return for each issue, use it to retrieve a subset of fields. This parameter accepts a comma-separated list. Expand options include: * `*all` Returns all fields. * `*navigable` Returns navigable fields. * Any issue field, prefixed with a minus to exclude. The default is `*navigable`. Examples: * `summary,comment` Returns the summary and comments fields only. * `-description` Returns all navigable (default) fields except description. * `*all,-comment` Returns all fields except comments. Multiple `fields` parameters can be included in a request. Note: All navigable fields are returned by default. This differs from [GET issue](#api-rest-api-3-issue-issueIdOrKey-get) where the default is all fields.
#[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
pub fields: Option<Vec<String>>,
/// Reference fields by their key (rather than ID). The default is `false`.
#[serde(rename = "fieldsByKeys", skip_serializing_if = "Option::is_none")]
pub fields_by_keys: Option<bool>,
/// An array of issue IDs or issue keys to fetch. You can mix issue IDs and keys in the same query.
#[serde(rename = "issueIdsOrKeys")]
pub issue_ids_or_keys: Vec<String>,
/// A list of issue property keys of issue properties to be included in the results. A maximum of 5 issue property keys can be specified.
#[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
pub properties: Option<Vec<String>>,
}
impl BulkFetchIssueRequestBean {
pub fn new(issue_ids_or_keys: Vec<String>) -> BulkFetchIssueRequestBean {
BulkFetchIssueRequestBean {
expand: None,
fields: None,
fields_by_keys: None,
issue_ids_or_keys,
properties: None,
}
}
}