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}
.
1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1506 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.
1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1506 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.
1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1506 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.
1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1506 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.
1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1506 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.
1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1506 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 |