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.
-
#params ⇒ Array<Google::Apis::CloudbuildV2::ParamSpec>
List of parameters.
-
#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.
1520 1521 1522 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1520 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
1502 1503 1504 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1502 def finally_tasks @finally_tasks end |
#params ⇒ Array<Google::Apis::CloudbuildV2::ParamSpec>
List of parameters.
Corresponds to the JSON property params
1507 1508 1509 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1507 def params @params end |
#tasks ⇒ Array<Google::Apis::CloudbuildV2::PipelineTask>
List of Tasks that execute when this Pipeline is run.
Corresponds to the JSON property tasks
1512 1513 1514 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1512 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
1518 1519 1520 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1518 def workspaces @workspaces end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1525 1526 1527 1528 1529 1530 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1525 def update!(**args) @finally_tasks = args[:finally_tasks] if args.key?(:finally_tasks) @params = args[:params] if args.key?(:params) @tasks = args[:tasks] if args.key?(:tasks) @workspaces = args[:workspaces] if args.key?(:workspaces) end |