mirror of
https://github.com/rancher/types.git
synced 2025-07-10 03:53:02 +00:00
Update generated code
This commit is contained in:
parent
46a1ea01a8
commit
4c50428de7
@ -303,6 +303,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
||||
in.(*Project).DeepCopyInto(out.(*Project))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&Project{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ProjectCondition).DeepCopyInto(out.(*ProjectCondition))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ProjectCondition{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ProjectList).DeepCopyInto(out.(*ProjectList))
|
||||
return nil
|
||||
@ -319,6 +323,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
||||
in.(*ProjectSpec).DeepCopyInto(out.(*ProjectSpec))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ProjectSpec{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ProjectStatus).DeepCopyInto(out.(*ProjectStatus))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ProjectStatus{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*Question).DeepCopyInto(out.(*Question))
|
||||
return nil
|
||||
@ -2268,6 +2276,7 @@ func (in *Project) DeepCopyInto(out *Project) {
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
out.Spec = in.Spec
|
||||
in.Status.DeepCopyInto(&out.Status)
|
||||
return
|
||||
}
|
||||
|
||||
@ -2290,6 +2299,22 @@ func (in *Project) DeepCopyObject() runtime.Object {
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ProjectCondition) DeepCopyInto(out *ProjectCondition) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectCondition.
|
||||
func (in *ProjectCondition) DeepCopy() *ProjectCondition {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ProjectCondition)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ProjectList) DeepCopyInto(out *ProjectList) {
|
||||
*out = *in
|
||||
@ -2403,6 +2428,27 @@ func (in *ProjectSpec) DeepCopy() *ProjectSpec {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus) {
|
||||
*out = *in
|
||||
if in.Conditions != nil {
|
||||
in, out := &in.Conditions, &out.Conditions
|
||||
*out = make([]ProjectCondition, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectStatus.
|
||||
func (in *ProjectStatus) DeepCopy() *ProjectStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ProjectStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Question) DeepCopyInto(out *Question) {
|
||||
*out = *in
|
||||
|
@ -8,6 +8,7 @@ const (
|
||||
ProjectType = "project"
|
||||
ProjectFieldAnnotations = "annotations"
|
||||
ProjectFieldClusterId = "clusterId"
|
||||
ProjectFieldConditions = "conditions"
|
||||
ProjectFieldCreated = "created"
|
||||
ProjectFieldFinalizers = "finalizers"
|
||||
ProjectFieldId = "id"
|
||||
@ -16,22 +17,29 @@ const (
|
||||
ProjectFieldOwnerReferences = "ownerReferences"
|
||||
ProjectFieldPodSecurityPolicyTemplateId = "podSecurityPolicyTemplateId"
|
||||
ProjectFieldRemoved = "removed"
|
||||
ProjectFieldState = "state"
|
||||
ProjectFieldTransitioning = "transitioning"
|
||||
ProjectFieldTransitioningMessage = "transitioningMessage"
|
||||
ProjectFieldUuid = "uuid"
|
||||
)
|
||||
|
||||
type Project struct {
|
||||
types.Resource
|
||||
Annotations map[string]string `json:"annotations,omitempty"`
|
||||
ClusterId string `json:"clusterId,omitempty"`
|
||||
Created string `json:"created,omitempty"`
|
||||
Finalizers []string `json:"finalizers,omitempty"`
|
||||
Id string `json:"id,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"`
|
||||
PodSecurityPolicyTemplateId string `json:"podSecurityPolicyTemplateId,omitempty"`
|
||||
Removed string `json:"removed,omitempty"`
|
||||
Uuid string `json:"uuid,omitempty"`
|
||||
Annotations map[string]string `json:"annotations,omitempty"`
|
||||
ClusterId string `json:"clusterId,omitempty"`
|
||||
Conditions []ProjectCondition `json:"conditions,omitempty"`
|
||||
Created string `json:"created,omitempty"`
|
||||
Finalizers []string `json:"finalizers,omitempty"`
|
||||
Id string `json:"id,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"`
|
||||
PodSecurityPolicyTemplateId string `json:"podSecurityPolicyTemplateId,omitempty"`
|
||||
Removed string `json:"removed,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
Transitioning string `json:"transitioning,omitempty"`
|
||||
TransitioningMessage string `json:"transitioningMessage,omitempty"`
|
||||
Uuid string `json:"uuid,omitempty"`
|
||||
}
|
||||
type ProjectCollection struct {
|
||||
types.Collection
|
||||
|
20
client/management/v3/zz_generated_project_condition.go
Normal file
20
client/management/v3/zz_generated_project_condition.go
Normal file
@ -0,0 +1,20 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ProjectConditionType = "projectCondition"
|
||||
ProjectConditionFieldLastTransitionTime = "lastTransitionTime"
|
||||
ProjectConditionFieldLastUpdateTime = "lastUpdateTime"
|
||||
ProjectConditionFieldMessage = "message"
|
||||
ProjectConditionFieldReason = "reason"
|
||||
ProjectConditionFieldStatus = "status"
|
||||
ProjectConditionFieldType = "type"
|
||||
)
|
||||
|
||||
type ProjectCondition struct {
|
||||
LastTransitionTime string `json:"lastTransitionTime,omitempty"`
|
||||
LastUpdateTime string `json:"lastUpdateTime,omitempty"`
|
||||
Message string `json:"message,omitempty"`
|
||||
Reason string `json:"reason,omitempty"`
|
||||
Status string `json:"status,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
}
|
10
client/management/v3/zz_generated_project_status.go
Normal file
10
client/management/v3/zz_generated_project_status.go
Normal file
@ -0,0 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ProjectStatusType = "projectStatus"
|
||||
ProjectStatusFieldConditions = "conditions"
|
||||
)
|
||||
|
||||
type ProjectStatus struct {
|
||||
Conditions []ProjectCondition `json:"conditions,omitempty"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user