mirror of
https://github.com/rancher/types.git
synced 2025-06-26 05:31:32 +00:00
Generated Changes
This commit is contained in:
parent
1eb956a587
commit
847b69705b
@ -8621,6 +8621,22 @@ func (in *SaveAsTemplateInput) DeepCopy() *SaveAsTemplateInput {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *SaveAsTemplateOutput) DeepCopyInto(out *SaveAsTemplateOutput) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SaveAsTemplateOutput.
|
||||
func (in *SaveAsTemplateOutput) DeepCopy() *SaveAsTemplateOutput {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(SaveAsTemplateOutput)
|
||||
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,7 +148,7 @@ type ClusterOperations interface {
|
||||
|
||||
ActionRunSecurityScan(resource *Cluster, input *CisScanConfig) error
|
||||
|
||||
ActionSaveAsTemplate(resource *Cluster, input *SaveAsTemplateInput) error
|
||||
ActionSaveAsTemplate(resource *Cluster, input *SaveAsTemplateInput) (*SaveAsTemplateOutput, error)
|
||||
|
||||
ActionViewMonitoring(resource *Cluster) (*MonitoringOutput, error)
|
||||
}
|
||||
@ -258,9 +258,10 @@ func (c *ClusterClient) ActionRunSecurityScan(resource *Cluster, input *CisScanC
|
||||
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) ActionSaveAsTemplate(resource *Cluster, input *SaveAsTemplateInput) (*SaveAsTemplateOutput, error) {
|
||||
resp := &SaveAsTemplateOutput{}
|
||||
err := c.apiClient.Ops.DoAction(ClusterType, "saveAsTemplate", &resource.Resource, input, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterClient) ActionViewMonitoring(resource *Cluster) (*MonitoringOutput, error) {
|
||||
|
12
client/management/v3/zz_generated_save_as_template_output.go
Normal file
12
client/management/v3/zz_generated_save_as_template_output.go
Normal file
@ -0,0 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
SaveAsTemplateOutputType = "saveAsTemplateOutput"
|
||||
SaveAsTemplateOutputFieldClusterTemplateName = "clusterTemplateName"
|
||||
SaveAsTemplateOutputFieldClusterTemplateRevisionName = "clusterTemplateRevisionName"
|
||||
)
|
||||
|
||||
type SaveAsTemplateOutput struct {
|
||||
ClusterTemplateName string `json:"clusterTemplateName,omitempty" yaml:"clusterTemplateName,omitempty"`
|
||||
ClusterTemplateRevisionName string `json:"clusterTemplateRevisionName,omitempty" yaml:"clusterTemplateRevisionName,omitempty"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user