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.



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

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)


1045
1046
1047
# File 'lib/google/apis/config_v1/classes.rb', line 1045

def directory
  @directory
end

#refString

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

Returns:

  • (String)


1050
1051
1052
# File 'lib/google/apis/config_v1/classes.rb', line 1050

def ref
  @ref
end

#repoString

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

Returns:

  • (String)


1055
1056
1057
# File 'lib/google/apis/config_v1/classes.rb', line 1055

def repo
  @repo
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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