Class: Google::Apis::ConfigV1::GitSource
- Inherits:
-
Object
- Object
- Google::Apis::ConfigV1::GitSource
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/config_v1/classes.rb,
lib/google/apis/config_v1/representations.rb,
lib/google/apis/config_v1/representations.rb
Overview
A set of files in a Git repository.
Instance Attribute Summary collapse
-
#directory ⇒ String
Optional.
-
#ref ⇒ String
Optional.
-
#repo ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GitSource
constructor
A new instance of GitSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GitSource
Returns a new instance of GitSource.
637 638 639 |
# File 'lib/google/apis/config_v1/classes.rb', line 637 def initialize(**args) update!(**args) end |
Instance Attribute Details
#directory ⇒ String
Optional. Subdirectory inside the repository. Example: 'staging/my-package'
Corresponds to the JSON property directory
625 626 627 |
# File 'lib/google/apis/config_v1/classes.rb', line 625 def directory @directory end |
#ref ⇒ String
Optional. Git reference (e.g. branch or tag).
Corresponds to the JSON property ref
630 631 632 |
# File 'lib/google/apis/config_v1/classes.rb', line 630 def ref @ref end |
#repo ⇒ String
Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'
Corresponds to the JSON property repo
635 636 637 |
# File 'lib/google/apis/config_v1/classes.rb', line 635 def repo @repo end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
642 643 644 645 646 |
# File 'lib/google/apis/config_v1/classes.rb', line 642 def update!(**args) @directory = args[:directory] if args.key?(:directory) @ref = args[:ref] if args.key?(:ref) @repo = args[:repo] if args.key?(:repo) end |