com.huawei.openstack4j.api.map.reduce.JobBinaryInternalService Maven / Gradle / Ivy
/*******************************************************************************
* Copyright 2016 ContainX and OpenStack4j
*
* 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.
*******************************************************************************/
/*******************************************************************************
* Huawei has modified this source file.
* Copyright 2018 Huawei Technologies Co.,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.huawei.openstack4j.api.map.reduce;
import java.io.File;
import java.io.InputStream;
import java.util.List;
import com.huawei.openstack4j.common.RestService;
import com.huawei.openstack4j.model.common.ActionResponse;
import com.huawei.openstack4j.model.common.Payload;
import com.huawei.openstack4j.model.map.reduce.JobBinaryInternal;
/**
* The manipulation of {@link JobBinaryInternal}
*
* @author [email protected]
*/
public interface JobBinaryInternalService extends RestService {
/**
* List all job binary internals
*
* @return list of job binary internals or empty
*/
List list();
/**
* Get a job binary internal by ID
* @param jobBinaryInternalId the job binary internal identifier
* @return the job binary internal or null if not found
*/
JobBinaryInternal get(String jobBinaryInternalId);
/**
* Create a new job binary internal
*
* @param payload the payload to create a new job binary internal
* @return the created job binary internal
*/
JobBinaryInternal create(Payload payload);
/**
* Delete the specified job binary internal
*
* @param jobBinaryInternalId the job binary internal identifier
* @return the action response
*/
ActionResponse delete(String jobBinaryInternalId);
/**
* Retrieves data of specified job binary internal object
*
* @param jobBinaryInternalId the job binary internal identifier
* @return Job Binary Internal data
*/
Payload getData(String jobBinaryInternalId);
}