/// <summary> /// Initializes a new instance of the /// V1beta1CustomResourceDefinitionSpec class. /// </summary> /// <param name="group">Group is the group this resource belongs /// in</param> /// <param name="names">Names are the names used to describe this /// custom resource</param> /// <param name="scope">Scope indicates whether this resource is /// cluster or namespace scoped. Default is namespaced</param> /// <param name="version">Version is the version this resource belongs /// in</param> /// <param name="subresources">Subresources describes the subresources /// for CustomResources This field is alpha-level and should only be /// sent to servers that enable subresources via the /// CustomResourceSubresources feature gate.</param> /// <param name="validation">Validation describes the validation /// methods for CustomResources</param> public V1beta1CustomResourceDefinitionSpec(string group, V1beta1CustomResourceDefinitionNames names, string scope, string version, V1beta1CustomResourceSubresources subresources = default(V1beta1CustomResourceSubresources), V1beta1CustomResourceValidation validation = default(V1beta1CustomResourceValidation)) { Group = group; Names = names; Scope = scope; Subresources = subresources; Validation = validation; Version = version; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// V1beta1CustomResourceDefinitionVersion class. /// </summary> /// <param name="name">name is the version name, e.g. “v1”, “v2beta1”, /// etc. The custom resources are served under this version at /// `/apis/<group>/<version>/...` if `served` is /// true.</param> /// <param name="served">served is a flag enabling/disabling this /// version from being served via REST APIs</param> /// <param name="storage">storage indicates this version should be used /// when persisting custom resources to storage. There must be exactly /// one version with storage=true.</param> /// <param name="additionalPrinterColumns">additionalPrinterColumns /// specifies additional columns returned in Table output. See /// https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables /// for details. Top-level and per-version columns are mutually /// exclusive. Per-version columns must not all be set to identical /// values (top-level columns should be used instead). If no top-level /// or per-version columns are specified, a single column displaying /// the age of the custom resource is used.</param> /// <param name="schema">schema describes the schema used for /// validation and pruning of this version of the custom resource. /// Top-level and per-version schemas are mutually exclusive. /// Per-version schemas must not all be set to identical values /// (top-level validation schema should be used instead).</param> /// <param name="subresources">subresources specify what subresources /// this version of the defined custom resource have. Top-level and /// per-version subresources are mutually exclusive. Per-version /// subresources must not all be set to identical values (top-level /// subresources should be used instead).</param> public V1beta1CustomResourceDefinitionVersion(string name, bool served, bool storage, IList <V1beta1CustomResourceColumnDefinition> additionalPrinterColumns = default(IList <V1beta1CustomResourceColumnDefinition>), V1beta1CustomResourceValidation schema = default(V1beta1CustomResourceValidation), V1beta1CustomResourceSubresources subresources = default(V1beta1CustomResourceSubresources)) { AdditionalPrinterColumns = additionalPrinterColumns; Name = name; Schema = schema; Served = served; Storage = storage; Subresources = subresources; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// V1beta1CustomResourceDefinitionSpec class. /// </summary> /// <param name="group">Group is the group this resource belongs /// in</param> /// <param name="names">Names are the names used to describe this /// custom resource</param> /// <param name="scope">Scope indicates whether this resource is /// cluster or namespace scoped. Default is namespaced</param> /// <param name="additionalPrinterColumns">AdditionalPrinterColumns are /// additional columns shown e.g. in kubectl next to the name. Defaults /// to a created-at column.</param> /// <param name="subresources">Subresources describes the subresources /// for CustomResources</param> /// <param name="validation">Validation describes the validation /// methods for CustomResources</param> /// <param name="version">Version is the version this resource belongs /// in Should be always first item in Versions field if provided. /// Optional, but at least one of Version or Versions must be set. /// Deprecated: Please use `Versions`.</param> /// <param name="versions">Versions is the list of all supported /// versions for this resource. If Version field is provided, this /// field is optional. Validation: All versions must use the same /// validation schema for now. i.e., top level Validation field is /// applied to all of these versions. Order: The version name will be /// used to compute the order. If the version string is "kube-like", it /// will sort above non "kube-like" version strings, which are ordered /// lexicographically. "Kube-like" versions start with a "v", then are /// followed by a number (the major version), then optionally the /// string "alpha" or "beta" and another number (the minor version). /// These are sorted first by GA > beta > alpha (where GA is a /// version with no suffix such as beta or alpha), and then by /// comparing major version, then minor version. An example sorted list /// of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, /// v11alpha2, foo1, foo10.</param> public V1beta1CustomResourceDefinitionSpec(string group, V1beta1CustomResourceDefinitionNames names, string scope, IList <V1beta1CustomResourceColumnDefinition> additionalPrinterColumns = default(IList <V1beta1CustomResourceColumnDefinition>), V1beta1CustomResourceSubresources subresources = default(V1beta1CustomResourceSubresources), V1beta1CustomResourceValidation validation = default(V1beta1CustomResourceValidation), string version = default(string), IList <V1beta1CustomResourceDefinitionVersion> versions = default(IList <V1beta1CustomResourceDefinitionVersion>)) { AdditionalPrinterColumns = additionalPrinterColumns; Group = group; Names = names; Scope = scope; Subresources = subresources; Validation = validation; Version = version; Versions = versions; CustomInit(); }