[−][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 -
optionalOptional parameters. Use
Default::default()to not pass any.
impl AuditSink[src]
pub fn delete_audit_sink(
name: &str,
optional: DeleteAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteAuditSinkResponse>), RequestError>[src]
name: &str,
optional: DeleteAuditSinkOptional
) -> 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
-
namename of the AuditSink
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl AuditSink[src]
pub fn delete_collection_audit_sink(
optional: DeleteCollectionAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionAuditSinkResponse>), RequestError>[src]
optional: DeleteCollectionAuditSinkOptional
) -> 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
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl AuditSink[src]
pub fn list_audit_sink(
optional: ListAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListAuditSinkResponse>), RequestError>[src]
optional: ListAuditSinkOptional
) -> 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
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl AuditSink[src]
pub fn patch_audit_sink(
name: &str,
body: &Patch,
optional: PatchAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchAuditSinkResponse>), RequestError>[src]
name: &str,
body: &Patch,
optional: PatchAuditSinkOptional
) -> 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
-
namename of the AuditSink
-
body -
optionalOptional 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
-
namename of the AuditSink
-
optionalOptional 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
-
namename of the AuditSink
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl AuditSink[src]
pub fn watch_audit_sink(
optional: WatchAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchAuditSinkResponse>), RequestError>[src]
optional: WatchAuditSinkOptional
) -> 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
-
optionalOptional 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 PartialEq<AuditSink> for AuditSink[src]
impl Clone for AuditSink[src]
fn clone(&self) -> AuditSink[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
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
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto 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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,