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.



2593
2594
2595
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2593

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)


2585
2586
2587
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2585

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)


2591
2592
2593
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2591

def webhook_id
  @webhook_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2598
2599
2600
2601
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2598

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