Class V1WebhookConversion
java.lang.Object
io.kubernetes.client.openapi.models.V1WebhookConversion
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1WebhookConversion
extends Object
WebhookConversion describes how to call a conversion webhook
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConversionReviewVersionsItem
(String conversionReviewVersionsItem) clientConfig
(ApiextensionsV1WebhookClientConfig clientConfig) conversionReviewVersions
(List<String> conversionReviewVersions) boolean
static V1WebhookConversion
Create an instance of V1WebhookConversion given an JSON stringGet clientConfigconversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.int
hashCode()
void
setClientConfig
(ApiextensionsV1WebhookClientConfig clientConfig) void
setConversionReviewVersions
(List<String> conversionReviewVersions) toJson()
Convert an instance of V1WebhookConversion to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CLIENT_CONFIG
- See Also:
-
SERIALIZED_NAME_CONVERSION_REVIEW_VERSIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1WebhookConversion
public V1WebhookConversion()
-
-
Method Details
-
clientConfig
-
getClientConfig
Get clientConfig- Returns:
- clientConfig
-
setClientConfig
-
conversionReviewVersions
-
addConversionReviewVersionsItem
-
getConversionReviewVersions
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.- Returns:
- conversionReviewVersions
-
setConversionReviewVersions
-
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 V1WebhookConversion
-
fromJson
Create an instance of V1WebhookConversion given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1WebhookConversion
- Throws:
IOException
- if the JSON string is invalid with respect to V1WebhookConversion
-
toJson
Convert an instance of V1WebhookConversion to an JSON string- Returns:
- JSON string
-