This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fbd305
commit 3020bb2
Showing
11 changed files
with
391 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
...main/groovy/com/swisscom/cloud/sb/broker/backup/shield/restClient/ShieldRestClient.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* Copyright (c) 2018 Swisscom (Switzerland) Ltd. | ||
* | ||
* 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. | ||
*/ | ||
|
||
package com.swisscom.cloud.sb.broker.backup.shield.restClient | ||
|
||
import com.swisscom.cloud.sb.broker.backup.shield.ShieldTarget | ||
import com.swisscom.cloud.sb.broker.backup.shield.dto.* | ||
|
||
interface ShieldRestClient { | ||
Object getStatus() | ||
|
||
boolean matchVersion() | ||
|
||
StoreDto getStoreByName(String name) | ||
|
||
RetentionDto getRetentionByName(String name) | ||
|
||
ScheduleDto getScheduleByName(String name) | ||
|
||
TargetDto getTargetByName(String name) | ||
|
||
String createTarget(String targetName, ShieldTarget target, String agent) | ||
|
||
String updateTarget(TargetDto existingTarget, ShieldTarget target, String agent) | ||
|
||
void deleteTarget(String uuid) | ||
|
||
JobDto getJobByName(String name) | ||
|
||
JobDto getJobByUuid(String uuid) | ||
|
||
String createJob(String jobName, | ||
String targetUuid, | ||
String storeUuid, | ||
String retentionUuid, | ||
String scheduleUuid, | ||
boolean paused) | ||
|
||
String updateJob(JobDto existingJob, | ||
String targetUuid, | ||
String storeUuid, | ||
String retentionUuid, | ||
String scheduleUuid, | ||
boolean paused) | ||
|
||
String runJob(String uuid) | ||
|
||
void deleteJob(String uuid) | ||
|
||
TaskDto getTaskByUuid(String uuid) | ||
|
||
void deleteTaskByUuid(String uuid) | ||
|
||
ArchiveDto getArchiveByUuid(String uuid) | ||
|
||
String restoreArchive(String uuid) | ||
|
||
void deleteArchive(String uuid) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.