Class: Google::Apis::CloudbuildV1::GitSourceRepository

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

A repository for a git source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitSourceRepository

Returns a new instance of GitSourceRepository.



2876
2877
2878
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2876

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

Instance Attribute Details

#developer_connectString

The Developer Connect Git repository link formatted as projects/*/locations/*/ connections/*/gitRepositoryLink/* Corresponds to the JSON property developerConnect

Returns:

  • (String)


2869
2870
2871
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2869

def developer_connect
  @developer_connect
end

#urlString

Location of the Git repository. Corresponds to the JSON property url

Returns:

  • (String)


2874
2875
2876
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2874

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2881
2882
2883
2884
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2881

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