Class: Google::Apis::ConfigV1::GitSource

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

Instance Method Summary collapse

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

#directoryString

Optional. Subdirectory inside the repository. Example: 'staging/my-package' Corresponds to the JSON property directory

Returns:

  • (String)


625
626
627
# File 'lib/google/apis/config_v1/classes.rb', line 625

def directory
  @directory
end

#refString

Optional. Git reference (e.g. branch or tag). Corresponds to the JSON property ref

Returns:

  • (String)


630
631
632
# File 'lib/google/apis/config_v1/classes.rb', line 630

def ref
  @ref
end

#repoString

Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git' Corresponds to the JSON property repo

Returns:

  • (String)


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