Class: Google::Apis::ClouddeployV1::SkaffoldGcbRepoSource

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

Cloud Build V2 Repository containing Skaffold Configs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SkaffoldGcbRepoSource

Returns a new instance of SkaffoldGcbRepoSource.



5417
5418
5419
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5417

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

Instance Attribute Details

#pathString

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

Returns:

  • (String)


5404
5405
5406
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5404

def path
  @path
end

#refString

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

Returns:

  • (String)


5409
5410
5411
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5409

def ref
  @ref
end

#repositoryString

Required. Name of the Cloud Build V2 Repository. Format is projects/project/ locations/location/connections/connection/repositories/repository. Corresponds to the JSON property repository

Returns:

  • (String)


5415
5416
5417
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5415

def repository
  @repository
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5422
5423
5424
5425
5426
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5422

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