forked from slackapi/java-slack-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSchemasResponse.java
More file actions
167 lines (146 loc) · 4.09 KB
/
SchemasResponse.java
File metadata and controls
167 lines (146 loc) · 4.09 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
package com.slack.api.audit.response;
import com.slack.api.audit.AuditApiResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
@Data
@EqualsAndHashCode(callSuper = false)
public class SchemasResponse implements AuditApiResponse {
private transient String rawBody;
@Deprecated // when an error is returned, it will be an exception instead
private boolean ok = true;
@Deprecated // when an error is returned, it will be an exception instead
private String warning;
@Deprecated // when an error is returned, it will be an exception instead
private String error;
@Deprecated // when an error is returned, it will be an exception instead
private String needed;
@Deprecated // when an error is returned, it will be an exception instead
private String provided;
private List<Schema> schemas;
@Data
public static class Schema {
private String type;
private Workspace workspace;
private Enterprise enterprise;
private User user;
private Usergroup usergroup;
private Role role;
private AccountTypeRole accountTypeRole;
private File file;
private Channel channel;
private App app;
private Message message;
private Workflow workflow;
private Barrier barrier;
private Canvas canvas;
private WorkflowV2 workflowV2;
private Template template;
}
@Data
public static class Workspace {
private String id;
private String name;
private String domain;
}
@Data
public static class Enterprise {
private String id;
private String name;
private String domain;
}
@Data
public static class User {
private String id;
private String name;
private String email;
private String team;
}
@Data
public static class Usergroup {
private String id;
private String name;
}
@Data
public static class File {
private String id;
private String name;
private String filetype;
private String title;
}
@Data
public static class Channel {
private String id;
private String name;
private String privacy;
private String isShared;
private String isOrgShared;
private String teamsSharedWith;
}
@Data
public static class App {
private String id;
private String appId;
private String name;
private String isWorkflowApp;
private String isDistributed;
private String isDirectoryApproved;
private String scopes;
private String distributionType;
private String userIds;
}
@Data
public static class Message {
private String team;
private String channel;
private String timestamp;
}
@Data
public static class Workflow {
private String id;
private String name;
}
@Data
public static class Barrier {
private String id;
private String primaryUsergroup;
private String barrieredFromUsergroup;
}
@Data
public static class Role {
private String id;
private String name;
private String type;
}
@Data
public static class AccountTypeRole {
private String id;
private String name;
}
@Data
public static class Canvas {
private String id;
private String filetype;
private String title;
}
@Data
public static class WorkflowV2 {
private String id;
private String appId;
private String dateUpdated;
private String callbackId;
private String name;
private String updatedBy;
private String stepConfiguration;
private String templateId;
private String suspiciousKeywords;
private String triggerName;
private String triggerChannels;
private String triggerConfiguration;
}
@Data
public static class Template {
private String id;
private String templateName;
}
}