Class: Google::Apis::CloudbuildV2::PipelineSpec
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::PipelineSpec
- 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
-
#finally_tasks ⇒ Array<Google::Apis::CloudbuildV2::PipelineTask>
List of Tasks that execute just before leaving the Pipeline i.e.
-
#generated_yaml ⇒ String
Output only.
-
#params ⇒ Array<Google::Apis::CloudbuildV2::ParamSpec>
List of parameters.
-
#results ⇒ Array<Google::Apis::CloudbuildV2::PipelineResult>
Optional.
-
#tasks ⇒ Array<Google::Apis::CloudbuildV2::PipelineTask>
List of Tasks that execute when this Pipeline is run.
-
#workspaces ⇒ Array<Google::Apis::CloudbuildV2::PipelineWorkspaceDeclaration>
Workspaces declares a set of named workspaces that are expected to be provided by a PipelineRun.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PipelineSpec
constructor
A new instance of PipelineSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PipelineSpec
Returns a new instance of PipelineSpec.
1899 1900 1901 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1899 def initialize(**args) update!(**args) end |
Instance Attribute Details
#finally_tasks ⇒ Array<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
1869 1870 1871 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1869 def finally_tasks @finally_tasks end |
#generated_yaml ⇒ String
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
1875 1876 1877 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1875 def generated_yaml @generated_yaml end |
#params ⇒ Array<Google::Apis::CloudbuildV2::ParamSpec>
List of parameters.
Corresponds to the JSON property params
1880 1881 1882 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1880 def params @params end |
#results ⇒ Array<Google::Apis::CloudbuildV2::PipelineResult>
Optional. Output only. List of results written out by the pipeline's
containers
Corresponds to the JSON property results
1886 1887 1888 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1886 def results @results end |
#tasks ⇒ Array<Google::Apis::CloudbuildV2::PipelineTask>
List of Tasks that execute when this Pipeline is run.
Corresponds to the JSON property tasks
1891 1892 1893 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1891 def tasks @tasks end |
#workspaces ⇒ Array<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
1897 1898 1899 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1897 def workspaces @workspaces end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1904 1905 1906 1907 1908 1909 1910 1911 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1904 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 |