feat(cp-gql-schema): add 'files' to Manifest

This commit is contained in:
Sérgio Ramos 2017-07-15 04:36:24 +01:00 committed by Judit Greskovits
parent f68c2ae78a
commit 6e5214fc07

View File

@ -75,11 +75,24 @@ enum ManifestFormat {
YAML
}
type KeyValue {
id: ID!
name: String!
value: String!
}
input KeyValueInput {
id: ID
name: String!
value: String!
}
type Manifest {
id: ID!
type: ManifestType!
format: ManifestFormat!
environment: String!
files: [KeyValue]
raw: String!
}
@ -95,12 +108,6 @@ enum ServiceStatus {
UNKNOWN
}
type KeyValue {
id: ID!
name: String!
value: String!
}
type ServiceConfig {
id: ID!
package: Package # we don't have this in current mock data
@ -201,7 +208,7 @@ type Query {
datacenter(id: ID, region: String): Datacenter
datacenters: [Datacenter]
config(deploymentGroupName: String!, type: ManifestType!, format: ManifestFormat!, environment: String!, raw: String!): [Service]
config(deploymentGroupName: String!, type: ManifestType!, format: ManifestFormat!, environment: String!, files: [KeyValueInput]!, raw: String!): [Service]
importableDeploymentGroups: [DeploymentGroup]
}
@ -209,7 +216,7 @@ type Mutation {
createDeploymentGroup(name: String!): DeploymentGroup
updateDeploymentGroup(id: ID!, name: String!): DeploymentGroup
provisionManifest(deploymentGroupId: ID!, type: ManifestType!, format: ManifestFormat!, environment: String!, raw: String!): Version
provisionManifest(deploymentGroupId: ID!, type: ManifestType!, format: ManifestFormat!, environment: String!, files: [KeyValueInput]!, raw: String!): Version
scale(serviceId: ID!, replicas: Int!): Version
stopServices(ids: [ID]!): [Service]