Class: Google::Apis::ClouddeployV1::SkaffoldGcbRepoSource
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::SkaffoldGcbRepoSource
- 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
Cloud Build V2 Repository containing Skaffold Configs.
Instance Attribute Summary collapse
-
#path ⇒ String
Optional.
-
#ref ⇒ String
Optional.
-
#repository ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SkaffoldGcbRepoSource
constructor
A new instance of SkaffoldGcbRepoSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SkaffoldGcbRepoSource
Returns a new instance of SkaffoldGcbRepoSource.
5398 5399 5400 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5398 def initialize(**args) update!(**args) end |
Instance Attribute Details
#path ⇒ String
Optional. Relative path from the repository root to the Skaffold Config file.
Corresponds to the JSON property path
5385 5386 5387 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5385 def path @path end |
#ref ⇒ String
Optional. Branch or tag to use when cloning the repository.
Corresponds to the JSON property ref
5390 5391 5392 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5390 def ref @ref end |
#repository ⇒ String
Required. Name of the Cloud Build V2 Repository. Format is projects/project
/
locations/location
/connections/connection
/repositories/repository
.
Corresponds to the JSON property repository
5396 5397 5398 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5396 def repository @repository end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5403 5404 5405 5406 5407 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5403 def update!(**args) @path = args[:path] if args.key?(:path) @ref = args[:ref] if args.key?(:ref) @repository = args[:repository] if args.key?(:repository) end |