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.

Returns:



1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1513

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.

Returns:



1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1513

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.



1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1513

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:



1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1513

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