Class: Google::Apis::ClouddeployV1::SkaffoldGitSource

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb

Overview

Git repository containing Skaffold Config modules.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SkaffoldGitSource

Returns a new instance of SkaffoldGitSource.



5456
5457
5458
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5456

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

Instance Attribute Details

#pathString

Optional. Relative path from the repository root to the Skaffold file. Corresponds to the JSON property path

Returns:

  • (String)


5444
5445
5446
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5444

def path
  @path
end

#refString

Optional. Git branch or tag to use when cloning the repository. Corresponds to the JSON property ref

Returns:

  • (String)


5449
5450
5451
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5449

def ref
  @ref
end

#repoString

Required. Git repository the package should be cloned from. Corresponds to the JSON property repo

Returns:

  • (String)


5454
5455
5456
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5454

def repo
  @repo
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5461
5462
5463
5464
5465
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5461

def update!(**args)
  @path = args[:path] if args.key?(:path)
  @ref = args[:ref] if args.key?(:ref)
  @repo = args[:repo] if args.key?(:repo)
end