Cloud Build V1 API - Class Google::Cloud::Build::V1::RepositoryEventConfig (v1.4.0)

Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::RepositoryEventConfig.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#pull_request

def pull_request() -> ::Google::Cloud::Build::V1::PullRequestFilter
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.

#pull_request=

def pull_request=(value) -> ::Google::Cloud::Build::V1::PullRequestFilter
Parameter
  • value (::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.

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.

#push

def push() -> ::Google::Cloud::Build::V1::PushFilter
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.

#push=

def push=(value) -> ::Google::Cloud::Build::V1::PushFilter
Parameter
  • value (::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.

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.

#repository

def repository() -> ::String
Returns
  • (::String) — The resource name of the Repo API resource.

#repository=

def repository=(value) -> ::String
Parameter
  • value (::String) — The resource name of the Repo API resource.
Returns
  • (::String) — The resource name of the Repo API resource.

#repository_type

def repository_type() -> ::Google::Cloud::Build::V1::RepositoryEventConfig::RepositoryType
Returns