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


@doc raw"""PersistentVolumeClaim is a user&#39;s request for and claim to a persistent volume

    IoK8sApiCoreV1PersistentVolumeClaim(;
        apiVersion=nothing,
        kind=nothing,
        metadata=nothing,
        spec=nothing,
        status=nothing,
    )

    - apiVersion::String : APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
    - kind::String : Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    - metadata::IoK8sApimachineryPkgApisMetaV1ObjectMeta : Standard object&#39;s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
    - spec::IoK8sApiCoreV1PersistentVolumeClaimSpec : Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
    - status::IoK8sApiCoreV1PersistentVolumeClaimStatus : Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
"""
mutable struct IoK8sApiCoreV1PersistentVolumeClaim <: SwaggerModel
    apiVersion::Any # spec type: Union{ Nothing, String } # spec name: apiVersion
    kind::Any # spec type: Union{ Nothing, String } # spec name: kind
    metadata::Any # spec type: Union{ Nothing, IoK8sApimachineryPkgApisMetaV1ObjectMeta } # spec name: metadata
    spec::Any # spec type: Union{ Nothing, IoK8sApiCoreV1PersistentVolumeClaimSpec } # spec name: spec
    status::Any # spec type: Union{ Nothing, IoK8sApiCoreV1PersistentVolumeClaimStatus } # spec name: status

    function IoK8sApiCoreV1PersistentVolumeClaim(;apiVersion=nothing, kind=nothing, metadata=nothing, spec=nothing, status=nothing)
        o = new()
        validate_property(IoK8sApiCoreV1PersistentVolumeClaim, Symbol("apiVersion"), apiVersion)
        setfield!(o, Symbol("apiVersion"), apiVersion)
        validate_property(IoK8sApiCoreV1PersistentVolumeClaim, Symbol("kind"), kind)
        setfield!(o, Symbol("kind"), kind)
        validate_property(IoK8sApiCoreV1PersistentVolumeClaim, Symbol("metadata"), metadata)
        setfield!(o, Symbol("metadata"), metadata)
        validate_property(IoK8sApiCoreV1PersistentVolumeClaim, Symbol("spec"), spec)
        setfield!(o, Symbol("spec"), spec)
        validate_property(IoK8sApiCoreV1PersistentVolumeClaim, Symbol("status"), status)
        setfield!(o, Symbol("status"), status)
        o
    end
end # type IoK8sApiCoreV1PersistentVolumeClaim

const _property_map_IoK8sApiCoreV1PersistentVolumeClaim = Dict{Symbol,Symbol}(Symbol("apiVersion")=>Symbol("apiVersion"), Symbol("kind")=>Symbol("kind"), Symbol("metadata")=>Symbol("metadata"), Symbol("spec")=>Symbol("spec"), Symbol("status")=>Symbol("status"))
const _property_types_IoK8sApiCoreV1PersistentVolumeClaim = Dict{Symbol,String}(Symbol("apiVersion")=>"String", Symbol("kind")=>"String", Symbol("metadata")=>"IoK8sApimachineryPkgApisMetaV1ObjectMeta", Symbol("spec")=>"IoK8sApiCoreV1PersistentVolumeClaimSpec", Symbol("status")=>"IoK8sApiCoreV1PersistentVolumeClaimStatus")
Base.propertynames(::Type{ IoK8sApiCoreV1PersistentVolumeClaim }) = collect(keys(_property_map_IoK8sApiCoreV1PersistentVolumeClaim))
Swagger.property_type(::Type{ IoK8sApiCoreV1PersistentVolumeClaim }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_IoK8sApiCoreV1PersistentVolumeClaim[name]))}
Swagger.field_name(::Type{ IoK8sApiCoreV1PersistentVolumeClaim }, property_name::Symbol) =  _property_map_IoK8sApiCoreV1PersistentVolumeClaim[property_name]

function check_required(o::IoK8sApiCoreV1PersistentVolumeClaim)
    true
end

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