[][src]Struct k8s_openapi::api::admissionregistration::v1beta1::ValidatingWebhookConfiguration

pub struct ValidatingWebhookConfiguration {
    pub metadata: Option<ObjectMeta>,
    pub webhooks: Option<Vec<Webhook>>,
}

ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.

Fields

metadata: Option<ObjectMeta>

Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.

webhooks: Option<Vec<Webhook>>

Webhooks is a list of webhooks and the affected resources and operations.

Methods

impl ValidatingWebhookConfiguration[src]

pub fn create_validating_webhook_configuration(
    body: &ValidatingWebhookConfiguration,
    optional: CreateValidatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateValidatingWebhookConfigurationResponse>), RequestError>
[src]

create a ValidatingWebhookConfiguration

Use the returned crate::ResponseBody<CreateValidatingWebhookConfigurationResponse> constructor, or CreateValidatingWebhookConfigurationResponse directly, to parse the HTTP response.

Arguments

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ValidatingWebhookConfiguration[src]

pub fn delete_collection_validating_webhook_configuration(
    optional: DeleteCollectionValidatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionValidatingWebhookConfigurationResponse>), RequestError>
[src]

delete collection of ValidatingWebhookConfiguration

Use the returned crate::ResponseBody<DeleteCollectionValidatingWebhookConfigurationResponse> constructor, or DeleteCollectionValidatingWebhookConfigurationResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ValidatingWebhookConfiguration[src]

pub fn delete_validating_webhook_configuration(
    name: &str,
    optional: DeleteValidatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteValidatingWebhookConfigurationResponse>), RequestError>
[src]

delete a ValidatingWebhookConfiguration

Use the returned crate::ResponseBody<DeleteValidatingWebhookConfigurationResponse> constructor, or DeleteValidatingWebhookConfigurationResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the ValidatingWebhookConfiguration

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ValidatingWebhookConfiguration[src]

pub fn list_validating_webhook_configuration(
    optional: ListValidatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListValidatingWebhookConfigurationResponse>), RequestError>
[src]

list or watch objects of kind ValidatingWebhookConfiguration

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListValidatingWebhookConfigurationResponse> constructor, or ListValidatingWebhookConfigurationResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ValidatingWebhookConfiguration[src]

pub fn patch_validating_webhook_configuration(
    name: &str,
    body: &Patch,
    optional: PatchValidatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchValidatingWebhookConfigurationResponse>), RequestError>
[src]

partially update the specified ValidatingWebhookConfiguration

Use the returned crate::ResponseBody<PatchValidatingWebhookConfigurationResponse> constructor, or PatchValidatingWebhookConfigurationResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the ValidatingWebhookConfiguration

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ValidatingWebhookConfiguration[src]

pub fn read_validating_webhook_configuration(
    name: &str,
    optional: ReadValidatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadValidatingWebhookConfigurationResponse>), RequestError>
[src]

read the specified ValidatingWebhookConfiguration

Use the returned crate::ResponseBody<ReadValidatingWebhookConfigurationResponse> constructor, or ReadValidatingWebhookConfigurationResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the ValidatingWebhookConfiguration

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ValidatingWebhookConfiguration[src]

pub fn replace_validating_webhook_configuration(
    name: &str,
    body: &ValidatingWebhookConfiguration,
    optional: ReplaceValidatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceValidatingWebhookConfigurationResponse>), RequestError>
[src]

replace the specified ValidatingWebhookConfiguration

Use the returned crate::ResponseBody<ReplaceValidatingWebhookConfigurationResponse> constructor, or ReplaceValidatingWebhookConfigurationResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the ValidatingWebhookConfiguration

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl ValidatingWebhookConfiguration[src]

pub fn watch_validating_webhook_configuration(
    optional: WatchValidatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchValidatingWebhookConfigurationResponse>), RequestError>
[src]

list or watch objects of kind ValidatingWebhookConfiguration

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchValidatingWebhookConfigurationResponse> constructor, or WatchValidatingWebhookConfigurationResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

Trait Implementations

impl Resource for ValidatingWebhookConfiguration[src]

impl Metadata for ValidatingWebhookConfiguration[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for ValidatingWebhookConfiguration[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<ValidatingWebhookConfiguration> for ValidatingWebhookConfiguration[src]

impl Default for ValidatingWebhookConfiguration[src]

impl Debug for ValidatingWebhookConfiguration[src]

impl Serialize for ValidatingWebhookConfiguration[src]

impl<'de> Deserialize<'de> for ValidatingWebhookConfiguration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]