
schema.delete-policy.graphql Maven / Gradle / Ivy
#
# DeltaFi - Data transformation and enrichment platform
#
# Copyright 2022 DeltaFi Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
interface DeletePolicy {
id: String!
enabled: Boolean!
"A locked policy can never be disabled"
locked: Boolean!
flow: String
}
type DiskSpaceDeletePolicy implements DeletePolicy {
id: String!
enabled: Boolean!
locked: Boolean!
flow: String
maxPercent: Int!
}
input DiskSpaceDeletePolicyInput {
id: String!
enabled: Boolean!
locked: Boolean!
flow: String
maxPercent: Int!
}
type TimedDeletePolicy implements DeletePolicy {
id: String!
enabled: Boolean!
locked: Boolean!
flow: String
afterCreate: String
afterComplete: String
minBytes: Long
deleteMetadata: Boolean!
}
input TimedDeletePolicyInput {
id: String!
enabled: Boolean!
locked: Boolean!
flow: String
"Really a Duration type:"
afterCreate: String
"Really a Duration type:"
afterComplete: String
minBytes: Long
deleteMetadata: Boolean!
}
input LoadDeletePoliciesInput {
timedPolicies: [TimedDeletePolicyInput!]!
diskSpacePolicies: [DiskSpaceDeletePolicyInput!]!
}
extend type Query {
getDeletePolicies: [DeletePolicy!]!
}
extend type Mutation {
removeDeletePolicy(id: String!) : Boolean!
loadDeletePolicies(replaceAll: Boolean!, policies: LoadDeletePoliciesInput!) : Result!
enablePolicy(id: String!, enabled: Boolean!) : Boolean!
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy