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

org.openstack4j.openstack.manila.internal.BaseShareServices Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package org.openstack4j.openstack.manila.internal;

import org.openstack4j.api.types.ServiceType;
import org.openstack4j.openstack.internal.MicroVersion;
import org.openstack4j.openstack.internal.MicroVersionedOpenStackService;

public class BaseShareServices extends MicroVersionedOpenStackService {
    private final static String API_VERSION_HEADER = "X-Openstack-Manila-Api-Version";

    private static final MicroVersion LIBERTY_VERSION = new MicroVersion(2, 6);
    private static final MicroVersion MITAKA_VERSION = new MicroVersion(2, 15);
    // At the moment, 2.6 is the latest micro-version supported by OpenStack4j. So set it as default.
    private static final MicroVersion DEFAULT_VERSION = LIBERTY_VERSION;

    protected BaseShareServices(MicroVersion version) {
        super(ServiceType.SHARE, version);
    }

    protected BaseShareServices() {
        this(DEFAULT_VERSION);
    }

    @Override
    protected String getApiVersionHeader() {
        return API_VERSION_HEADER;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy