1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00

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