[−][src]Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::CustomResourceDefinition
CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.
Fields
metadata: Option<ObjectMeta>
spec: CustomResourceDefinitionSpec
spec describes how the user wants the resources to appear
status: Option<CustomResourceDefinitionStatus>
status indicates the actual state of the CustomResourceDefinition
Methods
impl CustomResourceDefinition
[src]
pub fn create_custom_resource_definition(
body: &CustomResourceDefinition,
optional: CreateCustomResourceDefinitionOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateCustomResourceDefinitionResponse>), RequestError>
[src]
body: &CustomResourceDefinition,
optional: CreateCustomResourceDefinitionOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateCustomResourceDefinitionResponse>), RequestError>
create a CustomResourceDefinition
Use the returned crate::ResponseBody
<
CreateCustomResourceDefinitionResponse
>
constructor, or CreateCustomResourceDefinitionResponse
directly, to parse the HTTP response.
Arguments
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CustomResourceDefinition
[src]
pub fn delete_collection_custom_resource_definition(
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionCustomResourceDefinitionResponse>), RequestError>
[src]
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionCustomResourceDefinitionResponse>), RequestError>
delete collection of CustomResourceDefinition
Use the returned crate::ResponseBody
<
DeleteCollectionCustomResourceDefinitionResponse
>
constructor, or DeleteCollectionCustomResourceDefinitionResponse
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 CustomResourceDefinition
[src]
pub fn delete_custom_resource_definition(
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCustomResourceDefinitionResponse>), RequestError>
[src]
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCustomResourceDefinitionResponse>), RequestError>
delete a CustomResourceDefinition
Use the returned crate::ResponseBody
<
DeleteCustomResourceDefinitionResponse
>
constructor, or DeleteCustomResourceDefinitionResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CustomResourceDefinition
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CustomResourceDefinition
[src]
pub fn list_custom_resource_definition(
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListCustomResourceDefinitionResponse>), RequestError>
[src]
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListCustomResourceDefinitionResponse>), RequestError>
list or watch objects of kind CustomResourceDefinition
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListCustomResourceDefinitionResponse
>
constructor, or ListCustomResourceDefinitionResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CustomResourceDefinition
[src]
pub fn patch_custom_resource_definition(
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchCustomResourceDefinitionResponse>), RequestError>
[src]
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchCustomResourceDefinitionResponse>), RequestError>
partially update the specified CustomResourceDefinition
Use the returned crate::ResponseBody
<
PatchCustomResourceDefinitionResponse
>
constructor, or PatchCustomResourceDefinitionResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CustomResourceDefinition
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CustomResourceDefinition
[src]
pub fn patch_custom_resource_definition_status(
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchCustomResourceDefinitionStatusResponse>), RequestError>
[src]
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchCustomResourceDefinitionStatusResponse>), RequestError>
partially update status of the specified CustomResourceDefinition
Use the returned crate::ResponseBody
<
PatchCustomResourceDefinitionStatusResponse
>
constructor, or PatchCustomResourceDefinitionStatusResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CustomResourceDefinition
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CustomResourceDefinition
[src]
pub fn read_custom_resource_definition(
name: &str,
optional: ReadCustomResourceDefinitionOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadCustomResourceDefinitionResponse>), RequestError>
[src]
name: &str,
optional: ReadCustomResourceDefinitionOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadCustomResourceDefinitionResponse>), RequestError>
read the specified CustomResourceDefinition
Use the returned crate::ResponseBody
<
ReadCustomResourceDefinitionResponse
>
constructor, or ReadCustomResourceDefinitionResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CustomResourceDefinition
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CustomResourceDefinition
[src]
pub fn read_custom_resource_definition_status(
name: &str,
optional: ReadCustomResourceDefinitionStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadCustomResourceDefinitionStatusResponse>), RequestError>
[src]
name: &str,
optional: ReadCustomResourceDefinitionStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadCustomResourceDefinitionStatusResponse>), RequestError>
read status of the specified CustomResourceDefinition
Use the returned crate::ResponseBody
<
ReadCustomResourceDefinitionStatusResponse
>
constructor, or ReadCustomResourceDefinitionStatusResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CustomResourceDefinition
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CustomResourceDefinition
[src]
pub fn replace_custom_resource_definition(
name: &str,
body: &CustomResourceDefinition,
optional: ReplaceCustomResourceDefinitionOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceCustomResourceDefinitionResponse>), RequestError>
[src]
name: &str,
body: &CustomResourceDefinition,
optional: ReplaceCustomResourceDefinitionOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceCustomResourceDefinitionResponse>), RequestError>
replace the specified CustomResourceDefinition
Use the returned crate::ResponseBody
<
ReplaceCustomResourceDefinitionResponse
>
constructor, or ReplaceCustomResourceDefinitionResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CustomResourceDefinition
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CustomResourceDefinition
[src]
pub fn replace_custom_resource_definition_status(
name: &str,
body: &CustomResourceDefinition,
optional: ReplaceCustomResourceDefinitionStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceCustomResourceDefinitionStatusResponse>), RequestError>
[src]
name: &str,
body: &CustomResourceDefinition,
optional: ReplaceCustomResourceDefinitionStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceCustomResourceDefinitionStatusResponse>), RequestError>
replace status of the specified CustomResourceDefinition
Use the returned crate::ResponseBody
<
ReplaceCustomResourceDefinitionStatusResponse
>
constructor, or ReplaceCustomResourceDefinitionStatusResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CustomResourceDefinition
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CustomResourceDefinition
[src]
pub fn watch_custom_resource_definition(
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchCustomResourceDefinitionResponse>), RequestError>
[src]
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchCustomResourceDefinitionResponse>), RequestError>
list or watch objects of kind CustomResourceDefinition
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchCustomResourceDefinitionResponse
>
constructor, or WatchCustomResourceDefinitionResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
impl Resource for CustomResourceDefinition
[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 CustomResourceDefinition
[src]
impl Clone for CustomResourceDefinition
[src]
fn clone(&self) -> CustomResourceDefinition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for CustomResourceDefinition
[src]
fn default() -> CustomResourceDefinition
[src]
impl PartialEq<CustomResourceDefinition> for CustomResourceDefinition
[src]
fn eq(&self, other: &CustomResourceDefinition) -> bool
[src]
fn ne(&self, other: &CustomResourceDefinition) -> bool
[src]
impl Debug for CustomResourceDefinition
[src]
impl Serialize for CustomResourceDefinition
[src]
impl<'de> Deserialize<'de> for CustomResourceDefinition
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for CustomResourceDefinition
impl Sync for CustomResourceDefinition
impl Unpin for CustomResourceDefinition
impl UnwindSafe for CustomResourceDefinition
impl RefUnwindSafe for CustomResourceDefinition
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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> 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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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>,