models

package
v0.0.0-...-8d074b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ClusterLifecycleStatusRequested captures enum value "requested"
	ClusterLifecycleStatusRequested string = "requested"

	// ClusterLifecycleStatusCreating captures enum value "creating"
	ClusterLifecycleStatusCreating string = "creating"

	// ClusterLifecycleStatusReady captures enum value "ready"
	ClusterLifecycleStatusReady string = "ready"

	// ClusterLifecycleStatusDecommissionDashRequested captures enum value "decommission-requested"
	ClusterLifecycleStatusDecommissionDashRequested string = "decommission-requested"

	// ClusterLifecycleStatusDecommissioned captures enum value "decommissioned"
	ClusterLifecycleStatusDecommissioned string = "decommissioned"
)
View Source
const (

	// ClusterUpdateLifecycleStatusRequested captures enum value "requested"
	ClusterUpdateLifecycleStatusRequested string = "requested"

	// ClusterUpdateLifecycleStatusCreating captures enum value "creating"
	ClusterUpdateLifecycleStatusCreating string = "creating"

	// ClusterUpdateLifecycleStatusReady captures enum value "ready"
	ClusterUpdateLifecycleStatusReady string = "ready"

	// ClusterUpdateLifecycleStatusDecommissionDashRequested captures enum value "decommission-requested"
	ClusterUpdateLifecycleStatusDecommissionDashRequested string = "decommission-requested"

	// ClusterUpdateLifecycleStatusDecommissioned captures enum value "decommissioned"
	ClusterUpdateLifecycleStatusDecommissioned string = "decommissioned"
)
View Source
const (

	// InfrastructureAccountLifecycleStatusRequested captures enum value "requested"
	InfrastructureAccountLifecycleStatusRequested string = "requested"

	// InfrastructureAccountLifecycleStatusCreating captures enum value "creating"
	InfrastructureAccountLifecycleStatusCreating string = "creating"

	// InfrastructureAccountLifecycleStatusReady captures enum value "ready"
	InfrastructureAccountLifecycleStatusReady string = "ready"

	// InfrastructureAccountLifecycleStatusDecommissioned captures enum value "decommissioned"
	InfrastructureAccountLifecycleStatusDecommissioned string = "decommissioned"
)
View Source
const (

	// InfrastructureAccountUpdateLifecycleStatusRequested captures enum value "requested"
	InfrastructureAccountUpdateLifecycleStatusRequested string = "requested"

	// InfrastructureAccountUpdateLifecycleStatusCreating captures enum value "creating"
	InfrastructureAccountUpdateLifecycleStatusCreating string = "creating"

	// InfrastructureAccountUpdateLifecycleStatusReady captures enum value "ready"
	InfrastructureAccountUpdateLifecycleStatusReady string = "ready"

	// InfrastructureAccountUpdateLifecycleStatusDecommissioned captures enum value "decommissioned"
	InfrastructureAccountUpdateLifecycleStatusDecommissioned string = "decommissioned"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {

	// Human readable alias for the Kubernetes cluster. The alias is unique
	// but can be changed.
	//
	// Example: production-cluster
	// Required: true
	// Pattern: ^[a-z][a-z0-9-]*[a-z0-9]$
	Alias *string `json:"alias"`

	// URL of the Kubernetes API server endpoint
	// Example: https://kube-1.foo.example.org/
	// Required: true
	APIServerURL *string `json:"api_server_url"`

	// A version channel for the cluster.
	// Example: alpha
	// Required: true
	Channel *string `json:"channel"`

	// Configuration items unique to the cluster. E.g. custom API key used
	// by one of the cluster services.
	//
	// Example: {"product_x_key":"abcde","product_y_key":"12345"}
	ConfigItems map[string]string `json:"config_items,omitempty"`

	// Level of criticality as defined by tech controlling. 1 is non critical, 2 is standard production, 3 is PCI.
	// Example: 2
	// Required: true
	CriticalityLevel *int32 `json:"criticality_level"`

	// The environment in which the cluster run.
	//
	// Example: production
	// Required: true
	Environment *string `json:"environment"`

	// Globally unique ID of the Kubernetes cluster
	// Example: aws:123456789012:eu-central-1:kube-1
	// Required: true
	ID *string `json:"id"`

	// The identifier of the infrastructure account in which the cluster will live in
	// Example: aws:123456789012
	// Required: true
	InfrastructureAccount *string `json:"infrastructure_account"`

	// Status of the cluster.
	// Example: ready
	// Required: true
	// Enum: ["requested","creating","ready","decommission-requested","decommissioned"]
	LifecycleStatus *string `json:"lifecycle_status"`

	// Cluster identifier which is local to the region
	// Example: kube-1
	// Required: true
	LocalID *string `json:"local_id"`

	// node pools
	NodePools []*NodePool `json:"node_pools"`

	// The provider of the cluster. Possible values are "zalando-aws", "GKE", ...
	// Example: zalando-aws
	// Required: true
	Provider *string `json:"provider"`

	// The region of the cluster
	// Example: eu-central-1
	// Required: true
	Region *string `json:"region"`

	// status
	Status *ClusterStatus `json:"status,omitempty"`
}

Cluster cluster

swagger:model Cluster

func (*Cluster) ContextValidate

func (m *Cluster) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster based on the context it is used

func (*Cluster) MarshalBinary

func (m *Cluster) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Cluster) UnmarshalBinary

