Class: Google::Apis::CloudbuildV1alpha2::GitLabConnectedRepository

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1alpha2/classes.rb,
lib/google/apis/cloudbuild_v1alpha2/representations.rb,
lib/google/apis/cloudbuild_v1alpha2/representations.rb

Overview

GitLabConnectedRepository represents a GitLab connected repository request response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitLabConnectedRepository

Returns a new instance of GitLabConnectedRepository.



1314
1315
1316
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1314

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

Instance Attribute Details

#parentString

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

Returns:

  • (String)


1296
1297
1298
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1296

def parent
  @parent
end

#repoGoogle::Apis::CloudbuildV1alpha2::GitLabRepositoryId

GitLabRepositoryId identifies a specific repository hosted on GitLab.com or GitLabEnterprise Corresponds to the JSON property repo



1302
1303
1304
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1302

def repo
  @repo
end

#statusGoogle::Apis::CloudbuildV1alpha2::Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property status



1312
1313
1314
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1312

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1319
1320
1321
1322
1323
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1319

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