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.



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

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)


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

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)


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

def webhook_id
  @webhook_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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