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 ⇒ String
The size in bytes of the repo.
-
#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
673 674 675 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 673 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
671 672 673 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 671 def mirror_config @mirror_config end |
#name ⇒ String
Resource name of the repository, of the form
projects/<project>/repos/<repo>.
Corresponds to the JSON property name
665 666 667 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 665 def name @name end |
#size ⇒ String
The size in bytes of the repo.
Corresponds to the JSON property size
659 660 661 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 659 def size @size end |
#url ⇒ String
URL to clone the repository from Google Cloud Source Repositories.
Corresponds to the JSON property url
654 655 656 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 654 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
678 679 680 681 682 683 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 678 def update!(**args) @url = args[:url] if args.key?(:url) @size = args[:size] if args.key?(:size) @name = args[:name] if args.key?(:name) @mirror_config = args[:mirror_config] if args.key?(:mirror_config) end |