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.



1911
1912
1913
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1911

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



1881
1882
1883
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1881

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)


1887
1888
1889
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1887

def generated_yaml
  @generated_yaml
end

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

List of parameters. Corresponds to the JSON property params



1892
1893
1894
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1892

def params
  @params
end

#resultsArray<Google::Apis::CloudbuildV2::PipelineResult>

Optional. Output only. List of results written out by the pipeline's containers Corresponds to the JSON property results



1898
1899
1900
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1898

def results
  @results
end

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

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



1903
1904
1905
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1903

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



1909
1910
1911
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1909

def workspaces
  @workspaces
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1916
1917
1918
1919
1920
1921
1922
1923
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1916

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)
  @results = args[:results] if args.key?(:results)
  @tasks = args[:tasks] if args.key?(:tasks)
  @workspaces = args[:workspaces] if args.key?(:workspaces)
end