Class WebhookConversion

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class WebhookConversion
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    WebhookConversion describes how to call a conversion webhook
    • Constructor Detail

      • WebhookConversion

        public WebhookConversion​(WebhookClientConfig clientConfig,
                                 @NonNull
                                 @NonNull java.util.List<java.lang.String> conversionReviewVersions)
      • WebhookConversion

        public WebhookConversion()
    • Method Detail

      • getConversionReviewVersions

        @NonNull
        public @NonNull java.util.List<java.lang.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.
      • setConversionReviewVersions

        public void setConversionReviewVersions​(@NonNull
                                                @NonNull java.util.List<java.lang.String> conversionReviewVersions)
        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.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object