Regenerate code from OpenAPI spec

This commit is contained in:
Thomas Scholtes 2018-07-07 15:28:49 +02:00
parent dd2515c88a
commit 6f4b1b32fd
No known key found for this signature in database
GPG Key ID: C5BC340BAB556015
54 changed files with 126 additions and 28 deletions

View File

@ -0,0 +1,6 @@
\(_params : {apiVersion : (Text), kind : (Text), metadata : (../types/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta.dhall)}) ->
{ apiVersion = _params.apiVersion
, kind = _params.kind
, metadata = _params.metadata
, spec = ([] : Optional (../types/io.k8s.api.coordination.v1beta1.LeaseSpec.dhall))
} : ../types/io.k8s.api.coordination.v1beta1.Lease.dhall

View File

@ -0,0 +1,6 @@
\(_params : {apiVersion : (Text), items : (List ../types/io.k8s.api.coordination.v1beta1.Lease.dhall), kind : (Text), metadata : (../types/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta.dhall)}) ->
{ apiVersion = _params.apiVersion
, items = _params.items
, kind = _params.kind
, metadata = _params.metadata
} : ../types/io.k8s.api.coordination.v1beta1.LeaseList.dhall

View File

@ -0,0 +1,6 @@
{ acquireTime = ([] : Optional (../types/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime.dhall))
, holderIdentity = ([] : Optional (Text))
, leaseDurationSeconds = ([] : Optional (Integer))
, leaseTransitions = ([] : Optional (Integer))
, renewTime = ([] : Optional (../types/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime.dhall))
} : ../types/io.k8s.api.coordination.v1beta1.LeaseSpec.dhall

View File

@ -0,0 +1,6 @@
\(_params : {volumeID : (Text)}) ->
{ fsType = ([] : Optional (Text))
, readOnly = ([] : Optional (Bool))
, secretRef = ([] : Optional (../types/io.k8s.api.core.v1.SecretReference.dhall))
, volumeID = _params.volumeID
} : ../types/io.k8s.api.core.v1.CinderPersistentVolumeSource.dhall

View File

@ -1,5 +1,6 @@
\(_params : {volumeID : (Text)}) ->
{ fsType = ([] : Optional (Text))
, readOnly = ([] : Optional (Bool))
, secretRef = ([] : Optional (../types/io.k8s.api.core.v1.LocalObjectReference.dhall))
, volumeID = _params.volumeID
} : ../types/io.k8s.api.core.v1.CinderVolumeSource.dhall

View File

@ -4,7 +4,7 @@
, azureFile = ([] : Optional (../types/io.k8s.api.core.v1.AzureFilePersistentVolumeSource.dhall))
, capacity = ([] : Optional ((List {mapKey : Text, mapValue : Text})))
, cephfs = ([] : Optional (../types/io.k8s.api.core.v1.CephFSPersistentVolumeSource.dhall))
, cinder = ([] : Optional (../types/io.k8s.api.core.v1.CinderVolumeSource.dhall))
, cinder = ([] : Optional (../types/io.k8s.api.core.v1.CinderPersistentVolumeSource.dhall))
, claimRef = ([] : Optional (../types/io.k8s.api.core.v1.ObjectReference.dhall))
, csi = ([] : Optional (../types/io.k8s.api.core.v1.CSIPersistentVolumeSource.dhall))
, fc = ([] : Optional (../types/io.k8s.api.core.v1.FCVolumeSource.dhall))

View File

@ -0,0 +1,3 @@
\(_params : {conditionType : (Text)}) ->
{ conditionType = _params.conditionType
} : ../types/io.k8s.api.core.v1.PodReadinessGate.dhall

View File

@ -4,4 +4,5 @@
, runAsUser = ([] : Optional (Integer))
, seLinuxOptions = ([] : Optional (../types/io.k8s.api.core.v1.SELinuxOptions.dhall))
, supplementalGroups = ([] : Optional (List Integer))
, sysctls = ([] : Optional (List ../types/io.k8s.api.core.v1.Sysctl.dhall))
} : ../types/io.k8s.api.core.v1.PodSecurityContext.dhall

View File

@ -16,6 +16,7 @@
, nodeSelector = ([] : Optional ((List {mapKey : Text, mapValue : Text})))
, priority = ([] : Optional (Integer))
, priorityClassName = ([] : Optional (Text))
, readinessGates = ([] : Optional (List ../types/io.k8s.api.core.v1.PodReadinessGate.dhall))
, restartPolicy = ([] : Optional (Text))
, schedulerName = ([] : Optional (Text))
, securityContext = ([] : Optional (../types/io.k8s.api.core.v1.PodSecurityContext.dhall))

View File

