Class WebhookDescription
- java.lang.Object
-
- io.fabric8.openshift.api.model.operatorhub.v1alpha1.WebhookDescription
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<WebhookDescriptionBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class WebhookDescription extends Object implements io.fabric8.kubernetes.api.builder.Editable<WebhookDescriptionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
WebhookDescription provides details to OLM about required webhooks- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebhookDescription()No args constructor for use in serializationWebhookDescription(List<String> admissionReviewVersions, Integer containerPort, List<String> conversionCRDs, String deploymentName, String failurePolicy, String generateName, String matchPolicy, io.fabric8.kubernetes.api.model.LabelSelector objectSelector, String reinvocationPolicy, List<io.fabric8.kubernetes.api.model.admissionregistration.v1.RuleWithOperations> rules, String sideEffects, io.fabric8.kubernetes.api.model.IntOrString targetPort, Integer timeoutSeconds, String type, String webhookPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookDescriptionBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getAdmissionReviewVersions()WebhookDescription provides details to OLM about required webhooksIntegergetContainerPort()WebhookDescription provides details to OLM about required webhooksList<String>getConversionCRDs()WebhookDescription provides details to OLM about required webhooksStringgetDeploymentName()WebhookDescription provides details to OLM about required webhooksStringgetFailurePolicy()Possible enum values:StringgetGenerateName()WebhookDescription provides details to OLM about required webhooksStringgetMatchPolicy()Possible enum values:io.fabric8.kubernetes.api.model.LabelSelectorgetObjectSelector()WebhookDescription provides details to OLM about required webhooksStringgetReinvocationPolicy()Possible enum values:List<io.fabric8.kubernetes.api.model.admissionregistration.v1.RuleWithOperations>getRules()WebhookDescription provides details to OLM about required webhooksStringgetSideEffects()Possible enum values:io.fabric8.kubernetes.api.model.IntOrStringgetTargetPort()WebhookDescription provides details to OLM about required webhooksIntegergetTimeoutSeconds()WebhookDescription provides details to OLM about required webhooksStringgetType()WebhookDescription provides details to OLM about required webhooksStringgetWebhookPath()WebhookDescription provides details to OLM about required webhooksvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAdmissionReviewVersions(List<String> admissionReviewVersions)WebhookDescription provides details to OLM about required webhooksvoidsetContainerPort(Integer containerPort)WebhookDescription provides details to OLM about required webhooksvoidsetConversionCRDs(List<String> conversionCRDs)WebhookDescription provides details to OLM about required webhooksvoidsetDeploymentName(String deploymentName)WebhookDescription provides details to OLM about required webhooksvoidsetFailurePolicy(String failurePolicy)Possible enum values:voidsetGenerateName(String generateName)WebhookDescription provides details to OLM about required webhooksvoidsetMatchPolicy(String matchPolicy)Possible enum values:voidsetObjectSelector(io.fabric8.kubernetes.api.model.LabelSelector objectSelector)WebhookDescription provides details to OLM about required webhooksvoidsetReinvocationPolicy(String reinvocationPolicy)Possible enum values:voidsetRules(List<io.fabric8.kubernetes.api.model.admissionregistration.v1.RuleWithOperations> rules)WebhookDescription provides details to OLM about required webhooksvoidsetSideEffects(String sideEffects)Possible enum values:voidsetTargetPort(io.fabric8.kubernetes.api.model.IntOrString targetPort)WebhookDescription provides details to OLM about required webhooksvoidsetTimeoutSeconds(Integer timeoutSeconds)WebhookDescription provides details to OLM about required webhooksvoidsetType(String type)WebhookDescription provides details to OLM about required webhooksvoidsetWebhookPath(String webhookPath)WebhookDescription provides details to OLM about required webhooksWebhookDescriptionBuildertoBuilder()
-
-
-
Constructor Detail
-
WebhookDescription
public WebhookDescription()
No args constructor for use in serialization
-
WebhookDescription
public WebhookDescription(List<String> admissionReviewVersions, Integer containerPort, List<String> conversionCRDs, String deploymentName, String failurePolicy, String generateName, String matchPolicy, io.fabric8.kubernetes.api.model.LabelSelector objectSelector, String reinvocationPolicy, List<io.fabric8.kubernetes.api.model.admissionregistration.v1.RuleWithOperations> rules, String sideEffects, io.fabric8.kubernetes.api.model.IntOrString targetPort, Integer timeoutSeconds, String type, String webhookPath)
-
-
Method Detail
-
getAdmissionReviewVersions
public List<String> getAdmissionReviewVersions()
WebhookDescription provides details to OLM about required webhooks
-
setAdmissionReviewVersions
public void setAdmissionReviewVersions(List<String> admissionReviewVersions)
WebhookDescription provides details to OLM about required webhooks
-
getContainerPort
public Integer getContainerPort()
WebhookDescription provides details to OLM about required webhooks
-
setContainerPort
public void setContainerPort(Integer containerPort)
WebhookDescription provides details to OLM about required webhooks
-
getConversionCRDs
public List<String> getConversionCRDs()
WebhookDescription provides details to OLM about required webhooks
-
setConversionCRDs
public void setConversionCRDs(List<String> conversionCRDs)
WebhookDescription provides details to OLM about required webhooks
-
getDeploymentName
public String getDeploymentName()
WebhookDescription provides details to OLM about required webhooks
-
setDeploymentName
public void setDeploymentName(String deploymentName)
WebhookDescription provides details to OLM about required webhooks
-
getFailurePolicy
public String getFailurePolicy()
Possible enum values:- `"Fail"` means that an error calling the webhook causes the admission to fail.
- `"Ignore"` means that an error calling the webhook is ignored.
-
setFailurePolicy
public void setFailurePolicy(String failurePolicy)
Possible enum values:- `"Fail"` means that an error calling the webhook causes the admission to fail.
- `"Ignore"` means that an error calling the webhook is ignored.
-
getGenerateName
public String getGenerateName()
WebhookDescription provides details to OLM about required webhooks
-
setGenerateName
public void setGenerateName(String generateName)
WebhookDescription provides details to OLM about required webhooks
-
getMatchPolicy
public String getMatchPolicy()
Possible enum values:- `"Equivalent"` means requests should be sent to the webhook if they modify a resource listed in rules via another API group or version.
- `"Exact"` means requests should only be sent to the webhook if they exactly match a given rule.
-
setMatchPolicy
public void setMatchPolicy(String matchPolicy)
Possible enum values:- `"Equivalent"` means requests should be sent to the webhook if they modify a resource listed in rules via another API group or version.
- `"Exact"` means requests should only be sent to the webhook if they exactly match a given rule.
-
getObjectSelector
public io.fabric8.kubernetes.api.model.LabelSelector getObjectSelector()
WebhookDescription provides details to OLM about required webhooks
-
setObjectSelector
public void setObjectSelector(io.fabric8.kubernetes.api.model.LabelSelector objectSelector)
WebhookDescription provides details to OLM about required webhooks
-
getReinvocationPolicy
public String getReinvocationPolicy()
Possible enum values:- `"IfNeeded"` indicates that the mutation may be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial mutation call.
- `"Never"` indicates that the mutation must not be called more than once in a single admission evaluation.
-
setReinvocationPolicy
public void setReinvocationPolicy(String reinvocationPolicy)
Possible enum values:- `"IfNeeded"` indicates that the mutation may be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial mutation call.
- `"Never"` indicates that the mutation must not be called more than once in a single admission evaluation.
-
getRules
public List<io.fabric8.kubernetes.api.model.admissionregistration.v1.RuleWithOperations> getRules()
WebhookDescription provides details to OLM about required webhooks
-
setRules
public void setRules(List<io.fabric8.kubernetes.api.model.admissionregistration.v1.RuleWithOperations> rules)
WebhookDescription provides details to OLM about required webhooks
-
getSideEffects
public String getSideEffects()
Possible enum values:- `"None"` means that calling the webhook will have no side effects.
- `"NoneOnDryRun"` means that calling the webhook will possibly have side effects, but if the request being reviewed has the dry-run attribute, the side effects will be suppressed.
- `"Some"` means that calling the webhook will possibly have side effects. If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail.
- `"Unknown"` means that no information is known about the side effects of calling the webhook. If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail.
-
setSideEffects
public void setSideEffects(String sideEffects)
Possible enum values:- `"None"` means that calling the webhook will have no side effects.
- `"NoneOnDryRun"` means that calling the webhook will possibly have side effects, but if the request being reviewed has the dry-run attribute, the side effects will be suppressed.
- `"Some"` means that calling the webhook will possibly have side effects. If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail.
- `"Unknown"` means that no information is known about the side effects of calling the webhook. If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail.
-
getTargetPort
public io.fabric8.kubernetes.api.model.IntOrString getTargetPort()
WebhookDescription provides details to OLM about required webhooks
-
setTargetPort
public void setTargetPort(io.fabric8.kubernetes.api.model.IntOrString targetPort)
WebhookDescription provides details to OLM about required webhooks
-
getTimeoutSeconds
public Integer getTimeoutSeconds()
WebhookDescription provides details to OLM about required webhooks
-
setTimeoutSeconds
public void setTimeoutSeconds(Integer timeoutSeconds)
WebhookDescription provides details to OLM about required webhooks
-
getType
public String getType()
WebhookDescription provides details to OLM about required webhooks
-
setType
public void setType(String type)
WebhookDescription provides details to OLM about required webhooks
-
getWebhookPath
public String getWebhookPath()
WebhookDescription provides details to OLM about required webhooks
-
setWebhookPath
public void setWebhookPath(String webhookPath)
WebhookDescription provides details to OLM about required webhooks
-
edit
public WebhookDescriptionBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<WebhookDescriptionBuilder>
-
toBuilder
public WebhookDescriptionBuilder toBuilder()
-
-