1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
* 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};
/// FoundGroup : A group found in a search.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FoundGroup {
/// Avatar url for the group/team if present.
#[serde(rename = "avatarUrl", skip_serializing_if = "Option::is_none")]
pub avatar_url: Option<String>,
/// The ID of the group, which uniquely identifies the group across all Atlassian products. For example, *952d12c3-5b5b-4d04-bb32-44d383afc4b2*.
#[serde(rename = "groupId", skip_serializing_if = "Option::is_none")]
pub group_id: Option<String>,
/// The group name with the matched query string highlighted with the HTML bold tag.
#[serde(rename = "html", skip_serializing_if = "Option::is_none")]
pub html: Option<String>,
#[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
pub labels: Option<Vec<models::GroupLabel>>,
/// Describes who/how the team is managed. The possible values are \\* external - when team is synced from an external directory like SCIM or HRIS, and team members cannot be modified. \\* admins - when a team is managed by an admin (team members can only be modified by admins). \\* team-members - managed by existing team members, new members need to be invited to join. \\* open - anyone can join or modify this team.
#[serde(rename = "managedBy", skip_serializing_if = "Option::is_none")]
pub managed_by: Option<ManagedBy>,
/// The name of the group. The name of a group is mutable, to reliably identify a group use ``groupId`.`
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Describes the type of group. The possible values are \\* team-collaboration - A platform team managed in people directory. \\* userbase-group - a group of users created in adminhub. \\* admin-oversight - currently unused.
#[serde(rename = "usageType", skip_serializing_if = "Option::is_none")]
pub usage_type: Option<UsageType>,
}
impl FoundGroup {
/// A group found in a search.
pub fn new() -> FoundGroup {
FoundGroup {
avatar_url: None,
group_id: None,
html: None,
labels: None,
managed_by: None,
name: None,
usage_type: None,
}
}
}
/// Describes who/how the team is managed. The possible values are \\* external - when team is synced from an external directory like SCIM or HRIS, and team members cannot be modified. \\* admins - when a team is managed by an admin (team members can only be modified by admins). \\* team-members - managed by existing team members, new members need to be invited to join. \\* open - anyone can join or modify this team.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ManagedBy {
#[serde(rename = "EXTERNAL")]
External,
#[serde(rename = "ADMINS")]
Admins,
#[serde(rename = "TEAM_MEMBERS")]
TeamMembers,
#[serde(rename = "OPEN")]
Open,
}
impl Default for ManagedBy {
fn default() -> ManagedBy {
Self::External
}
}
/// Describes the type of group. The possible values are \\* team-collaboration - A platform team managed in people directory. \\* userbase-group - a group of users created in adminhub. \\* admin-oversight - currently unused.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum UsageType {
#[serde(rename = "USERBASE_GROUP")]
UserbaseGroup,
#[serde(rename = "TEAM_COLLABORATION")]
TeamCollaboration,
#[serde(rename = "ADMIN_OVERSIGHT")]
AdminOversight,
}
impl Default for UsageType {
fn default() -> UsageType {
Self::UserbaseGroup
}
}