func (m *Cluster) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Cluster) Validate

func (m *Cluster) Validate(formats strfmt.Registry) error

Validate validates this cluster

type ClusterStatus

type ClusterStatus struct {

	// Current version of the cluster. This can refer to a commit hash or
	// any valid version string in the context.
	//
	// Example: a1b2c3d4e5f6
	CurrentVersion string `json:"current_version,omitempty"`

	// Last working version of the cluster. This can refer to a commit
	// hash or any valid version string in the context. In case any
	// problems are defined for the current_version then it should be
	// safe to roll back to this last version.
	//
	// Example: a2b3c4d5e6f7
	LastVersion string `json:"last_version,omitempty"`

	// Next version of the cluster. This field indicates that the cluster is
	// being updated to a new version. This can refer to a commit hash or any
	// valid version string in the context.
	//
	// Example: a3b4c5d6e7f8
	NextVersion string `json:"next_version,omitempty"`

	// problems
	Problems []*ClusterStatusProblemsItems0 `json:"problems"`
}

ClusterStatus cluster status

swagger:model ClusterStatus

func (*ClusterStatus) ContextValidate

func (m *ClusterStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster status based on the context it is used

func (*ClusterStatus) MarshalBinary

func (m *ClusterStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterStatus) UnmarshalBinary

func (m *ClusterStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterStatus) Validate

func (m *ClusterStatus) Validate(formats strfmt.Registry) error

Validate validates this cluster status

type ClusterStatusProblemsItems0

type ClusterStatusProblemsItems0 struct {

	// A human-readable explanation specific to this occurrence of
	// the problem.
	//
	// Example: Cluster lifecycle manager was unable to apply the\nkubernetes-dashboard service because of insufficient\npermissions.\n
	Detail string `json:"detail,omitempty"`

	// A URI reference that identifies the specific occurrence of
	// the problem.
	//
	// Example: service/kubernetes-dashboard
	Instance string `json:"instance,omitempty"`

	// The HTTP status code generated by the origin server for this
	// occurence of the problem.
	//
	// Example: 401
	Status int32 `json:"status,omitempty"`

	// A short, human-readable summary of the problem type.
	//
	// Example: Failed to apply service 'kubernetes-dashboard'
	// Required: true
	Title *string `json:"title"`

	// A URI reference the indentifies the problem type.
	// Example: https://cluster-status.example.org/service-apply-failed
	// Required: true
	Type *string `json:"type"`

	// cluster status problems items0
	ClusterStatusProblemsItems0 map[string]string `json:"-"`
}

ClusterStatusProblemsItems0 cluster status problems items0

swagger:model ClusterStatusProblemsItems0

func (*ClusterStatusProblemsItems0) ContextValidate

func (m *ClusterStatusProblemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cluster status problems items0 based on context it is used

func (*ClusterStatusProblemsItems0) MarshalBinary

func (m *ClusterStatusProblemsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ClusterStatusProblemsItems0) MarshalJSON

func (m ClusterStatusProblemsItems0) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*ClusterStatusProblemsItems0) UnmarshalBinary

func (m *ClusterStatusProblemsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterStatusProblemsItems0) UnmarshalJSON

func (m *ClusterStatusProblemsItems0) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*ClusterStatusProblemsItems0) Validate

