Class V1CustomResourceConversion
java.lang.Object
io.kubernetes.client.openapi.models.V1CustomResourceConversion
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1CustomResourceConversion
extends Object
CustomResourceConversion describes how to convert different versions of a CR.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1CustomResourceConversion
Create an instance of V1CustomResourceConversion given an JSON stringstrategy specifies how custom resources are converted between versions.Get webhookint
hashCode()
void
setStrategy
(String strategy) void
setWebhook
(V1WebhookConversion webhook) toJson()
Convert an instance of V1CustomResourceConversion to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues foundwebhook
(V1WebhookConversion webhook)
-
Field Details
-
SERIALIZED_NAME_STRATEGY
- See Also:
-
SERIALIZED_NAME_WEBHOOK
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1CustomResourceConversion
public V1CustomResourceConversion()
-
-
Method Details
-
strategy
-
getStrategy
strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.- Returns:
- strategy
-
setStrategy
-
webhook
-
getWebhook
Get webhook- Returns:
- webhook
-
setWebhook
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1CustomResourceConversion
-
fromJson
Create an instance of V1CustomResourceConversion given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1CustomResourceConversion
- Throws:
IOException
- if the JSON string is invalid with respect to V1CustomResourceConversion
-
toJson
Convert an instance of V1CustomResourceConversion to an JSON string- Returns:
- JSON string
-