Class: Google::Apis::CloudbuildV1alpha2::BitbucketServerRepositoryId
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1alpha2::BitbucketServerRepositoryId
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1alpha2/classes.rb,
lib/google/apis/cloudbuild_v1alpha2/representations.rb,
lib/google/apis/cloudbuild_v1alpha2/representations.rb
Overview
BitbucketServerRepositoryId identifies a specific repository hosted on a Bitbucket Server.
Instance Attribute Summary collapse
-
#project_key ⇒ String
Required.
-
#repo_slug ⇒ String
Required.
-
#webhook_id ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BitbucketServerRepositoryId
constructor
A new instance of BitbucketServerRepositoryId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BitbucketServerRepositoryId
Returns a new instance of BitbucketServerRepositoryId.
301 302 303 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 301 def initialize(**args) update!(**args) end |
Instance Attribute Details
#project_key ⇒ String
Required. Identifier for the project storing the repository.
Corresponds to the JSON property projectKey
288 289 290 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 288 def project_key @project_key end |
#repo_slug ⇒ String
Required. Identifier for the repository.
Corresponds to the JSON property repoSlug
293 294 295 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 293 def repo_slug @repo_slug end |
#webhook_id ⇒ Fixnum
Output only. The ID of the webhook that was created for receiving events from
this repo. We only create and manage a single webhook for each repo.
Corresponds to the JSON property webhookId
299 300 301 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 299 def webhook_id @webhook_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
306 307 308 309 310 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 306 def update!(**args) @project_key = args[:project_key] if args.key?(:project_key) @repo_slug = args[:repo_slug] if args.key?(:repo_slug) @webhook_id = args[:webhook_id] if args.key?(:webhook_id) end |