[][src]Struct gcp_client::google::cloud::osconfig::agentendpoint::v1beta::SoftwareRecipe

pub struct SoftwareRecipe {
    pub name: String,
    pub version: String,
    pub artifacts: Vec<Artifact>,
    pub install_steps: Vec<Step>,
    pub update_steps: Vec<Step>,
    pub desired_state: i32,
}

A software recipe is a set of instructions for installing and configuring a piece of software. It consists of a set of artifacts that are downloaded, and a set of steps that install, configure, and/or update the software.

Recipes support installing and updating software from artifacts in the following formats: Zip archive, Tar archive, Windows MSI, Debian package, and RPM package.

Additionally, recipes support executing a script (either defined in a file or directly in this api) in bash, sh, cmd, and powershell.

Updating a software recipe

If a recipe is assigned to an instance and there is a recipe with the same name but a lower version already installed and the assigned state of the recipe is INSTALLED_KEEP_UPDATED, then the recipe is updated to the new version.

Script Working Directories

Each script or execution step is run in its own temporary directory which is deleted after completing the step.

Fields

name: String

Unique identifier for the recipe. Only one recipe with a given name is installed on an instance.

Names are also used to identify resources which helps to determine whether guest policies have conflicts. This means that requests to create multiple recipes with the same name and version are rejected since they could potentially have conflicting assignments.

version: String

The version of this software recipe. Version can be up to 4 period separated numbers (e.g. 12.34.56.78).

artifacts: Vec<Artifact>

Resources available to be used in the steps in the recipe.

install_steps: Vec<Step>

Actions to be taken for installing this recipe. On failure it stops executing steps and does not attempt another installation. Any steps taken (including partially completed steps) are not rolled back. Install steps must be specified and are used on first installation.

update_steps: Vec<Step>

Actions to be taken for updating this recipe. On failure it stops executing steps and does not attempt another update for this recipe. Any steps taken (including partially completed steps) are not rolled back. Upgrade steps are not mandatory and are only used when upgrading.

desired_state: i32

Default is INSTALLED. The desired state the agent should maintain for this recipe.

INSTALLED: The software recipe is installed on the instance but won't be updated to new versions. UPDATED: The software recipe is installed on the instance. The recipe is updated to a higher version, if a higher version of the recipe is assigned to this instance. REMOVE: Remove is unsupported for software recipes and attempts to create or update a recipe to the REMOVE state is rejected.

Implementations

impl SoftwareRecipe[src]

pub fn desired_state(&self) -> DesiredState[src]

Returns the enum value of desired_state, or the default if the field is set to an invalid enum value.

pub fn set_desired_state(&mut self, value: DesiredState)[src]

Sets desired_state to the provided enum value.

Trait Implementations

impl Clone for SoftwareRecipe[src]

impl Debug for SoftwareRecipe[src]

impl Default for SoftwareRecipe[src]

impl Message for SoftwareRecipe[src]

impl PartialEq<SoftwareRecipe> for SoftwareRecipe[src]

impl StructuralPartialEq for SoftwareRecipe[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> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]