[−][src]Struct google_cloudbuild1::BuildTrigger
Configuration for an automated build in response to source repository changes.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- triggers create projects (request|response)
- triggers get projects (response)
- triggers patch projects (request|response)
Fields
github: Option<GitHubEventsConfig>
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.
Mutually exclusive with trigger_template
.
description: Option<String>
Human-readable description of this trigger.
Tags for annotation of a BuildTrigger
id: Option<String>
Output only. Unique identifier of the trigger.
ignored_files: Option<Vec<String>>
ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".
If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build.
If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
filename: Option<String>
Path, from the source root, to a file whose contents is used for the template.
create_time: Option<String>
Output only. Time when the trigger was created.
disabled: Option<bool>
If true, the trigger will never result in a build.
build: Option<Build>
Contents of the build template.
included_files: Option<Vec<String>>
If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build.
If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
substitutions: Option<HashMap<String, String>>
Substitutions for Build resource. The keys must match the following
regular expression: ^_[A-Z0-9_]+$
.The keys cannot conflict with the
keys in bindings.
trigger_template: Option<RepoSource>
Template describing the types of source changes to trigger a build.
Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build.
Mutually exclusive with github
.
name: Option<String>
User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements:
- They must contain only alphanumeric characters and dashes.
- They can be 1-64 characters long.
- They must begin and end with an alphanumeric character.
Trait Implementations
impl Clone for BuildTrigger
[src]
fn clone(&self) -> BuildTrigger
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BuildTrigger
[src]
impl Default for BuildTrigger
[src]
fn default() -> BuildTrigger
[src]
impl<'de> Deserialize<'de> for BuildTrigger
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl RequestValue for BuildTrigger
[src]
impl ResponseResult for BuildTrigger
[src]
impl Serialize for BuildTrigger
[src]
Auto Trait Implementations
impl RefUnwindSafe for BuildTrigger
impl Send for BuildTrigger
impl Sync for BuildTrigger
impl Unpin for BuildTrigger
impl UnwindSafe for BuildTrigger
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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> Typeable for T where
T: Any,
T: Any,