pub struct RepoSource {
pub branch_name: Option<String>,
pub commit_sha: Option<String>,
pub dir: Option<String>,
pub invert_regex: Option<bool>,
pub project_id: Option<String>,
pub repo_name: Option<String>,
pub substitutions: Option<HashMap<String, String>>,
pub tag_name: Option<String>,
}Expand description
Location of the source in a Google Cloud Source Repository.
§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 run projects (request)
Fields§
§branch_name: Option<String>Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
commit_sha: Option<String>Explicit commit SHA to build.
dir: Option<String>Optional. Directory, relative to the source root, in which to run the build. This must be a relative path. If a step’s dir is specified and is an absolute path, this value is ignored for that step’s execution.
invert_regex: Option<bool>Optional. Only trigger a build if the revision regex does NOT match the revision regex.
project_id: Option<String>Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
repo_name: Option<String>Required. Name of the Cloud Source Repository.
substitutions: Option<HashMap<String, String>>Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
tag_name: Option<String>Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
Trait Implementations§
Source§impl Clone for RepoSource
impl Clone for RepoSource
Source§fn clone(&self) -> RepoSource
fn clone(&self) -> RepoSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RepoSource
impl Debug for RepoSource
Source§impl Default for RepoSource
impl Default for RepoSource
Source§fn default() -> RepoSource
fn default() -> RepoSource
Source§impl<'de> Deserialize<'de> for RepoSource
impl<'de> Deserialize<'de> for RepoSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for RepoSource
impl Serialize for RepoSource
impl RequestValue for RepoSource
Auto Trait Implementations§
impl Freeze for RepoSource
impl RefUnwindSafe for RepoSource
impl Send for RepoSource
impl Sync for RepoSource
impl Unpin for RepoSource
impl UnwindSafe for RepoSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more