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

com.github.narcissujsk.openstackjsk.openstack.senlin.internal.SenlinProfileTypeServiceImpl Maven / Gradle / Ivy

The newest version!
package com.github.narcissujsk.openstackjsk.openstack.senlin.internal;

import com.github.narcissujsk.openstackjsk.api.senlin.SenlinProfileTypeService;
import com.github.narcissujsk.openstackjsk.model.senlin.ProfileType;
import com.github.narcissujsk.openstackjsk.openstack.senlin.domain.SenlinProfileType;

import java.util.List;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * This class contains getters for all implementation of the available profile-type services
 * 
 * @author lion
 */
public class SenlinProfileTypeServiceImpl extends BaseSenlinServices implements SenlinProfileTypeService {

	@Override
	public List list() {
		return get(SenlinProfileType.ProfileType.class, uri("/profile-types")).execute().getList();
	}

	@Override
	public ProfileType get(String ProfileType) {
		checkNotNull(ProfileType);
		return get(SenlinProfileType.class, uri("/profile-types/%s", ProfileType)).execute();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy