1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 12:48:45 +00:00

Generated Changes

This commit is contained in:
Prachi Damle
2019-10-14 15:25:34 -07:00
committed by Denise Schannon
parent 355073815f
commit 68a3bfdbb7
3 changed files with 35 additions and 0 deletions

View File

@@ -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

View File

@@ -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)

View 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"`
}