Class: Google::Cloud::Build::V1::GitFileSource
- Inherits:
-
Object
- Object
- Google::Cloud::Build::V1::GitFileSource
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb
Overview
GitFileSource describes a file within a (possibly remote) code repository.
Defined Under Namespace
Modules: RepoType
Instance Attribute Summary collapse
-
#github_enterprise_config ⇒ ::String
The full resource name of the github enterprise config.
-
#path ⇒ ::String
The path of the file, with the repo root as the root of the path.
-
#repo_type ⇒ ::Google::Cloud::Build::V1::GitFileSource::RepoType
See RepoType above.
-
#repository ⇒ ::String
The fully qualified resource name of the Repos API repository.
-
#revision ⇒ ::String
The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional).
-
#uri ⇒ ::String
The URI of the repo.
Instance Attribute Details
#github_enterprise_config ⇒ ::String
Returns The full resource name of the github enterprise config.
Format:
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}
.
projects/{project}/githubEnterpriseConfigs/{id}
.
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1338 class GitFileSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of the repo, since it may not be explicit from the `repo` field # (e.g from a URL). module RepoType # The default, unknown repo type. Don't use it, instead use one of # the other repo types. UNKNOWN = 0 # A Google Cloud Source Repositories-hosted repo. CLOUD_SOURCE_REPOSITORIES = 1 # A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub # Enterprise). GITHUB = 2 # A Bitbucket Server-hosted repo. BITBUCKET_SERVER = 3 # A GitLab-hosted repo. GITLAB = 4 end end |
#path ⇒ ::String
Returns The path of the file, with the repo root as the root of the path.
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1338 class GitFileSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of the repo, since it may not be explicit from the `repo` field # (e.g from a URL). module RepoType # The default, unknown repo type. Don't use it, instead use one of # the other repo types. UNKNOWN = 0 # A Google Cloud Source Repositories-hosted repo. CLOUD_SOURCE_REPOSITORIES = 1 # A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub # Enterprise). GITHUB = 2 # A Bitbucket Server-hosted repo. BITBUCKET_SERVER = 3 # A GitLab-hosted repo. GITLAB = 4 end end |
#repo_type ⇒ ::Google::Cloud::Build::V1::GitFileSource::RepoType
Returns See RepoType above.
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1338 class GitFileSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of the repo, since it may not be explicit from the `repo` field # (e.g from a URL). module RepoType # The default, unknown repo type. Don't use it, instead use one of # the other repo types. UNKNOWN = 0 # A Google Cloud Source Repositories-hosted repo. CLOUD_SOURCE_REPOSITORIES = 1 # A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub # Enterprise). GITHUB = 2 # A Bitbucket Server-hosted repo. BITBUCKET_SERVER = 3 # A GitLab-hosted repo. GITLAB = 4 end end |
#repository ⇒ ::String
Returns 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.
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1338 class GitFileSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of the repo, since it may not be explicit from the `repo` field # (e.g from a URL). module RepoType # The default, unknown repo type. Don't use it, instead use one of # the other repo types. UNKNOWN = 0 # A Google Cloud Source Repositories-hosted repo. CLOUD_SOURCE_REPOSITORIES = 1 # A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub # Enterprise). GITHUB = 2 # A Bitbucket Server-hosted repo. BITBUCKET_SERVER = 3 # A GitLab-hosted repo. GITLAB = 4 end end |
#revision ⇒ ::String
Returns 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.
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1338 class GitFileSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of the repo, since it may not be explicit from the `repo` field # (e.g from a URL). module RepoType # The default, unknown repo type. Don't use it, instead use one of # the other repo types. UNKNOWN = 0 # A Google Cloud Source Repositories-hosted repo. CLOUD_SOURCE_REPOSITORIES = 1 # A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub # Enterprise). GITHUB = 2 # A Bitbucket Server-hosted repo. BITBUCKET_SERVER = 3 # A GitLab-hosted repo. GITLAB = 4 end end |
#uri ⇒ ::String
Returns 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.
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1338 class GitFileSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of the repo, since it may not be explicit from the `repo` field # (e.g from a URL). module RepoType # The default, unknown repo type. Don't use it, instead use one of # the other repo types. UNKNOWN = 0 # A Google Cloud Source Repositories-hosted repo. CLOUD_SOURCE_REPOSITORIES = 1 # A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub # Enterprise). GITHUB = 2 # A Bitbucket Server-hosted repo. BITBUCKET_SERVER = 3 # A GitLab-hosted repo. GITLAB = 4 end end |