Class: Google::Apis::CloudbuildV2::Repository

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

Overview

A repository associated to a parent connection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Repository

Returns a new instance of Repository.



1796
1797
1798
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1796

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

Instance Attribute Details

#annotationsHash<String,String>

Allows clients to store small amounts of arbitrary data. Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


1761
1762
1763
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1761

def annotations
  @annotations
end

#create_timeString

Output only. Server assigned timestamp for when the connection was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1766
1767
1768
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1766

def create_time
  @create_time
end

#etagString

This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up- to-date value before proceeding. Corresponds to the JSON property etag

Returns:

  • (String)


1773
1774
1775
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1773

def etag
  @etag
end

#nameString

Immutable. Resource name of the repository, in the format projects/*/ locations/*/connections/*/repositories/*. Corresponds to the JSON property name

Returns:

  • (String)


1779
1780
1781
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1779

def name
  @name
end

#remote_uriString

Required. Git Clone HTTPS URI. Corresponds to the JSON property remoteUri

Returns:

  • (String)


1784
1785
1786
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1784

def remote_uri
  @remote_uri
end

#update_timeString

Output only. Server assigned timestamp for when the connection was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1789
1790
1791
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1789

def update_time
  @update_time
end

#webhook_idString

Output only. External ID of the webhook created for the repository. Corresponds to the JSON property webhookId

Returns:

  • (String)


1794
1795
1796
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1794

def webhook_id
  @webhook_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1801
1802
1803
1804
1805
1806
1807
1808
1809
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1801

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @create_time = args[:create_time] if args.key?(:create_time)
  @etag = args[:etag] if args.key?(:etag)
  @name = args[:name] if args.key?(:name)
  @remote_uri = args[:remote_uri] if args.key?(:remote_uri)
  @update_time = args[:update_time] if args.key?(:update_time)
  @webhook_id = args[:webhook_id] if args.key?(:webhook_id)
end