[−][src]Struct k8s_openapi::api::batch::v1::Job
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]
namespace: &str,
body: &Job,
optional: CreateNamespacedJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedJobResponse>), RequestError>
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,
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedJobResponse>), RequestError>
[src]
namespace: &str,
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedJobResponse>), RequestError>
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
-
delete_optional
Delete options. Use
Default::default()
to not pass any. -
list_optional
List options. Use
Default::default()
to not pass any.
impl Job
[src]
pub fn delete_namespaced_job(
name: &str,
namespace: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedJobResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedJobResponse>), RequestError>
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: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListJobForAllNamespacesResponse>), RequestError>
[src]
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListJobForAllNamespacesResponse>), RequestError>
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: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedJobResponse>), RequestError>
[src]
namespace: &str,
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedJobResponse>), RequestError>
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: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedJobResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedJobResponse>), RequestError>
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: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedJobStatusResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedJobStatusResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: ReadNamespacedJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedJobResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: ReadNamespacedJobStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedJobStatusResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &Job,
optional: ReplaceNamespacedJobOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedJobResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &Job,
optional: ReplaceNamespacedJobStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedJobStatusResponse>), RequestError>
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: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchJobForAllNamespacesResponse>), RequestError>
[src]
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchJobForAllNamespacesResponse>), RequestError>
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: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedJobResponse>), RequestError>
[src]
namespace: &str,
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedJobResponse>), RequestError>
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]
fn api_version() -> &'static str
[src]
fn group() -> &'static str
[src]
fn kind() -> &'static str
[src]
fn version() -> &'static str
[src]
impl Metadata for Job
[src]
impl Default for Job
[src]
impl Clone for Job
[src]
impl PartialEq<Job> for Job
[src]
impl Debug for Job
[src]
impl Serialize for Job
[src]
impl<'de> Deserialize<'de> for Job
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for Job
impl Sync for Job
impl Send for Job
impl UnwindSafe for Job
impl RefUnwindSafe for Job
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>,