Class: Google::Apis::ClouddeployV1::SkaffoldGcsSource

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 Storage bucket containing Skaffold Config modules.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SkaffoldGcsSource

Returns a new instance of SkaffoldGcsSource.



4636
4637
4638
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4636

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

Instance Attribute Details

#pathString

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

Returns:

  • (String)


4627
4628
4629
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4627

def path
  @path
end

#sourceString

Required. Cloud Storage source paths to copy recursively. For example, providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying all files within the "dir/configs" directory in the bucket "my-bucket". Corresponds to the JSON property source

Returns:

  • (String)


4634
4635
4636
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4634

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4641
4642
4643
4644
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4641

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