-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathacl.graphql
212 lines (153 loc) · 4.81 KB
/
acl.graphql
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
type Acl {
"The unique concept id assigned to the Acl."
conceptId: String
"The revision id for the Acl."
revisionId: Int
"The type of identity (provider, system, catalog_item)."
identityType: String
"The name of the Acl."
name: String
"An URL to retrieve the Acl."
location: String
"List of groups and their permissions to the catalog item associated with this Acl."
groups: AclGroupList
"The GUID from Legacy Services that was used during migrations, this value should no longer be referenced."
legacyGuid: String @deprecated(reason: "This field was temporary and is being deprecated.")
"Identifies sets of catalog items (collections and granules) owned by a provider."
catalogItemIdentity: CatalogItemIdentity
"Identifies a system level thing in the CMR."
systemIdentity: JSON
"Identifies a type of object owned by a specific provider."
providerIdentity: JSON
"Full JSON of the Acl."
acl: JSON @deprecated(reason: "Deprecating in favor of `groupPermissions`, `legacyGuid`, `catalogItemIdentity`.")
collections (
"Collections query parameters"
params: CollectionsInput
) : CollectionList
}
type CatalogItemIdentity {
"Is collection applicable for a ACL"
collectionApplicable: Boolean
"The collection information"
collectionIdentifier: JSON
"Is granule applicable for a ACL"
granuleApplicable: Boolean
"The granule information"
granuleIdentifier: JSON
"The provider id of the permission"
providerId: String
}
type AclGroupList {
"The number of hits for a given search."
count: Int
"The list of group search results."
items: [AclGroup]
}
type AclGroup {
"The unique id assigned to the group."
id: String
"The UID of the application that created the group."
appUid: String
"The client ID of the application that created the group."
clientId: String
"Name of the group."
name: String
"Description of the group."
description: String
"Is the group shared."
sharedUserGroup: Boolean
"Who created the group."
createdBy: String
"Tag for the group."
tag: String
"List of members of the group."
members: GroupMemberList
"List of individual permissions this Group has to the Acl."
permissions: [String]
"The type of user this Acl applies to."
userType: String
}
type AclList {
"The number of hits for a given search."
count: Int
"Cursor that points to the/a specific position in a list of requested records."
cursor: String
"The list of acl search results."
items: [Acl]
}
enum IdentityType {
system
provider
catalog_item
}
input AclsInput {
"The unique concept id assigned to the acl."
conceptId: String
"Cursor that points to the/a specific position in a list of requested records."
cursor: String
"The group concept id or permission to return acls for."
groupPermission: JSON
"Type of the object being controlled."
identityType: IdentityType
"The number of Acls to return."
limit: Int
"Zero based offset of individual results."
offset: Int
"User is an URS user name corresponding to a member of a group that has access to an Acl."
permittedUser: String
"Group that is permitted via this Acl."
permittedGroup: String
"List of groups that are permitted via this Acl."
permittedGroups: [String]
"Provider that owns the Acl"
provider: String
"The unique concept id of the object this acl is permitted access to."
permittedConceptId: String
"Matches Acls which have the given object identity target."
target: String
}
type Query {
acls(
"Acls query parameters"
params: AclsInput
): AclList!
acl(
"Acl query parameters"
conceptId: String
): Acl
}
type AclMutationResponse {
"The concept id of the draft."
conceptId: String!
"The revision id of the draft."
revisionId: String!
}
type Mutation {
createAcl (
"Identifies sets of catalog items (collections and granules) owned by a provider."
catalogItemIdentity: JSON
"Identifies a system level thing in the CMR."
systemIdentity: JSON
"Identifies a type of object owned by a specific provider."
providerIdentity: JSON
"List of groups and their permissions to the catalog item associated with this Acl."
groupPermissions: JSON
): AclMutationResponse
updateAcl (
"Identifies sets of catalog items (collections and granules) owned by a provider."
catalogItemIdentity: JSON
"Identifies a system level thing in the CMR."
systemIdentity: JSON
"Identifies a type of object owned by a specific provider."
providerIdentity: JSON
"Concept ID of the Acl to be updated."
conceptId: String!
"List of groups and their permissions to the catalog item associated with this Acl."
groupPermissions: JSON
): AclMutationResponse
deleteAcl (
"Concept ID of the Acl to be deleted."
conceptId: String!
): AclMutationResponse
}