mirror of
https://github.com/rancher/types.git
synced 2025-09-12 02:19:49 +00:00
generate changes
This commit is contained in:
committed by
Darren Shepherd
parent
8ad7a4777f
commit
ed47e37c35
@@ -46,6 +46,8 @@ type Client struct {
|
||||
PipelineExecution PipelineExecutionOperations
|
||||
PipelineExecutionLog PipelineExecutionLogOperations
|
||||
SourceCodeRepository SourceCodeRepositoryOperations
|
||||
GlobalComposeConfig GlobalComposeConfigOperations
|
||||
ClusterComposeConfig ClusterComposeConfigOperations
|
||||
}
|
||||
|
||||
func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
|
||||
@@ -97,6 +99,8 @@ func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
|
||||
client.PipelineExecution = newPipelineExecutionClient(client)
|
||||
client.PipelineExecutionLog = newPipelineExecutionLogClient(client)
|
||||
client.SourceCodeRepository = newSourceCodeRepositoryClient(client)
|
||||
client.GlobalComposeConfig = newGlobalComposeConfigClient(client)
|
||||
client.ClusterComposeConfig = newClusterComposeConfigClient(client)
|
||||
|
||||
return client, nil
|
||||
}
|
||||
|
105
client/management/v3/zz_generated_cluster_compose_config.go
Normal file
105
client/management/v3/zz_generated_cluster_compose_config.go
Normal file
@@ -0,0 +1,105 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/rancher/norman/types"
|
||||
)
|
||||
|
||||
const (
|
||||
ClusterComposeConfigType = "clusterComposeConfig"
|
||||
ClusterComposeConfigFieldAnnotations = "annotations"
|
||||
ClusterComposeConfigFieldClusterId = "clusterId"
|
||||
ClusterComposeConfigFieldCreated = "created"
|
||||
ClusterComposeConfigFieldCreatorID = "creatorId"
|
||||
ClusterComposeConfigFieldLabels = "labels"
|
||||
ClusterComposeConfigFieldName = "name"
|
||||
ClusterComposeConfigFieldNamespaceId = "namespaceId"
|
||||
ClusterComposeConfigFieldOwnerReferences = "ownerReferences"
|
||||
ClusterComposeConfigFieldRancherCompose = "rancherCompose"
|
||||
ClusterComposeConfigFieldRemoved = "removed"
|
||||
ClusterComposeConfigFieldState = "state"
|
||||
ClusterComposeConfigFieldStatus = "status"
|
||||
ClusterComposeConfigFieldTransitioning = "transitioning"
|
||||
ClusterComposeConfigFieldTransitioningMessage = "transitioningMessage"
|
||||
ClusterComposeConfigFieldUuid = "uuid"
|
||||
)
|
||||
|
||||
type ClusterComposeConfig struct {
|
||||
types.Resource
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
ClusterId string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,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"`
|
||||
RancherCompose string `json:"rancherCompose,omitempty" yaml:"rancherCompose,omitempty"`
|
||||
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
|
||||
State string `json:"state,omitempty" yaml:"state,omitempty"`
|
||||
Status *ComposeStatus `json:"status,omitempty" yaml:"status,omitempty"`
|
||||
Transitioning string `json:"transitioning,omitempty" yaml:"transitioning,omitempty"`
|
||||
TransitioningMessage string `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"`
|
||||
Uuid string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
}
|
||||
type ClusterComposeConfigCollection struct {
|
||||
types.Collection
|
||||
Data []ClusterComposeConfig `json:"data,omitempty"`
|
||||
client *ClusterComposeConfigClient
|
||||
}
|
||||
|
||||
type ClusterComposeConfigClient struct {
|
||||
apiClient *Client
|
||||
}
|
||||
|
||||
type ClusterComposeConfigOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterComposeConfigCollection, error)
|
||||
Create(opts *ClusterComposeConfig) (*ClusterComposeConfig, error)
|
||||
Update(existing *ClusterComposeConfig, updates interface{}) (*ClusterComposeConfig, error)
|
||||
ByID(id string) (*ClusterComposeConfig, error)
|
||||
Delete(container *ClusterComposeConfig) error
|
||||
}
|
||||
|
||||
func newClusterComposeConfigClient(apiClient *Client) *ClusterComposeConfigClient {
|
||||
return &ClusterComposeConfigClient{
|
||||
apiClient: apiClient,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *ClusterComposeConfigClient) Create(container *ClusterComposeConfig) (*ClusterComposeConfig, error) {
|
||||
resp := &ClusterComposeConfig{}
|
||||
err := c.apiClient.Ops.DoCreate(ClusterComposeConfigType, container, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterComposeConfigClient) Update(existing *ClusterComposeConfig, updates interface{}) (*ClusterComposeConfig, error) {
|
||||
resp := &ClusterComposeConfig{}
|
||||
err := c.apiClient.Ops.DoUpdate(ClusterComposeConfigType, &existing.Resource, updates, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterComposeConfigClient) List(opts *types.ListOpts) (*ClusterComposeConfigCollection, error) {
|
||||
resp := &ClusterComposeConfigCollection{}
|
||||
err := c.apiClient.Ops.DoList(ClusterComposeConfigType, opts, resp)
|
||||
resp.client = c
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterComposeConfigCollection) Next() (*ClusterComposeConfigCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterComposeConfigCollection{}
|
||||
err := cc.client.apiClient.Ops.DoNext(cc.Pagination.Next, resp)
|
||||
resp.client = cc.client
|
||||
return resp, err
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *ClusterComposeConfigClient) ByID(id string) (*ClusterComposeConfig, error) {
|
||||
resp := &ClusterComposeConfig{}
|
||||
err := c.apiClient.Ops.DoByID(ClusterComposeConfigType, id, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterComposeConfigClient) Delete(container *ClusterComposeConfig) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(ClusterComposeConfigType, &container.Resource)
|
||||
}
|
12
client/management/v3/zz_generated_cluster_compose_spec.go
Normal file
12
client/management/v3/zz_generated_cluster_compose_spec.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ClusterComposeSpecType = "clusterComposeSpec"
|
||||
ClusterComposeSpecFieldClusterId = "clusterId"
|
||||
ClusterComposeSpecFieldRancherCompose = "rancherCompose"
|
||||
)
|
||||
|
||||
type ClusterComposeSpec struct {
|
||||
ClusterId string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"`
|
||||
RancherCompose string `json:"rancherCompose,omitempty" yaml:"rancherCompose,omitempty"`
|
||||
}
|
20
client/management/v3/zz_generated_compose_condition.go
Normal file
20
client/management/v3/zz_generated_compose_condition.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ComposeConditionType = "composeCondition"
|
||||
ComposeConditionFieldLastTransitionTime = "lastTransitionTime"
|
||||
ComposeConditionFieldLastUpdateTime = "lastUpdateTime"
|
||||
ComposeConditionFieldMessage = "message"
|
||||
ComposeConditionFieldReason = "reason"
|
||||
ComposeConditionFieldStatus = "status"
|
||||
ComposeConditionFieldType = "type"
|
||||
)
|
||||
|
||||
type ComposeCondition struct {
|
||||
LastTransitionTime string `json:"lastTransitionTime,omitempty" yaml:"lastTransitionTime,omitempty"`
|
||||
LastUpdateTime string `json:"lastUpdateTime,omitempty" yaml:"lastUpdateTime,omitempty"`
|
||||
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||
Reason string `json:"reason,omitempty" yaml:"reason,omitempty"`
|
||||
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
||||
Type string `json:"type,omitempty" yaml:"type,omitempty"`
|
||||
}
|
10
client/management/v3/zz_generated_compose_spec.go
Normal file
10
client/management/v3/zz_generated_compose_spec.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ComposeSpecType = "composeSpec"
|
||||
ComposeSpecFieldRancherCompose = "rancherCompose"
|
||||
)
|
||||
|
||||
type ComposeSpec struct {
|
||||
RancherCompose string `json:"rancherCompose,omitempty" yaml:"rancherCompose,omitempty"`
|
||||
}
|
10
client/management/v3/zz_generated_compose_status.go
Normal file
10
client/management/v3/zz_generated_compose_status.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ComposeStatusType = "composeStatus"
|
||||
ComposeStatusFieldConditions = "conditions"
|
||||
)
|
||||
|
||||
type ComposeStatus struct {
|
||||
Conditions []ComposeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
|
||||
}
|
101
client/management/v3/zz_generated_global_compose_config.go
Normal file
101
client/management/v3/zz_generated_global_compose_config.go
Normal file
@@ -0,0 +1,101 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/rancher/norman/types"
|
||||
)
|
||||
|
||||
const (
|
||||
GlobalComposeConfigType = "globalComposeConfig"
|
||||
GlobalComposeConfigFieldAnnotations = "annotations"
|
||||
GlobalComposeConfigFieldCreated = "created"
|
||||
GlobalComposeConfigFieldCreatorID = "creatorId"
|
||||
GlobalComposeConfigFieldLabels = "labels"
|
||||
GlobalComposeConfigFieldName = "name"
|
||||
GlobalComposeConfigFieldOwnerReferences = "ownerReferences"
|
||||
GlobalComposeConfigFieldRancherCompose = "rancherCompose"
|
||||
GlobalComposeConfigFieldRemoved = "removed"
|
||||
GlobalComposeConfigFieldState = "state"
|
||||
GlobalComposeConfigFieldStatus = "status"
|
||||
GlobalComposeConfigFieldTransitioning = "transitioning"
|
||||
GlobalComposeConfigFieldTransitioningMessage = "transitioningMessage"
|
||||
GlobalComposeConfigFieldUuid = "uuid"
|
||||
)
|
||||
|
||||
type GlobalComposeConfig struct {
|
||||
types.Resource
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
|
||||
RancherCompose string `json:"rancherCompose,omitempty" yaml:"rancherCompose,omitempty"`
|
||||
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
|
||||
State string `json:"state,omitempty" yaml:"state,omitempty"`
|
||||
Status *ComposeStatus `json:"status,omitempty" yaml:"status,omitempty"`
|
||||
Transitioning string `json:"transitioning,omitempty" yaml:"transitioning,omitempty"`
|
||||
TransitioningMessage string `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"`
|
||||
Uuid string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
}
|
||||
type GlobalComposeConfigCollection struct {
|
||||
types.Collection
|
||||
Data []GlobalComposeConfig `json:"data,omitempty"`
|
||||
client *GlobalComposeConfigClient
|
||||
}
|
||||
|
||||
type GlobalComposeConfigClient struct {
|
||||
apiClient *Client
|
||||
}
|
||||
|
||||
type GlobalComposeConfigOperations interface {
|
||||
List(opts *types.ListOpts) (*GlobalComposeConfigCollection, error)
|
||||
Create(opts *GlobalComposeConfig) (*GlobalComposeConfig, error)
|
||||
Update(existing *GlobalComposeConfig, updates interface{}) (*GlobalComposeConfig, error)
|
||||
ByID(id string) (*GlobalComposeConfig, error)
|
||||
Delete(container *GlobalComposeConfig) error
|
||||
}
|
||||
|
||||
func newGlobalComposeConfigClient(apiClient *Client) *GlobalComposeConfigClient {
|
||||
return &GlobalComposeConfigClient{
|
||||
apiClient: apiClient,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *GlobalComposeConfigClient) Create(container *GlobalComposeConfig) (*GlobalComposeConfig, error) {
|
||||
resp := &GlobalComposeConfig{}
|
||||
err := c.apiClient.Ops.DoCreate(GlobalComposeConfigType, container, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalComposeConfigClient) Update(existing *GlobalComposeConfig, updates interface{}) (*GlobalComposeConfig, error) {
|
||||
resp := &GlobalComposeConfig{}
|
||||
err := c.apiClient.Ops.DoUpdate(GlobalComposeConfigType, &existing.Resource, updates, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalComposeConfigClient) List(opts *types.ListOpts) (*GlobalComposeConfigCollection, error) {
|
||||
resp := &GlobalComposeConfigCollection{}
|
||||
err := c.apiClient.Ops.DoList(GlobalComposeConfigType, opts, resp)
|
||||
resp.client = c
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *GlobalComposeConfigCollection) Next() (*GlobalComposeConfigCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &GlobalComposeConfigCollection{}
|
||||
err := cc.client.apiClient.Ops.DoNext(cc.Pagination.Next, resp)
|
||||
resp.client = cc.client
|
||||
return resp, err
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *GlobalComposeConfigClient) ByID(id string) (*GlobalComposeConfig, error) {
|
||||
resp := &GlobalComposeConfig{}
|
||||
err := c.apiClient.Ops.DoByID(GlobalComposeConfigType, id, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalComposeConfigClient) Delete(container *GlobalComposeConfig) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(GlobalComposeConfigType, &container.Resource)
|
||||
}
|
@@ -34,6 +34,7 @@ type Client struct {
|
||||
Workload WorkloadOperations
|
||||
App AppOperations
|
||||
ConfigMap ConfigMapOperations
|
||||
NamespaceComposeConfig NamespaceComposeConfigOperations
|
||||
}
|
||||
|
||||
func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
|
||||
@@ -73,6 +74,7 @@ func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
|
||||
client.Workload = newWorkloadClient(client)
|
||||
client.App = newAppClient(client)
|
||||
client.ConfigMap = newConfigMapClient(client)
|
||||
client.NamespaceComposeConfig = newNamespaceComposeConfigClient(client)
|
||||
|
||||
return client, nil
|
||||
}
|
||||
|
20
client/project/v3/zz_generated_compose_condition.go
Normal file
20
client/project/v3/zz_generated_compose_condition.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ComposeConditionType = "composeCondition"
|
||||
ComposeConditionFieldLastTransitionTime = "lastTransitionTime"
|
||||
ComposeConditionFieldLastUpdateTime = "lastUpdateTime"
|
||||
ComposeConditionFieldMessage = "message"
|
||||
ComposeConditionFieldReason = "reason"
|
||||
ComposeConditionFieldStatus = "status"
|
||||
ComposeConditionFieldType = "type"
|
||||
)
|
||||
|
||||
type ComposeCondition struct {
|
||||
LastTransitionTime string `json:"lastTransitionTime,omitempty" yaml:"lastTransitionTime,omitempty"`
|
||||
LastUpdateTime string `json:"lastUpdateTime,omitempty" yaml:"lastUpdateTime,omitempty"`
|
||||
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||
Reason string `json:"reason,omitempty" yaml:"reason,omitempty"`
|
||||
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
||||
Type string `json:"type,omitempty" yaml:"type,omitempty"`
|
||||
}
|
10
client/project/v3/zz_generated_compose_status.go
Normal file
10
client/project/v3/zz_generated_compose_status.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ComposeStatusType = "composeStatus"
|
||||
ComposeStatusFieldConditions = "conditions"
|
||||
)
|
||||
|
||||
type ComposeStatus struct {
|
||||
Conditions []ComposeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
|
||||
}
|
107
client/project/v3/zz_generated_namespace_compose_config.go
Normal file
107
client/project/v3/zz_generated_namespace_compose_config.go
Normal file
@@ -0,0 +1,107 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/rancher/norman/types"
|
||||
)
|
||||
|
||||
const (
|
||||
NamespaceComposeConfigType = "namespaceComposeConfig"
|
||||
NamespaceComposeConfigFieldAnnotations = "annotations"
|
||||
NamespaceComposeConfigFieldCreated = "created"
|
||||
NamespaceComposeConfigFieldCreatorID = "creatorId"
|
||||
NamespaceComposeConfigFieldInstallNamespace = "installNamespace"
|
||||
NamespaceComposeConfigFieldLabels = "labels"
|
||||
NamespaceComposeConfigFieldName = "name"
|
||||
NamespaceComposeConfigFieldNamespaceId = "namespaceId"
|
||||
NamespaceComposeConfigFieldOwnerReferences = "ownerReferences"
|
||||
NamespaceComposeConfigFieldProjectId = "projectId"
|
||||
NamespaceComposeConfigFieldRancherCompose = "rancherCompose"
|
||||
NamespaceComposeConfigFieldRemoved = "removed"
|
||||
NamespaceComposeConfigFieldState = "state"
|
||||
NamespaceComposeConfigFieldStatus = "status"
|
||||
NamespaceComposeConfigFieldTransitioning = "transitioning"
|
||||
NamespaceComposeConfigFieldTransitioningMessage = "transitioningMessage"
|
||||
NamespaceComposeConfigFieldUuid = "uuid"
|
||||
)
|
||||
|
||||
type NamespaceComposeConfig struct {
|
||||
types.Resource
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
|
||||
InstallNamespace string `json:"installNamespace,omitempty" yaml:"installNamespace,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"`
|
||||
RancherCompose string `json:"rancherCompose,omitempty" yaml:"rancherCompose,omitempty"`
|
||||
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
|
||||
State string `json:"state,omitempty" yaml:"state,omitempty"`
|
||||
Status *ComposeStatus `json:"status,omitempty" yaml:"status,omitempty"`
|
||||
Transitioning string `json:"transitioning,omitempty" yaml:"transitioning,omitempty"`
|
||||
TransitioningMessage string `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"`
|
||||
Uuid string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
}
|
||||
type NamespaceComposeConfigCollection struct {
|
||||
types.Collection
|
||||
Data []NamespaceComposeConfig `json:"data,omitempty"`
|
||||
client *NamespaceComposeConfigClient
|
||||
}
|
||||
|
||||
type NamespaceComposeConfigClient struct {
|
||||
apiClient *Client
|
||||
}
|
||||
|
||||
type NamespaceComposeConfigOperations interface {
|
||||
List(opts *types.ListOpts) (*NamespaceComposeConfigCollection, error)
|
||||
Create(opts *NamespaceComposeConfig) (*NamespaceComposeConfig, error)
|
||||
Update(existing *NamespaceComposeConfig, updates interface{}) (*NamespaceComposeConfig, error)
|
||||
ByID(id string) (*NamespaceComposeConfig, error)
|
||||
Delete(container *NamespaceComposeConfig) error
|
||||
}
|
||||
|
||||
func newNamespaceComposeConfigClient(apiClient *Client) *NamespaceComposeConfigClient {
|
||||
return &NamespaceComposeConfigClient{
|
||||
apiClient: apiClient,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *NamespaceComposeConfigClient) Create(container *NamespaceComposeConfig) (*NamespaceComposeConfig, error) {
|
||||
resp := &NamespaceComposeConfig{}
|
||||
err := c.apiClient.Ops.DoCreate(NamespaceComposeConfigType, container, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NamespaceComposeConfigClient) Update(existing *NamespaceComposeConfig, updates interface{}) (*NamespaceComposeConfig, error) {
|
||||
resp := &NamespaceComposeConfig{}
|
||||
err := c.apiClient.Ops.DoUpdate(NamespaceComposeConfigType, &existing.Resource, updates, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NamespaceComposeConfigClient) List(opts *types.ListOpts) (*NamespaceComposeConfigCollection, error) {
|
||||
resp := &NamespaceComposeConfigCollection{}
|
||||
err := c.apiClient.Ops.DoList(NamespaceComposeConfigType, opts, resp)
|
||||
resp.client = c
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NamespaceComposeConfigCollection) Next() (*NamespaceComposeConfigCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NamespaceComposeConfigCollection{}
|
||||
err := cc.client.apiClient.Ops.DoNext(cc.Pagination.Next, resp)
|
||||
resp.client = cc.client
|
||||
return resp, err
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *NamespaceComposeConfigClient) ByID(id string) (*NamespaceComposeConfig, error) {
|
||||
resp := &NamespaceComposeConfig{}
|
||||
err := c.apiClient.Ops.DoByID(NamespaceComposeConfigType, id, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NamespaceComposeConfigClient) Delete(container *NamespaceComposeConfig) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(NamespaceComposeConfigType, &container.Resource)
|
||||
}
|
14
client/project/v3/zz_generated_namespace_compose_spec.go
Normal file
14
client/project/v3/zz_generated_namespace_compose_spec.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
NamespaceComposeSpecType = "namespaceComposeSpec"
|
||||
NamespaceComposeSpecFieldInstallNamespace = "installNamespace"
|
||||
NamespaceComposeSpecFieldProjectId = "projectId"
|
||||
NamespaceComposeSpecFieldRancherCompose = "rancherCompose"
|
||||
)
|
||||
|
||||
type NamespaceComposeSpec struct {
|
||||
InstallNamespace string `json:"installNamespace,omitempty" yaml:"installNamespace,omitempty"`
|
||||
ProjectId string `json:"projectId,omitempty" yaml:"projectId,omitempty"`
|
||||
RancherCompose string `json:"rancherCompose,omitempty" yaml:"rancherCompose,omitempty"`
|
||||
}
|
Reference in New Issue
Block a user