mirror of
https://github.com/rancher/types.git
synced 2025-09-21 01:48:30 +00:00
Update generated code
This commit is contained in:
@@ -53,7 +53,7 @@ type Client struct {
|
||||
ClusterCatalog ClusterCatalogOperations
|
||||
MultiClusterApp MultiClusterAppOperations
|
||||
MultiClusterAppRevision MultiClusterAppRevisionOperations
|
||||
GlobalDNS GlobalDNSOperations
|
||||
GlobalDns GlobalDnsOperations
|
||||
GlobalDNSProvider GlobalDNSProviderOperations
|
||||
KontainerDriver KontainerDriverOperations
|
||||
EtcdBackup EtcdBackupOperations
|
||||
@@ -65,9 +65,9 @@ type Client struct {
|
||||
ManagementSecret ManagementSecretOperations
|
||||
ClusterTemplate ClusterTemplateOperations
|
||||
ClusterTemplateRevision ClusterTemplateRevisionOperations
|
||||
RKEK8sSystemImage RKEK8sSystemImageOperations
|
||||
RKEK8sServiceOption RKEK8sServiceOptionOperations
|
||||
RKEAddon RKEAddonOperations
|
||||
RkeK8sSystemImage RkeK8sSystemImageOperations
|
||||
RkeK8sServiceOption RkeK8sServiceOptionOperations
|
||||
RkeAddon RkeAddonOperations
|
||||
CisConfig CisConfigOperations
|
||||
CisBenchmarkVersion CisBenchmarkVersionOperations
|
||||
}
|
||||
@@ -128,7 +128,7 @@ func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
|
||||
client.ClusterCatalog = newClusterCatalogClient(client)
|
||||
client.MultiClusterApp = newMultiClusterAppClient(client)
|
||||
client.MultiClusterAppRevision = newMultiClusterAppRevisionClient(client)
|
||||
client.GlobalDNS = newGlobalDNSClient(client)
|
||||
client.GlobalDns = newGlobalDnsClient(client)
|
||||
client.GlobalDNSProvider = newGlobalDNSProviderClient(client)
|
||||
client.KontainerDriver = newKontainerDriverClient(client)
|
||||
client.EtcdBackup = newEtcdBackupClient(client)
|
||||
@@ -140,9 +140,9 @@ func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
|
||||
client.ManagementSecret = newManagementSecretClient(client)
|
||||
client.ClusterTemplate = newClusterTemplateClient(client)
|
||||
client.ClusterTemplateRevision = newClusterTemplateRevisionClient(client)
|
||||
client.RKEK8sSystemImage = newRKEK8sSystemImageClient(client)
|
||||
client.RKEK8sServiceOption = newRKEK8sServiceOptionClient(client)
|
||||
client.RKEAddon = newRKEAddonClient(client)
|
||||
client.RkeK8sSystemImage = newRkeK8sSystemImageClient(client)
|
||||
client.RkeK8sServiceOption = newRkeK8sServiceOptionClient(client)
|
||||
client.RkeAddon = newRkeAddonClient(client)
|
||||
client.CisConfig = newCisConfigClient(client)
|
||||
client.CisBenchmarkVersion = newCisBenchmarkVersionClient(client)
|
||||
|
||||
|
@@ -5,28 +5,28 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
GlobalDNSType = "globalDns"
|
||||
GlobalDNSFieldAnnotations = "annotations"
|
||||
GlobalDNSFieldCreated = "created"
|
||||
GlobalDNSFieldCreatorID = "creatorId"
|
||||
GlobalDNSFieldFQDN = "fqdn"
|
||||
GlobalDNSFieldLabels = "labels"
|
||||
GlobalDNSFieldMembers = "members"
|
||||
GlobalDNSFieldMultiClusterAppID = "multiClusterAppId"
|
||||
GlobalDNSFieldName = "name"
|
||||
GlobalDNSFieldOwnerReferences = "ownerReferences"
|
||||
GlobalDNSFieldProjectIDs = "projectIds"
|
||||
GlobalDNSFieldProviderID = "providerId"
|
||||
GlobalDNSFieldRemoved = "removed"
|
||||
GlobalDNSFieldState = "state"
|
||||
GlobalDNSFieldStatus = "status"
|
||||
GlobalDNSFieldTTL = "ttl"
|
||||
GlobalDNSFieldTransitioning = "transitioning"
|
||||
GlobalDNSFieldTransitioningMessage = "transitioningMessage"
|
||||
GlobalDNSFieldUUID = "uuid"
|
||||
GlobalDnsType = "globalDns"
|
||||
GlobalDnsFieldAnnotations = "annotations"
|
||||
GlobalDnsFieldCreated = "created"
|
||||
GlobalDnsFieldCreatorID = "creatorId"
|
||||
GlobalDnsFieldFQDN = "fqdn"
|
||||
GlobalDnsFieldLabels = "labels"
|
||||
GlobalDnsFieldMembers = "members"
|
||||
GlobalDnsFieldMultiClusterAppID = "multiClusterAppId"
|
||||
GlobalDnsFieldName = "name"
|
||||
GlobalDnsFieldOwnerReferences = "ownerReferences"
|
||||
GlobalDnsFieldProjectIDs = "projectIds"
|
||||
GlobalDnsFieldProviderID = "providerId"
|
||||
GlobalDnsFieldRemoved = "removed"
|
||||
GlobalDnsFieldState = "state"
|
||||
GlobalDnsFieldStatus = "status"
|
||||
GlobalDnsFieldTTL = "ttl"
|
||||
GlobalDnsFieldTransitioning = "transitioning"
|
||||
GlobalDnsFieldTransitioningMessage = "transitioningMessage"
|
||||
GlobalDnsFieldUUID = "uuid"
|
||||
)
|
||||
|
||||
type GlobalDNS struct {
|
||||
type GlobalDns struct {
|
||||
types.Resource
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
@@ -48,63 +48,63 @@ type GlobalDNS struct {
|
||||
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
}
|
||||
|
||||
type GlobalDNSCollection struct {
|
||||
type GlobalDnsCollection struct {
|
||||
types.Collection
|
||||
Data []GlobalDNS `json:"data,omitempty"`
|
||||
client *GlobalDNSClient
|
||||
Data []GlobalDns `json:"data,omitempty"`
|
||||
client *GlobalDnsClient
|
||||
}
|
||||
|
||||
type GlobalDNSClient struct {
|
||||
type GlobalDnsClient struct {
|
||||
apiClient *Client
|
||||
}
|
||||
|
||||
type GlobalDNSOperations interface {
|
||||
List(opts *types.ListOpts) (*GlobalDNSCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*GlobalDNSCollection, error)
|
||||
Create(opts *GlobalDNS) (*GlobalDNS, error)
|
||||
Update(existing *GlobalDNS, updates interface{}) (*GlobalDNS, error)
|
||||
Replace(existing *GlobalDNS) (*GlobalDNS, error)
|
||||
ByID(id string) (*GlobalDNS, error)
|
||||
Delete(container *GlobalDNS) error
|
||||
type GlobalDnsOperations interface {
|
||||
List(opts *types.ListOpts) (*GlobalDnsCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*GlobalDnsCollection, error)
|
||||
Create(opts *GlobalDns) (*GlobalDns, error)
|
||||
Update(existing *GlobalDns, updates interface{}) (*GlobalDns, error)
|
||||
Replace(existing *GlobalDns) (*GlobalDns, error)
|
||||
ByID(id string) (*GlobalDns, error)
|
||||
Delete(container *GlobalDns) error
|
||||
|
||||
ActionAddProjects(resource *GlobalDNS, input *UpdateGlobalDNSTargetsInput) error
|
||||
ActionAddProjects(resource *GlobalDns, input *UpdateGlobalDNSTargetsInput) error
|
||||
|
||||
ActionRemoveProjects(resource *GlobalDNS, input *UpdateGlobalDNSTargetsInput) error
|
||||
ActionRemoveProjects(resource *GlobalDns, input *UpdateGlobalDNSTargetsInput) error
|
||||
}
|
||||
|
||||
func newGlobalDNSClient(apiClient *Client) *GlobalDNSClient {
|
||||
return &GlobalDNSClient{
|
||||
func newGlobalDnsClient(apiClient *Client) *GlobalDnsClient {
|
||||
return &GlobalDnsClient{
|
||||
apiClient: apiClient,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *GlobalDNSClient) Create(container *GlobalDNS) (*GlobalDNS, error) {
|
||||
resp := &GlobalDNS{}
|
||||
err := c.apiClient.Ops.DoCreate(GlobalDNSType, container, resp)
|
||||
func (c *GlobalDnsClient) Create(container *GlobalDns) (*GlobalDns, error) {
|
||||
resp := &GlobalDns{}
|
||||
err := c.apiClient.Ops.DoCreate(GlobalDnsType, container, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalDNSClient) Update(existing *GlobalDNS, updates interface{}) (*GlobalDNS, error) {
|
||||
resp := &GlobalDNS{}
|
||||
err := c.apiClient.Ops.DoUpdate(GlobalDNSType, &existing.Resource, updates, resp)
|
||||
func (c *GlobalDnsClient) Update(existing *GlobalDns, updates interface{}) (*GlobalDns, error) {
|
||||
resp := &GlobalDns{}
|
||||
err := c.apiClient.Ops.DoUpdate(GlobalDnsType, &existing.Resource, updates, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalDNSClient) Replace(obj *GlobalDNS) (*GlobalDNS, error) {
|
||||
resp := &GlobalDNS{}
|
||||
err := c.apiClient.Ops.DoReplace(GlobalDNSType, &obj.Resource, obj, resp)
|
||||
func (c *GlobalDnsClient) Replace(obj *GlobalDns) (*GlobalDns, error) {
|
||||
resp := &GlobalDns{}
|
||||
err := c.apiClient.Ops.DoReplace(GlobalDnsType, &obj.Resource, obj, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalDNSClient) List(opts *types.ListOpts) (*GlobalDNSCollection, error) {
|
||||
resp := &GlobalDNSCollection{}
|
||||
err := c.apiClient.Ops.DoList(GlobalDNSType, opts, resp)
|
||||
func (c *GlobalDnsClient) List(opts *types.ListOpts) (*GlobalDnsCollection, error) {
|
||||
resp := &GlobalDnsCollection{}
|
||||
err := c.apiClient.Ops.DoList(GlobalDnsType, opts, resp)
|
||||
resp.client = c
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalDNSClient) ListAll(opts *types.ListOpts) (*GlobalDNSCollection, error) {
|
||||
resp := &GlobalDNSCollection{}
|
||||
func (c *GlobalDnsClient) ListAll(opts *types.ListOpts) (*GlobalDnsCollection, error) {
|
||||
resp := &GlobalDnsCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
@@ -121,9 +121,9 @@ func (c *GlobalDNSClient) ListAll(opts *types.ListOpts) (*GlobalDNSCollection, e
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *GlobalDNSCollection) Next() (*GlobalDNSCollection, error) {
|
||||
func (cc *GlobalDnsCollection) Next() (*GlobalDnsCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &GlobalDNSCollection{}
|
||||
resp := &GlobalDnsCollection{}
|
||||
err := cc.client.apiClient.Ops.DoNext(cc.Pagination.Next, resp)
|
||||
resp.client = cc.client
|
||||
return resp, err
|
||||
@@ -131,22 +131,22 @@ func (cc *GlobalDNSCollection) Next() (*GlobalDNSCollection, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *GlobalDNSClient) ByID(id string) (*GlobalDNS, error) {
|
||||
resp := &GlobalDNS{}
|
||||
err := c.apiClient.Ops.DoByID(GlobalDNSType, id, resp)
|
||||
func (c *GlobalDnsClient) ByID(id string) (*GlobalDns, error) {
|
||||
resp := &GlobalDns{}
|
||||
err := c.apiClient.Ops.DoByID(GlobalDnsType, id, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalDNSClient) Delete(container *GlobalDNS) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(GlobalDNSType, &container.Resource)
|
||||
func (c *GlobalDnsClient) Delete(container *GlobalDns) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(GlobalDnsType, &container.Resource)
|
||||
}
|
||||
|
||||
func (c *GlobalDNSClient) ActionAddProjects(resource *GlobalDNS, input *UpdateGlobalDNSTargetsInput) error {
|
||||
err := c.apiClient.Ops.DoAction(GlobalDNSType, "addProjects", &resource.Resource, input, nil)
|
||||
func (c *GlobalDnsClient) ActionAddProjects(resource *GlobalDns, input *UpdateGlobalDNSTargetsInput) error {
|
||||
err := c.apiClient.Ops.DoAction(GlobalDnsType, "addProjects", &resource.Resource, input, nil)
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *GlobalDNSClient) ActionRemoveProjects(resource *GlobalDNS, input *UpdateGlobalDNSTargetsInput) error {
|
||||
err := c.apiClient.Ops.DoAction(GlobalDNSType, "removeProjects", &resource.Resource, input, nil)
|
||||
func (c *GlobalDnsClient) ActionRemoveProjects(resource *GlobalDns, input *UpdateGlobalDNSTargetsInput) error {
|
||||
err := c.apiClient.Ops.DoAction(GlobalDnsType, "removeProjects", &resource.Resource, input, nil)
|
||||
return err
|
||||
}
|
||||
|
@@ -5,19 +5,19 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
RKEAddonType = "rkeAddon"
|
||||
RKEAddonFieldAnnotations = "annotations"
|
||||
RKEAddonFieldCreated = "created"
|
||||
RKEAddonFieldCreatorID = "creatorId"
|
||||
RKEAddonFieldLabels = "labels"
|
||||
RKEAddonFieldName = "name"
|
||||
RKEAddonFieldOwnerReferences = "ownerReferences"
|
||||
RKEAddonFieldRemoved = "removed"
|
||||
RKEAddonFieldTemplate = "template"
|
||||
RKEAddonFieldUUID = "uuid"
|
||||
RkeAddonType = "rkeAddon"
|
||||
RkeAddonFieldAnnotations = "annotations"
|
||||
RkeAddonFieldCreated = "created"
|
||||
RkeAddonFieldCreatorID = "creatorId"
|
||||
RkeAddonFieldLabels = "labels"
|
||||
RkeAddonFieldName = "name"
|
||||
RkeAddonFieldOwnerReferences = "ownerReferences"
|
||||
RkeAddonFieldRemoved = "removed"
|
||||
RkeAddonFieldTemplate = "template"
|
||||
RkeAddonFieldUUID = "uuid"
|
||||
)
|
||||
|
||||
type RKEAddon struct {
|
||||
type RkeAddon struct {
|
||||
types.Resource
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
@@ -30,59 +30,59 @@ type RKEAddon struct {
|
||||
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
}
|
||||
|
||||
type RKEAddonCollection struct {
|
||||
type RkeAddonCollection struct {
|
||||
types.Collection
|
||||
Data []RKEAddon `json:"data,omitempty"`
|
||||
client *RKEAddonClient
|
||||
Data []RkeAddon `json:"data,omitempty"`
|
||||
client *RkeAddonClient
|
||||
}
|
||||
|
||||
type RKEAddonClient struct {
|
||||
type RkeAddonClient struct {
|
||||
apiClient *Client
|
||||
}
|
||||
|
||||
type RKEAddonOperations interface {
|
||||
List(opts *types.ListOpts) (*RKEAddonCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*RKEAddonCollection, error)
|
||||
Create(opts *RKEAddon) (*RKEAddon, error)
|
||||
Update(existing *RKEAddon, updates interface{}) (*RKEAddon, error)
|
||||
Replace(existing *RKEAddon) (*RKEAddon, error)
|
||||
ByID(id string) (*RKEAddon, error)
|
||||
Delete(container *RKEAddon) error
|
||||
type RkeAddonOperations interface {
|
||||
List(opts *types.ListOpts) (*RkeAddonCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*RkeAddonCollection, error)
|
||||
Create(opts *RkeAddon) (*RkeAddon, error)
|
||||
Update(existing *RkeAddon, updates interface{}) (*RkeAddon, error)
|
||||
Replace(existing *RkeAddon) (*RkeAddon, error)
|
||||
ByID(id string) (*RkeAddon, error)
|
||||
Delete(container *RkeAddon) error
|
||||
}
|
||||
|
||||
func newRKEAddonClient(apiClient *Client) *RKEAddonClient {
|
||||
return &RKEAddonClient{
|
||||
func newRkeAddonClient(apiClient *Client) *RkeAddonClient {
|
||||
return &RkeAddonClient{
|
||||
apiClient: apiClient,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *RKEAddonClient) Create(container *RKEAddon) (*RKEAddon, error) {
|
||||
resp := &RKEAddon{}
|
||||
err := c.apiClient.Ops.DoCreate(RKEAddonType, container, resp)
|
||||
func (c *RkeAddonClient) Create(container *RkeAddon) (*RkeAddon, error) {
|
||||
resp := &RkeAddon{}
|
||||
err := c.apiClient.Ops.DoCreate(RkeAddonType, container, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEAddonClient) Update(existing *RKEAddon, updates interface{}) (*RKEAddon, error) {
|
||||
resp := &RKEAddon{}
|
||||
err := c.apiClient.Ops.DoUpdate(RKEAddonType, &existing.Resource, updates, resp)
|
||||
func (c *RkeAddonClient) Update(existing *RkeAddon, updates interface{}) (*RkeAddon, error) {
|
||||
resp := &RkeAddon{}
|
||||
err := c.apiClient.Ops.DoUpdate(RkeAddonType, &existing.Resource, updates, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEAddonClient) Replace(obj *RKEAddon) (*RKEAddon, error) {
|
||||
resp := &RKEAddon{}
|
||||
err := c.apiClient.Ops.DoReplace(RKEAddonType, &obj.Resource, obj, resp)
|
||||
func (c *RkeAddonClient) Replace(obj *RkeAddon) (*RkeAddon, error) {
|
||||
resp := &RkeAddon{}
|
||||
err := c.apiClient.Ops.DoReplace(RkeAddonType, &obj.Resource, obj, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEAddonClient) List(opts *types.ListOpts) (*RKEAddonCollection, error) {
|
||||
resp := &RKEAddonCollection{}
|
||||
err := c.apiClient.Ops.DoList(RKEAddonType, opts, resp)
|
||||
func (c *RkeAddonClient) List(opts *types.ListOpts) (*RkeAddonCollection, error) {
|
||||
resp := &RkeAddonCollection{}
|
||||
err := c.apiClient.Ops.DoList(RkeAddonType, opts, resp)
|
||||
resp.client = c
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEAddonClient) ListAll(opts *types.ListOpts) (*RKEAddonCollection, error) {
|
||||
resp := &RKEAddonCollection{}
|
||||
func (c *RkeAddonClient) ListAll(opts *types.ListOpts) (*RkeAddonCollection, error) {
|
||||
resp := &RkeAddonCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
@@ -99,9 +99,9 @@ func (c *RKEAddonClient) ListAll(opts *types.ListOpts) (*RKEAddonCollection, err
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *RKEAddonCollection) Next() (*RKEAddonCollection, error) {
|
||||
func (cc *RkeAddonCollection) Next() (*RkeAddonCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &RKEAddonCollection{}
|
||||
resp := &RkeAddonCollection{}
|
||||
err := cc.client.apiClient.Ops.DoNext(cc.Pagination.Next, resp)
|
||||
resp.client = cc.client
|
||||
return resp, err
|
||||
@@ -109,12 +109,12 @@ func (cc *RKEAddonCollection) Next() (*RKEAddonCollection, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *RKEAddonClient) ByID(id string) (*RKEAddon, error) {
|
||||
resp := &RKEAddon{}
|
||||
err := c.apiClient.Ops.DoByID(RKEAddonType, id, resp)
|
||||
func (c *RkeAddonClient) ByID(id string) (*RkeAddon, error) {
|
||||
resp := &RkeAddon{}
|
||||
err := c.apiClient.Ops.DoByID(RkeAddonType, id, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEAddonClient) Delete(container *RKEAddon) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(RKEAddonType, &container.Resource)
|
||||
func (c *RkeAddonClient) Delete(container *RkeAddon) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(RkeAddonType, &container.Resource)
|
||||
}
|
||||
|
@@ -5,19 +5,19 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
RKEK8sServiceOptionType = "rkeK8sServiceOption"
|
||||
RKEK8sServiceOptionFieldAnnotations = "annotations"
|
||||
RKEK8sServiceOptionFieldCreated = "created"
|
||||
RKEK8sServiceOptionFieldCreatorID = "creatorId"
|
||||
RKEK8sServiceOptionFieldLabels = "labels"
|
||||
RKEK8sServiceOptionFieldName = "name"
|
||||
RKEK8sServiceOptionFieldOwnerReferences = "ownerReferences"
|
||||
RKEK8sServiceOptionFieldRemoved = "removed"
|
||||
RKEK8sServiceOptionFieldServiceOptions = "serviceOptions"
|
||||
RKEK8sServiceOptionFieldUUID = "uuid"
|
||||
RkeK8sServiceOptionType = "rkeK8sServiceOption"
|
||||
RkeK8sServiceOptionFieldAnnotations = "annotations"
|
||||
RkeK8sServiceOptionFieldCreated = "created"
|
||||
RkeK8sServiceOptionFieldCreatorID = "creatorId"
|
||||
RkeK8sServiceOptionFieldLabels = "labels"
|
||||
RkeK8sServiceOptionFieldName = "name"
|
||||
RkeK8sServiceOptionFieldOwnerReferences = "ownerReferences"
|
||||
RkeK8sServiceOptionFieldRemoved = "removed"
|
||||
RkeK8sServiceOptionFieldServiceOptions = "serviceOptions"
|
||||
RkeK8sServiceOptionFieldUUID = "uuid"
|
||||
)
|
||||
|
||||
type RKEK8sServiceOption struct {
|
||||
type RkeK8sServiceOption struct {
|
||||
types.Resource
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
@@ -30,59 +30,59 @@ type RKEK8sServiceOption struct {
|
||||
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
}
|
||||
|
||||
type RKEK8sServiceOptionCollection struct {
|
||||
type RkeK8sServiceOptionCollection struct {
|
||||
types.Collection
|
||||
Data []RKEK8sServiceOption `json:"data,omitempty"`
|
||||
client *RKEK8sServiceOptionClient
|
||||
Data []RkeK8sServiceOption `json:"data,omitempty"`
|
||||
client *RkeK8sServiceOptionClient
|
||||
}
|
||||
|
||||
type RKEK8sServiceOptionClient struct {
|
||||
type RkeK8sServiceOptionClient struct {
|
||||
apiClient *Client
|
||||
}
|
||||
|
||||
type RKEK8sServiceOptionOperations interface {
|
||||
List(opts *types.ListOpts) (*RKEK8sServiceOptionCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*RKEK8sServiceOptionCollection, error)
|
||||
Create(opts *RKEK8sServiceOption) (*RKEK8sServiceOption, error)
|
||||
Update(existing *RKEK8sServiceOption, updates interface{}) (*RKEK8sServiceOption, error)
|
||||
Replace(existing *RKEK8sServiceOption) (*RKEK8sServiceOption, error)
|
||||
ByID(id string) (*RKEK8sServiceOption, error)
|
||||
Delete(container *RKEK8sServiceOption) error
|
||||
type RkeK8sServiceOptionOperations interface {
|
||||
List(opts *types.ListOpts) (*RkeK8sServiceOptionCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*RkeK8sServiceOptionCollection, error)
|
||||
Create(opts *RkeK8sServiceOption) (*RkeK8sServiceOption, error)
|
||||
Update(existing *RkeK8sServiceOption, updates interface{}) (*RkeK8sServiceOption, error)
|
||||
Replace(existing *RkeK8sServiceOption) (*RkeK8sServiceOption, error)
|
||||
ByID(id string) (*RkeK8sServiceOption, error)
|
||||
Delete(container *RkeK8sServiceOption) error
|
||||
}
|
||||
|
||||
func newRKEK8sServiceOptionClient(apiClient *Client) *RKEK8sServiceOptionClient {
|
||||
return &RKEK8sServiceOptionClient{
|
||||
func newRkeK8sServiceOptionClient(apiClient *Client) *RkeK8sServiceOptionClient {
|
||||
return &RkeK8sServiceOptionClient{
|
||||
apiClient: apiClient,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *RKEK8sServiceOptionClient) Create(container *RKEK8sServiceOption) (*RKEK8sServiceOption, error) {
|
||||
resp := &RKEK8sServiceOption{}
|
||||
err := c.apiClient.Ops.DoCreate(RKEK8sServiceOptionType, container, resp)
|
||||
func (c *RkeK8sServiceOptionClient) Create(container *RkeK8sServiceOption) (*RkeK8sServiceOption, error) {
|
||||
resp := &RkeK8sServiceOption{}
|
||||
err := c.apiClient.Ops.DoCreate(RkeK8sServiceOptionType, container, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sServiceOptionClient) Update(existing *RKEK8sServiceOption, updates interface{}) (*RKEK8sServiceOption, error) {
|
||||
resp := &RKEK8sServiceOption{}
|
||||
err := c.apiClient.Ops.DoUpdate(RKEK8sServiceOptionType, &existing.Resource, updates, resp)
|
||||
func (c *RkeK8sServiceOptionClient) Update(existing *RkeK8sServiceOption, updates interface{}) (*RkeK8sServiceOption, error) {
|
||||
resp := &RkeK8sServiceOption{}
|
||||
err := c.apiClient.Ops.DoUpdate(RkeK8sServiceOptionType, &existing.Resource, updates, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sServiceOptionClient) Replace(obj *RKEK8sServiceOption) (*RKEK8sServiceOption, error) {
|
||||
resp := &RKEK8sServiceOption{}
|
||||
err := c.apiClient.Ops.DoReplace(RKEK8sServiceOptionType, &obj.Resource, obj, resp)
|
||||
func (c *RkeK8sServiceOptionClient) Replace(obj *RkeK8sServiceOption) (*RkeK8sServiceOption, error) {
|
||||
resp := &RkeK8sServiceOption{}
|
||||
err := c.apiClient.Ops.DoReplace(RkeK8sServiceOptionType, &obj.Resource, obj, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sServiceOptionClient) List(opts *types.ListOpts) (*RKEK8sServiceOptionCollection, error) {
|
||||
resp := &RKEK8sServiceOptionCollection{}
|
||||
err := c.apiClient.Ops.DoList(RKEK8sServiceOptionType, opts, resp)
|
||||
func (c *RkeK8sServiceOptionClient) List(opts *types.ListOpts) (*RkeK8sServiceOptionCollection, error) {
|
||||
resp := &RkeK8sServiceOptionCollection{}
|
||||
err := c.apiClient.Ops.DoList(RkeK8sServiceOptionType, opts, resp)
|
||||
resp.client = c
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sServiceOptionClient) ListAll(opts *types.ListOpts) (*RKEK8sServiceOptionCollection, error) {
|
||||
resp := &RKEK8sServiceOptionCollection{}
|
||||
func (c *RkeK8sServiceOptionClient) ListAll(opts *types.ListOpts) (*RkeK8sServiceOptionCollection, error) {
|
||||
resp := &RkeK8sServiceOptionCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
@@ -99,9 +99,9 @@ func (c *RKEK8sServiceOptionClient) ListAll(opts *types.ListOpts) (*RKEK8sServic
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *RKEK8sServiceOptionCollection) Next() (*RKEK8sServiceOptionCollection, error) {
|
||||
func (cc *RkeK8sServiceOptionCollection) Next() (*RkeK8sServiceOptionCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &RKEK8sServiceOptionCollection{}
|
||||
resp := &RkeK8sServiceOptionCollection{}
|
||||
err := cc.client.apiClient.Ops.DoNext(cc.Pagination.Next, resp)
|
||||
resp.client = cc.client
|
||||
return resp, err
|
||||
@@ -109,12 +109,12 @@ func (cc *RKEK8sServiceOptionCollection) Next() (*RKEK8sServiceOptionCollection,
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *RKEK8sServiceOptionClient) ByID(id string) (*RKEK8sServiceOption, error) {
|
||||
resp := &RKEK8sServiceOption{}
|
||||
err := c.apiClient.Ops.DoByID(RKEK8sServiceOptionType, id, resp)
|
||||
func (c *RkeK8sServiceOptionClient) ByID(id string) (*RkeK8sServiceOption, error) {
|
||||
resp := &RkeK8sServiceOption{}
|
||||
err := c.apiClient.Ops.DoByID(RkeK8sServiceOptionType, id, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sServiceOptionClient) Delete(container *RKEK8sServiceOption) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(RKEK8sServiceOptionType, &container.Resource)
|
||||
func (c *RkeK8sServiceOptionClient) Delete(container *RkeK8sServiceOption) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(RkeK8sServiceOptionType, &container.Resource)
|
||||
}
|
||||
|
@@ -5,19 +5,19 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
RKEK8sSystemImageType = "rkeK8sSystemImage"
|
||||
RKEK8sSystemImageFieldAnnotations = "annotations"
|
||||
RKEK8sSystemImageFieldCreated = "created"
|
||||
RKEK8sSystemImageFieldCreatorID = "creatorId"
|
||||
RKEK8sSystemImageFieldLabels = "labels"
|
||||
RKEK8sSystemImageFieldName = "name"
|
||||
RKEK8sSystemImageFieldOwnerReferences = "ownerReferences"
|
||||
RKEK8sSystemImageFieldRemoved = "removed"
|
||||
RKEK8sSystemImageFieldSystemImages = "systemImages"
|
||||
RKEK8sSystemImageFieldUUID = "uuid"
|
||||
RkeK8sSystemImageType = "rkeK8sSystemImage"
|
||||
RkeK8sSystemImageFieldAnnotations = "annotations"
|
||||
RkeK8sSystemImageFieldCreated = "created"
|
||||
RkeK8sSystemImageFieldCreatorID = "creatorId"
|
||||
RkeK8sSystemImageFieldLabels = "labels"
|
||||
RkeK8sSystemImageFieldName = "name"
|
||||
RkeK8sSystemImageFieldOwnerReferences = "ownerReferences"
|
||||
RkeK8sSystemImageFieldRemoved = "removed"
|
||||
RkeK8sSystemImageFieldSystemImages = "systemImages"
|
||||
RkeK8sSystemImageFieldUUID = "uuid"
|
||||
)
|
||||
|
||||
type RKEK8sSystemImage struct {
|
||||
type RkeK8sSystemImage struct {
|
||||
types.Resource
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
@@ -30,59 +30,59 @@ type RKEK8sSystemImage struct {
|
||||
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
}
|
||||
|
||||
type RKEK8sSystemImageCollection struct {
|
||||
type RkeK8sSystemImageCollection struct {
|
||||
types.Collection
|
||||
Data []RKEK8sSystemImage `json:"data,omitempty"`
|
||||
client *RKEK8sSystemImageClient
|
||||
Data []RkeK8sSystemImage `json:"data,omitempty"`
|
||||
client *RkeK8sSystemImageClient
|
||||
}
|
||||
|
||||
type RKEK8sSystemImageClient struct {
|
||||
type RkeK8sSystemImageClient struct {
|
||||
apiClient *Client
|
||||
}
|
||||
|
||||
type RKEK8sSystemImageOperations interface {
|
||||
List(opts *types.ListOpts) (*RKEK8sSystemImageCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*RKEK8sSystemImageCollection, error)
|
||||
Create(opts *RKEK8sSystemImage) (*RKEK8sSystemImage, error)
|
||||
Update(existing *RKEK8sSystemImage, updates interface{}) (*RKEK8sSystemImage, error)
|
||||
Replace(existing *RKEK8sSystemImage) (*RKEK8sSystemImage, error)
|
||||
ByID(id string) (*RKEK8sSystemImage, error)
|
||||
Delete(container *RKEK8sSystemImage) error
|
||||
type RkeK8sSystemImageOperations interface {
|
||||
List(opts *types.ListOpts) (*RkeK8sSystemImageCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*RkeK8sSystemImageCollection, error)
|
||||
Create(opts *RkeK8sSystemImage) (*RkeK8sSystemImage, error)
|
||||
Update(existing *RkeK8sSystemImage, updates interface{}) (*RkeK8sSystemImage, error)
|
||||
Replace(existing *RkeK8sSystemImage) (*RkeK8sSystemImage, error)
|
||||
ByID(id string) (*RkeK8sSystemImage, error)
|
||||
Delete(container *RkeK8sSystemImage) error
|
||||
}
|
||||
|
||||
func newRKEK8sSystemImageClient(apiClient *Client) *RKEK8sSystemImageClient {
|
||||
return &RKEK8sSystemImageClient{
|
||||
func newRkeK8sSystemImageClient(apiClient *Client) *RkeK8sSystemImageClient {
|
||||
return &RkeK8sSystemImageClient{
|
||||
apiClient: apiClient,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *RKEK8sSystemImageClient) Create(container *RKEK8sSystemImage) (*RKEK8sSystemImage, error) {
|
||||
resp := &RKEK8sSystemImage{}
|
||||
err := c.apiClient.Ops.DoCreate(RKEK8sSystemImageType, container, resp)
|
||||
func (c *RkeK8sSystemImageClient) Create(container *RkeK8sSystemImage) (*RkeK8sSystemImage, error) {
|
||||
resp := &RkeK8sSystemImage{}
|
||||
err := c.apiClient.Ops.DoCreate(RkeK8sSystemImageType, container, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sSystemImageClient) Update(existing *RKEK8sSystemImage, updates interface{}) (*RKEK8sSystemImage, error) {
|
||||
resp := &RKEK8sSystemImage{}
|
||||
err := c.apiClient.Ops.DoUpdate(RKEK8sSystemImageType, &existing.Resource, updates, resp)
|
||||
func (c *RkeK8sSystemImageClient) Update(existing *RkeK8sSystemImage, updates interface{}) (*RkeK8sSystemImage, error) {
|
||||
resp := &RkeK8sSystemImage{}
|
||||
err := c.apiClient.Ops.DoUpdate(RkeK8sSystemImageType, &existing.Resource, updates, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sSystemImageClient) Replace(obj *RKEK8sSystemImage) (*RKEK8sSystemImage, error) {
|
||||
resp := &RKEK8sSystemImage{}
|
||||
err := c.apiClient.Ops.DoReplace(RKEK8sSystemImageType, &obj.Resource, obj, resp)
|
||||
func (c *RkeK8sSystemImageClient) Replace(obj *RkeK8sSystemImage) (*RkeK8sSystemImage, error) {
|
||||
resp := &RkeK8sSystemImage{}
|
||||
err := c.apiClient.Ops.DoReplace(RkeK8sSystemImageType, &obj.Resource, obj, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sSystemImageClient) List(opts *types.ListOpts) (*RKEK8sSystemImageCollection, error) {
|
||||
resp := &RKEK8sSystemImageCollection{}
|
||||
err := c.apiClient.Ops.DoList(RKEK8sSystemImageType, opts, resp)
|
||||
func (c *RkeK8sSystemImageClient) List(opts *types.ListOpts) (*RkeK8sSystemImageCollection, error) {
|
||||
resp := &RkeK8sSystemImageCollection{}
|
||||
err := c.apiClient.Ops.DoList(RkeK8sSystemImageType, opts, resp)
|
||||
resp.client = c
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sSystemImageClient) ListAll(opts *types.ListOpts) (*RKEK8sSystemImageCollection, error) {
|
||||
resp := &RKEK8sSystemImageCollection{}
|
||||
func (c *RkeK8sSystemImageClient) ListAll(opts *types.ListOpts) (*RkeK8sSystemImageCollection, error) {
|
||||
resp := &RkeK8sSystemImageCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
@@ -99,9 +99,9 @@ func (c *RKEK8sSystemImageClient) ListAll(opts *types.ListOpts) (*RKEK8sSystemIm
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *RKEK8sSystemImageCollection) Next() (*RKEK8sSystemImageCollection, error) {
|
||||
func (cc *RkeK8sSystemImageCollection) Next() (*RkeK8sSystemImageCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &RKEK8sSystemImageCollection{}
|
||||
resp := &RkeK8sSystemImageCollection{}
|
||||
err := cc.client.apiClient.Ops.DoNext(cc.Pagination.Next, resp)
|
||||
resp.client = cc.client
|
||||
return resp, err
|
||||
@@ -109,12 +109,12 @@ func (cc *RKEK8sSystemImageCollection) Next() (*RKEK8sSystemImageCollection, err
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *RKEK8sSystemImageClient) ByID(id string) (*RKEK8sSystemImage, error) {
|
||||
resp := &RKEK8sSystemImage{}
|
||||
err := c.apiClient.Ops.DoByID(RKEK8sSystemImageType, id, resp)
|
||||
func (c *RkeK8sSystemImageClient) ByID(id string) (*RkeK8sSystemImage, error) {
|
||||
resp := &RkeK8sSystemImage{}
|
||||
err := c.apiClient.Ops.DoByID(RkeK8sSystemImageType, id, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sSystemImageClient) Delete(container *RKEK8sSystemImage) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(RKEK8sSystemImageType, &container.Resource)
|
||||
func (c *RkeK8sSystemImageClient) Delete(container *RkeK8sSystemImage) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(RkeK8sSystemImageType, &container.Resource)
|
||||
}
|
||||
|
Reference in New Issue
Block a user