[][src]Struct k8s_openapi::api::batch::v1::Job

pub struct Job {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<JobSpec>,
    pub status: Option<JobStatus>,
}

Job represents the configuration of a single job.

Fields

metadata: Option<ObjectMeta>

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

spec: Option<JobSpec>

Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

status: Option<JobStatus>

Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Methods

impl Job[src]

pub fn create_namespaced_job(
    namespace: &str,
    body: &Job,
    optional: CreateNamespacedJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedJobResponse>), RequestError>
[src]

create a Job

Use the returned crate::ResponseBody<CreateNamespacedJobResponse> constructor, or CreateNamespacedJobResponse 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 Job[src]

pub fn delete_collection_namespaced_job(
    namespace: &str,
    optional: DeleteCollectionNamespacedJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedJobResponse>), RequestError>
[src]

delete collection of Job

Use the returned crate::ResponseBody<DeleteCollectionNamespacedJobResponse> constructor, or DeleteCollectionNamespacedJobResponse 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 Job[src]

pub fn delete_namespaced_job(
    name: &str,
    namespace: &str,
    optional: DeleteNamespacedJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedJobResponse>), RequestError>
[src]

delete a Job

Use the returned crate::ResponseBody<DeleteNamespacedJobResponse> constructor, or DeleteNamespacedJobResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Job

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Job[src]

pub fn list_job_for_all_namespaces(
    optional: ListJobForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListJobForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind Job

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListJobForAllNamespacesResponse> constructor, or ListJobForAllNamespacesResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Job[src]

pub fn list_namespaced_job(
    namespace: &str,
    optional: ListNamespacedJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedJobResponse>), RequestError>
[src]

list or watch objects of kind Job

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListNamespacedJobResponse> constructor, or ListNamespacedJobResponse 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 Job[src]

pub fn patch_namespaced_job(
    name: &str,
    namespace: &str,
    body: &Patch,
    optional: PatchNamespacedJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedJobResponse>), RequestError>
[src]

partially update the specified Job

Use the returned crate::ResponseBody<PatchNamespacedJobResponse> constructor, or PatchNamespacedJobResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Job

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Job[src]

pub fn patch_namespaced_job_status(
    name: &str,
    namespace: &str,
    body: &Patch,
    optional: PatchNamespacedJobStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedJobStatusResponse>), RequestError>
[src]

partially update status of the specified Job

Use the returned crate::ResponseBody<PatchNamespacedJobStatusResponse> constructor, or PatchNamespacedJobStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Job

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Job[src]

pub fn read_namespaced_job(
    name: &str,
    namespace: &str,
    optional: ReadNamespacedJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedJobResponse>), RequestError>
[src]

read the specified Job

Use the returned crate::ResponseBody<ReadNamespacedJobResponse> constructor, or ReadNamespacedJobResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Job

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Job[src]

pub fn read_namespaced_job_status(
    name: &str,
    namespace: &str,
    optional: ReadNamespacedJobStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedJobStatusResponse>), RequestError>
[src]

read status of the specified Job

Use the returned crate::ResponseBody<ReadNamespacedJobStatusResponse> constructor, or ReadNamespacedJobStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Job

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Job[src]

pub fn replace_namespaced_job(
    name: &str,
    namespace: &str,
    body: &Job,
    optional: ReplaceNamespacedJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedJobResponse>), RequestError>
[src]

replace the specified Job

Use the returned crate::ResponseBody<ReplaceNamespacedJobResponse> constructor, or ReplaceNamespacedJobResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Job

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Job[src]

pub fn replace_namespaced_job_status(
    name: &str,
    namespace: &str,
    body: &Job,
    optional: ReplaceNamespacedJobStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedJobStatusResponse>), RequestError>
[src]

replace status of the specified Job

Use the returned crate::ResponseBody<ReplaceNamespacedJobStatusResponse> constructor, or ReplaceNamespacedJobStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Job

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Job[src]

pub fn watch_job_for_all_namespaces(
    optional: WatchJobForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchJobForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind Job

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchJobForAllNamespacesResponse> constructor, or WatchJobForAllNamespacesResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Job[src]

pub fn watch_namespaced_job(
    namespace: &str,
    optional: WatchNamespacedJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedJobResponse>), RequestError>
[src]

list or watch objects of kind Job

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchNamespacedJobResponse> constructor, or WatchNamespacedJobResponse 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 Job[src]

impl Metadata for Job[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for Job[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Job> for Job[src]

impl Default for Job[src]

impl Debug for Job[src]

impl Serialize for Job[src]

impl<'de> Deserialize<'de> for Job[src]

Auto Trait Implementations

impl Send for Job

impl Sync for Job

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]