Class: Google::Apis::CloudbuildV1::GitLabRepositoryId

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

GitLabRepositoryId identifies a specific repository hosted on GitLab.com or GitLabEnterprise

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitLabRepositoryId

Returns a new instance of GitLabRepositoryId.



2425
2426
2427
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2425

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

Instance Attribute Details

#idString

Required. Identifier for the repository. example: "namespace/project-slug", namespace is usually the username or group ID Corresponds to the JSON property id

Returns:

  • (String)


2417
2418
2419
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2417

def id
  @id
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)


2423
2424
2425
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2423

def webhook_id
  @webhook_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2430
2431
2432
2433
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2430

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @webhook_id = args[:webhook_id] if args.key?(:webhook_id)
end