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
  • Field Details

    • SERIALIZED_NAME_CLIENT_CONFIG

      public static final String SERIALIZED_NAME_CLIENT_CONFIG
      See Also:
    • SERIALIZED_NAME_CONVERSION_REVIEW_VERSIONS

      public static final String SERIALIZED_NAME_CONVERSION_REVIEW_VERSIONS
      See Also:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • Constructor Details

    • V1WebhookConversion

      public V1WebhookConversion()
  • Method Details

    • clientConfig

      public V1WebhookConversion clientConfig(ApiextensionsV1WebhookClientConfig clientConfig)
    • getClientConfig

      @Nullable public ApiextensionsV1WebhookClientConfig getClientConfig()
      Get clientConfig
      Returns:
      clientConfig
    • setClientConfig

      public void setClientConfig(ApiextensionsV1WebhookClientConfig clientConfig)
    • conversionReviewVersions

      public V1WebhookConversion conversionReviewVersions(List<String> conversionReviewVersions)
    • addConversionReviewVersionsItem

      public V1WebhookConversion addConversionReviewVersionsItem(String conversionReviewVersionsItem)
    • getConversionReviewVersions

      @Nonnull public List<String> 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

      public void setConversionReviewVersions(List<String> conversionReviewVersions)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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

      public static V1WebhookConversion fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of V1WebhookConversion to an JSON string
      Returns:
      JSON string