1
0
mirror of https://github.com/rancher/types.git synced 2025-08-13 10:15:19 +00:00

Update generated code

This commit is contained in:
Darren Shepherd 2018-03-23 17:34:29 -07:00
parent b1b1384724
commit 8e3235bfca
3 changed files with 7 additions and 3 deletions

View File

@ -8,6 +8,7 @@ type Client struct {
clientbase.APIBaseClient
PersistentVolumeClaim PersistentVolumeClaimOperations
ConfigMap ConfigMapOperations
Ingress IngressOperations
Secret SecretOperations
ServiceAccountToken ServiceAccountTokenOperations
@ -33,7 +34,6 @@ type Client struct {
CronJob CronJobOperations
Workload WorkloadOperations
App AppOperations
ConfigMap ConfigMapOperations
NamespaceComposeConfig NamespaceComposeConfigOperations
}
@ -48,6 +48,7 @@ func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
}
client.PersistentVolumeClaim = newPersistentVolumeClaimClient(client)
client.ConfigMap = newConfigMapClient(client)
client.Ingress = newIngressClient(client)
client.Secret = newSecretClient(client)
client.ServiceAccountToken = newServiceAccountTokenClient(client)
@ -73,7 +74,6 @@ func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
client.CronJob = newCronJobClient(client)
client.Workload = newWorkloadClient(client)
client.App = newAppClient(client)
client.ConfigMap = newConfigMapClient(client)
client.NamespaceComposeConfig = newNamespaceComposeConfigClient(client)
return client, nil

View File

@ -12,7 +12,9 @@ const (
ConfigMapFieldData = "data"
ConfigMapFieldLabels = "labels"
ConfigMapFieldName = "name"
ConfigMapFieldNamespaceId = "namespaceId"
ConfigMapFieldOwnerReferences = "ownerReferences"
ConfigMapFieldProjectID = "projectId"
ConfigMapFieldRemoved = "removed"
ConfigMapFieldUuid = "uuid"
)
@ -25,7 +27,9 @@ type ConfigMap struct {
Data map[string]string `json:"data,omitempty" yaml:"data,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
NamespaceId string `json:"namespaceId,omitempty" yaml:"namespaceId,omitempty"`
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
ProjectID string `json:"projectId,omitempty" yaml:"projectId,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
Uuid string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
}

View File

@ -56,6 +56,7 @@ type Config struct {
// Project Client
PersistentVolumeClaims map[string]projectClient.PersistentVolumeClaim `json:"persistentVolumeClaims,omitempty" yaml:"persistentVolumeClaims,omitempty"`
ConfigMaps map[string]projectClient.ConfigMap `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`
Ingresss map[string]projectClient.Ingress `json:"ingresses,omitempty" yaml:"ingresses,omitempty"`
Secrets map[string]projectClient.Secret `json:"secrets,omitempty" yaml:"secrets,omitempty"`
ServiceAccountTokens map[string]projectClient.ServiceAccountToken `json:"serviceAccountTokens,omitempty" yaml:"serviceAccountTokens,omitempty"`
@ -81,6 +82,5 @@ type Config struct {
CronJobs map[string]projectClient.CronJob `json:"cronJobs,omitempty" yaml:"cronJobs,omitempty"`
Workloads map[string]projectClient.Workload `json:"workloads,omitempty" yaml:"workloads,omitempty"`
Apps map[string]projectClient.App `json:"apps,omitempty" yaml:"apps,omitempty"`
ConfigMaps map[string]projectClient.ConfigMap `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`
NamespaceComposeConfigs map[string]projectClient.NamespaceComposeConfig `json:"namespaceComposeConfigs,omitempty" yaml:"namespaceComposeConfigs,omitempty"`
}