All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.swisscom.cloud.sb.client.IServiceBrokerClientExtended.groovy Maven / Gradle / Ivy

/*
 * 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.client

import com.swisscom.cloud.sb.model.backup.BackupDto
import com.swisscom.cloud.sb.model.backup.RestoreDto
import com.swisscom.cloud.sb.model.endpoint.Endpoint
import com.swisscom.cloud.sb.model.health.ServiceHealth
import com.swisscom.cloud.sb.model.usage.ServiceUsage
import groovy.transform.CompileStatic
import org.springframework.core.ParameterizedTypeReference
import org.springframework.http.HttpEntity
import org.springframework.http.HttpMethod
import org.springframework.http.ResponseEntity

@CompileStatic
interface IServiceBrokerClientExtended extends IServiceBrokerClient {
    def  ResponseEntity extendedExchange(String url, HttpMethod method, ParameterizedTypeReference responseType, Object... uriVariables)
    def  ResponseEntity extendedExchange(String url, HttpMethod method, HttpEntity requestEntity, ParameterizedTypeReference responseType, Object... uriVariables)
    def  ResponseEntity extendedExchange(String url, HttpMethod method, Class responseType, Object... uriVariables)
    def  ResponseEntity extendedExchange(String url, HttpMethod method, HttpEntity requestEntity, Class responseType, Object... uriVariables)
    ResponseEntity getEndpoint(String serviceInstanceId)
    ResponseEntity getUsage(String serviceInstanceId)
    ResponseEntity> getExtendedUsage(String serviceInstanceId)
    ResponseEntity getHealth(String serviceInstanceId)
    ResponseEntity createBackup(String serviceInstanceId)
    ResponseEntity deleteBackup(String serviceInstanceId, String backupId)
    ResponseEntity getBackup(String serviceInstanceId, String backupId)
    ResponseEntity> listBackups(String serviceInstanceId)
    ResponseEntity restoreBackup(String serviceInstanceId, String backupId)
    ResponseEntity getRestoreStatus(String serviceInstanceId, String backupId, String restore_id)
    ResponseEntity getApi(String serviceInstanceId)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy