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}.
1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1590 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.
1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1590 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.
1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1590 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.
1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1590 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.
1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1590 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.
1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1590 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 |