Class: Google::Apis::SourcerepoV1::MirrorConfig
- Inherits:
-
Object
- Object
- Google::Apis::SourcerepoV1::MirrorConfig
- 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
Configuration to automatically mirror a repository from another hosting service, for example GitHub or BitBucket.
Instance Attribute Summary collapse
-
#deploy_key_id ⇒ String
ID of the SSH deploy key at the other hosting service.
-
#url ⇒ String
URL of the main repository at the other hosting service.
-
#webhook_id ⇒ String
ID of the webhook listening to updates to trigger mirroring.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MirrorConfig
constructor
A new instance of MirrorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MirrorConfig
Returns a new instance of MirrorConfig
385 386 387 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 385 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deploy_key_id ⇒ String
ID of the SSH deploy key at the other hosting service.
Removing this key from the other service would deauthorize
Google Cloud Source Repositories from mirroring.
Corresponds to the JSON property deployKeyId
370 371 372 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 370 def deploy_key_id @deploy_key_id end |
#url ⇒ String
URL of the main repository at the other hosting service.
Corresponds to the JSON property url
375 376 377 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 375 def url @url end |
#webhook_id ⇒ String
ID of the webhook listening to updates to trigger mirroring.
Removing this webook from the other hosting service will stop
Google Cloud Source Repositories from receiving notifications,
and thereby disabling mirroring.
Corresponds to the JSON property webhookId
383 384 385 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 383 def webhook_id @webhook_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
390 391 392 393 394 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 390 def update!(**args) @deploy_key_id = args[:deploy_key_id] if args.key?(:deploy_key_id) @url = args[:url] if args.key?(:url) @webhook_id = args[:webhook_id] if args.key?(:webhook_id) end |