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.



1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1694

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.



1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1694

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.



1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1694

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:



1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1694

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