lke_cluster_pools.go raw
1 package linodego
2
3 import (
4 "context"
5 )
6
7 // Deprecated: LKEClusterPoolDisk represents a Node disk in an LKEClusterPool object
8 type LKEClusterPoolDisk = LKENodePoolDisk
9
10 // Deprecated: LKEClusterPoolAutoscaler represents an AutoScaler configuration
11 type LKEClusterPoolAutoscaler = LKENodePoolAutoscaler
12
13 // Deprecated: LKEClusterPoolLinode represents a LKEClusterPoolLinode object
14 type LKEClusterPoolLinode = LKENodePoolLinode
15
16 // Deprecated: LKEClusterPool represents a LKEClusterPool object
17 type LKEClusterPool = LKENodePool
18
19 // Deprecated: LKEClusterPoolCreateOptions fields are those accepted by CreateLKEClusterPool
20 type LKEClusterPoolCreateOptions = LKENodePoolCreateOptions
21
22 // Deprecated: LKEClusterPoolUpdateOptions fields are those accepted by UpdateLKEClusterPool
23 type LKEClusterPoolUpdateOptions = LKENodePoolUpdateOptions
24
25 // Deprecated: ListLKEClusterPools lists LKEClusterPools
26 func (c *Client) ListLKEClusterPools(ctx context.Context, clusterID int, opts *ListOptions) ([]LKEClusterPool, error) {
27 return c.ListLKENodePools(ctx, clusterID, opts)
28 }
29
30 // Deprecated: GetLKEClusterPool gets the lkeClusterPool with the provided ID
31 func (c *Client) GetLKEClusterPool(ctx context.Context, clusterID, id int) (*LKEClusterPool, error) {
32 return c.GetLKENodePool(ctx, clusterID, id)
33 }
34
35 // Deprecated: CreateLKEClusterPool creates a LKEClusterPool
36 func (c *Client) CreateLKEClusterPool(ctx context.Context, clusterID int, createOpts LKEClusterPoolCreateOptions) (*LKEClusterPool, error) {
37 return c.CreateLKENodePool(ctx, clusterID, createOpts)
38 }
39
40 // Deprecated: UpdateLKEClusterPool updates the LKEClusterPool with the specified id
41 func (c *Client) UpdateLKEClusterPool(ctx context.Context, clusterID, id int, updateOpts LKEClusterPoolUpdateOptions) (*LKEClusterPool, error) {
42 return c.UpdateLKENodePool(ctx, clusterID, id, updateOpts)
43 }
44
45 // Deprecated: DeleteLKEClusterPool deletes the LKEClusterPool with the specified id
46 func (c *Client) DeleteLKEClusterPool(ctx context.Context, clusterID, id int) error {
47 return c.DeleteLKENodePool(ctx, clusterID, id)
48 }
49
50 // Deprecated: DeleteLKEClusterPoolNode deletes a given node from a cluster pool
51 func (c *Client) DeleteLKEClusterPoolNode(ctx context.Context, clusterID int, id string) error {
52 return c.DeleteLKENodePoolNode(ctx, clusterID, id)
53 }
54