@ -1,3 +1,4 @@
{ hard = ([] : Optional ((List {mapKey : Text, mapValue : Text})))
, scopeSelector = ([] : Optional (../types/io.k8s.api.core.v1.ScopeSelector.dhall))
, scopes = ([] : Optional (List Text))
} : ../types/io.k8s.api.core.v1.ResourceQuotaSpec.dhall

View File

@ -0,0 +1,2 @@
{ matchExpressions = ([] : Optional (List ../types/io.k8s.api.core.v1.ScopedResourceSelectorRequirement.dhall))
} : ../types/io.k8s.api.core.v1.ScopeSelector.dhall

View File

@ -0,0 +1,5 @@
\(_params : {operator : (Text), scopeName : (Text)}) ->
{ operator = _params.operator
, scopeName = _params.scopeName
, values = ([] : Optional (List Text))
} : ../types/io.k8s.api.core.v1.ScopedResourceSelectorRequirement.dhall

View File

@ -0,0 +1,5 @@
\(_params : {path : (Text)}) ->
{ audience = ([] : Optional (Text))
, expirationSeconds = ([] : Optional (Integer))
, path = _params.path
} : ../types/io.k8s.api.core.v1.ServiceAccountTokenProjection.dhall

View File

@ -0,0 +1,4 @@
\(_params : {name : (Text), value : (Text)}) ->
{ name = _params.name
, value = _params.value
} : ../types/io.k8s.api.core.v1.Sysctl.dhall

View File

@ -0,0 +1,4 @@
\(_params : {key : (Text), values : (List Text)}) ->
{ key = _params.key
, values = _params.values
} : ../types/io.k8s.api.core.v1.TopologySelectorLabelRequirement.dhall

View File

@ -0,0 +1,2 @@
{ matchLabelExpressions = ([] : Optional (List ../types/io.k8s.api.core.v1.TopologySelectorLabelRequirement.dhall))
} : ../types/io.k8s.api.core.v1.TopologySelectorTerm.dhall

View File

@ -1,4 +1,5 @@
{ configMap = ([] : Optional (../types/io.k8s.api.core.v1.ConfigMapProjection.dhall))
, downwardAPI = ([] : Optional (../types/io.k8s.api.core.v1.DownwardAPIProjection.dhall))
, secret = ([] : Optional (../types/io.k8s.api.core.v1.SecretProjection.dhall))
, serviceAccountToken = ([] : Optional (../types/io.k8s.api.core.v1.ServiceAccountTokenProjection.dhall))
} : ../types/io.k8s.api.core.v1.VolumeProjection.dhall

View File

@ -1,2 +1,3 @@
{ pathPrefix = ([] : Optional (Text))
, readOnly = ([] : Optional (Bool))
} : ../types/io.k8s.api.extensions.v1beta1.AllowedHostPath.dhall

View File

@ -3,8 +3,10 @@
, allowedCapabilities = ([] : Optional (List Text))
, allowedFlexVolumes = ([] : Optional (List ../types/io.k8s.api.extensions.v1beta1.AllowedFlexVolume.dhall))
, allowedHostPaths = ([] : Optional (List ../types/io.k8s.api.extensions.v1beta1.AllowedHostPath.dhall))
, allowedUnsafeSysctls = ([] : Optional (List Text))
, defaultAddCapabilities = ([] : Optional (List Text))
, defaultAllowPrivilegeEscalation = ([] : Optional (Bool))
, forbiddenSysctls = ([] : Optional (List Text))
, fsGroup = _params.fsGroup
, hostIPC = ([] : Optional (Bool))
, hostNetwork = ([] : Optional (Bool))

View File

@ -1,2 +1,3 @@
{ pathPrefix = ([] : Optional (Text))
, readOnly = ([] : Optional (Bool))
} : ../types/io.k8s.api.policy.v1beta1.AllowedHostPath.dhall

View File

@ -3,8 +3,10 @@
, allowedCapabilities = ([] : Optional (List Text))
, allowedFlexVolumes = ([] : Optional (List ../types/io.k8s.api.policy.v1beta1.AllowedFlexVolume.dhall))
, allowedHostPaths = ([] : Optional (List ../types/io.k8s.api.policy.v1beta1.AllowedHostPath.dhall))
, allowedUnsafeSysctls = ([] : Optional (List Text))
, defaultAddCapabilities = ([] : Optional (List Text))
, defaultAllowPrivilegeEscalation = ([] : Optional (Bool))
, forbiddenSysctls = ([] : Optional (List Text))
, fsGroup = _params.fsGroup
, hostIPC = ([] : Optional (Bool))
, hostNetwork = ([] : Optional (Bool))

View File