func (m *ClusterStatusProblemsItems0) Validate(formats strfmt.Registry) error

Validate validates this cluster status problems items0

type ClusterUpdate

type ClusterUpdate struct {

	// Human readable alias for the Kubernetes cluster. The alias is unique
	// but can be changed.
	//
	// Example: production-cluster
	Alias string `json:"alias,omitempty"`

	// URL of the Kubernetes API server endpoint
	// Example: https://kube-1.foo.example.org/
	APIServerURL string `json:"api_server_url,omitempty"`

	// A version channel for the cluster. Possible values are "alpha", "stable"
	// Example: alpha
	Channel string `json:"channel,omitempty"`

	// Configuration items unique to the cluster. E.g. custom API key used
	// by one of the cluster services.
	//
	// Example: {"product_x_key":"abcde","product_y_key":"12345"}
	ConfigItems map[string]string `json:"config_items,omitempty"`

	// Level of criticality as defined by tech controlling. 1 is non
	// critical, 2 is standard production, 3 is PCI.
	//
	// Example: 2
	CriticalityLevel int32 `json:"criticality_level,omitempty"`

	// The environment in which the cluster run.
	//
	// Example: production
	Environment string `json:"environment,omitempty"`

	// Globally unique ID of the Kubernetes cluster
	// Example: aws:123456789012:eu-central-1:kube-1
	ID string `json:"id,omitempty"`

	// The identifier of the infrastructure account in which the cluster will
	// live in
	//
	// Example: aws:123456789012
	InfrastructureAccount string `json:"infrastructure_account,omitempty"`

	// Status of the cluster.
	// Example: ready
	// Enum: ["requested","creating","ready","decommission-requested","decommissioned"]
	LifecycleStatus string `json:"lifecycle_status,omitempty"`

	// Cluster identifier which is local to the region
	// Example: kube-1
	LocalID string `json:"local_id,omitempty"`

	// The provider of the cluster. Possible values are "zalando-aws", "GKE", ...
	// Example: zalando-aws
	Provider string `json:"provider,omitempty"`

	// The region of the cluster
	// Example: eu-central-1
	Region string `json:"region,omitempty"`

	// status
	Status *ClusterStatus `json:"status,omitempty"`
}

ClusterUpdate cluster update

swagger:model ClusterUpdate

func (*ClusterUpdate) ContextValidate

