Class: ArgoWorkflows::IoK8sApiCoreV1Volume
- Inherits:
- 
      Object
      
        - Object
- ArgoWorkflows::IoK8sApiCoreV1Volume
 
- Defined in:
- lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb
Overview
Volume represents a named volume in a pod that may be accessed by any container in the pod.
Instance Attribute Summary collapse
- 
  
    
      #aws_elastic_block_store  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. 
- 
  
    
      #azure_disk  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. 
- 
  
    
      #azure_file  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    azureFile represents an Azure File Service mount on the host and bind mount to the pod. 
- 
  
    
      #cephfs  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    cephFS represents a Ceph FS mount on the host that shares a pod’s lifetime. 
- 
  
    
      #cinder  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    cinder represents a cinder volume attached and mounted on kubelets host machine. 
- 
  
    
      #config_map  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    configMap represents a configMap that should populate this volume. 
- 
  
    
      #csi  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature). 
- 
  
    
      #downward_api  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    downwardAPI represents downward API about the pod that should populate this volume. 
- 
  
    
      #empty_dir  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    emptyDir represents a temporary directory that shares a pod’s lifetime. 
- 
  
    
      #ephemeral  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ephemeral represents a volume that is handled by a cluster storage driver. 
- 
  
    
      #fc  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    fc represents a Fibre Channel resource that is attached to a kubelet’s host machine and then exposed to the pod. 
- 
  
    
      #flex_volume  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. 
- 
  
    
      #flocker  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    flocker represents a Flocker volume attached to a kubelet’s host machine. 
- 
  
    
      #gce_persistent_disk  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. 
- 
  
    
      #git_repo  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    gitRepo represents a git repository at a particular revision. 
- 
  
    
      #glusterfs  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    glusterfs represents a Glusterfs mount on the host that shares a pod’s lifetime. 
- 
  
    
      #host_path  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. 
- 
  
    
      #image  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet’s host machine. 
- 
  
    
      #iscsi  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    iscsi represents an ISCSI Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. 
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    name of the volume. 
- 
  
    
      #nfs  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    nfs represents an NFS mount on the host that shares a pod’s lifetime More info: kubernetes.io/docs/concepts/storage/volumes#nfs. 
- 
  
    
      #persistent_volume_claim  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. 
- 
  
    
      #photon_persistent_disk  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. 
- 
  
    
      #portworx_volume  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    portworxVolume represents a portworx volume attached and mounted on kubelets host machine. 
- 
  
    
      #projected  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    projected items for all in one resources secrets, configmaps, and downward API. 
- 
  
    
      #quobyte  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    quobyte represents a Quobyte mount on the host that shares a pod’s lifetime. 
- 
  
    
      #rbd  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    rbd represents a Rados Block Device mount on the host that shares a pod’s lifetime. 
- 
  
    
      #scale_io  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. 
- 
  
    
      #secret  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    secret represents a secret that should populate this volume. 
- 
  
    
      #storageos  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. 
- 
  
    
      #vsphere_volume  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. 
Class Method Summary collapse
- 
  
    
      .attribute_map  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute mapping from ruby-style variable name to JSON key. 
- 
  
    
      .swagger_types  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute type mapping. 
Instance Method Summary collapse
- 
  
    
      #==(o)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Checks equality by comparing each attribute. 
- 
  
    
      #_deserialize(type, value)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Deserializes the data based on type. 
- 
  
    
      #_to_hash(value)  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    Outputs non-array value in the form of hash For object, use to_hash. 
- 
  
    
      #build_from_hash(attributes)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Builds the object from hash. 
- #eql?(o) ⇒ Boolean
- 
  
    
      #hash  ⇒ Fixnum 
    
    
  
  
  
  
  
  
  
  
  
    Calculates hash code according to all attributes. 
- 
  
    
      #initialize(attributes = {})  ⇒ IoK8sApiCoreV1Volume 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Initializes the object. 
