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.



4608
4609
4610
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4608

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)


4595
4596
4597
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4595

def path
  @path
end

#refString

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

Returns:

  • (String)


4600
4601
4602
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4600

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)


4606
4607
4608
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4606

def repository
  @repository
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4613
4614
4615
4616
4617
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4613

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