Class: CDK8sPlus25::K8S::KubeValidatingWebhookConfigurationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- CDK8sPlus25::K8S::KubeValidatingWebhookConfigurationProps
- Defined in:
- k8_s/kube_validating_webhook_configuration_props.rb
Overview
ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.
Instance Attribute Summary collapse
-
#metadata ⇒ CDK8sPlus25::K8S::ObjectMeta?
readonly
Standard object metadata;.
-
#webhooks ⇒ Array<CDK8sPlus25::K8S::ValidatingWebhook>?
readonly
Webhooks is a list of webhooks and the affected resources and operations.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata: nil, webhooks: nil) ⇒ KubeValidatingWebhookConfigurationProps
constructor
A new instance of KubeValidatingWebhookConfigurationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(metadata: nil, webhooks: nil) ⇒ KubeValidatingWebhookConfigurationProps
Returns a new instance of KubeValidatingWebhookConfigurationProps.
9 10 11 12 13 14 |
# File 'k8_s/kube_validating_webhook_configuration_props.rb', line 9 def initialize(metadata: nil, webhooks: nil) @metadata = .is_a?(Hash) ? ::CDK8sPlus25::K8S::ObjectMeta.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@metadata, "eyJmcW4iOiJjZGs4cy1wbHVzLTI1Lms4cy5PYmplY3RNZXRhIn0=", "metadata") unless @metadata.nil? @webhooks = webhooks.is_a?(Array) ? webhooks.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::CDK8sPlus25::K8S::ValidatingWebhook.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : webhooks Jsii::Type.check_type(@webhooks, "eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImNkazhzLXBsdXMtMjUuazhzLlZhbGlkYXRpbmdXZWJob29rIn0sImtpbmQiOiJhcnJheSJ9fQ==", "webhooks") unless @webhooks.nil? end |
Instance Attribute Details
#metadata ⇒ CDK8sPlus25::K8S::ObjectMeta? (readonly)
Standard object metadata;
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
21 22 23 |
# File 'k8_s/kube_validating_webhook_configuration_props.rb', line 21 def @metadata end |
#webhooks ⇒ Array<CDK8sPlus25::K8S::ValidatingWebhook>? (readonly)
Webhooks is a list of webhooks and the affected resources and operations.
25 26 27 |
# File 'k8_s/kube_validating_webhook_configuration_props.rb', line 25 def webhooks @webhooks end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'k8_s/kube_validating_webhook_configuration_props.rb', line 27 def self.jsii_properties { :metadata => "metadata", :webhooks => "webhooks", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'k8_s/kube_validating_webhook_configuration_props.rb', line 34 def to_jsii result = {} result.merge!({ "metadata" => @metadata, "webhooks" => @webhooks, }) result.compact end |