mirror of
https://github.com/rancher/types.git
synced 2025-08-02 05:11:59 +00:00
Generated changes
This commit is contained in:
parent
679c1611db
commit
e9d59cb739
@ -705,6 +705,27 @@ func (in *CatalogList) DeepCopyObject() runtime.Object {
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *CatalogRefresh) DeepCopyInto(out *CatalogRefresh) {
|
||||
*out = *in
|
||||
if in.Catalogs != nil {
|
||||
in, out := &in.Catalogs, &out.Catalogs
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CatalogRefresh.
|
||||
func (in *CatalogRefresh) DeepCopy() *CatalogRefresh {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(CatalogRefresh)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *CatalogSpec) DeepCopyInto(out *CatalogSpec) {
|
||||
*out = *in
|
||||
|
@ -70,9 +70,9 @@ type CatalogOperations interface {
|
||||
ByID(id string) (*Catalog, error)
|
||||
Delete(container *Catalog) error
|
||||
|
||||
ActionRefresh(resource *Catalog) error
|
||||
ActionRefresh(resource *Catalog) (*CatalogRefresh, error)
|
||||
|
||||
CollectionActionRefresh(resource *CatalogCollection) error
|
||||
CollectionActionRefresh(resource *CatalogCollection) (*CatalogRefresh, error)
|
||||
}
|
||||
|
||||
func newCatalogClient(apiClient *Client) *CatalogClient {
|
||||
@ -126,12 +126,14 @@ func (c *CatalogClient) Delete(container *Catalog) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(CatalogType, &container.Resource)
|
||||
}
|
||||
|
||||
func (c *CatalogClient) ActionRefresh(resource *Catalog) error {
|
||||
err := c.apiClient.Ops.DoAction(CatalogType, "refresh", &resource.Resource, nil, nil)
|
||||
return err
|
||||
func (c *CatalogClient) ActionRefresh(resource *Catalog) (*CatalogRefresh, error) {
|
||||
resp := &CatalogRefresh{}
|
||||
err := c.apiClient.Ops.DoAction(CatalogType, "refresh", &resource.Resource, nil, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *CatalogClient) CollectionActionRefresh(resource *CatalogCollection) error {
|
||||
err := c.apiClient.Ops.DoCollectionAction(CatalogType, "refresh", &resource.Collection, nil, nil)
|
||||
return err
|
||||
func (c *CatalogClient) CollectionActionRefresh(resource *CatalogCollection) (*CatalogRefresh, error) {
|
||||
resp := &CatalogRefresh{}
|
||||
err := c.apiClient.Ops.DoCollectionAction(CatalogType, "refresh", &resource.Collection, nil, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
10
client/management/v3/zz_generated_catalog_refresh.go
Normal file
10
client/management/v3/zz_generated_catalog_refresh.go
Normal file
@ -0,0 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
CatalogRefreshType = "catalogRefresh"
|
||||
CatalogRefreshFieldCatalogs = "catalogs"
|
||||
)
|
||||
|
||||
type CatalogRefresh struct {
|
||||
Catalogs []string `json:"catalogs,omitempty" yaml:"catalogs,omitempty"`
|
||||
}
|
@ -74,9 +74,9 @@ type ClusterCatalogOperations interface {
|
||||
ByID(id string) (*ClusterCatalog, error)
|
||||
Delete(container *ClusterCatalog) error
|
||||
|
||||
ActionRefresh(resource *ClusterCatalog) error
|
||||
ActionRefresh(resource *ClusterCatalog) (*CatalogRefresh, error)
|
||||
|
||||
CollectionActionRefresh(resource *ClusterCatalogCollection) error
|
||||
CollectionActionRefresh(resource *ClusterCatalogCollection) (*CatalogRefresh, error)
|
||||
}
|
||||
|
||||
func newClusterCatalogClient(apiClient *Client) *ClusterCatalogClient {
|
||||
@ -130,12 +130,14 @@ func (c *ClusterCatalogClient) Delete(container *ClusterCatalog) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(ClusterCatalogType, &container.Resource)
|
||||
}
|
||||
|
||||
func (c *ClusterCatalogClient) ActionRefresh(resource *ClusterCatalog) error {
|
||||
err := c.apiClient.Ops.DoAction(ClusterCatalogType, "refresh", &resource.Resource, nil, nil)
|
||||
return err
|
||||
func (c *ClusterCatalogClient) ActionRefresh(resource *ClusterCatalog) (*CatalogRefresh, error) {
|
||||
resp := &CatalogRefresh{}
|
||||
err := c.apiClient.Ops.DoAction(ClusterCatalogType, "refresh", &resource.Resource, nil, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterCatalogClient) CollectionActionRefresh(resource *ClusterCatalogCollection) error {
|
||||
err := c.apiClient.Ops.DoCollectionAction(ClusterCatalogType, "refresh", &resource.Collection, nil, nil)
|
||||
return err
|
||||
func (c *ClusterCatalogClient) CollectionActionRefresh(resource *ClusterCatalogCollection) (*CatalogRefresh, error) {
|
||||
resp := &CatalogRefresh{}
|
||||
err := c.apiClient.Ops.DoCollectionAction(ClusterCatalogType, "refresh", &resource.Collection, nil, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
@ -74,9 +74,9 @@ type ProjectCatalogOperations interface {
|
||||
ByID(id string) (*ProjectCatalog, error)
|
||||
Delete(container *ProjectCatalog) error
|
||||
|
||||
ActionRefresh(resource *ProjectCatalog) error
|
||||
ActionRefresh(resource *ProjectCatalog) (*CatalogRefresh, error)
|
||||
|
||||
CollectionActionRefresh(resource *ProjectCatalogCollection) error
|
||||
CollectionActionRefresh(resource *ProjectCatalogCollection) (*CatalogRefresh, error)
|
||||
}
|
||||
|
||||
func newProjectCatalogClient(apiClient *Client) *ProjectCatalogClient {
|
||||
@ -130,12 +130,14 @@ func (c *ProjectCatalogClient) Delete(container *ProjectCatalog) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(ProjectCatalogType, &container.Resource)
|
||||
}
|
||||
|
||||
func (c *ProjectCatalogClient) ActionRefresh(resource *ProjectCatalog) error {
|
||||
err := c.apiClient.Ops.DoAction(ProjectCatalogType, "refresh", &resource.Resource, nil, nil)
|
||||
return err
|
||||
func (c *ProjectCatalogClient) ActionRefresh(resource *ProjectCatalog) (*CatalogRefresh, error) {
|
||||
resp := &CatalogRefresh{}
|
||||
err := c.apiClient.Ops.DoAction(ProjectCatalogType, "refresh", &resource.Resource, nil, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ProjectCatalogClient) CollectionActionRefresh(resource *ProjectCatalogCollection) error {
|
||||
err := c.apiClient.Ops.DoCollectionAction(ProjectCatalogType, "refresh", &resource.Collection, nil, nil)
|
||||
return err
|
||||
func (c *ProjectCatalogClient) CollectionActionRefresh(resource *ProjectCatalogCollection) (*CatalogRefresh, error) {
|
||||
resp := &CatalogRefresh{}
|
||||
err := c.apiClient.Ops.DoCollectionAction(ProjectCatalogType, "refresh", &resource.Collection, nil, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user