pub struct GitFileSource {
pub bitbucket_server_config: Option<String>,
pub github_enterprise_config: Option<String>,
pub path: Option<String>,
pub repo_type: Option<String>,
pub repository: Option<String>,
pub revision: Option<String>,
pub uri: Option<String>,
}Expand description
GitFileSource describes a file within a (possibly remote) code repository.
This type is not used in any activity, and only used as part of another schema.
Fields§
§bitbucket_server_config: Option<String>The full resource name of the bitbucket server config. Format: projects/{project}/locations/{location}/bitbucketServerConfigs/{id}.
github_enterprise_config: Option<String>The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.
path: Option<String>The path of the file, with the repo root as the root of the path.
repo_type: Option<String>See RepoType above.
repository: Option<String>The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
revision: Option<String>The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
uri: Option<String>The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
Trait Implementations§
Source§impl Clone for GitFileSource
impl Clone for GitFileSource
Source§fn clone(&self) -> GitFileSource
fn clone(&self) -> GitFileSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more