mirror of
https://github.com/rancher/types.git
synced 2025-08-31 12:48:45 +00:00
Generated Changes
This commit is contained in:
committed by
Denise Schannon
parent
355073815f
commit
68a3bfdbb7
@@ -8413,6 +8413,22 @@ func (in *SamlConfigTestOutput) DeepCopy() *SamlConfigTestOutput {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *SaveAsTemplateInput) DeepCopyInto(out *SaveAsTemplateInput) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SaveAsTemplateInput.
|
||||
func (in *SaveAsTemplateInput) DeepCopy() *SaveAsTemplateInput {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(SaveAsTemplateInput)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *SchedulerService) DeepCopyInto(out *SchedulerService) {
|
||||
*out = *in
|
||||
|
@@ -148,6 +148,8 @@ type ClusterOperations interface {
|
||||
|
||||
ActionRunSecurityScan(resource *Cluster) error
|
||||
|
||||
ActionSaveAsTemplate(resource *Cluster, input *SaveAsTemplateInput) error
|
||||
|
||||
ActionViewMonitoring(resource *Cluster) (*MonitoringOutput, error)
|
||||
}
|
||||
|
||||
@@ -256,6 +258,11 @@ func (c *ClusterClient) ActionRunSecurityScan(resource *Cluster) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *ClusterClient) ActionSaveAsTemplate(resource *Cluster, input *SaveAsTemplateInput) error {
|
||||
err := c.apiClient.Ops.DoAction(ClusterType, "saveAsTemplate", &resource.Resource, input, nil)
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *ClusterClient) ActionViewMonitoring(resource *Cluster) (*MonitoringOutput, error) {
|
||||
resp := &MonitoringOutput{}
|
||||
err := c.apiClient.Ops.DoAction(ClusterType, "viewMonitoring", &resource.Resource, nil, resp)
|
||||
|
12
client/management/v3/zz_generated_save_as_template_input.go
Normal file
12
client/management/v3/zz_generated_save_as_template_input.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
SaveAsTemplateInputType = "saveAsTemplateInput"
|
||||
SaveAsTemplateInputFieldClusterTemplateName = "clusterTemplateName"
|
||||
SaveAsTemplateInputFieldClusterTemplateRevisionName = "clusterTemplateRevisionName"
|
||||
)
|
||||
|
||||
type SaveAsTemplateInput struct {
|
||||
ClusterTemplateName string `json:"clusterTemplateName,omitempty" yaml:"clusterTemplateName,omitempty"`
|
||||
ClusterTemplateRevisionName string `json:"clusterTemplateRevisionName,omitempty" yaml:"clusterTemplateRevisionName,omitempty"`
|
||||
}
|
Reference in New Issue
Block a user