Class: Google::Apis::SourcerepoV1::ProjectConfig

Inherits:
Object
  • Object
show all
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

Cloud Source Repositories configuration of a project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ProjectConfig

Returns a new instance of ProjectConfig



423
424
425
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 423

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_private_key_checkBoolean Also known as: enable_private_key_check?

Reject a Git push that contains a private key. Corresponds to the JSON property enablePrivateKeyCheck

Returns:

  • (Boolean)


409
410
411
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 409

def enable_private_key_check
  @enable_private_key_check
end

#nameString

The name of the project. Values are of the form projects/<project>. Corresponds to the JSON property name

Returns:

  • (String)


415
416
417
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 415

def name
  @name
end

#pubsub_configsHash<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



421
422
423
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 421

def pubsub_configs
  @pubsub_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



428
429
430
431
432
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 428

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