[−][src]Struct k8s_openapi::api::batch::v1beta1::CronJob
CronJob represents the configuration of a single cron job.
Fields
metadata: Option<ObjectMeta>
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec: Option<CronJobSpec>
Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
status: Option<CronJobStatus>
Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
Methods
impl CronJob
[src]
pub fn create_namespaced_cron_job(
namespace: &str,
body: &CronJob,
optional: CreateNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedCronJobResponse>), RequestError>
[src]
namespace: &str,
body: &CronJob,
optional: CreateNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedCronJobResponse>), RequestError>
create a CronJob
Use the returned crate::ResponseBody
<
CreateNamespacedCronJobResponse
>
constructor, or CreateNamespacedCronJobResponse
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 CronJob
[src]
pub fn delete_collection_namespaced_cron_job(
namespace: &str,
optional: DeleteCollectionNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedCronJobResponse>), RequestError>
[src]
namespace: &str,
optional: DeleteCollectionNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedCronJobResponse>), RequestError>
delete collection of CronJob
Use the returned crate::ResponseBody
<
DeleteCollectionNamespacedCronJobResponse
>
constructor, or DeleteCollectionNamespacedCronJobResponse
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 CronJob
[src]
pub fn delete_namespaced_cron_job(
name: &str,
namespace: &str,
optional: DeleteNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedCronJobResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: DeleteNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedCronJobResponse>), RequestError>
delete a CronJob
Use the returned crate::ResponseBody
<
DeleteNamespacedCronJobResponse
>
constructor, or DeleteNamespacedCronJobResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CronJob
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CronJob
[src]
pub fn list_cron_job_for_all_namespaces(
optional: ListCronJobForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListCronJobForAllNamespacesResponse>), RequestError>
[src]
optional: ListCronJobForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListCronJobForAllNamespacesResponse>), RequestError>
list or watch objects of kind CronJob
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListCronJobForAllNamespacesResponse
>
constructor, or ListCronJobForAllNamespacesResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CronJob
[src]
pub fn list_namespaced_cron_job(
namespace: &str,
optional: ListNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedCronJobResponse>), RequestError>
[src]
namespace: &str,
optional: ListNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedCronJobResponse>), RequestError>
list or watch objects of kind CronJob
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListNamespacedCronJobResponse
>
constructor, or ListNamespacedCronJobResponse
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 CronJob
[src]
pub fn patch_namespaced_cron_job(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedCronJobResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedCronJobResponse>), RequestError>
partially update the specified CronJob
Use the returned crate::ResponseBody
<
PatchNamespacedCronJobResponse
>
constructor, or PatchNamespacedCronJobResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CronJob
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CronJob
[src]
pub fn patch_namespaced_cron_job_status(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedCronJobStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedCronJobStatusResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedCronJobStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedCronJobStatusResponse>), RequestError>
partially update status of the specified CronJob
Use the returned crate::ResponseBody
<
PatchNamespacedCronJobStatusResponse
>
constructor, or PatchNamespacedCronJobStatusResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CronJob
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CronJob
[src]
pub fn read_namespaced_cron_job(
name: &str,
namespace: &str,
optional: ReadNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedCronJobResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: ReadNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedCronJobResponse>), RequestError>
read the specified CronJob
Use the returned crate::ResponseBody
<
ReadNamespacedCronJobResponse
>
constructor, or ReadNamespacedCronJobResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CronJob
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CronJob
[src]
pub fn read_namespaced_cron_job_status(
name: &str,
namespace: &str,
optional: ReadNamespacedCronJobStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedCronJobStatusResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: ReadNamespacedCronJobStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedCronJobStatusResponse>), RequestError>
read status of the specified CronJob
Use the returned crate::ResponseBody
<
ReadNamespacedCronJobStatusResponse
>
constructor, or ReadNamespacedCronJobStatusResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CronJob
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CronJob
[src]
pub fn replace_namespaced_cron_job(
name: &str,
namespace: &str,
body: &CronJob,
optional: ReplaceNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedCronJobResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &CronJob,
optional: ReplaceNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedCronJobResponse>), RequestError>
replace the specified CronJob
Use the returned crate::ResponseBody
<
ReplaceNamespacedCronJobResponse
>
constructor, or ReplaceNamespacedCronJobResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CronJob
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CronJob
[src]
pub fn replace_namespaced_cron_job_status(
name: &str,
namespace: &str,
body: &CronJob,
optional: ReplaceNamespacedCronJobStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedCronJobStatusResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &CronJob,
optional: ReplaceNamespacedCronJobStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedCronJobStatusResponse>), RequestError>
replace status of the specified CronJob
Use the returned crate::ResponseBody
<
ReplaceNamespacedCronJobStatusResponse
>
constructor, or ReplaceNamespacedCronJobStatusResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CronJob
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CronJob
[src]
pub fn watch_cron_job_for_all_namespaces(
optional: WatchCronJobForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchCronJobForAllNamespacesResponse>), RequestError>
[src]
optional: WatchCronJobForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchCronJobForAllNamespacesResponse>), RequestError>
list or watch objects of kind CronJob
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchCronJobForAllNamespacesResponse
>
constructor, or WatchCronJobForAllNamespacesResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl CronJob
[src]
pub fn watch_namespaced_cron_job(
namespace: &str,
optional: WatchNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedCronJobResponse>), RequestError>
[src]
namespace: &str,
optional: WatchNamespacedCronJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedCronJobResponse>), RequestError>
list or watch objects of kind CronJob
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchNamespacedCronJobResponse
>
constructor, or WatchNamespacedCronJobResponse
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.
Trait Implementations
impl Resource for CronJob
[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 CronJob
[src]
impl Clone for CronJob
[src]
fn clone(&self) -> CronJob
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<CronJob> for CronJob
[src]
impl Default for CronJob
[src]
impl Debug for CronJob
[src]
impl Serialize for CronJob
[src]
impl<'de> Deserialize<'de> for CronJob
[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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,