# This file was generated by the Julia Swagger Code Generator
# Do not modify this file directly. Modify the swagger specification instead.


@doc raw"""PortworxVolumeSource represents a Portworx volume resource.

    IoK8sApiCoreV1PortworxVolumeSource(;
        fsType=nothing,
        readOnly=nothing,
        volumeID=nothing,
    )

    - fsType::String : FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \&quot;ext4\&quot;, \&quot;xfs\&quot;. Implicitly inferred to be \&quot;ext4\&quot; if unspecified.
    - readOnly::Bool : Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
    - volumeID::String : VolumeID uniquely identifies a Portworx volume
"""
mutable struct IoK8sApiCoreV1PortworxVolumeSource <: SwaggerModel
    fsType::Any # spec type: Union{ Nothing, String } # spec name: fsType
    readOnly::Any # spec type: Union{ Nothing, Bool } # spec name: readOnly
    volumeID::Any # spec type: Union{ Nothing, String } # spec name: volumeID

    function IoK8sApiCoreV1PortworxVolumeSource(;fsType=nothing, readOnly=nothing, volumeID=nothing)
        o = new()
        validate_property(IoK8sApiCoreV1PortworxVolumeSource, Symbol("fsType"), fsType)
        setfield!(o, Symbol("fsType"), fsType)
        validate_property(IoK8sApiCoreV1PortworxVolumeSource, Symbol("readOnly"), readOnly)
        setfield!(o, Symbol("readOnly"), readOnly)
        validate_property(IoK8sApiCoreV1PortworxVolumeSource, Symbol("volumeID"), volumeID)
        setfield!(o, Symbol("volumeID"), volumeID)
        o
    end
end # type IoK8sApiCoreV1PortworxVolumeSource

const _property_map_IoK8sApiCoreV1PortworxVolumeSource = Dict{Symbol,Symbol}(Symbol("fsType")=>Symbol("fsType"), Symbol("readOnly")=>Symbol("readOnly"), Symbol("volumeID")=>Symbol("volumeID"))
const _property_types_IoK8sApiCoreV1PortworxVolumeSource = Dict{Symbol,String}(Symbol("fsType")=>"String", Symbol("readOnly")=>"Bool", Symbol("volumeID")=>"String")
Base.propertynames(::Type{ IoK8sApiCoreV1PortworxVolumeSource }) = collect(keys(_property_map_IoK8sApiCoreV1PortworxVolumeSource))
Swagger.property_type(::Type{ IoK8sApiCoreV1PortworxVolumeSource }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_IoK8sApiCoreV1PortworxVolumeSource[name]))}
Swagger.field_name(::Type{ IoK8sApiCoreV1PortworxVolumeSource }, property_name::Symbol) =  _property_map_IoK8sApiCoreV1PortworxVolumeSource[property_name]

function check_required(o::IoK8sApiCoreV1PortworxVolumeSource)
    (getproperty(o, Symbol("volumeID")) === nothing) && (return false)
    true
end

function validate_property(::Type{ IoK8sApiCoreV1PortworxVolumeSource }, name::Symbol, val)
end
