mirror of
https://github.com/rancher/types.git
synced 2025-09-24 19:39:13 +00:00
Update generated code
This commit is contained in:
@@ -18,6 +18,7 @@ type Client struct {
|
||||
ProjectRoleTemplateBinding ProjectRoleTemplateBindingOperations
|
||||
Cluster ClusterOperations
|
||||
ClusterEvent ClusterEventOperations
|
||||
ClusterRegistrationToken ClusterRegistrationTokenOperations
|
||||
Catalog CatalogOperations
|
||||
Template TemplateOperations
|
||||
TemplateVersion TemplateVersionOperations
|
||||
@@ -53,6 +54,7 @@ func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
|
||||
client.ProjectRoleTemplateBinding = newProjectRoleTemplateBindingClient(client)
|
||||
client.Cluster = newClusterClient(client)
|
||||
client.ClusterEvent = newClusterEventClient(client)
|
||||
client.ClusterRegistrationToken = newClusterRegistrationTokenClient(client)
|
||||
client.Catalog = newCatalogClient(client)
|
||||
client.Template = newTemplateClient(client)
|
||||
client.TemplateVersion = newTemplateVersionClient(client)
|
||||
|
@@ -18,7 +18,7 @@ const (
|
||||
ClusterFieldDescription = "description"
|
||||
ClusterFieldFinalizers = "finalizers"
|
||||
ClusterFieldGoogleKubernetesEngineConfig = "googleKubernetesEngineConfig"
|
||||
ClusterFieldId = "id"
|
||||
ClusterFieldInternal = "internal"
|
||||
ClusterFieldLabels = "labels"
|
||||
ClusterFieldLimits = "limits"
|
||||
ClusterFieldName = "name"
|
||||
@@ -48,7 +48,7 @@ type Cluster struct {
|
||||
Description string `json:"description,omitempty"`
|
||||
Finalizers []string `json:"finalizers,omitempty"`
|
||||
GoogleKubernetesEngineConfig *GoogleKubernetesEngineConfig `json:"googleKubernetesEngineConfig,omitempty"`
|
||||
Id string `json:"id,omitempty"`
|
||||
Internal *bool `json:"internal,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
Limits map[string]string `json:"limits,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
|
101
client/management/v3/zz_generated_cluster_registration_token.go
Normal file
101
client/management/v3/zz_generated_cluster_registration_token.go
Normal file
@@ -0,0 +1,101 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/rancher/norman/types"
|
||||
)
|
||||
|
||||
const (
|
||||
ClusterRegistrationTokenType = "clusterRegistrationToken"
|
||||
ClusterRegistrationTokenFieldAnnotations = "annotations"
|
||||
ClusterRegistrationTokenFieldCreated = "created"
|
||||
ClusterRegistrationTokenFieldFinalizers = "finalizers"
|
||||
ClusterRegistrationTokenFieldLabels = "labels"
|
||||
ClusterRegistrationTokenFieldName = "name"
|
||||
ClusterRegistrationTokenFieldOwnerReferences = "ownerReferences"
|
||||
ClusterRegistrationTokenFieldRemoved = "removed"
|
||||
ClusterRegistrationTokenFieldResourcePath = "resourcePath"
|
||||
ClusterRegistrationTokenFieldState = "state"
|
||||
ClusterRegistrationTokenFieldStatus = "status"
|
||||
ClusterRegistrationTokenFieldTransitioning = "transitioning"
|
||||
ClusterRegistrationTokenFieldTransitioningMessage = "transitioningMessage"
|
||||
ClusterRegistrationTokenFieldUuid = "uuid"
|
||||
)
|
||||
|
||||
type ClusterRegistrationToken struct {
|
||||
types.Resource
|
||||
Annotations map[string]string `json:"annotations,omitempty"`
|
||||
Created string `json:"created,omitempty"`
|
||||
Finalizers []string `json:"finalizers,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"`
|
||||
Removed string `json:"removed,omitempty"`
|
||||
ResourcePath string `json:"resourcePath,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
Status *ClusterRegistrationTokenStatus `json:"status,omitempty"`
|
||||
Transitioning string `json:"transitioning,omitempty"`
|
||||
TransitioningMessage string `json:"transitioningMessage,omitempty"`
|
||||
Uuid string `json:"uuid,omitempty"`
|
||||
}
|
||||
type ClusterRegistrationTokenCollection struct {
|
||||
types.Collection
|
||||
Data []ClusterRegistrationToken `json:"data,omitempty"`
|
||||
client *ClusterRegistrationTokenClient
|
||||
}
|
||||
|
||||
type ClusterRegistrationTokenClient struct {
|
||||
apiClient *Client
|
||||
}
|
||||
|
||||
type ClusterRegistrationTokenOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterRegistrationTokenCollection, error)
|
||||
Create(opts *ClusterRegistrationToken) (*ClusterRegistrationToken, error)
|
||||
Update(existing *ClusterRegistrationToken, updates interface{}) (*ClusterRegistrationToken, error)
|
||||
ByID(id string) (*ClusterRegistrationToken, error)
|
||||
Delete(container *ClusterRegistrationToken) error
|
||||
}
|
||||
|
||||
func newClusterRegistrationTokenClient(apiClient *Client) *ClusterRegistrationTokenClient {
|
||||
return &ClusterRegistrationTokenClient{
|
||||
apiClient: apiClient,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *ClusterRegistrationTokenClient) Create(container *ClusterRegistrationToken) (*ClusterRegistrationToken, error) {
|
||||
resp := &ClusterRegistrationToken{}
|
||||
err := c.apiClient.Ops.DoCreate(ClusterRegistrationTokenType, container, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterRegistrationTokenClient) Update(existing *ClusterRegistrationToken, updates interface{}) (*ClusterRegistrationToken, error) {
|
||||
resp := &ClusterRegistrationToken{}
|
||||
err := c.apiClient.Ops.DoUpdate(ClusterRegistrationTokenType, &existing.Resource, updates, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterRegistrationTokenClient) List(opts *types.ListOpts) (*ClusterRegistrationTokenCollection, error) {
|
||||
resp := &ClusterRegistrationTokenCollection{}
|
||||
err := c.apiClient.Ops.DoList(ClusterRegistrationTokenType, opts, resp)
|
||||
resp.client = c
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterRegistrationTokenCollection) Next() (*ClusterRegistrationTokenCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterRegistrationTokenCollection{}
|
||||
err := cc.client.apiClient.Ops.DoNext(cc.Pagination.Next, resp)
|
||||
resp.client = cc.client
|
||||
return resp, err
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *ClusterRegistrationTokenClient) ByID(id string) (*ClusterRegistrationToken, error) {
|
||||
resp := &ClusterRegistrationToken{}
|
||||
err := c.apiClient.Ops.DoByID(ClusterRegistrationTokenType, id, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterRegistrationTokenClient) Delete(container *ClusterRegistrationToken) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(ClusterRegistrationTokenType, &container.Resource)
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ClusterRegistrationTokenSpecType = "clusterRegistrationTokenSpec"
|
||||
)
|
||||
|
||||
type ClusterRegistrationTokenSpec struct {
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ClusterRegistrationTokenStatusType = "clusterRegistrationTokenStatus"
|
||||
ClusterRegistrationTokenStatusFieldCommand = "command"
|
||||
ClusterRegistrationTokenStatusFieldManifestURL = "manifestUrl"
|
||||
ClusterRegistrationTokenStatusFieldToken = "token"
|
||||
)
|
||||
|
||||
type ClusterRegistrationTokenStatus struct {
|
||||
Command string `json:"command,omitempty"`
|
||||
ManifestURL string `json:"manifestUrl,omitempty"`
|
||||
Token string `json:"token,omitempty"`
|
||||
}
|
@@ -4,15 +4,15 @@ const (
|
||||
ClusterSpecType = "clusterSpec"
|
||||
ClusterSpecFieldAzureKubernetesServiceConfig = "azureKubernetesServiceConfig"
|
||||
ClusterSpecFieldDescription = "description"
|
||||
ClusterSpecFieldDisplayName = "displayName"
|
||||
ClusterSpecFieldGoogleKubernetesEngineConfig = "googleKubernetesEngineConfig"
|
||||
ClusterSpecFieldInternal = "internal"
|
||||
ClusterSpecFieldRancherKubernetesEngineConfig = "rancherKubernetesEngineConfig"
|
||||
)
|
||||
|
||||
type ClusterSpec struct {
|
||||
AzureKubernetesServiceConfig *AzureKubernetesServiceConfig `json:"azureKubernetesServiceConfig,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
GoogleKubernetesEngineConfig *GoogleKubernetesEngineConfig `json:"googleKubernetesEngineConfig,omitempty"`
|
||||
Internal *bool `json:"internal,omitempty"`
|
||||
RancherKubernetesEngineConfig *RancherKubernetesEngineConfig `json:"rancherKubernetesEngineConfig,omitempty"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user