Class: Google::Apis::CloudbuildV2::WorkspaceDeclaration
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::WorkspaceDeclaration
- 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
WorkspaceDeclaration is a declaration of a volume that a Task requires.
Instance Attribute Summary collapse
-
#description ⇒ String
Description is a human readable description of this volume.
-
#mount_path ⇒ String
MountPath overrides the directory that the volume will be made available at.
-
#name ⇒ String
Name is the name by which you can bind the volume at runtime.
-
#optional ⇒ Boolean
(also: #optional?)
Optional.
-
#read_only ⇒ Boolean
(also: #read_only?)
ReadOnly dictates whether a mounted volume is writable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkspaceDeclaration
constructor
A new instance of WorkspaceDeclaration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkspaceDeclaration
Returns a new instance of WorkspaceDeclaration.
2864 2865 2866 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2864 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Description is a human readable description of this volume.
Corresponds to the JSON property description
2839 2840 2841 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2839 def description @description end |
#mount_path ⇒ String
MountPath overrides the directory that the volume will be made available at.
Corresponds to the JSON property mountPath
2844 2845 2846 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2844 def mount_path @mount_path end |
#name ⇒ String
Name is the name by which you can bind the volume at runtime.
Corresponds to the JSON property name
2849 2850 2851 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2849 def name @name end |
#optional ⇒ Boolean Also known as: optional?
Optional. Optional marks a Workspace as not being required in TaskRuns. By
default this field is false and so declared workspaces are required.
Corresponds to the JSON property optional
2855 2856 2857 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2855 def optional @optional end |
#read_only ⇒ Boolean Also known as: read_only?
ReadOnly dictates whether a mounted volume is writable.
Corresponds to the JSON property readOnly
2861 2862 2863 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2861 def read_only @read_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2869 2870 2871 2872 2873 2874 2875 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2869 def update!(**args) @description = args[:description] if args.key?(:description) @mount_path = args[:mount_path] if args.key?(:mount_path) @name = args[:name] if args.key?(:name) @optional = args[:optional] if args.key?(:optional) @read_only = args[:read_only] if args.key?(:read_only) end |