mirror of
https://github.com/rancher/types.git
synced 2025-07-02 16:31:48 +00:00
Go generate
This commit is contained in:
parent
bc35ebb540
commit
d38912329a
@ -5996,6 +5996,15 @@ func (in *RoleTemplate) DeepCopyInto(out *RoleTemplate) {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.Enabled != nil {
|
||||
in, out := &in.Enabled, &out.Enabled
|
||||
if *in == nil {
|
||||
*out = nil
|
||||
} else {
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
}
|
||||
if in.RoleTemplateNames != nil {
|
||||
in, out := &in.RoleTemplateNames, &out.RoleTemplateNames
|
||||
*out = make([]string, len(*in))
|
||||
|
@ -12,6 +12,7 @@ const (
|
||||
RoleTemplateFieldCreated = "created"
|
||||
RoleTemplateFieldCreatorID = "creatorId"
|
||||
RoleTemplateFieldDescription = "description"
|
||||
RoleTemplateFieldEnabled = "enabled"
|
||||
RoleTemplateFieldExternal = "external"
|
||||
RoleTemplateFieldHidden = "hidden"
|
||||
RoleTemplateFieldLabels = "labels"
|
||||
@ -31,6 +32,7 @@ type RoleTemplate struct {
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
|
||||
Description string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||
Enabled *bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
|
||||
External bool `json:"external,omitempty" yaml:"external,omitempty"`
|
||||
Hidden bool `json:"hidden,omitempty" yaml:"hidden,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user