Reference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::RepoSource.
Location of the source in a Google Cloud Source Repository.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#branch_name
defbranch_name()->::String
Returns
(::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
Note: The following fields are mutually exclusive: branch_name, tag_name, commit_sha. If a field in that set is populated, all other fields in the set will automatically be cleared.
#branch_name=
defbranch_name=(value)->::String
Parameter
value (::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
Note: The following fields are mutually exclusive: branch_name, tag_name, commit_sha. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::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
Note: The following fields are mutually exclusive: branch_name, tag_name, commit_sha. If a field in that set is populated, all other fields in the set will automatically be cleared.
#commit_sha
defcommit_sha()->::String
Returns
(::String) — Explicit commit SHA to build.
Note: The following fields are mutually exclusive: commit_sha, branch_name, tag_name. If a field in that set is populated, all other fields in the set will automatically be cleared.
#commit_sha=
defcommit_sha=(value)->::String
Parameter
value (::String) — Explicit commit SHA to build.
Note: The following fields are mutually exclusive: commit_sha, branch_name, tag_name. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — Explicit commit SHA to build.
Note: The following fields are mutually exclusive: commit_sha, branch_name, tag_name. If a field in that set is populated, all other fields in the set will automatically be cleared.
#dir
defdir()->::String
Returns
(::String) — 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.
eg. helloworld (no leading slash allowed)
#dir=
defdir=(value)->::String
Parameter
value (::String) — 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.
eg. helloworld (no leading slash allowed)
Returns
(::String) — 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.
eg. helloworld (no leading slash allowed)
#invert_regex
definvert_regex()->::Boolean
Returns
(::Boolean) — Only trigger a build if the revision regex does NOT match the revision
regex.
#invert_regex=
definvert_regex=(value)->::Boolean
Parameter
value (::Boolean) — Only trigger a build if the revision regex does NOT match the revision
regex.
Returns
(::Boolean) — Only trigger a build if the revision regex does NOT match the revision
regex.
#project_id
defproject_id()->::String
Returns
(::String) — ID of the project that owns the Cloud Source Repository. If omitted, the
project ID requesting the build is assumed.
#project_id=
defproject_id=(value)->::String
Parameter
value (::String) — ID of the project that owns the Cloud Source Repository. If omitted, the
project ID requesting the build is assumed.
Returns
(::String) — ID of the project that owns the Cloud Source Repository. If omitted, the
project ID requesting the build is assumed.
#repo_name
defrepo_name()->::String
Returns
(::String) — Name of the Cloud Source Repository.
#repo_name=
defrepo_name=(value)->::String
Parameter
value (::String) — Name of the Cloud Source Repository.
Returns
(::String) — Name of the Cloud Source Repository.
#tag_name
deftag_name()->::String
Returns
(::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
Note: The following fields are mutually exclusive: tag_name, branch_name, commit_sha. If a field in that set is populated, all other fields in the set will automatically be cleared.
#tag_name=
deftag_name=(value)->::String
Parameter
value (::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
Note: The following fields are mutually exclusive: tag_name, branch_name, commit_sha. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::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
Note: The following fields are mutually exclusive: tag_name, branch_name, commit_sha. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Functions V2 API - Class Google::Cloud::Functions::V2::RepoSource (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-RepoSource)\n- [1.0.2](/ruby/docs/reference/google-cloud-functions-v2/1.0.2/Google-Cloud-Functions-V2-RepoSource)\n- [0.10.0](/ruby/docs/reference/google-cloud-functions-v2/0.10.0/Google-Cloud-Functions-V2-RepoSource)\n- [0.9.0](/ruby/docs/reference/google-cloud-functions-v2/0.9.0/Google-Cloud-Functions-V2-RepoSource)\n- [0.8.1](/ruby/docs/reference/google-cloud-functions-v2/0.8.1/Google-Cloud-Functions-V2-RepoSource)\n- [0.7.0](/ruby/docs/reference/google-cloud-functions-v2/0.7.0/Google-Cloud-Functions-V2-RepoSource)\n- [0.6.2](/ruby/docs/reference/google-cloud-functions-v2/0.6.2/Google-Cloud-Functions-V2-RepoSource)\n- [0.5.0](/ruby/docs/reference/google-cloud-functions-v2/0.5.0/Google-Cloud-Functions-V2-RepoSource)\n- [0.4.1](/ruby/docs/reference/google-cloud-functions-v2/0.4.1/Google-Cloud-Functions-V2-RepoSource)\n- [0.3.0](/ruby/docs/reference/google-cloud-functions-v2/0.3.0/Google-Cloud-Functions-V2-RepoSource)\n- [0.2.0](/ruby/docs/reference/google-cloud-functions-v2/0.2.0/Google-Cloud-Functions-V2-RepoSource)\n- [0.1.0](/ruby/docs/reference/google-cloud-functions-v2/0.1.0/Google-Cloud-Functions-V2-RepoSource) \nReference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::RepoSource.\n\nLocation of the source in a Google Cloud Source Repository. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #branch_name\n\n def branch_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Regex matching branches to build.\n\n The syntax of the regular expressions accepted is the syntax accepted by\n RE2 and described at https://github.com/google/re2/wiki/Syntax\n\n Note: The following fields are mutually exclusive: `branch_name`, `tag_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #branch_name=\n\n def branch_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Regex matching branches to build.\n\n\n The syntax of the regular expressions accepted is the syntax accepted by\n RE2 and described at https://github.com/google/re2/wiki/Syntax\n\nNote: The following fields are mutually exclusive: `branch_name`, `tag_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- Regex matching branches to build.\n\n The syntax of the regular expressions accepted is the syntax accepted by\n RE2 and described at https://github.com/google/re2/wiki/Syntax\n\n Note: The following fields are mutually exclusive: `branch_name`, `tag_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #commit_sha\n\n def commit_sha() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Explicit commit SHA to build.\n\n Note: The following fields are mutually exclusive: `commit_sha`, `branch_name`, `tag_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #commit_sha=\n\n def commit_sha=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Explicit commit SHA to build.\n\n\nNote: The following fields are mutually exclusive: `commit_sha`, `branch_name`, `tag_name`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- Explicit commit SHA to build.\n\n Note: The following fields are mutually exclusive: `commit_sha`, `branch_name`, `tag_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #dir\n\n def dir() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Directory, relative to the source root, in which to run the build.\n\n This must be a relative path. If a step's `dir` is specified and is an\n absolute path, this value is ignored for that step's execution.\n eg. helloworld (no leading slash allowed)\n\n### #dir=\n\n def dir=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Directory, relative to the source root, in which to run the build.\n\n\n This must be a relative path. If a step's `dir` is specified and is an\n absolute path, this value is ignored for that step's execution.\neg. helloworld (no leading slash allowed) \n**Returns**\n\n- (::String) --- Directory, relative to the source root, in which to run the build.\n\n This must be a relative path. If a step's `dir` is specified and is an\n absolute path, this value is ignored for that step's execution.\n eg. helloworld (no leading slash allowed)\n\n### #invert_regex\n\n def invert_regex() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Only trigger a build if the revision regex does NOT match the revision regex.\n\n### #invert_regex=\n\n def invert_regex=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Only trigger a build if the revision regex does NOT match the revision regex. \n**Returns**\n\n- (::Boolean) --- Only trigger a build if the revision regex does NOT match the revision regex.\n\n### #project_id\n\n def project_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.\n\n### #project_id=\n\n def project_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed. \n**Returns**\n\n- (::String) --- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.\n\n### #repo_name\n\n def repo_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Name of the Cloud Source Repository.\n\n### #repo_name=\n\n def repo_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Name of the Cloud Source Repository. \n**Returns**\n\n- (::String) --- Name of the Cloud Source Repository.\n\n### #tag_name\n\n def tag_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Regex matching tags to build.\n\n The syntax of the regular expressions accepted is the syntax accepted by\n RE2 and described at https://github.com/google/re2/wiki/Syntax\n\n Note: The following fields are mutually exclusive: `tag_name`, `branch_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #tag_name=\n\n def tag_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Regex matching tags to build.\n\n\n The syntax of the regular expressions accepted is the syntax accepted by\n RE2 and described at https://github.com/google/re2/wiki/Syntax\n\nNote: The following fields are mutually exclusive: `tag_name`, `branch_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- Regex matching tags to build.\n\n The syntax of the regular expressions accepted is the syntax accepted by\n RE2 and described at https://github.com/google/re2/wiki/Syntax\n\n Note: The following fields are mutually exclusive: `tag_name`, `branch_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]