
com.cloudbees.api.cr.CloudResourceProviderRegistry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudbees-api-client Show documentation
Show all versions of cloudbees-api-client Show documentation
The CloudBees API Client library for Java
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 void delete() throws IOException {
getOwner().delete();
}
public static Capability REGISTER_CAPABILITY = new Capability("https://types.cloudbees.com/resource/provider/crp/register");
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy