Struct openshift_openapi::api::build::v1::BuildRequest[][src]

pub struct BuildRequest {
    pub binary: Option<BinaryBuildSource>,
    pub docker_strategy_options: Option<DockerStrategyOptions>,
    pub env: Option<Vec<EnvVar>>,
    pub from: Option<ObjectReference>,
    pub last_version: Option<i64>,
    pub metadata: ObjectMeta,
    pub revision: Option<SourceRevision>,
    pub source_strategy_options: Option<SourceStrategyOptions>,
    pub triggered_by: Vec<BuildTriggerCause>,
    pub triggered_by_image: Option<ObjectReference>,
}

BuildRequest is the resource used to pass parameters to build generator

Fields

binary: Option<BinaryBuildSource>

binary indicates a request to build from a binary provided to the builder

docker_strategy_options: Option<DockerStrategyOptions>

DockerStrategyOptions contains additional docker-strategy specific options for the build

env: Option<Vec<EnvVar>>

env contains additional environment variables you want to pass into a builder container.

from: Option<ObjectReference>

from is the reference to the ImageStreamTag that triggered the build.

last_version: Option<i64>

lastVersion (optional) is the LastVersion of the BuildConfig that was used to generate the build. If the BuildConfig in the generator doesn't match, a build will not be generated.

metadata: ObjectMeta

metadata for BuildRequest.

revision: Option<SourceRevision>

revision is the information from the source for a specific repo snapshot.

source_strategy_options: Option<SourceStrategyOptions>

SourceStrategyOptions contains additional source-strategy specific options for the build

triggered_by: Vec<BuildTriggerCause>

triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers.

triggered_by_image: Option<ObjectReference>

triggeredByImage is the Image that triggered this build.

Implementations

impl BuildRequest[src]

pub fn create_namespaced_build_clone(
    name: &str,
    namespace: &str,
    body: &BuildRequest,
    optional: CreateOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
[src]

create clone of a Build

Use the returned k8s_openapi::ResponseBody<k8s_openapi::CreateResponse<Self>> constructor, or k8s_openapi::CreateResponse<Self> directly, to parse the HTTP response.

Arguments

  • name

    name of the BuildRequest

  • namespace

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

  • body

  • optional

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

impl BuildRequest[src]

pub fn create_namespaced_build_config_instantiate(
    name: &str,
    namespace: &str,
    body: &BuildRequest,
    optional: CreateOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedBuildConfigInstantiateResponse>), RequestError>
[src]

create instantiate of a BuildConfig

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

Arguments

  • name

    name of the BuildRequest

  • namespace

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

  • body

  • optional

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

Trait Implementations

impl Clone for BuildRequest[src]

impl Debug for BuildRequest[src]

impl Default for BuildRequest[src]

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

impl Metadata for BuildRequest[src]

type Ty = ObjectMeta

The type of the metadata object.

impl PartialEq<BuildRequest> for BuildRequest[src]

impl Resource for BuildRequest[src]

impl Serialize for BuildRequest[src]

impl StructuralPartialEq for BuildRequest[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.