[][src]Struct k8s_openapi::api::batch::v2alpha1::CronJob

pub struct CronJob {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<CronJobSpec>,
    pub status: Option<CronJobStatus>,
}

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

impl Metadata for CronJob[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for 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]

Auto Trait Implementations

impl Send for CronJob

impl Sync for CronJob

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]