CloudbuildTriggerGitFileSource class

git_file_source block. Fetches the build config (cloudbuild.yaml or similar) from an arbitrary repo and ref. Used by Pub/Sub, Webhook, Manual, and v2 triggers as a replacement for filename (which is limited to the SCM event source's repo).

Annotations
  • @immutable

Constructors

CloudbuildTriggerGitFileSource({required TfArg<String> path, required TfArg<CloudBuildTriggerRepoType> repoType, TfArg<String>? uri, TfArg<String>? repository, TfArg<String>? revision, TfArg<String>? githubEnterpriseConfig, TfArg<String>? bitbucketServerConfig})
const

Properties

bitbucketServerConfig → TfArg<String>?
Bitbucket Server config resource name.
final
githubEnterpriseConfig → TfArg<String>?
GitHub Enterprise config resource name.
final
hashCode int
The hash code for this object.
no setterinherited
path → TfArg<String>
Path of the build-config file relative to the repo root.
final
repository → TfArg<String>?
Repo API resource name (v2 form).
final
repoType → TfArg<CloudBuildTriggerRepoType>
Repo type. Pick CloudBuildTriggerRepoType.unknown when the type cannot be inferred from uri.
final
revision → TfArg<String>?
Ref to fetch the file from. Same syntax as gitrevisions(5). Defaults to the triggering ref.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri → TfArg<String>?
Repo URI. Mutually exclusive with repository; supply at least one.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toArgMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited