Class: Google::Apis::SourcerepoV1::Repo
- Inherits:
-
Object
- Object
- Google::Apis::SourcerepoV1::Repo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sourcerepo_v1/classes.rb,
generated/google/apis/sourcerepo_v1/representations.rb,
generated/google/apis/sourcerepo_v1/representations.rb
Overview
A repository (or repo) is a Git repository storing versioned source content.
Instance Attribute Summary collapse
-
#mirror_config ⇒ Google::Apis::SourcerepoV1::MirrorConfig
Configuration to automatically mirror a repository from another hosting service, for example GitHub or BitBucket.
-
#name ⇒ String
Resource name of the repository, of the form
projects/<project>/repos/<repo>
. -
#size ⇒ Fixnum
The disk usage of the repo, in bytes.
-
#url ⇒ String
URL to clone the repository from Google Cloud Source Repositories.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Repo
constructor
A new instance of Repo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Repo
Returns a new instance of Repo
434 435 436 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 434 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mirror_config ⇒ Google::Apis::SourcerepoV1::MirrorConfig
Configuration to automatically mirror a repository from another
hosting service, for example GitHub or BitBucket.
Corresponds to the JSON property mirrorConfig
414 415 416 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 414 def mirror_config @mirror_config end |
#name ⇒ String
Resource name of the repository, of the form
projects/<project>/repos/<repo>
. The repo name may contain slashes.
eg, projects/myproject/repos/name/with/slash
Corresponds to the JSON property name
421 422 423 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 421 def name @name end |
#size ⇒ Fixnum
The disk usage of the repo, in bytes.
Only returned by GetRepo.
Corresponds to the JSON property size
427 428 429 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 427 def size @size end |
#url ⇒ String
URL to clone the repository from Google Cloud Source Repositories.
Corresponds to the JSON property url
432 433 434 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 432 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
439 440 441 442 443 444 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 439 def update!(**args) @mirror_config = args[:mirror_config] if args.key?(:mirror_config) @name = args[:name] if args.key?(:name) @size = args[:size] if args.key?(:size) @url = args[:url] if args.key?(:url) end |