2017-10-19 19:53:02 +00:00
|
|
|
// <auto-generated>
|
|
|
|
|
// Code generated by Microsoft (R) AutoRest Code Generator.
|
2017-06-06 23:02:14 -07:00
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
|
|
|
// regenerated.
|
2017-10-19 19:53:02 +00:00
|
|
|
// </auto-generated>
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
namespace k8s.Models
|
|
|
|
|
{
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ConfigMap holds configuration data for pods to consume.
|
|
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public partial class V1ConfigMap
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1ConfigMap class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1ConfigMap()
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
2017-10-19 19:53:02 +00:00
|
|
|
CustomInit();
|
2017-06-06 23:02:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1ConfigMap class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="apiVersion">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:
|
2019-10-02 15:16:08 -07:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</param>
|
2018-03-28 10:30:09 +08:00
|
|
|
/// <param name="binaryData">BinaryData contains the binary data. Each
|
|
|
|
|
/// key must consist of alphanumeric characters, '-', '_' or '.'.
|
|
|
|
|
/// BinaryData can contain byte sequences that are not in the UTF-8
|
|
|
|
|
/// range. The keys stored in BinaryData must not overlap with the ones
|
|
|
|
|
/// in the Data field, this is enforced during validation process.
|
|
|
|
|
/// Using this field will require 1.10+ apiserver and kubelet.</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="data">Data contains the configuration data. Each key
|
2018-03-28 10:30:09 +08:00
|
|
|
/// must consist of alphanumeric characters, '-', '_' or '.'. Values
|
|
|
|
|
/// with non-UTF-8 byte sequences must use the BinaryData field. The
|
|
|
|
|
/// keys stored in Data must not overlap with the keys in the
|
|
|
|
|
/// BinaryData field, this is enforced during validation
|
|
|
|
|
/// process.</param>
|
2020-04-10 19:17:47 -07:00
|
|
|
/// <param name="immutable">Immutable, if set to true, ensures that
|
|
|
|
|
/// data stored in the ConfigMap cannot be updated (only object
|
|
|
|
|
/// metadata can be modified). If not set to true, the field can be
|
2021-04-09 13:37:17 -07:00
|
|
|
/// modified at any time. Defaulted to nil.</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="kind">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:
|
2019-10-02 15:16:08 -07:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="metadata">Standard object's metadata. More info:
|
2019-10-02 15:16:08 -07:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
2020-04-10 19:17:47 -07:00
|
|
|
public V1ConfigMap(string apiVersion = default(string), IDictionary<string, byte[]> binaryData = default(IDictionary<string, byte[]>), IDictionary<string, string> data = default(IDictionary<string, string>), bool? immutable = default(bool?), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
ApiVersion = apiVersion;
|
2018-03-28 10:30:09 +08:00
|
|
|
BinaryData = binaryData;
|
2017-06-06 23:02:14 -07:00
|
|
|
Data = data;
|
2020-04-10 19:17:47 -07:00
|
|
|
Immutable = immutable;
|
2017-06-06 23:02:14 -07:00
|
|
|
Kind = kind;
|
|
|
|
|
Metadata = metadata;
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An initialization method that performs custom operations like setting defaults
|
|
|
|
|
/// </summary>
|
|
|
|
|
partial void CustomInit();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets 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:
|
2019-10-02 15:16:08 -07:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "apiVersion")]
|
|
|
|
|
public string ApiVersion { get; set; }
|
|
|
|
|
|
2018-03-28 10:30:09 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets binaryData contains the binary data. Each key must
|
|
|
|
|
/// consist of alphanumeric characters, '-', '_' or '.'. BinaryData can
|
|
|
|
|
/// contain byte sequences that are not in the UTF-8 range. The keys
|
|
|
|
|
/// stored in BinaryData must not overlap with the ones in the Data
|
|
|
|
|
/// field, this is enforced during validation process. Using this field
|
|
|
|
|
/// will require 1.10+ apiserver and kubelet.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "binaryData")]
|
|
|
|
|
public IDictionary<string, byte[]> BinaryData { get; set; }
|
|
|
|
|
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <summary>
|
2017-10-19 19:53:02 +00:00
|
|
|
/// Gets or sets data contains the configuration data. Each key must
|
2018-03-28 10:30:09 +08:00
|
|
|
/// consist of alphanumeric characters, '-', '_' or '.'. Values with
|
|
|
|
|
/// non-UTF-8 byte sequences must use the BinaryData field. The keys
|
|
|
|
|
/// stored in Data must not overlap with the keys in the BinaryData
|
|
|
|
|
/// field, this is enforced during validation process.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "data")]
|
|
|
|
|
public IDictionary<string, string> Data { get; set; }
|
|
|
|
|
|
2020-04-10 19:17:47 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets immutable, if set to true, ensures that data stored in
|
|
|
|
|
/// the ConfigMap cannot be updated (only object metadata can be
|
|
|
|
|
/// modified). If not set to true, the field can be modified at any
|
2021-04-09 13:37:17 -07:00
|
|
|
/// time. Defaulted to nil.
|
2020-04-10 19:17:47 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "immutable")]
|
|
|
|
|
public bool? Immutable { get; set; }
|
|
|
|
|
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets 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:
|
2019-10-02 15:16:08 -07:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "kind")]
|
|
|
|
|
public string Kind { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets standard object's metadata. More info:
|
2019-10-02 15:16:08 -07:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "metadata")]
|
|
|
|
|
public V1ObjectMeta Metadata { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|