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

com.cloudbees.api.cr.CloudResourceProviderRegistry Maven / Gradle / Ivy

package com.cloudbees.api.cr;

import java.io.IOException;

/**
 * @author Kohsuke Kawaguchi
 */
@CloudResourceType("https://types.cloudbees.com/resource/provider/crp/registry")
public class CloudResourceProviderRegistry extends CloudResourceProvider {
    public CloudResourceProviderRegistry(CloudResource owner) {
        super(owner);
    }

    /**
     * Registers a new cloud resource provider to this registry
     */
    public void register(CloudResourceProvider cr) throws IOException {
        getOwner().post(".", ReferencedResource.of(cr.getOwner()), null);
    }

    public static Capability REGISTER_CAPABILITY = new Capability("https://types.cloudbees.com/resource/provider/crp/register");
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy