From 6e5214fc071df8b62784943eaea129d3608e0c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Sat, 15 Jul 2017 04:36:24 +0100 Subject: [PATCH] feat(cp-gql-schema): add 'files' to Manifest --- packages/cp-gql-schema/schema.gql | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/packages/cp-gql-schema/schema.gql b/packages/cp-gql-schema/schema.gql index 6d380c99..88a0cdd1 100644 --- a/packages/cp-gql-schema/schema.gql +++ b/packages/cp-gql-schema/schema.gql @@ -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]