update generated client base on v1.8.4 with enable intstr quantity
This commit is contained in:
128
src/generated/Models/V1CephFSVolumeSource.cs
Normal file
128
src/generated/Models/V1CephFSVolumeSource.cs
Normal file
@@ -0,0 +1,128 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a Ceph Filesystem mount that lasts the lifetime of a pod
|
||||
/// Cephfs volumes do not support ownership management or SELinux
|
||||
/// relabeling.
|
||||
/// </summary>
|
||||
public partial class V1CephFSVolumeSource
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1CephFSVolumeSource class.
|
||||
/// </summary>
|
||||
public V1CephFSVolumeSource()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1CephFSVolumeSource class.
|
||||
/// </summary>
|
||||
/// <param name="monitors">Required: Monitors is a collection of Ceph
|
||||
/// monitors More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it</param>
|
||||
/// <param name="path">Optional: Used as the mounted root, rather than
|
||||
/// the full Ceph tree, default is /</param>
|
||||
/// <param name="readOnlyProperty">Optional: Defaults to false
|
||||
/// (read/write). ReadOnly here will force the ReadOnly setting in
|
||||
/// VolumeMounts. More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it</param>
|
||||
/// <param name="secretFile">Optional: SecretFile is the path to key
|
||||
/// ring for User, default is /etc/ceph/user.secret More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it</param>
|
||||
/// <param name="secretRef">Optional: SecretRef is reference to the
|
||||
/// authentication secret for User, default is empty. More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it</param>
|
||||
/// <param name="user">Optional: User is the rados user name, default
|
||||
/// is admin More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it</param>
|
||||
public V1CephFSVolumeSource(IList<string> monitors, string path = default(string), bool? readOnlyProperty = default(bool?), string secretFile = default(string), V1LocalObjectReference secretRef = default(V1LocalObjectReference), string user = default(string))
|
||||
{
|
||||
Monitors = monitors;
|
||||
Path = path;
|
||||
ReadOnlyProperty = readOnlyProperty;
|
||||
SecretFile = secretFile;
|
||||
SecretRef = secretRef;
|
||||
User = user;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets required: Monitors is a collection of Ceph monitors
|
||||
/// More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "monitors")]
|
||||
public IList<string> Monitors { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional: Used as the mounted root, rather than the
|
||||
/// full Ceph tree, default is /
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "path")]
|
||||
public string Path { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional: Defaults to false (read/write). ReadOnly
|
||||
/// here will force the ReadOnly setting in VolumeMounts. More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "readOnly")]
|
||||
public bool? ReadOnlyProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional: SecretFile is the path to key ring for User,
|
||||
/// default is /etc/ceph/user.secret More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "secretFile")]
|
||||
public string SecretFile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional: SecretRef is reference to the authentication
|
||||
/// secret for User, default is empty. More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "secretRef")]
|
||||
public V1LocalObjectReference SecretRef { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional: User is the rados user name, default is
|
||||
/// admin More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "user")]
|
||||
public string User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Monitors == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Monitors");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user