private ProjectRequest updateApiVersion(ProjectRequest p) { p.setApiVersion(this.apiGroupVersion); return p; }
public ProjectRequestBuilder(ProjectRequestFluent<?> fluent,ProjectRequest instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withDescription(instance.getDescription()); fluent.withDisplayName(instance.getDisplayName()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); this.validationEnabled = validationEnabled; } public ProjectRequestBuilder(ProjectRequest instance){
public ProjectRequestBuilder(ProjectRequestFluent<?> fluent,Boolean validationEnabled){ this(fluent, new ProjectRequest(), validationEnabled); } public ProjectRequestBuilder(ProjectRequestFluent<?> fluent,ProjectRequest instance){
public static void main(String[] args) throws InterruptedException { String master = "https://localhost:8443/"; if (args.length == 1) { master = args[0]; } Config config = new ConfigBuilder().withMasterUrl(master).build(); try (OpenShiftClient client = new DefaultOpenShiftClient(config)) { ProjectRequest request = null; try { request = client.projectrequests().createNew().withNewMetadata().withName("thisisatest").endMetadata().withDescription("Jimmi").withDisplayName("Jimmi").done(); } finally { if (request != null) { client.projects().withName(request.getMetadata().getName()).delete(); } } } }
public ProjectRequestBuilder(ProjectRequest instance,Boolean validationEnabled){ this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withDescription(instance.getDescription()); this.withDisplayName(instance.getDisplayName()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.validationEnabled = validationEnabled; }
public ProjectRequestBuilder(Boolean validationEnabled){ this(new ProjectRequest(), validationEnabled); } public ProjectRequestBuilder(ProjectRequestFluent<?> fluent){
public ProjectRequestFluentImpl(ProjectRequest instance){ this.withApiVersion(instance.getApiVersion()); this.withDescription(instance.getDescription()); this.withDisplayName(instance.getDisplayName()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); }
ProjectRequest entity = new ProjectRequest(); ObjectMeta metadata = getOrCreateMetadata(entity); metadata.setName(namespaceName);
private ProjectRequest updateApiVersion(ProjectRequest p) { p.setApiVersion(this.apiVersion); return p; }
public ProjectRequest build(){ ProjectRequest buildable = new ProjectRequest(fluent.getApiVersion(),fluent.getDescription(),fluent.getDisplayName(),fluent.getKind(),fluent.getMetadata()); validate(buildable); return buildable; }