1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 23:30:05 +02:00

feat(cp-gql-schema): add config() mutation

This commit is contained in:
Sérgio Ramos 2017-06-22 23:00:02 +01:00 committed by Judit Greskovits
parent 53cd13b561
commit 885c6cfe5e

View File

@ -91,6 +91,7 @@ type Service {
package: Package! # we don't have this in current mock data, package: Package! # we don't have this in current mock data,
environment: [Environment] environment: [Environment]
active: Boolean! # let's say that we update the manifest, and remove a service. we still want to track this service even though it might not exist because it might have machines running still active: Boolean! # let's say that we update the manifest, and remove a service. we still want to track this service even though it might not exist because it might have machines running still
image: String # used only for config
} }
# for metrics max / min (I guess) # for metrics max / min (I guess)
@ -188,20 +189,21 @@ type Query {
} }
type Mutation { type Mutation {
createDeploymentGroup(name: String!) : DeploymentGroup createDeploymentGroup(name: String!): DeploymentGroup
updateDeploymentGroup(id: ID!, name: String!) : DeploymentGroup updateDeploymentGroup(id: ID!, name: String!): DeploymentGroup
provisionManifest(deploymentGroupId: ID!, type: ManifestType!, format: ManifestFormat!, raw: String!) : Version provisionManifest(deploymentGroupId: ID!, type: ManifestType!, format: ManifestFormat!, raw: String!): Version
scale(serviceId: ID!, replicas: Int!) : Version scale(serviceId: ID!, replicas: Int!): Version
config(deploymentGroupName: String!, type: ManifestType!, format: ManifestFormat!, raw: String!): [Service]
stopServices(ids: [ID]!) : [Service] stopServices(ids: [ID]!): [Service]
startServices(ids: [ID]!) : [Service] startServices(ids: [ID]!): [Service]
restartServices(ids: [ID]!) : [Service] restartServices(ids: [ID]!): [Service]
deleteServices(ids: [ID]!) : [Service] deleteServices(ids: [ID]!): [Service]
stopInstances(ids: [ID]!) : [Instance] stopInstances(ids: [ID]!): [Instance]
startInstances(ids: [ID]!) : [Instance] startInstances(ids: [ID]!): [Instance]
restartInstances(ids: [ID]!) : [Instance] restartInstances(ids: [ID]!): [Instance]
# reprovision() ??? # reprovision() ???
} }