1 package org.apache.archiva.rest.api.model.v2.repository;/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing,
12 * software distributed under the License is distributed on an
13 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 * KIND, either express or implied. See the License for the
15 * specific language governing permissions and limitations
20 * Licensed to the Apache Software Foundation (ASF) under one
21 * or more contributor license agreements. See the NOTICE file
22 * distributed with this work for additional information
23 * regarding copyright ownership. The ASF licenses this file
24 * to you under the Apache License, Version 2.0 (the
25 * "License"); you may not use this file except in compliance
26 * with the License. You may obtain a copy of the License at
28 * http://www.apache.org/licenses/LICENSE-2.0
29 * Unless required by applicable law or agreed to in writing,
30 * software distributed under the License is distributed on an
31 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
32 * KIND, either express or implied. See the License for the
33 * specific language governing permissions and limitations
37 import io.swagger.v3.oas.annotations.media.Schema;
39 import java.time.Period;
42 * @author Martin Stockhammer <martin_s@apache.org>
44 @Schema(name="ArtifactCleanupInfo",description = "Information for artifact cleanup feature of repository")
45 public class ArtifactCleanupInfo
47 boolean deleteReleasedSnapshots;
48 Period retentionPeriod;
51 @Schema(name="delete_released_snapshots",description = "True, if snapshots are deleted after a release was published")
52 public boolean isDeleteReleasedSnapshots( )
54 return deleteReleasedSnapshots;
57 public void setDeleteReleasedSnapshots( boolean deleteReleasedSnapshots )
59 this.deleteReleasedSnapshots = deleteReleasedSnapshots;
62 @Schema(name="retention_period",description = "Time, after that snapshot artifacts are marked for deletion")
63 public Period getRetentionPeriod( )
65 return retentionPeriod;
68 public void setRetentionPeriod( Period retentionPeriod )
70 this.retentionPeriod = retentionPeriod;
73 @Schema(name="retention_count",description = "Maximum number of snapshot artifacts to keep")
74 public int getRetentionCount( )
76 return retentionCount;
79 public void setRetentionCount( int retentionCount )
81 this.retentionCount = retentionCount;