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

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

MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.

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 MutatingWebhookConfiguration[src]

pub fn create_mutating_webhook_configuration(
    body: &MutatingWebhookConfiguration,
    optional: CreateMutatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateMutatingWebhookConfigurationResponse>), RequestError>
[src]

create a MutatingWebhookConfiguration

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

Arguments

  • body

  • optional

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

impl MutatingWebhookConfiguration[src]

pub fn delete_collection_mutating_webhook_configuration(
    optional: DeleteCollectionMutatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionMutatingWebhookConfigurationResponse>), RequestError>
[src]

delete collection of MutatingWebhookConfiguration

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

Arguments

  • optional

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

impl MutatingWebhookConfiguration[src]

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

delete a MutatingWebhookConfiguration

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

Arguments

  • name

    name of the MutatingWebhookConfiguration

  • optional

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

impl MutatingWebhookConfiguration[src]

pub fn list_mutating_webhook_configuration(
    optional: ListMutatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListMutatingWebhookConfigurationResponse>), RequestError>
[src]

list or watch objects of kind MutatingWebhookConfiguration

This operation only supports listing all items of this type.

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

Arguments

  • optional

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

impl MutatingWebhookConfiguration[src]

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

partially update the specified MutatingWebhookConfiguration

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

Arguments

  • name

    name of the MutatingWebhookConfiguration

  • body

  • optional

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

impl MutatingWebhookConfiguration[src]

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

read the specified MutatingWebhookConfiguration

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

Arguments

  • name

    name of the MutatingWebhookConfiguration

  • optional

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

impl MutatingWebhookConfiguration[src]

pub fn replace_mutating_webhook_configuration(
    name: &str,
    body: &MutatingWebhookConfiguration,
    optional: ReplaceMutatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceMutatingWebhookConfigurationResponse>), RequestError>
[src]

replace the specified MutatingWebhookConfiguration

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

Arguments

  • name

    name of the MutatingWebhookConfiguration

  • body

  • optional

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

impl MutatingWebhookConfiguration[src]

pub fn watch_mutating_webhook_configuration(
    optional: WatchMutatingWebhookConfigurationOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchMutatingWebhookConfigurationResponse>), RequestError>
[src]

list or watch objects of kind MutatingWebhookConfiguration

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

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

Arguments

  • optional

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

Trait Implementations

impl Resource for MutatingWebhookConfiguration[src]

impl Metadata for MutatingWebhookConfiguration[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for MutatingWebhookConfiguration[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<MutatingWebhookConfiguration> for MutatingWebhookConfiguration[src]

impl Default for MutatingWebhookConfiguration[src]

impl Debug for MutatingWebhookConfiguration[src]

impl Serialize for MutatingWebhookConfiguration[src]

impl<'de> Deserialize<'de> for MutatingWebhookConfiguration[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]