Class: Google::Apis::CloudbuildV2::PipelineSpec

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

Overview

PipelineSpec defines the desired state of Pipeline.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PipelineSpec

Returns a new instance of PipelineSpec.



1823
1824
1825
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1823

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

Instance Attribute Details

#finally_tasksArray<Google::Apis::CloudbuildV2::PipelineTask>

List of Tasks that execute just before leaving the Pipeline i.e. either after all Tasks are finished executing successfully or after a failure which would result in ending the Pipeline. Corresponds to the JSON property finallyTasks



1799
1800
1801
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1799

def finally_tasks
  @finally_tasks
end

#generated_yamlString

Output only. auto-generated yaml that is output only for display purpose for workflows using pipeline_spec, used by UI/gcloud cli for Workflows. Corresponds to the JSON property generatedYaml

Returns:

  • (String)


1805
1806
1807
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1805

def generated_yaml
  @generated_yaml
end

#paramsArray<Google::Apis::CloudbuildV2::ParamSpec>

List of parameters. Corresponds to the JSON property params



1810
1811
1812
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1810

def params
  @params
end

#tasksArray<Google::Apis::CloudbuildV2::PipelineTask>

List of Tasks that execute when this Pipeline is run. Corresponds to the JSON property tasks



1815
1816
1817
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1815

def tasks
  @tasks
end

#workspacesArray<Google::Apis::CloudbuildV2::PipelineWorkspaceDeclaration>

Workspaces declares a set of named workspaces that are expected to be provided by a PipelineRun. Corresponds to the JSON property workspaces



1821
1822
1823
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1821

def workspaces
  @workspaces
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1828
1829
1830
1831
1832
1833
1834
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1828

def update!(**args)
  @finally_tasks = args[:finally_tasks] if args.key?(:finally_tasks)
  @generated_yaml = args[:generated_yaml] if args.key?(:generated_yaml)
  @params = args[:params] if args.key?(:params)
  @tasks = args[:tasks] if args.key?(:tasks)
  @workspaces = args[:workspaces] if args.key?(:workspaces)
end