@ -1,5 +1,6 @@
\(_params : {apiVersion : (Text), kind : (Text), metadata : (../types/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta.dhall), provisioner : (Text)}) ->
{ allowVolumeExpansion = ([] : Optional (Bool))
, allowedTopologies = ([] : Optional (List ../types/io.k8s.api.core.v1.TopologySelectorTerm.dhall))
, apiVersion = _params.apiVersion
, kind = _params.kind
, metadata = _params.metadata

View File

@ -1,5 +1,6 @@
\(_params : {apiVersion : (Text), kind : (Text), metadata : (../types/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta.dhall), provisioner : (Text)}) ->
{ allowVolumeExpansion = ([] : Optional (Bool))
, allowedTopologies = ([] : Optional (List ../types/io.k8s.api.core.v1.TopologySelectorTerm.dhall))
, apiVersion = _params.apiVersion
, kind = _params.kind
, metadata = _params.metadata

View File

@ -1,3 +1 @@
\(_params : {Raw : (Text)}) ->
{ Raw = _params.Raw
} : ../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSON.dhall
{=} : ../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSON.dhall

View File

@ -1,4 +1 @@
\(_params : {JSONSchemas : (List ../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps.dhall), Schema : (../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps.dhall)}) ->
{ JSONSchemas = _params.JSONSchemas
, Schema = _params.Schema
} : ../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray.dhall
{=} : ../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray.dhall

View File

@ -1,4 +1 @@
\(_params : {Allows : (Bool), Schema : (../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps.dhall)}) ->
{ Allows = _params.Allows
, Schema = _params.Schema
} : ../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool.dhall
{=} : ../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool.dhall

View File

@ -1,4 +1 @@
\(_params : {Property : (List Text), Schema : (../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps.dhall)}) ->
{ Property = _params.Property
, Schema = _params.Schema
} : ../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray.dhall
{=} : ../types/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray.dhall

View File

@ -0,0 +1,5 @@
{ apiVersion : (Text)
, kind : (Text)
, metadata : (./io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta.dhall)
, spec : (Optional (./io.k8s.api.coordination.v1beta1.LeaseSpec.dhall))
}

View File

@ -0,0 +1,5 @@
{ apiVersion : (Text)
, items : (List ./io.k8s.api.coordination.v1beta1.Lease.dhall)
, kind : (Text)
, metadata : (./io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta.dhall)
}

View File

@ -0,0 +1,6 @@
{ acquireTime : (Optional (./io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime.dhall))
, holderIdentity : (Optional (Text))
, leaseDurationSeconds : (Optional (Integer))
, leaseTransitions : (Optional (Integer))
, renewTime : (Optional (./io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime.dhall))
}

View File

@ -0,0 +1,5 @@
{ fsType : (Optional (Text))
, readOnly : (Optional (Bool))
, secretRef : (Optional (./io.k8s.api.core.v1.SecretReference.dhall))
, volumeID : (Text)
}

View File

@ -1,4 +1,5 @@
{ fsType : (Optional (Text))
, readOnly : (Optional (Bool))
, secretRef : (Optional (./io.k8s.api.core.v1.LocalObjectReference.dhall))
, volumeID : (Text)
}

View File

@ -4,7 +4,7 @@
, azureFile : (Optional (./io.k8s.api.core.v1.AzureFilePersistentVolumeSource.dhall))
, capacity : (Optional ((List {mapKey : Text, mapValue : Text})))
, cephfs : (Optional (./io.k8s.api.core.v1.CephFSPersistentVolumeSource.dhall))
, cinder : (Optional (./io.k8s.api.core.v1.CinderVolumeSource.dhall))
, cinder : (Optional (./io.k8s.api.core.v1.CinderPersistentVolumeSource.dhall))
, claimRef : (Optional (./io.k8s.api.core.v1.ObjectReference.dhall))
, csi : (Optional (./io.k8s.api.core.v1.CSIPersistentVolumeSource.dhall))
, fc : (Optional (./io.k8s.api.core.v1.FCVolumeSource.dhall))

View File

@ -0,0 +1,2 @@
{ conditionType : (Text)
}

View File

@ -4,4 +4,5 @@
, runAsUser : (Optional (Integer))
, seLinuxOptions : (Optional (./io.k8s.api.core.v1.SELinuxOptions.dhall))
, supplementalGroups : (Optional (List Integer))
, sysctls : (Optional (List ./io.k8s.api.core.v1.Sysctl.dhall))
}

View File

@ -15,6 +15,7 @@
, nodeSelector : (Optional ((List {mapKey : Text, mapValue : Text})))
, priority : (Optional (Integer))
, priorityClassName : (Optional (Text))
, readinessGates : (Optional (List ./io.k8s.api.core.v1.PodReadinessGate.dhall))
, restartPolicy : (Optional (Text))
, schedulerName : (Optional (Text))
, securityContext : (Optional (./io.k8s.api.core.v1.PodSecurityContext.dhall))

View File

@ -1,3 +1,4 @@
{ hard : (Optional ((List {mapKey : Text, mapValue : Text})))
, scopeSelector : (Optional (./io.k8s.api.core.v1.ScopeSelector.dhall))
, scopes : (Optional (List Text))
}

View File

@ -0,0 +1,2 @@
{ matchExpressions : (Optional (List ./io.k8s.api.core.v1.ScopedResourceSelectorRequirement.dhall))
}

View File

@ -0,0 +1,4 @@
{ operator : (Text)
, scopeName : (Text)
, values : (Optional (List Text))
}

View File

@ -0,0 +1,4 @@
{ audience : (Optional (Text))
, expirationSeconds : (Optional (Integer))
, path : (Text)
}

View File

@ -0,0 +1,3 @@
{ name : (Text)
, value : (Text)
}

View File

@ -0,0 +1,3 @@
{ key : (Text)
, values : (List Text)
}

View File

@ -0,0 +1,2 @@
{ matchLabelExpressions : (Optional (List ./io.k8s.api.core.v1.TopologySelectorLabelRequirement.dhall))
}

View File

@ -1,4 +1,5 @@
{ configMap : (Optional (./io.k8s.api.core.v1.ConfigMapProjection.dhall))
, downwardAPI : (Optional (./io.k8s.api.core.v1.DownwardAPIProjection.dhall))
, secret : (Optional (./io.k8s.api.core.v1.SecretProjection.dhall))
, serviceAccountToken : (Optional (./io.k8s.api.core.v1.ServiceAccountTokenProjection.dhall))
}

View File

@ -1,2 +1,3 @@
{ pathPrefix : (Optional (Text))
, readOnly : (Optional (Bool))
}

View File

@ -2,8 +2,10 @@
, allowedCapabilities : (Optional (List Text))
, allowedFlexVolumes : (Optional (List ./io.k8s.api.extensions.v1beta1.AllowedFlexVolume.dhall))
, allowedHostPaths : (Optional (List ./io.k8s.api.extensions.v1beta1.AllowedHostPath.dhall))
, allowedUnsafeSysctls : (Optional (List Text))
, defaultAddCapabilities : (Optional (List Text))
, defaultAllowPrivilegeEscalation : (Optional (Bool))
, forbiddenSysctls : (Optional (List Text))
, fsGroup : (./io.k8s.api.extensions.v1beta1.FSGroupStrategyOptions.dhall)
, hostIPC : (Optional (Bool))
, hostNetwork : (Optional (Bool))

View File

@ -1,2 +1,3 @@
{ pathPrefix : (Optional (Text))
, readOnly : (Optional (Bool))
}

View File

@ -2,8 +2,10 @@
, allowedCapabilities : (Optional (List Text))
, allowedFlexVolumes : (Optional (List ./io.k8s.api.policy.v1beta1.AllowedFlexVolume.dhall))
, allowedHostPaths : (Optional (List ./io.k8s.api.policy.v1beta1.AllowedHostPath.dhall))
, allowedUnsafeSysctls : (Optional (List Text))
, defaultAddCapabilities : (Optional (List Text))
, defaultAllowPrivilegeEscalation : (Optional (Bool))
, forbiddenSysctls : (Optional (List Text))
, fsGroup : (./io.k8s.api.policy.v1beta1.FSGroupStrategyOptions.dhall)
, hostIPC : (Optional (Bool))
, hostNetwork : (Optional (Bool))

View File

@ -1,4 +1,5 @@
{ allowVolumeExpansion : (Optional (Bool))
, allowedTopologies : (Optional (List ./io.k8s.api.core.v1.TopologySelectorTerm.dhall))
, apiVersion : (Text)
, kind : (Text)
, metadata : (./io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta.dhall)

View File

@ -1,4 +1,5 @@
{ allowVolumeExpansion : (Optional (Bool))
, allowedTopologies : (Optional (List ./io.k8s.api.core.v1.TopologySelectorTerm.dhall))
, apiVersion : (Text)
, kind : (Text)
, metadata : (./io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta.dhall)

View File

@ -1,3 +1 @@
{ JSONSchemas : (List ./io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps.dhall)
, Schema : (./io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps.dhall)
}
{}

View File

@ -1,3 +1 @@
{ Allows : (Bool)
, Schema : (./io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps.dhall)
}
{}

View File

@ -1,3 +1 @@
{ Property : (List Text)
, Schema : (./io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps.dhall)
}
{}