[−][src]Struct k8s_openapi::api::core::v1::PodTemplate
PodTemplate describes a template for creating copies of a predefined pod.
Fields
metadata: Option<ObjectMeta>
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
template: Option<PodTemplateSpec>
Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
Methods
impl PodTemplate
[src]
pub fn create_namespaced_pod_template(
namespace: &str,
body: &PodTemplate,
optional: CreateNamespacedPodTemplateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedPodTemplateResponse>), RequestError>
[src]
namespace: &str,
body: &PodTemplate,
optional: CreateNamespacedPodTemplateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedPodTemplateResponse>), RequestError>
create a PodTemplate
Use the returned crate::ResponseBody
<
CreateNamespacedPodTemplateResponse
>
constructor, or CreateNamespacedPodTemplateResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodTemplate
[src]
pub fn delete_collection_namespaced_pod_template(
namespace: &str,
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedPodTemplateResponse>), RequestError>
[src]
namespace: &str,
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedPodTemplateResponse>), RequestError>
delete collection of PodTemplate
Use the returned crate::ResponseBody
<
DeleteCollectionNamespacedPodTemplateResponse
>
constructor, or DeleteCollectionNamespacedPodTemplateResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
delete_optional
Delete options. Use
Default::default()
to not pass any. -
list_optional
List options. Use
Default::default()
to not pass any.
impl PodTemplate
[src]
pub fn delete_namespaced_pod_template(
name: &str,
namespace: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedPodTemplateResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedPodTemplateResponse>), RequestError>
delete a PodTemplate
Use the returned crate::ResponseBody
<
DeleteNamespacedPodTemplateResponse
>
constructor, or DeleteNamespacedPodTemplateResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the PodTemplate
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodTemplate
[src]
pub fn list_namespaced_pod_template(
namespace: &str,
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedPodTemplateResponse>), RequestError>
[src]
namespace: &str,
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedPodTemplateResponse>), RequestError>
list or watch objects of kind PodTemplate
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListNamespacedPodTemplateResponse
>
constructor, or ListNamespacedPodTemplateResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodTemplate
[src]
pub fn list_pod_template_for_all_namespaces(
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPodTemplateForAllNamespacesResponse>), RequestError>
[src]
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPodTemplateForAllNamespacesResponse>), RequestError>
list or watch objects of kind PodTemplate
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListPodTemplateForAllNamespacesResponse
>
constructor, or ListPodTemplateForAllNamespacesResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodTemplate
[src]
pub fn patch_namespaced_pod_template(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedPodTemplateResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedPodTemplateResponse>), RequestError>
partially update the specified PodTemplate
Use the returned crate::ResponseBody
<
PatchNamespacedPodTemplateResponse
>
constructor, or PatchNamespacedPodTemplateResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the PodTemplate
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodTemplate
[src]
pub fn read_namespaced_pod_template(
name: &str,
namespace: &str,
optional: ReadNamespacedPodTemplateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedPodTemplateResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: ReadNamespacedPodTemplateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedPodTemplateResponse>), RequestError>
read the specified PodTemplate
Use the returned crate::ResponseBody
<
ReadNamespacedPodTemplateResponse
>
constructor, or ReadNamespacedPodTemplateResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the PodTemplate
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodTemplate
[src]
pub fn replace_namespaced_pod_template(
name: &str,
namespace: &str,
body: &PodTemplate,
optional: ReplaceNamespacedPodTemplateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedPodTemplateResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &PodTemplate,
optional: ReplaceNamespacedPodTemplateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedPodTemplateResponse>), RequestError>
replace the specified PodTemplate
Use the returned crate::ResponseBody
<
ReplaceNamespacedPodTemplateResponse
>
constructor, or ReplaceNamespacedPodTemplateResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the PodTemplate
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodTemplate
[src]
pub fn watch_namespaced_pod_template(
namespace: &str,
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedPodTemplateResponse>), RequestError>
[src]
namespace: &str,
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedPodTemplateResponse>), RequestError>
list or watch objects of kind PodTemplate
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchNamespacedPodTemplateResponse
>
constructor, or WatchNamespacedPodTemplateResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodTemplate
[src]
pub fn watch_pod_template_for_all_namespaces(
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPodTemplateForAllNamespacesResponse>), RequestError>
[src]
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPodTemplateForAllNamespacesResponse>), RequestError>
list or watch objects of kind PodTemplate
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchPodTemplateForAllNamespacesResponse
>
constructor, or WatchPodTemplateForAllNamespacesResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
impl Resource for PodTemplate
[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 PodTemplate
[src]
impl Default for PodTemplate
[src]
fn default() -> PodTemplate
[src]
impl Clone for PodTemplate
[src]
fn clone(&self) -> PodTemplate
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<PodTemplate> for PodTemplate
[src]
fn eq(&self, other: &PodTemplate) -> bool
[src]
fn ne(&self, other: &PodTemplate) -> bool
[src]
impl Debug for PodTemplate
[src]
impl Serialize for PodTemplate
[src]
impl<'de> Deserialize<'de> for PodTemplate
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for PodTemplate
impl Sync for PodTemplate
impl Send for PodTemplate
impl UnwindSafe for PodTemplate
impl RefUnwindSafe for PodTemplate
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>,