...
1extend type Query {
2 "Retrieve the artifact registry with a given ID"
3 artifactRegistry(registryEdgeId: String! @hasBannerAccess(field: "bannerEdgeId")): ArtifactRegistry @hasRole(roles: [EDGE_BANNER_VIEWER, EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
4 "Retrieve all artifact registries for a given banner or cluster"
5 artifactRegistries(bannerEdgeId: String @hasBannerAccess(field: "bannerEdgeId"), clusterEdgeId: String @hasClusterAccess(field: "clusterEdgeId")): [ArtifactRegistry!] @hasRole(roles: [EDGE_BANNER_VIEWER, EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
6 "Retrieve the cluster artifact registry with a given ID"
7 clusterArtifactRegistry(clusterRegistryEdgeId: String! @hasClusterAccess(field: "clusterEdgeId")): ClusterArtifactRegistry @hasRole(roles: [EDGE_BANNER_VIEWER, EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
8 "Retrieve all cluster artifact registries for a given cluster"
9 clusterArtifactRegistries(clusterEdgeId: String! @hasClusterAccess(field: "clusterEdgeId")): [ClusterArtifactRegistry!] @hasRole(roles: [EDGE_BANNER_VIEWER, EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
10}
11
12extend type Mutation {
13 "Create an artifact registry"
14 createArtifactRegistry(createArtifactRegistry: ArtifactRegistryCreateInput! @hasBannerAccess(field: "bannerEdgeId")): ArtifactRegistry! @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
15 "Update an artifact registry"
16 updateArtifactRegistry(registryEdgeId: String!, updateArtifactRegistry: ArtifactRegistryUpdateInput! @hasBannerAccess(field: "bannerEdgeId")): ArtifactRegistry! @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
17 "Delete an artifact registry"
18 deleteArtifactRegistry(registryEdgeId: String! @hasBannerAccess(field: "bannerEdgeId")): Boolean! @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
19 "Create a cluster artifact registry"
20 createClusterArtifactRegistry(createClusterArtifactRegistry: ClusterArtifactRegistryCreateInput! @hasClusterAccess(field: "clusterEdgeId")): ClusterArtifactRegistry! @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
21 "Delete a cluster artifact registry"
22 deleteClusterArtifactRegistry(clusterRegistryEdgeId: String! @hasClusterAccess(field: "clusterEdgeId")): Boolean! @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
23}
View as plain text