- 
  
    
      #list_invalid_properties  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Show invalid properties with the reasons. 
- 
  
    
      #to_body  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    to_body is an alias to to_hash (backward compatibility). 
- 
  
    
      #to_hash  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    Returns the object in the form of hash. 
- 
  
    
      #to_s  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Returns the string representation of the object. 
- 
  
    
      #valid?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    Check to see if the all the properties in the model are valid. 
Constructor Details
#initialize(attributes = {}) ⇒ IoK8sApiCoreV1Volume
Initializes the object
| 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 187 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'awsElasticBlockStore') self.aws_elastic_block_store = attributes[:'awsElasticBlockStore'] end if attributes.has_key?(:'azureDisk') self.azure_disk = attributes[:'azureDisk'] end if attributes.has_key?(:'azureFile') self.azure_file = attributes[:'azureFile'] end if attributes.has_key?(:'cephfs') self.cephfs = attributes[:'cephfs'] end if attributes.has_key?(:'cinder') self.cinder = attributes[:'cinder'] end if attributes.has_key?(:'configMap') self.config_map = attributes[:'configMap'] end if attributes.has_key?(:'csi') self.csi = attributes[:'csi'] end if attributes.has_key?(:'downwardAPI') self.downward_api = attributes[:'downwardAPI'] end if attributes.has_key?(:'emptyDir') self.empty_dir = attributes[:'emptyDir'] end if attributes.has_key?(:'ephemeral') self.ephemeral = attributes[:'ephemeral'] end if attributes.has_key?(:'fc') self.fc = attributes[:'fc'] end if attributes.has_key?(:'flexVolume') self.flex_volume = attributes[:'flexVolume'] end if attributes.has_key?(:'flocker') self.flocker = attributes[:'flocker'] end if attributes.has_key?(:'gcePersistentDisk') self.gce_persistent_disk = attributes[:'gcePersistentDisk'] end if attributes.has_key?(:'gitRepo') self.git_repo = attributes[:'gitRepo'] end if attributes.has_key?(:'glusterfs') self.glusterfs = attributes[:'glusterfs'] end if attributes.has_key?(:'hostPath') self.host_path = attributes[:'hostPath'] end if attributes.has_key?(:'image') self.image = attributes[:'image'] end if attributes.has_key?(:'iscsi') self.iscsi = attributes[:'iscsi'] end if attributes.has_key?(:'name') self.name = attributes[:'name'] end if attributes.has_key?(:'nfs') self.nfs = attributes[:'nfs'] end if attributes.has_key?(:'persistentVolumeClaim') self.persistent_volume_claim = attributes[:'persistentVolumeClaim'] end if attributes.has_key?(:'photonPersistentDisk') self.photon_persistent_disk = attributes[:'photonPersistentDisk'] end if attributes.has_key?(:'portworxVolume') self.portworx_volume = attributes[:'portworxVolume'] end if attributes.has_key?(:'projected') self.projected = attributes[:'projected'] end if attributes.has_key?(:'quobyte') self.quobyte = attributes[:'quobyte'] end if attributes.has_key?(:'rbd') self.rbd = attributes[:'rbd'] end if attributes.has_key?(:'scaleIO') self.scale_io = attributes[:'scaleIO'] end if attributes.has_key?(:'secret') self.secret = attributes[:'secret'] end if attributes.has_key?(:'storageos') self.storageos = attributes[:'storageos'] end if attributes.has_key?(:'vsphereVolume') self.vsphere_volume = attributes[:'vsphereVolume'] end end | 
Instance Attribute Details
#aws_elastic_block_store ⇒ Object
awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. More info: kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
| 19 20 21 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 19 def aws_elastic_block_store @aws_elastic_block_store end | 
#azure_disk ⇒ Object
azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
| 22 23 24 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 22 def azure_disk @azure_disk end | 
#azure_file ⇒ Object
azureFile represents an Azure File Service mount on the host and bind mount to the pod.
| 25 26 27 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 25 def azure_file @azure_file end | 
#cephfs ⇒ Object
cephFS represents a Ceph FS mount on the host that shares a pod’s lifetime
| 28 29 30 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 28 def cephfs @cephfs end | 
#cinder ⇒ Object
cinder represents a cinder volume attached and mounted on kubelets host machine. More info: examples.k8s.io/mysql-cinder-pd/README.md
| 31 32 33 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 31 def cinder @cinder end | 
#config_map ⇒ Object
configMap represents a configMap that should populate this volume
| 34 35 36 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 34 def config_map @config_map end | 
#csi ⇒ Object
csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
| 37 38 39 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 37 def csi @csi end | 
#downward_api ⇒ Object
downwardAPI represents downward API about the pod that should populate this volume
| 40 41 42 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 40 def downward_api @downward_api end | 
#empty_dir ⇒ Object
emptyDir represents a temporary directory that shares a pod’s lifetime. More info: kubernetes.io/docs/concepts/storage/volumes#emptydir
| 43 44 45 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 43 def empty_dir @empty_dir end | 
#ephemeral ⇒ Object
ephemeral represents a volume that is handled by a cluster storage driver. The volume’s lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed. Use this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity tracking are needed, c) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through a PersistentVolumeClaim (see EphemeralVolumeSource for more information on the connection between this volume type and PersistentVolumeClaim). Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod. Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information. A pod can use both types of ephemeral volumes and persistent volumes at the same time.
| 46 47 48 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 46 def ephemeral @ephemeral end | 
#fc ⇒ Object
fc represents a Fibre Channel resource that is attached to a kubelet’s host machine and then exposed to the pod.
| 49 50 51 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 49 def fc @fc end | 
#flex_volume ⇒ Object
flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
| 52 53 54 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 52 def flex_volume @flex_volume end | 
#flocker ⇒ Object
flocker represents a Flocker volume attached to a kubelet’s host machine. This depends on the Flocker control service being running
| 55 56 57 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 55 def flocker @flocker end | 
#gce_persistent_disk ⇒ Object
gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. More info: kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
| 58 59 60 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 58 def gce_persistent_disk @gce_persistent_disk end | 
#git_repo ⇒ Object
gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod’s container.
| 61 62 63 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 61 def git_repo @git_repo end | 
#glusterfs ⇒ Object
glusterfs represents a Glusterfs mount on the host that shares a pod’s lifetime. More info: examples.k8s.io/volumes/glusterfs/README.md
| 64 65 66 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 64 def glusterfs @glusterfs end | 
#host_path ⇒ Object
hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: kubernetes.io/docs/concepts/storage/volumes#hostpath
| 67 68 69 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 67 def host_path @host_path end | 
#image ⇒ Object
image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet’s host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided: - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn’t present. - IfNotPresent: the kubelet pulls if the reference isn’t already present on disk. Container creation will fail if the reference isn’t present and the pull fails. The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers.volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers.volumeMounts.subpath). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.
| 70 71 72 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 70 def image @image end | 
#iscsi ⇒ Object
iscsi represents an ISCSI Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. More info: examples.k8s.io/volumes/iscsi/README.md
| 73 74 75 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 73 def iscsi @iscsi end | 
#name ⇒ Object
name of the volume. Must be a DNS_LABEL and unique within the pod. More info: kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
| 76 77 78 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 76 def name @name end | 
#nfs ⇒ Object
nfs represents an NFS mount on the host that shares a pod’s lifetime More info: kubernetes.io/docs/concepts/storage/volumes#nfs
| 79 80 81 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 79 def nfs @nfs end | 
#persistent_volume_claim ⇒ Object
persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
| 82 83 84 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 82 def persistent_volume_claim @persistent_volume_claim end | 
#photon_persistent_disk ⇒ Object
photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
| 85 86 87 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 85 def photon_persistent_disk @photon_persistent_disk end | 
#portworx_volume ⇒ Object
portworxVolume represents a portworx volume attached and mounted on kubelets host machine
| 88 89 90 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 88 def portworx_volume @portworx_volume end | 
#projected ⇒ Object
projected items for all in one resources secrets, configmaps, and downward API
| 91 92 93 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 91 def projected @projected end | 
#quobyte ⇒ Object
quobyte represents a Quobyte mount on the host that shares a pod’s lifetime
| 94 95 96 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 94 def quobyte @quobyte end | 
#rbd ⇒ Object
rbd represents a Rados Block Device mount on the host that shares a pod’s lifetime. More info: examples.k8s.io/volumes/rbd/README.md
| 97 98 99 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 97 def rbd @rbd end | 
#scale_io ⇒ Object
scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
| 100 101 102 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 100 def scale_io @scale_io end | 
#secret ⇒ Object
secret represents a secret that should populate this volume. More info: kubernetes.io/docs/concepts/storage/volumes#secret
| 103 104 105 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 103 def secret @secret end | 
#storageos ⇒ Object
storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
| 106 107 108 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 106 def storageos @storageos end | 
#vsphere_volume ⇒ Object
vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
| 109 110 111 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 109 def vsphere_volume @vsphere_volume end | 
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
| 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 112 def self.attribute_map { :'aws_elastic_block_store' => :'awsElasticBlockStore', :'azure_disk' => :'azureDisk', :'azure_file' => :'azureFile', :'cephfs' => :'cephfs', :'cinder' => :'cinder', :'config_map' => :'configMap', :'csi' => :'csi', :'downward_api' => :'downwardAPI', :'empty_dir' => :'emptyDir', :'ephemeral' => :'ephemeral', :'fc' => :'fc', :'flex_volume' => :'flexVolume', :'flocker' => :'flocker', :'gce_persistent_disk' => :'gcePersistentDisk', :'git_repo' => :'gitRepo', :'glusterfs' => :'glusterfs', :'host_path' => :'hostPath', :'image' => :'image', :'iscsi' => :'iscsi', :'name' => :'name', :'nfs' => :'nfs', :'persistent_volume_claim' => :'persistentVolumeClaim', :'photon_persistent_disk' => :'photonPersistentDisk', :'portworx_volume' => :'portworxVolume', :'projected' => :'projected', :'quobyte' => :'quobyte', :'rbd' => :'rbd', :'scale_io' => :'scaleIO', :'secret' => :'secret', :'storageos' => :'storageos', :'vsphere_volume' => :'vsphereVolume' } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 149 def self.swagger_types { :'aws_elastic_block_store' => :'IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource', :'azure_disk' => :'IoK8sApiCoreV1AzureDiskVolumeSource', :'azure_file' => :'IoK8sApiCoreV1AzureFileVolumeSource', :'cephfs' => :'IoK8sApiCoreV1CephFSVolumeSource', :'cinder' => :'IoK8sApiCoreV1CinderVolumeSource', :'config_map' => :'IoK8sApiCoreV1ConfigMapVolumeSource', :'csi' => :'IoK8sApiCoreV1CSIVolumeSource', :'downward_api' => :'IoK8sApiCoreV1DownwardAPIVolumeSource', :'empty_dir' => :'IoK8sApiCoreV1EmptyDirVolumeSource', :'ephemeral' => :'IoK8sApiCoreV1EphemeralVolumeSource', :'fc' => :'IoK8sApiCoreV1FCVolumeSource', :'flex_volume' => :'IoK8sApiCoreV1FlexVolumeSource', :'flocker' => :'IoK8sApiCoreV1FlockerVolumeSource', :'gce_persistent_disk' => :'IoK8sApiCoreV1GCEPersistentDiskVolumeSource', :'git_repo' => :'IoK8sApiCoreV1GitRepoVolumeSource', :'glusterfs' => :'IoK8sApiCoreV1GlusterfsVolumeSource', :'host_path' => :'IoK8sApiCoreV1HostPathVolumeSource', :'image' => :'IoK8sApiCoreV1ImageVolumeSource', :'iscsi' => :'IoK8sApiCoreV1ISCSIVolumeSource', :'name' => :'String', :'nfs' => :'IoK8sApiCoreV1NFSVolumeSource', :'persistent_volume_claim' => :'IoK8sApiCoreV1PersistentVolumeClaimVolumeSource', :'photon_persistent_disk' => :'IoK8sApiCoreV1PhotonPersistentDiskVolumeSource', :'portworx_volume' => :'IoK8sApiCoreV1PortworxVolumeSource', :'projected' => :'IoK8sApiCoreV1ProjectedVolumeSource', :'quobyte' => :'IoK8sApiCoreV1QuobyteVolumeSource', :'rbd' => :'IoK8sApiCoreV1RBDVolumeSource', :'scale_io' => :'IoK8sApiCoreV1ScaleIOVolumeSource', :'secret' => :'IoK8sApiCoreV1SecretVolumeSource', :'storageos' => :'IoK8sApiCoreV1StorageOSVolumeSource', :'vsphere_volume' => :'IoK8sApiCoreV1VsphereVirtualDiskVolumeSource' } end | 
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
| 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 338 def ==(o) return true if self.equal?(o) self.class == o.class && aws_elastic_block_store == o.aws_elastic_block_store && azure_disk == o.azure_disk && azure_file == o.azure_file && cephfs == o.cephfs && cinder == o.cinder && config_map == o.config_map && csi == o.csi && downward_api == o.downward_api && empty_dir == o.empty_dir && ephemeral == o.ephemeral && fc == o.fc && flex_volume == o.flex_volume && flocker == o.flocker && gce_persistent_disk == o.gce_persistent_disk && git_repo == o.git_repo && glusterfs == o.glusterfs && host_path == o.host_path && image == o.image && iscsi == o.iscsi && name == o.name && nfs == o.nfs && persistent_volume_claim == o.persistent_volume_claim && photon_persistent_disk == o.photon_persistent_disk && portworx_volume == o.portworx_volume && projected == o.projected && quobyte == o.quobyte && rbd == o.rbd && scale_io == o.scale_io && secret == o.secret && storageos == o.storageos && vsphere_volume == o.vsphere_volume end | 
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
| 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 410 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = ArgoWorkflows.const_get(type).new temp_model.build_from_hash(value) end end | 
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
| 476 477 478 479 480 481 482 483 484 485 486 487 488 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 476 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 389 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end | 
#eql?(o) ⇒ Boolean
| 376 377 378 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 376 def eql?(o) self == o end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 382 383 384 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 382 def hash [aws_elastic_block_store, azure_disk, azure_file, cephfs, cinder, config_map, csi, downward_api, empty_dir, ephemeral, fc, flex_volume, flocker, gce_persistent_disk, git_repo, glusterfs, host_path, image, iscsi, name, nfs, persistent_volume_claim, photon_persistent_disk, portworx_volume, projected, quobyte, rbd, scale_io, secret, storageos, vsphere_volume].hash end | 
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
| 320 321 322 323 324 325 326 327 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 320 def list_invalid_properties invalid_properties = Array.new if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end invalid_properties end | 
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
| 456 457 458 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 456 def to_body to_hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 462 463 464 465 466 467 468 469 470 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 462 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end | 
#to_s ⇒ String
Returns the string representation of the object
| 450 451 452 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 450 def to_s to_hash.to_s end | 
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
| 331 332 333 334 | # File 'lib/argo_workflows/models/io_k8s_api_core_v1_volume.rb', line 331 def valid? return false if @name.nil? true end |