Class: Google::Apis::CloudbuildV2::Repository
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::Repository
- 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
-
#annotations ⇒ Hash<String,String>
Allows clients to store small amounts of arbitrary data.
-
#create_time ⇒ String
Output only.
-
#etag ⇒ String
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.
-
#name ⇒ String
Immutable.
-
#remote_uri ⇒ String
Required.
-
#update_time ⇒ String
Output only.
-
#webhook_id ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Repository
constructor
A new instance of Repository.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Repository
Returns a new instance of Repository.
2158 2159 2160 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2158 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
Allows clients to store small amounts of arbitrary data.
Corresponds to the JSON property annotations
2123 2124 2125 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2123 def annotations @annotations end |
#create_time ⇒ String
Output only. Server assigned timestamp for when the connection was created.
Corresponds to the JSON property createTime
2128 2129 2130 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2128 def create_time @create_time end |
#etag ⇒ String
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
2135 2136 2137 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2135 def etag @etag end |
#name ⇒ String
Immutable. Resource name of the repository, in the format projects/*/
locations/*/connections/*/repositories/*.
Corresponds to the JSON property name
2141 2142 2143 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2141 def name @name end |
#remote_uri ⇒ String
Required. Git Clone HTTPS URI.
Corresponds to the JSON property remoteUri
2146 2147 2148 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2146 def remote_uri @remote_uri end |
#update_time ⇒ String
Output only. Server assigned timestamp for when the connection was updated.
Corresponds to the JSON property updateTime
2151 2152 2153 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2151 def update_time @update_time end |
#webhook_id ⇒ String
Output only. External ID of the webhook created for the repository.
Corresponds to the JSON property webhookId
2156 2157 2158 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2156 def webhook_id @webhook_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2163 2164 2165 2166 2167 2168 2169 2170 2171 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2163 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 |