From 676e9776a28ffc6cf376abda7ccd3fa18891d3b1 Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Fri, 8 Feb 2019 21:29:29 +0200 Subject: [PATCH] go generate --- .../v3/zz_generated_deepcopy.go | 16 ++++++++++++++++ client/management/v3/zz_generated_cluster.go | 9 +++++---- .../v3/zz_generated_rotate_certificate_output.go | 10 ++++++++++ 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 client/management/v3/zz_generated_rotate_certificate_output.go diff --git a/apis/management.cattle.io/v3/zz_generated_deepcopy.go b/apis/management.cattle.io/v3/zz_generated_deepcopy.go index 767b56bb..b9c1f1c1 100644 --- a/apis/management.cattle.io/v3/zz_generated_deepcopy.go +++ b/apis/management.cattle.io/v3/zz_generated_deepcopy.go @@ -7265,6 +7265,22 @@ func (in *RotateCertificateInput) DeepCopy() *RotateCertificateInput { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RotateCertificateOutput) DeepCopyInto(out *RotateCertificateOutput) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RotateCertificateOutput. +func (in *RotateCertificateOutput) DeepCopy() *RotateCertificateOutput { + if in == nil { + return nil + } + out := new(RotateCertificateOutput) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RotateCertificates) DeepCopyInto(out *RotateCertificates) { *out = *in diff --git a/client/management/v3/zz_generated_cluster.go b/client/management/v3/zz_generated_cluster.go index c3ca5fa3..d87fbc6f 100644 --- a/client/management/v3/zz_generated_cluster.go +++ b/client/management/v3/zz_generated_cluster.go @@ -128,7 +128,7 @@ type ClusterOperations interface { ActionRestoreFromEtcdBackup(resource *Cluster, input *RestoreFromEtcdBackupInput) error - ActionRotateCertificates(resource *Cluster, input *RotateCertificateInput) error + ActionRotateCertificates(resource *Cluster, input *RotateCertificateInput) (*RotateCertificateOutput, error) } func newClusterClient(apiClient *Client) *ClusterClient { @@ -220,7 +220,8 @@ func (c *ClusterClient) ActionRestoreFromEtcdBackup(resource *Cluster, input *Re return err } -func (c *ClusterClient) ActionRotateCertificates(resource *Cluster, input *RotateCertificateInput) error { - err := c.apiClient.Ops.DoAction(ClusterType, "rotateCertificates", &resource.Resource, input, nil) - return err +func (c *ClusterClient) ActionRotateCertificates(resource *Cluster, input *RotateCertificateInput) (*RotateCertificateOutput, error) { + resp := &RotateCertificateOutput{} + err := c.apiClient.Ops.DoAction(ClusterType, "rotateCertificates", &resource.Resource, input, resp) + return resp, err } diff --git a/client/management/v3/zz_generated_rotate_certificate_output.go b/client/management/v3/zz_generated_rotate_certificate_output.go new file mode 100644 index 00000000..47c50ec8 --- /dev/null +++ b/client/management/v3/zz_generated_rotate_certificate_output.go @@ -0,0 +1,10 @@ +package client + +const ( + RotateCertificateOutputType = "rotateCertificateOutput" + RotateCertificateOutputFieldMessage = "message" +) + +type RotateCertificateOutput struct { + Message string `json:"message,omitempty" yaml:"message,omitempty"` +}