Class: Google::Apis::CloudbuildV2::VolumeSource

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

Volumes available to mount.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VolumeSource

Returns a new instance of VolumeSource.



3142
3143
3144
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3142

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

Instance Attribute Details

#empty_dirGoogle::Apis::CloudbuildV2::EmptyDirVolumeSource

Represents an empty Volume source. Corresponds to the JSON property emptyDir



3134
3135
3136
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3134

def empty_dir
  @empty_dir
end

#nameString

Name of the Volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Corresponds to the JSON property name

Returns:

  • (String)


3140
3141
3142
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3140

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3147
3148
3149
3150
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3147

def update!(**args)
  @empty_dir = args[:empty_dir] if args.key?(:empty_dir)
  @name = args[:name] if args.key?(:name)
end