forked from kubernetes-client/go
/
v1beta1_custom_resource_definition_spec.go
32 lines (24 loc) · 1.21 KB
/
v1beta1_custom_resource_definition_spec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// CustomResourceDefinitionSpec describes how a user wants their resource to appear
type V1beta1CustomResourceDefinitionSpec struct {
// Group is the group this resource belongs in
Group string `json:"group"`
// Names are the names used to describe this custom resource
Names *V1beta1CustomResourceDefinitionNames `json:"names"`
// Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced
Scope string `json:"scope"`
// 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.
Subresources *V1beta1CustomResourceSubresources `json:"subresources,omitempty"`
// Validation describes the validation methods for CustomResources
Validation *V1beta1CustomResourceValidation `json:"validation,omitempty"`
// Version is the version this resource belongs in
Version string `json:"version"`
}