/// <summary> /// Initializes a new instance of the /// V1beta1CustomResourceDefinitionStatus class. /// </summary> /// <param name="acceptedNames">AcceptedNames are the names that are /// actually being used to serve discovery They may be different than /// the names in spec.</param> /// <param name="conditions">Conditions indicate state for particular /// aspects of a CustomResourceDefinition</param> /// <param name="storedVersions">StoredVersions are all versions of /// CustomResources that were ever persisted. Tracking these versions /// allows a migration path for stored versions in etcd. The field is /// mutable so the migration controller can first finish a migration to /// another version (i.e. that no old objects are left in the storage), /// and then remove the rest of the versions from this list. None of /// the versions in this list can be removed from the spec.Versions /// field.</param> public V1beta1CustomResourceDefinitionStatus(V1beta1CustomResourceDefinitionNames acceptedNames, IList <V1beta1CustomResourceDefinitionCondition> conditions, IList <string> storedVersions) { AcceptedNames = acceptedNames; Conditions = conditions; StoredVersions = storedVersions; 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="version">Version is the version this resource belongs /// in</param> /// <param name="validation">Validation describes the validation /// methods for CustomResources</param> public V1beta1CustomResourceDefinitionSpec(string group, V1beta1CustomResourceDefinitionNames names, string scope, string version, V1beta1CustomResourceValidation validation = default(V1beta1CustomResourceValidation)) { Group = group; Names = names; Scope = scope; Validation = validation; Version = version; 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(); }