Class: Google::Apis::SourcerepoV1::Repo
- Inherits:
-
Object
- Object
- Google::Apis::SourcerepoV1::Repo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sourcerepo_v1/classes.rb,
lib/google/apis/sourcerepo_v1/representations.rb,
lib/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//repos/. -
#pubsub_configs ⇒ Hash<String,Google::Apis::SourcerepoV1::PubsubConfig>
How this repository publishes a change in the repository through Cloud Pub/Sub.
-
#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.
Constructor Details
#initialize(**args) ⇒ Repo
Returns a new instance of Repo.
560 561 562 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 560 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
534 535 536 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 534 def mirror_config @mirror_config end |
#name ⇒ String
Resource name of the repository, of the form projects//repos/. The repo name
may contain slashes. eg, projects/myproject/repos/name/with/slash
Corresponds to the JSON property name
540 541 542 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 540 def name @name end |
#pubsub_configs ⇒ Hash<String,Google::Apis::SourcerepoV1::PubsubConfig>
How this repository publishes a change in the repository through Cloud Pub/Sub.
Keyed by the topic names.
Corresponds to the JSON property pubsubConfigs
546 547 548 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 546 def pubsub_configs @pubsub_configs end |
#size ⇒ Fixnum
The disk usage of the repo, in bytes. Read-only field. Size is only returned
by GetRepo.
Corresponds to the JSON property size
552 553 554 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 552 def size @size end |
#url ⇒ String
URL to clone the repository from Google Cloud Source Repositories. Read-only
field.
Corresponds to the JSON property url
558 559 560 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 558 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
565 566 567 568 569 570 571 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 565 def update!(**args) @mirror_config = args[:mirror_config] if args.key?(:mirror_config) @name = args[:name] if args.key?(:name) @pubsub_configs = args[:pubsub_configs] if args.key?(:pubsub_configs) @size = args[:size] if args.key?(:size) @url = args[:url] if args.key?(:url) end |