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.
1932 1933 1934 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1932 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
1918 1919 1920 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1918 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
1923 1924 1925 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1923 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
1929 1930 1931 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1929 def optional @optional end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1937 1938 1939 1940 1941 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1937 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 |