Class: Google::Apis::CloudbuildV1beta1::BitbucketServerRepositoryId

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

Overview

BitbucketServerRepositoryId identifies a specific repository hosted on a Bitbucket Server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BitbucketServerRepositoryId

Returns a new instance of BitbucketServerRepositoryId.



371
372
373
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 371

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

Instance Attribute Details

#project_keyString

Required. Identifier for the project storing the repository. Corresponds to the JSON property projectKey

Returns:

  • (String)


358
359
360
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 358

def project_key
  @project_key
end

#repo_slugString

Required. Identifier for the repository. Corresponds to the JSON property repoSlug

Returns:

  • (String)


363
364
365
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 363

def repo_slug
  @repo_slug
end

#webhook_idFixnum

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

Returns:

  • (Fixnum)


369
370
371
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 369

def webhook_id
  @webhook_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



376
377
378
379
380
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 376

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