-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing OpenShift Resources in
authorization.openshift.io
apiGroup
Add DSL support for the following resources: - ResourceAccessReview : `client.resourceAccessReviews()` - LocalSubjectAccessReview : `client.localSubjectAccessReviews()` - ClusterRole : `client.cluserRoles()` - LocalResourceAccessReview : `client.localResourceAccessReviews()` - SubjectRulesReview : `client.subjectRulesReviews()` - SelfSubjectRulesReview : `client.selfSubjectRulesReviews()` - RoleBindingRestrictions: `client.roleBindingRestrictions()` Related to #2949
- Loading branch information
1 parent
019c9ee
commit ed08377
Showing
17 changed files
with
1,107 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
198 changes: 198 additions & 0 deletions
198
...model/src/generated/java/io/fabric8/openshift/api/model/ResourceAccessReviewResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,198 @@ | ||
|
||
package io.fabric8.openshift.api.model; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import io.fabric8.kubernetes.api.model.Container; | ||
import io.fabric8.kubernetes.api.model.IntOrString; | ||
import io.fabric8.kubernetes.api.model.KubernetesResource; | ||
import io.fabric8.kubernetes.api.model.LabelSelector; | ||
import io.fabric8.kubernetes.api.model.LocalObjectReference; | ||
import io.fabric8.kubernetes.api.model.ObjectMeta; | ||
import io.fabric8.kubernetes.api.model.ObjectReference; | ||
import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; | ||
import io.fabric8.kubernetes.api.model.PodTemplateSpec; | ||
import io.fabric8.kubernetes.api.model.ResourceRequirements; | ||
import io.sundr.builder.annotations.Buildable; | ||
import io.sundr.builder.annotations.BuildableReference; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
|
||
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ | ||
"apiVersion", | ||
"kind", | ||
"metadata", | ||
"evalutionError", | ||
"groups", | ||
"namespace", | ||
"users" | ||
}) | ||
@ToString | ||
@EqualsAndHashCode | ||
@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { | ||
@BuildableReference(ObjectMeta.class), | ||
@BuildableReference(LabelSelector.class), | ||
@BuildableReference(Container.class), | ||
@BuildableReference(PodTemplateSpec.class), | ||
@BuildableReference(ResourceRequirements.class), | ||
@BuildableReference(IntOrString.class), | ||
@BuildableReference(ObjectReference.class), | ||
@BuildableReference(LocalObjectReference.class), | ||
@BuildableReference(PersistentVolumeClaim.class) | ||
}) | ||
public class ResourceAccessReviewResponse implements KubernetesResource | ||
{ | ||
|
||
/** | ||
* | ||
* (Required) | ||
* | ||
*/ | ||
@JsonProperty("apiVersion") | ||
private String apiVersion = "authorization.openshift.io/v1"; | ||
@JsonProperty("evalutionError") | ||
private String evalutionError; | ||
@JsonProperty("groups") | ||
private List<String> groups = new ArrayList<String>(); | ||
/** | ||
* | ||
* (Required) | ||
* | ||
*/ | ||
@JsonProperty("kind") | ||
private String kind = "ResourceAccessReviewResponse"; | ||
@JsonProperty("namespace") | ||
private String namespace; | ||
@JsonProperty("users") | ||
private List<String> users = new ArrayList<String>(); | ||
@JsonIgnore | ||
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | ||
|
||
/** | ||
* No args constructor for use in serialization | ||
* | ||
*/ | ||
public ResourceAccessReviewResponse() { | ||
} | ||
|
||
/** | ||
* | ||
* @param evalutionError | ||
* @param apiVersion | ||
* @param kind | ||
* @param namespace | ||
* @param groups | ||
* @param users | ||
*/ | ||
public ResourceAccessReviewResponse(String apiVersion, String evalutionError, List<String> groups, String kind, String namespace, List<String> users) { | ||
super(); | ||
this.apiVersion = apiVersion; | ||
this.evalutionError = evalutionError; | ||
this.groups = groups; | ||
this.kind = kind; | ||
this.namespace = namespace; | ||
this.users = users; | ||
} | ||
|
||
/** | ||
* | ||
* (Required) | ||
* | ||
*/ | ||
@JsonProperty("apiVersion") | ||
public String getApiVersion() { | ||
return apiVersion; | ||
} | ||
|
||
/** | ||
* | ||
* (Required) | ||
* | ||
*/ | ||
@JsonProperty("apiVersion") | ||
public void setApiVersion(String apiVersion) { | ||
this.apiVersion = apiVersion; | ||
} | ||
|
||
@JsonProperty("evalutionError") | ||
public String getEvalutionError() { | ||
return evalutionError; | ||
} | ||
|
||
@JsonProperty("evalutionError") | ||
public void setEvalutionError(String evalutionError) { | ||
this.evalutionError = evalutionError; | ||
} | ||
|
||
@JsonProperty("groups") | ||
public List<String> getGroups() { | ||
return groups; | ||
} | ||
|
||
@JsonProperty("groups") | ||
public void setGroups(List<String> groups) { | ||
this.groups = groups; | ||
} | ||
|
||
/** | ||
* | ||
* (Required) | ||
* | ||
*/ | ||
@JsonProperty("kind") | ||
public String getKind() { | ||
return kind; | ||
} | ||
|
||
/** | ||
* | ||
* (Required) | ||
* | ||
*/ | ||
@JsonProperty("kind") | ||
public void setKind(String kind) { | ||
this.kind = kind; | ||
} | ||
|
||
@JsonProperty("namespace") | ||
public String getNamespace() { | ||
return namespace; | ||
} | ||
|
||
@JsonProperty("namespace") | ||
public void setNamespace(String namespace) { | ||
this.namespace = namespace; | ||
} | ||
|
||
@JsonProperty("users") | ||
public List<String> getUsers() { | ||
return users; | ||
} | ||
|
||
@JsonProperty("users") | ||
public void setUsers(List<String> users) { | ||
this.users = users; | ||
} | ||
|
||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
@JsonAnySetter | ||
public void setAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
} | ||
|
||
} |
Oops, something went wrong.