Skip to content

Commit

Permalink
Merge pull request #34 from pluralsh/schema-refresh-jul6
Browse files Browse the repository at this point in the history
Add project deletion mutation
  • Loading branch information
michaeljguarino authored Jul 7, 2024
2 parents a1d0863 + 2d66408 commit 7437c5c
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 4 deletions.
70 changes: 70 additions & 0 deletions client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions graph/project.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ mutation UpdateProject($id: ID!, $attributes: ProjectAttributes!) {
...ProjectFragment
}
}

mutation DeleteProject($id: ID!) {
deleteProject(id: $id) {
...ProjectFragment
}
}
18 changes: 14 additions & 4 deletions models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,8 @@ type RootMutationType {

updateProject(id: ID!, attributes: ProjectAttributes!): Project

deleteProject(id: ID!): Project

"a reusable mutation for updating rbac settings on core services"
updateRbac(rbac: RbacAttributes!, serviceId: ID, clusterId: ID, providerId: ID, pipelineId: ID, stackId: ID): Boolean
}
Expand Down Expand Up @@ -1095,6 +1097,9 @@ input StackAttributes {
"a cron to spawn runs for this stack"
cron: StackCronAttributes

"arbitrary variables to pass into the stack"
variables: Json

readBindings: [PolicyBindingAttributes]

writeBindings: [PolicyBindingAttributes]
Expand Down Expand Up @@ -1284,6 +1289,9 @@ type InfrastructureStack {
"whether you want Plural to manage the state of this stack"
manageState: Boolean

"Arbitrary variables to add to a stack run"
variables: Json

runs(after: String, first: Int, before: String, last: Int, pullRequestId: ID): StackRunConnection

pullRequests(after: String, first: Int, before: String, last: Int): PullRequestConnection
Expand Down Expand Up @@ -1430,6 +1438,9 @@ type StackRun {
"whether you want Plural to manage the state of this stack"
manageState: Boolean

"Arbitrary variables to add to a stack run"
variables: Json

stateUrls: StateUrls

"the kubernetes job for this run (useful for debugging if issues arise)"
Expand Down Expand Up @@ -2725,6 +2736,8 @@ input ServiceDeploymentAttributes {

kustomize: KustomizeAttributes

parentId: ID

configuration: [ConfigAttributes]

dependencies: [ServiceDependencyAttributes]
Expand Down Expand Up @@ -2806,6 +2819,8 @@ input ServiceUpdateAttributes {

kustomize: KustomizeAttributes

parentId: ID

dependencies: [ServiceDependencyAttributes]

readBindings: [PolicyBindingAttributes]
Expand Down Expand Up @@ -2953,6 +2968,9 @@ type ServiceDeployment {
"write policy of this service"
writeBindings: [PolicyBinding]

"the service that owns this service in a service-of-services setup"
parent: ServiceDeployment

"a list of errors generated by the deployment operator"
errors: [ServiceError]

Expand Down

0 comments on commit 7437c5c

Please sign in to comment.