Class: Google::Cloud::Build::V1::RepositoryEventConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb

Overview

The configuration of a trigger that creates a build whenever an event from Repo API is received.

Defined Under Namespace

Modules: RepositoryType

Instance Attribute Summary collapse

Instance Attribute Details

#pull_request::Google::Cloud::Build::V1::PullRequestFilter

Returns Filter to match changes in pull requests.

Note: The following fields are mutually exclusive: pull_request, push. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Build::V1::PullRequestFilter)

    Filter to match changes in pull requests.

    Note: The following fields are mutually exclusive: pull_request, push. If a field in that set is populated, all other fields in the set will automatically be cleared.



1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1778

class RepositoryEventConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # All possible SCM repo types from Repo API.
  module RepositoryType
    # If unspecified, RepositoryType defaults to GITHUB.
    REPOSITORY_TYPE_UNSPECIFIED = 0

    # The SCM repo is GITHUB.
    GITHUB = 1

    # The SCM repo is GITHUB Enterprise.
    GITHUB_ENTERPRISE = 2

    # The SCM repo is GITLAB Enterprise.
    GITLAB_ENTERPRISE = 3
  end
end

#push::Google::Cloud::Build::V1::PushFilter

Returns Filter to match changes in refs like branches, tags.

Note: The following fields are mutually exclusive: push, pull_request. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Build::V1::PushFilter)

    Filter to match changes in refs like branches, tags.

    Note: The following fields are mutually exclusive: push, pull_request. If a field in that set is populated, all other fields in the set will automatically be cleared.



1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1778

class RepositoryEventConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # All possible SCM repo types from Repo API.
  module RepositoryType
    # If unspecified, RepositoryType defaults to GITHUB.
    REPOSITORY_TYPE_UNSPECIFIED = 0

    # The SCM repo is GITHUB.
    GITHUB = 1

    # The SCM repo is GITHUB Enterprise.
    GITHUB_ENTERPRISE = 2

    # The SCM repo is GITLAB Enterprise.
    GITLAB_ENTERPRISE = 3
  end
end

#repository::String

Returns The resource name of the Repo API resource.

Returns:

  • (::String)

    The resource name of the Repo API resource.



1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1778

class RepositoryEventConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # All possible SCM repo types from Repo API.
  module RepositoryType
    # If unspecified, RepositoryType defaults to GITHUB.
    REPOSITORY_TYPE_UNSPECIFIED = 0

    # The SCM repo is GITHUB.
    GITHUB = 1

    # The SCM repo is GITHUB Enterprise.
    GITHUB_ENTERPRISE = 2

    # The SCM repo is GITLAB Enterprise.
    GITLAB_ENTERPRISE = 3
  end
end

#repository_type::Google::Cloud::Build::V1::RepositoryEventConfig::RepositoryType (readonly)

Returns Output only. The type of the SCM vendor the repository points to.

Returns:



1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1778

class RepositoryEventConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # All possible SCM repo types from Repo API.
  module RepositoryType
    # If unspecified, RepositoryType defaults to GITHUB.
    REPOSITORY_TYPE_UNSPECIFIED = 0

    # The SCM repo is GITHUB.
    GITHUB = 1

    # The SCM repo is GITHUB Enterprise.
    GITHUB_ENTERPRISE = 2

    # The SCM repo is GITLAB Enterprise.
    GITLAB_ENTERPRISE = 3
  end
end