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.
1763 1764 1765 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1763 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
1749 1750 1751 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1749 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
1754 1755 1756 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1754 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
1760 1761 1762 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1760 def optional @optional end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1768 1769 1770 1771 1772 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1768 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 |