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.



2560
2561
2562
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2560

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)


2552
2553
2554
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2552

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)


2558
2559
2560
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2558

def webhook_id
  @webhook_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2565
2566
2567
2568
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2565

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