Class: Google::Apis::CloudbuildV2::WorkspaceDeclaration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkspaceDeclaration

Returns a new instance of WorkspaceDeclaration.



2676
2677
2678
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2676

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

Description is a human readable description of this volume. Corresponds to the JSON property description

Returns:

  • (String)


2658
2659
2660
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2658

def description
  @description
end

#mount_pathString

MountPath overrides the directory that the volume will be made available at. Corresponds to the JSON property mountPath

Returns:

  • (String)


2663
2664
2665
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2663

def mount_path
  @mount_path
end

#nameString

Name is the name by which you can bind the volume at runtime. Corresponds to the JSON property name

Returns:

  • (String)


2668
2669
2670
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2668

def name
  @name
end

#read_onlyBoolean Also known as: read_only?

ReadOnly dictates whether a mounted volume is writable. Corresponds to the JSON property readOnly

Returns:

  • (Boolean)


2673
2674
2675
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2673

def read_only
  @read_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2681
2682
2683
2684
2685
2686
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2681

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)
  @read_only = args[:read_only] if args.key?(:read_only)
end