Class: Google::Apis::CloudbuildV1::CreateGitLabConnectedRepositoryRequest

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

Request to connect a repository from a connected GitLab host.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateGitLabConnectedRepositoryRequest

Returns a new instance of CreateGitLabConnectedRepositoryRequest.



1746
1747
1748
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1746

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

Instance Attribute Details

#gitlab_connected_repositoryGoogle::Apis::CloudbuildV1::GitLabConnectedRepository

GitLabConnectedRepository represents a GitLab connected repository request response. Corresponds to the JSON property gitlabConnectedRepository



1738
1739
1740
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1738

def gitlab_connected_repository
  @gitlab_connected_repository
end

#parentString

Required. The name of the GitLabConfig that adds connected repository. Format: projects/project/locations/location/gitLabConfigs/config` Corresponds to the JSON propertyparent`

Returns:

  • (String)


1744
1745
1746
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1744

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1751
1752
1753
1754
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1751

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