Class: Google::Apis::CloudbuildV1::BitbucketServerTriggerConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb

Overview

BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BitbucketServerTriggerConfig

Returns a new instance of BitbucketServerTriggerConfig.



670
671
672
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 670

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bitbucket_server_configGoogle::Apis::CloudbuildV1::BitbucketServerConfig

BitbucketServerConfig represents the configuration for a Bitbucket Server. Corresponds to the JSON property bitbucketServerConfig



638
639
640
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 638

def bitbucket_server_config
  @bitbucket_server_config
end

#bitbucket_server_config_resourceString

Required. The Bitbucket server config resource that this trigger config maps to. Corresponds to the JSON property bitbucketServerConfigResource

Returns:

  • (String)


644
645
646
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 644

def bitbucket_server_config_resource
  @bitbucket_server_config_resource
end

#project_keyString

Required. Key of the project that the repo is in. For example: The key for https://mybitbucket.server/projects/TEST/repos/test-repo is "TEST". Corresponds to the JSON property projectKey

Returns:

  • (String)


650
651
652
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 650

def project_key
  @project_key
end

#pull_requestGoogle::Apis::CloudbuildV1::PullRequestFilter

PullRequestFilter contains filter properties for matching GitHub Pull Requests. Corresponds to the JSON property pullRequest



655
656
657
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 655

def pull_request
  @pull_request
end

#pushGoogle::Apis::CloudbuildV1::PushFilter

Push contains filter properties for matching GitHub git pushes. Corresponds to the JSON property push



660
661
662
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 660

def push
  @push
end

#repo_slugString

Required. Slug of the repository. A repository slug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL. For example, if the repository name is 'test repo', in the URL it would become 'test-repo' as in https://mybitbucket.server/projects/TEST/repos/test-repo. Corresponds to the JSON property repoSlug

Returns:

  • (String)


668
669
670
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 668

def repo_slug
  @repo_slug
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



675
676
677
678
679
680
681
682
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 675

def update!(**args)
  @bitbucket_server_config = args[:bitbucket_server_config] if args.key?(:bitbucket_server_config)
  @bitbucket_server_config_resource = args[:bitbucket_server_config_resource] if args.key?(:bitbucket_server_config_resource)
  @project_key = args[:project_key] if args.key?(:project_key)
  @pull_request = args[:pull_request] if args.key?(:pull_request)
  @push = args[:push] if args.key?(:push)
  @repo_slug = args[:repo_slug] if args.key?(:repo_slug)
end