[−][src]Struct k8s_openapi::api::auditregistration::v1alpha1::AuditSink
AuditSink represents a cluster level audit sink
Fields
metadata: Option<ObjectMeta>
spec: Option<AuditSinkSpec>
Spec defines the audit configuration spec
Methods
impl AuditSink
[src]
pub fn create_audit_sink(
body: &AuditSink,
optional: CreateAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateAuditSinkResponse>), RequestError>
[src]
body: &AuditSink,
optional: CreateAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateAuditSinkResponse>), RequestError>
create an AuditSink
Use the returned crate::ResponseBody
<
CreateAuditSinkResponse
>
constructor, or CreateAuditSinkResponse
directly, to parse the HTTP response.
Arguments
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl AuditSink
[src]
pub fn delete_audit_sink(
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteAuditSinkResponse>), RequestError>
[src]
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteAuditSinkResponse>), RequestError>
delete an AuditSink
Use the returned crate::ResponseBody
<
DeleteAuditSinkResponse
>
constructor, or DeleteAuditSinkResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the AuditSink
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl AuditSink
[src]
pub fn delete_collection_audit_sink(
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionAuditSinkResponse>), RequestError>
[src]
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionAuditSinkResponse>), RequestError>
delete collection of AuditSink
Use the returned crate::ResponseBody
<
DeleteCollectionAuditSinkResponse
>
constructor, or DeleteCollectionAuditSinkResponse
directly, to parse the HTTP response.
Arguments
-
delete_optional
Delete options. Use
Default::default()
to not pass any. -
list_optional
List options. Use
Default::default()
to not pass any.
impl AuditSink
[src]
pub fn list_audit_sink(
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListAuditSinkResponse>), RequestError>
[src]
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListAuditSinkResponse>), RequestError>
list or watch objects of kind AuditSink
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListAuditSinkResponse
>
constructor, or ListAuditSinkResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl AuditSink
[src]
pub fn patch_audit_sink(
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchAuditSinkResponse>), RequestError>
[src]
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchAuditSinkResponse>), RequestError>
partially update the specified AuditSink
Use the returned crate::ResponseBody
<
PatchAuditSinkResponse
>
constructor, or PatchAuditSinkResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the AuditSink
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl AuditSink
[src]
pub fn read_audit_sink(
name: &str,
optional: ReadAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadAuditSinkResponse>), RequestError>
[src]
name: &str,
optional: ReadAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadAuditSinkResponse>), RequestError>
read the specified AuditSink
Use the returned crate::ResponseBody
<
ReadAuditSinkResponse
>
constructor, or ReadAuditSinkResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the AuditSink
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl AuditSink
[src]
pub fn replace_audit_sink(
name: &str,
body: &AuditSink,
optional: ReplaceAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceAuditSinkResponse>), RequestError>
[src]
name: &str,
body: &AuditSink,
optional: ReplaceAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceAuditSinkResponse>), RequestError>
replace the specified AuditSink
Use the returned crate::ResponseBody
<
ReplaceAuditSinkResponse
>
constructor, or ReplaceAuditSinkResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the AuditSink
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl AuditSink
[src]
pub fn watch_audit_sink(
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchAuditSinkResponse>), RequestError>
[src]
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchAuditSinkResponse>), RequestError>
list or watch objects of kind AuditSink
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchAuditSinkResponse
>
constructor, or WatchAuditSinkResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
impl Resource for AuditSink
[src]
fn api_version() -> &'static str
[src]
fn group() -> &'static str
[src]
fn kind() -> &'static str
[src]
fn version() -> &'static str
[src]
impl Metadata for AuditSink
[src]
impl Default for AuditSink
[src]
impl Clone for AuditSink
[src]
impl PartialEq<AuditSink> for AuditSink
[src]
impl Debug for AuditSink
[src]
impl Serialize for AuditSink
[src]
impl<'de> Deserialize<'de> for AuditSink
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for AuditSink
impl Sync for AuditSink
impl Send for AuditSink
impl UnwindSafe for AuditSink
impl RefUnwindSafe for AuditSink
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,