Class: Google::Apis::CloudbuildV2::PipelineWorkspaceDeclaration
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::PipelineWorkspaceDeclaration
- 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
Workspaces declares a set of named workspaces that are expected to be provided by a PipelineRun.
Instance Attribute Summary collapse
-
#description ⇒ String
Description is a human readable string describing how the workspace will be used in the Pipeline.
-
#name ⇒ String
Name is the name of a workspace to be provided by a PipelineRun.
-
#optional ⇒ Boolean
(also: #optional?)
Optional marks a Workspace as not being required in PipelineRuns.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PipelineWorkspaceDeclaration
constructor
A new instance of PipelineWorkspaceDeclaration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PipelineWorkspaceDeclaration
Returns a new instance of PipelineWorkspaceDeclaration.
1785 1786 1787 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1785 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Description is a human readable string describing how the workspace will be
used in the Pipeline.
Corresponds to the JSON property description
1771 1772 1773 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1771 def description @description end |
#name ⇒ String
Name is the name of a workspace to be provided by a PipelineRun.
Corresponds to the JSON property name
1776 1777 1778 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1776 def name @name end |
#optional ⇒ Boolean Also known as: optional?
Optional marks a Workspace as not being required in PipelineRuns. By default
this field is false and so declared workspaces are required.
Corresponds to the JSON property optional
1782 1783 1784 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1782 def optional @optional end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1790 1791 1792 1793 1794 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1790 def update!(**args) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @optional = args[:optional] if args.key?(:optional) end |