Class: Google::Apis::SourcerepoV1::ProjectConfig
- Inherits:
-
Object
- Object
- Google::Apis::SourcerepoV1::ProjectConfig
- 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
Cloud Source Repositories configuration of a project.
Instance Attribute Summary collapse
-
#enable_private_key_check ⇒ Boolean
(also: #enable_private_key_check?)
Reject a Git push that contains a private key.
-
#name ⇒ String
The name of the project.
-
#pubsub_configs ⇒ Hash<String,Google::Apis::SourcerepoV1::PubsubConfig>
How this project publishes a change in the repositories through Cloud Pub/Sub.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProjectConfig
constructor
A new instance of ProjectConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProjectConfig
Returns a new instance of ProjectConfig.
479 480 481 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 479 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_private_key_check ⇒ Boolean Also known as: enable_private_key_check?
Reject a Git push that contains a private key.
Corresponds to the JSON property enablePrivateKeyCheck
465 466 467 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 465 def enable_private_key_check @enable_private_key_check end |
#name ⇒ String
The name of the project. Values are of the form projects/.
Corresponds to the JSON property name
471 472 473 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 471 def name @name end |
#pubsub_configs ⇒ Hash<String,Google::Apis::SourcerepoV1::PubsubConfig>
How this project publishes a change in the repositories through Cloud Pub/Sub.
Keyed by the topic names.
Corresponds to the JSON property pubsubConfigs
477 478 479 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 477 def pubsub_configs @pubsub_configs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
484 485 486 487 488 |
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 484 def update!(**args) @enable_private_key_check = args[:enable_private_key_check] if args.key?(:enable_private_key_check) @name = args[:name] if args.key?(:name) @pubsub_configs = args[:pubsub_configs] if args.key?(:pubsub_configs) end |