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.



1064
1065
1066
# File 'lib/google/apis/config_v1/classes.rb', line 1064

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

Instance Attribute Details

#directoryString

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

Returns:

  • (String)


1052
1053
1054
# File 'lib/google/apis/config_v1/classes.rb', line 1052

def directory
  @directory
end

#refString

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

Returns:

  • (String)


1057
1058
1059
# File 'lib/google/apis/config_v1/classes.rb', line 1057

def ref
  @ref
end

#repoString

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

Returns:

  • (String)


1062
1063
1064
# File 'lib/google/apis/config_v1/classes.rb', line 1062

def repo
  @repo
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1069
1070
1071
1072
1073
# File 'lib/google/apis/config_v1/classes.rb', line 1069

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