func (m *ClusterUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster update based on the context it is used

func (*ClusterUpdate) MarshalBinary

func (m *ClusterUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterUpdate) UnmarshalBinary

func (m *ClusterUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterUpdate) Validate

func (m *ClusterUpdate) Validate(formats strfmt.Registry) error

Validate validates this cluster update

type ConfigValue

type ConfigValue struct {

	// Value of the Config value.
	// Example: secret-key-id
	// Required: true
	Value *string `json:"value"`
}

ConfigValue config value

swagger:model ConfigValue

func (*ConfigValue) ContextValidate

func (m *ConfigValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this config value based on context it is used

func (*ConfigValue) MarshalBinary

func (m *ConfigValue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ConfigValue) UnmarshalBinary

func (m *ConfigValue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ConfigValue) Validate

func (m *ConfigValue) Validate(formats strfmt.Registry) error

Validate validates this config value

type Error

type Error struct {

	// code
	Code int32 `json:"code,omitempty"`

	// fields
	Fields string `json:"fields,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type InfrastructureAccount

type InfrastructureAccount struct {

	// Cost center of the Owner/infrastructure account
	// Example: 0000001234
	// Required: true
	CostCenter *string `json:"cost_center"`

	// Level of criticality as defined by tech controlling. 1 is non critical, 2 is standard production, 3 is PCI
	// Example: 2
	// Required: true
	CriticalityLevel *int32 `json:"criticality_level"`

	// Environment. possible values are "production" or "test".
	// Example: production
	// Required: true
	Environment *string `json:"environment"`

	// The external identifier of the account (i.e. AWS account ID)
	// Example: 123456789012
	// Required: true
	ExternalID *string `json:"external_id"`

	// Globally unique ID of the infrastructure account.
	// Example: aws:123456789012
	// Required: true
	ID *string `json:"id"`

	// Lifecycle Status is used to describe the current status of the account.
	// Required: true
	// Enum: ["requested","creating","ready","decommissioned"]
	LifecycleStatus *string `json:"lifecycle_status"`

	// Name of the infrastructure account
	// Example: foo
	// Required: true
	Name *string `json:"name"`

	// Owner of the infrastructure account (references an object in the organization service)
	// Example: team/bar
	// Required: true
	Owner *string `json:"owner"`

	// Type of the infrastructure account. Possible types are "aws", "gcp", "dc".
	// Example: aws
	// Required: true
	Type *string `json:"type"`
}

InfrastructureAccount infrastructure account

swagger:model InfrastructureAccount

func (*InfrastructureAccount) ContextValidate

func (m *InfrastructureAccount) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this infrastructure account based on context it is used

func (*InfrastructureAccount) MarshalBinary

func (m *InfrastructureAccount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InfrastructureAccount) UnmarshalBinary

func (m *InfrastructureAccount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InfrastructureAccount) Validate

func (m *InfrastructureAccount) Validate(formats strfmt.Registry) error

Validate validates this infrastructure account

type InfrastructureAccountUpdate

type InfrastructureAccountUpdate struct {

	// Cost center of the Owner/infrastructure account
	// Example: 0000001234
	CostCenter string `json:"cost_center,omitempty"`

	// Level of criticality as defined by tech controlling. 1 is non
	// critical, 2 is standard production, 3 is PCI
	//
	// Example: 2
	CriticalityLevel int32 `json:"criticality_level,omitempty"`

	// Environment. possible values are "production" or "test".
	//
	// Example: production
	Environment string `json:"environment,omitempty"`

	// The external identifier of the account (i.e. AWS account ID)
	// Example: 123456789012
	ExternalID string `json:"external_id,omitempty"`

	// Globally unique ID of the infrastructure account.
	// Example: aws:123456789012
	ID string `json:"id,omitempty"`

	// Lifecycle Status is used to describe the current status of the account.
	// Enum: ["requested","creating","ready","decommissioned"]
	LifecycleStatus string `json:"lifecycle_status,omitempty"`

	// Name of the infrastructure account
	// Example: foo
	Name string `json:"name,omitempty"`

	// Owner of the infrastructure account (references an object in the organization service)
	// Example: team/bar
	Owner string `json:"owner,omitempty"`

	// Type of the infrastructure account. Possible types are "aws", "gcp",
	// "dc".
	//
	// Example: aws
	Type string `json:"type,omitempty"`
}

InfrastructureAccountUpdate infrastructure account update

swagger:model InfrastructureAccountUpdate

func (*InfrastructureAccountUpdate) ContextValidate

func (m *InfrastructureAccountUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this infrastructure account update based on context it is used

func (*InfrastructureAccountUpdate) MarshalBinary

func (m *InfrastructureAccountUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InfrastructureAccountUpdate) UnmarshalBinary

func (m *InfrastructureAccountUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InfrastructureAccountUpdate) Validate

func (m *InfrastructureAccountUpdate) Validate(formats strfmt.Registry) error

Validate validates this infrastructure account update

type NodePool

type NodePool struct {

	// Configuration items unique to the node pool. E.g. custom volume
	// configuration.
	//
	// Example: {"local_storage":"yes"}
	ConfigItems map[string]string `json:"config_items,omitempty"`

	// A discount strategy indicates the type of discount to be associated
	// with the node pool. This might affect the availability of the nodes in
	// the pools in case of preemptible or spot instances.  Possible values
	// depend on the provider, the only common one is "none".
	//
	// Example: none
	// Required: true
	DiscountStrategy *string `json:"discount_strategy"`

	// instance types
	// Required: true
	// Min Items: 1
	// Unique: true
	InstanceTypes []string `json:"instance_types"`

	// Maximum size of the node pool
	// Example: 20
	// Required: true
	MaxSize *int64 `json:"max_size"`

	// Minimum size of the node pool
	// Example: 3
	// Required: true
	MinSize *int64 `json:"min_size"`

	// Name of the node pool
	// Example: pool-1
	// Required: true
	Name *string `json:"name"`

	// Profile used for the node pool. Possible values are "worker-default",
	// "worker-database", "worker-gpu", "master". The "master" profile
	// identifies the pool containing the cluster master
	//
	// Example: worker-default
	// Required: true
	Profile *string `json:"profile"`
}

NodePool node pool

swagger:model NodePool

func (*NodePool) ContextValidate

func (m *NodePool) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this node pool based on context it is used

func (*NodePool) MarshalBinary

func (m *NodePool) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodePool) UnmarshalBinary

func (m *NodePool) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodePool) Validate

func (m *NodePool) Validate(formats strfmt.Registry) error

Validate validates this node pool

type NodePoolUpdate

type NodePoolUpdate struct {

	// Configuration items unique to the node pool. E.g. custom volume
	// configuration.
	//
	// Example: {"local_storage":"yes"}
	ConfigItems map[string]string `json:"config_items,omitempty"`

	// A discount strategy indicates the type of discount to be associated
	// with the node pool. This might affect the availability of the nodes in
	// the pools in case of preemptible or spot instances.  Possible values
	// depend on the provider, the only common one is "none".
	//
	// Example: none
	DiscountStrategy string `json:"discount_strategy,omitempty"`

	// instance types
	// Min Items: 1
	// Unique: true
	InstanceTypes []string `json:"instance_types"`

	// Maximum size of the node pool
	// Example: 20
	MaxSize int64 `json:"max_size,omitempty"`

	// Minimum size of the node pool
	// Example: 3
	MinSize int64 `json:"min_size,omitempty"`

	// Name of the node pool
	// Example: pool-1
	Name string `json:"name,omitempty"`

	// Profile used for the node pool. Possible values are "worker-default",
	// "worker-database", "worker-gpu", "master". The "master" profile
	// identifies the pool containing the cluster master
	//
	// Example: worker-default
	Profile string `json:"profile,omitempty"`
}

NodePoolUpdate node pool update

swagger:model NodePoolUpdate

func (*NodePoolUpdate) ContextValidate

func (m *NodePoolUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this node pool update based on context it is used

func (*NodePoolUpdate) MarshalBinary

func (m *NodePoolUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodePoolUpdate) UnmarshalBinary

func (m *NodePoolUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodePoolUpdate) Validate

func (m *NodePoolUpdate) Validate(formats strfmt.Registry) error

Validate validates this node pool update

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL