Class: LinodeOpenapiClient::LinodeKubernetesEngineLKEApi

Inherits:
Object
  • Object
show all
Defined in:
lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ LinodeKubernetesEngineLKEApi

Returns a new instance of LinodeKubernetesEngineLKEApi.



19
20
21
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#delete_lke_cluster(api_version, cluster_id, opts = {}) ⇒ Object

Delete a Kubernetes cluster Deletes a Cluster you have permission to ‘read_write`. __Deleting a Cluster is a destructive action and cannot be undone.__ Deleting a Cluster: - Deletes all Linodes in all pools within this Kubernetes cluster - Deletes all supporting Kubernetes services for this Kubernetes cluster (API server, etcd, etc) - Deletes all NodeBalancers created by this Kubernetes cluster - Does not delete any of the volumes created by this Kubernetes cluster <<LB>> — - __CLI__. “` linode-cli lke cluster-delete 12345 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


28
29
30
31
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 28

def delete_lke_cluster(api_version, cluster_id, opts = {})
  data, _status_code, _headers = delete_lke_cluster_with_http_info(api_version, cluster_id, opts)
  data
end

#delete_lke_cluster_kubeconfig(api_version, cluster_id, opts = {}) ⇒ Object

Delete a Kubeconfig Delete and regenerate the Kubeconfig file for a Cluster. <<LB>> — - __CLI__. “‘ linode-cli lke kubeconfig-delete 12345 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


102
103
104
105
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 102

def delete_lke_cluster_kubeconfig(api_version, cluster_id, opts = {})
  data, _status_code, _headers = delete_lke_cluster_kubeconfig_with_http_info(api_version, cluster_id, opts)
  data
end

#delete_lke_cluster_kubeconfig_with_http_info(api_version, cluster_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Delete a Kubeconfig Delete and regenerate the Kubeconfig file for a Cluster. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke kubeconfig-delete 12345 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 113

def delete_lke_cluster_kubeconfig_with_http_info(api_version, cluster_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.delete_lke_cluster_kubeconfig ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.delete_lke_cluster_kubeconfig"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.delete_lke_cluster_kubeconfig"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/kubeconfig'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.delete_lke_cluster_kubeconfig",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#delete_lke_cluster_kubeconfig\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_lke_cluster_node(api_version, cluster_id, node_id, opts = {}) ⇒ Object

Delete a node Deletes a specific Node from a Node Pool. __Deleting a Node is a destructive action and cannot be undone.__ Deleting a Node will reduce the size of the Node Pool it belongs to. <<LB>> — - __CLI__. “‘ linode-cli lke node-delete 12345 12345-6aa78910bc “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster containing the Node.

  • node_id (Integer)

    The ID of the Node to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


177
178
179
180
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 177

def delete_lke_cluster_node(api_version, cluster_id, node_id, opts = {})
  data, _status_code, _headers = delete_lke_cluster_node_with_http_info(api_version, cluster_id, node_id, opts)
  data
end

#delete_lke_cluster_node_with_http_info(api_version, cluster_id, node_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Delete a node Deletes a specific Node from a Node Pool. __Deleting a Node is a destructive action and cannot be undone.__ Deleting a Node will reduce the size of the Node Pool it belongs to. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke node-delete 12345 12345-6aa78910bc &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster containing the Node.

  • node_id (Integer)

    The ID of the Node to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 189

def delete_lke_cluster_node_with_http_info(api_version, cluster_id, node_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.delete_lke_cluster_node ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.delete_lke_cluster_node"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.delete_lke_cluster_node"
  end
  # verify the required parameter 'node_id' is set
  if @api_client.config.client_side_validation && node_id.nil?
    fail ArgumentError, "Missing the required parameter 'node_id' when calling LinodeKubernetesEngineLKEApi.delete_lke_cluster_node"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/nodes/{nodeId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'nodeId' + '}', CGI.escape(node_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.delete_lke_cluster_node",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#delete_lke_cluster_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_lke_cluster_with_http_info(api_version, cluster_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Delete a Kubernetes cluster Deletes a Cluster you have permission to &#x60;read_write&#x60;. __Deleting a Cluster is a destructive action and cannot be undone.__ Deleting a Cluster: - Deletes all Linodes in all pools within this Kubernetes cluster - Deletes all supporting Kubernetes services for this Kubernetes cluster (API server, etcd, etc) - Deletes all NodeBalancers created by this Kubernetes cluster - Does not delete any of the volumes created by this Kubernetes cluster &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke cluster-delete 12345 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 39

def delete_lke_cluster_with_http_info(api_version, cluster_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.delete_lke_cluster ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.delete_lke_cluster"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.delete_lke_cluster"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.delete_lke_cluster",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#delete_lke_cluster\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_lke_node_pool(api_version, cluster_id, pool_id, opts = {}) ⇒ Object

Delete a node pool Delete a specific Node Pool from a Kubernetes cluster. __Deleting a Node Pool is a destructive action and cannot be undone.__ Deleting a Node Pool will delete all Linodes within that Pool. <<LB>> — - __CLI__. “‘ linode-cli lke pool-delete 12345 456 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • pool_id (Integer)

    ID of the Pool to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


257
258
259
260
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 257

def delete_lke_node_pool(api_version, cluster_id, pool_id, opts = {})
  data, _status_code, _headers = delete_lke_node_pool_with_http_info(api_version, cluster_id, pool_id, opts)
  data
end

#delete_lke_node_pool_with_http_info(api_version, cluster_id, pool_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Delete a node pool Delete a specific Node Pool from a Kubernetes cluster. __Deleting a Node Pool is a destructive action and cannot be undone.__ Deleting a Node Pool will delete all Linodes within that Pool. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke pool-delete 12345 456 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • pool_id (Integer)

    ID of the Pool to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 269

def delete_lke_node_pool_with_http_info(api_version, cluster_id, pool_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.delete_lke_node_pool ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.delete_lke_node_pool"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.delete_lke_node_pool"
  end
  # verify the required parameter 'pool_id' is set
  if @api_client.config.client_side_validation && pool_id.nil?
    fail ArgumentError, "Missing the required parameter 'pool_id' when calling LinodeKubernetesEngineLKEApi.delete_lke_node_pool"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/pools/{poolId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'poolId' + '}', CGI.escape(pool_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.delete_lke_node_pool",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#delete_lke_node_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_lke_service_token(api_version, cluster_id, opts = {}) ⇒ Object

Delete a service token Delete and regenerate the service account token for a Cluster. __Note__. When regenerating a service account token, the Cluster’s control plane components and Linode CSI drivers are also restarted and configured with the new token. High Availability Clusters should not experience any disruption, while standard Clusters may experience brief control plane downtime while components are restarted. <<LB>> — - __CLI__. “‘ linode-cli lke service-token-delete 12345 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the target Kubernetes cluster.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


336
337
338
339
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 336

def delete_lke_service_token(api_version, cluster_id, opts = {})
  data, _status_code, _headers = delete_lke_service_token_with_http_info(api_version, cluster_id, opts)
  data
end

#delete_lke_service_token_with_http_info(api_version, cluster_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Delete a service token Delete and regenerate the service account token for a Cluster. __Note__. When regenerating a service account token, the Cluster&#39;s control plane components and Linode CSI drivers are also restarted and configured with the new token. High Availability Clusters should not experience any disruption, while standard Clusters may experience brief control plane downtime while components are restarted. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke service-token-delete 12345 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the target Kubernetes cluster.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 347

def delete_lke_service_token_with_http_info(api_version, cluster_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.delete_lke_service_token ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.delete_lke_service_token"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.delete_lke_service_token"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/servicetoken'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.delete_lke_service_token",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#delete_lke_service_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_lke_cluster(api_version, cluster_id, opts = {}) ⇒ GetLkeCluster200Response

Get a Kubernetes cluster Get a specific Cluster by ID. <<LB>> — - __CLI__. “‘ linode-cli lke cluster-view 12345 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



410
411
412
413
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 410

def get_lke_cluster(api_version, cluster_id, opts = {})
  data, _status_code, _headers = get_lke_cluster_with_http_info(api_version, cluster_id, opts)
  data
end

#get_lke_cluster_api_endpoints(api_version, cluster_id, opts = {}) ⇒ GetLkeClusterApiEndpoints200Response

List Kubernetes API endpoints List the Kubernetes API server endpoints for this cluster. Please note that it often takes 2-5 minutes before the endpoint is ready after first [creating a new cluster](techdocs.akamai.com/linode-api/reference/post-lke-cluster). <<LB>> — - __CLI__. “‘ linode-cli lke api-endpoints-list 12345 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



484
485
486
487
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 484

def get_lke_cluster_api_endpoints(api_version, cluster_id, opts = {})
  data, _status_code, _headers = get_lke_cluster_api_endpoints_with_http_info(api_version, cluster_id, opts)
  data
end

#get_lke_cluster_api_endpoints_with_http_info(api_version, cluster_id, opts = {}) ⇒ Array<(GetLkeClusterApiEndpoints200Response, Integer, Hash)>

List Kubernetes API endpoints List the Kubernetes API server endpoints for this cluster. Please note that it often takes 2-5 minutes before the endpoint is ready after first [creating a new cluster](techdocs.akamai.com/linode-api/reference/post-lke-cluster). &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke api-endpoints-list 12345 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 495

def get_lke_cluster_api_endpoints_with_http_info(api_version, cluster_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.get_lke_cluster_api_endpoints ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster_api_endpoints"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster_api_endpoints"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/api-endpoints'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetLkeClusterApiEndpoints200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.get_lke_cluster_api_endpoints",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#get_lke_cluster_api_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_lke_cluster_dashboard(api_version, cluster_id, opts = {}) ⇒ GetLkeClusterDashboard200Response

Get a Kubernetes cluster dashboard URL Get a [Kubernetes Dashboard](github.com/kubernetes/dashboard) access URL for this Cluster, which enables performance of administrative tasks through a web interface. Dashboards are installed for Clusters by default. To access the Cluster Dashboard login prompt, enter the URL in a web browser. Select either __Token__ or __Kubeconfig__ authentication, then select __Sign in__. For additional guidance on using the Cluster Dashboard, see the [Navigating the Cluster Dashboard](www.linode.com/docs/guides/using-the-kubernetes-dashboard-on-lke/#navigating-the-cluster-dashboard) section of our guide on [Using the Kubernetes Dashboard on LKE](www.linode.com/docs/guides/using-the-kubernetes-dashboard-on-lke/). <<LB>> — - __CLI__. “‘ linode-cli lke cluster-dashboard-url 12345 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



558
559
560
561
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 558

def get_lke_cluster_dashboard(api_version, cluster_id, opts = {})
  data, _status_code, _headers = get_lke_cluster_dashboard_with_http_info(api_version, cluster_id, opts)
  data
end

#get_lke_cluster_dashboard_with_http_info(api_version, cluster_id, opts = {}) ⇒ Array<(GetLkeClusterDashboard200Response, Integer, Hash)>

Get a Kubernetes cluster dashboard URL Get a [Kubernetes Dashboard](github.com/kubernetes/dashboard) access URL for this Cluster, which enables performance of administrative tasks through a web interface. Dashboards are installed for Clusters by default. To access the Cluster Dashboard login prompt, enter the URL in a web browser. Select either __Token__ or __Kubeconfig__ authentication, then select __Sign in__. For additional guidance on using the Cluster Dashboard, see the [Navigating the Cluster Dashboard](www.linode.com/docs/guides/using-the-kubernetes-dashboard-on-lke/#navigating-the-cluster-dashboard) section of our guide on [Using the Kubernetes Dashboard on LKE](www.linode.com/docs/guides/using-the-kubernetes-dashboard-on-lke/). &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke cluster-dashboard-url 12345 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 569

def get_lke_cluster_dashboard_with_http_info(api_version, cluster_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.get_lke_cluster_dashboard ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster_dashboard"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster_dashboard"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/dashboard'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetLkeClusterDashboard200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.get_lke_cluster_dashboard",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#get_lke_cluster_dashboard\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_lke_cluster_kubeconfig(api_version, cluster_id, opts = {}) ⇒ GetLkeClusterKubeconfig200Response

Get a Kubeconfig Get the Kubeconfig file for a Cluster. Please note that it often takes 2-5 minutes before the Kubeconfig file is ready after first [creating a new cluster](techdocs.akamai.com/linode-api/reference/post-lke-cluster). <<LB>> — - __CLI__. “‘ linode-cli lke kubeconfig-view 12345 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



632
633
634
635
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 632

def get_lke_cluster_kubeconfig(api_version, cluster_id, opts = {})
  data, _status_code, _headers = get_lke_cluster_kubeconfig_with_http_info(api_version, cluster_id, opts)
  data
end

#get_lke_cluster_kubeconfig_with_http_info(api_version, cluster_id, opts = {}) ⇒ Array<(GetLkeClusterKubeconfig200Response, Integer, Hash)>

Get a Kubeconfig Get the Kubeconfig file for a Cluster. Please note that it often takes 2-5 minutes before the Kubeconfig file is ready after first [creating a new cluster](techdocs.akamai.com/linode-api/reference/post-lke-cluster). &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke kubeconfig-view 12345 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 643

def get_lke_cluster_kubeconfig_with_http_info(api_version, cluster_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.get_lke_cluster_kubeconfig ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster_kubeconfig"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster_kubeconfig"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/kubeconfig'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetLkeClusterKubeconfig200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.get_lke_cluster_kubeconfig",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#get_lke_cluster_kubeconfig\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_lke_cluster_node(api_version, cluster_id, node_id, opts = {}) ⇒ GetLkeClusterNode200Response

Get a node Returns the values for a specified node object. <<LB>> — - __CLI__. “‘ linode-cli lke node-view 123456 12345-6aa78910bc “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster containing the Node.

  • node_id (Integer)

    The ID of the Node to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



707
708
709
710
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 707

def get_lke_cluster_node(api_version, cluster_id, node_id, opts = {})
  data, _status_code, _headers = get_lke_cluster_node_with_http_info(api_version, cluster_id, node_id, opts)
  data
end

#get_lke_cluster_node_with_http_info(api_version, cluster_id, node_id, opts = {}) ⇒ Array<(GetLkeClusterNode200Response, Integer, Hash)>

Get a node Returns the values for a specified node object. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke node-view 123456 12345-6aa78910bc &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster containing the Node.

  • node_id (Integer)

    The ID of the Node to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 719

def get_lke_cluster_node_with_http_info(api_version, cluster_id, node_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.get_lke_cluster_node ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster_node"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster_node"
  end
  # verify the required parameter 'node_id' is set
  if @api_client.config.client_side_validation && node_id.nil?
    fail ArgumentError, "Missing the required parameter 'node_id' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster_node"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/nodes/{nodeId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'nodeId' + '}', CGI.escape(node_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetLkeClusterNode200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.get_lke_cluster_node",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#get_lke_cluster_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_lke_cluster_pools(api_version, cluster_id, opts = {}) ⇒ GetLkeClusterPools200Response

List node pools Returns all active Node Pools on a Kubernetes cluster. <<LB>> — - __CLI__. “‘ linode-cli lke pools-list 12345 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



786
787
788
789
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 786

def get_lke_cluster_pools(api_version, cluster_id, opts = {})
  data, _status_code, _headers = get_lke_cluster_pools_with_http_info(api_version, cluster_id, opts)
  data
end

#get_lke_cluster_pools_with_http_info(api_version, cluster_id, opts = {}) ⇒ Array<(GetLkeClusterPools200Response, Integer, Hash)>

List node pools Returns all active Node Pools on a Kubernetes cluster. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke pools-list 12345 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 797

def get_lke_cluster_pools_with_http_info(api_version, cluster_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.get_lke_cluster_pools ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster_pools"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster_pools"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/pools'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetLkeClusterPools200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.get_lke_cluster_pools",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#get_lke_cluster_pools\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_lke_cluster_with_http_info(api_version, cluster_id, opts = {}) ⇒ Array<(GetLkeCluster200Response, Integer, Hash)>

Get a Kubernetes cluster Get a specific Cluster by ID. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke cluster-view 12345 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(GetLkeCluster200Response, Integer, Hash)>)

    GetLkeCluster200Response data, response status code and response headers



421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 421

def get_lke_cluster_with_http_info(api_version, cluster_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.get_lke_cluster ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.get_lke_cluster"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetLkeCluster200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.get_lke_cluster",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#get_lke_cluster\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_lke_clusters(api_version, opts = {}) ⇒ GetLkeClusters200Response

List Kubernetes clusters Lists current Kubernetes clusters available on your account. <<LB>> — - __CLI__. “‘ linode-cli lke clusters-list “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



859
860
861
862
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 859

def get_lke_clusters(api_version, opts = {})
  data, _status_code, _headers = get_lke_clusters_with_http_info(api_version, opts)
  data
end

#get_lke_clusters_with_http_info(api_version, opts = {}) ⇒ Array<(GetLkeClusters200Response, Integer, Hash)>

List Kubernetes clusters Lists current Kubernetes clusters available on your account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke clusters-list &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(GetLkeClusters200Response, Integer, Hash)>)

    GetLkeClusters200Response data, response status code and response headers



869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 869

def get_lke_clusters_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.get_lke_clusters ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.get_lke_clusters"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetLkeClusters200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.get_lke_clusters",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#get_lke_clusters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_lke_node_pool(api_version, cluster_id, pool_id, opts = {}) ⇒ GetLkeNodePool200Response

Get a node pool Get a specific Node Pool by ID. <<LB>> — - __CLI__. “‘ linode-cli lke pool-view 12345 456 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • pool_id (Integer)

    ID of the Pool to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



929
930
931
932
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 929

def get_lke_node_pool(api_version, cluster_id, pool_id, opts = {})
  data, _status_code, _headers = get_lke_node_pool_with_http_info(api_version, cluster_id, pool_id, opts)
  data
end

#get_lke_node_pool_with_http_info(api_version, cluster_id, pool_id, opts = {}) ⇒ Array<(GetLkeNodePool200Response, Integer, Hash)>

Get a node pool Get a specific Node Pool by ID. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke pool-view 12345 456 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • pool_id (Integer)

    ID of the Pool to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(GetLkeNodePool200Response, Integer, Hash)>)

    GetLkeNodePool200Response data, response status code and response headers



941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 941

def get_lke_node_pool_with_http_info(api_version, cluster_id, pool_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.get_lke_node_pool ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.get_lke_node_pool"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.get_lke_node_pool"
  end
  # verify the required parameter 'pool_id' is set
  if @api_client.config.client_side_validation && pool_id.nil?
    fail ArgumentError, "Missing the required parameter 'pool_id' when calling LinodeKubernetesEngineLKEApi.get_lke_node_pool"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/pools/{poolId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'poolId' + '}', CGI.escape(pool_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetLkeNodePool200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.get_lke_node_pool",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#get_lke_node_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_lke_version(api_version, version, opts = {}) ⇒ GetLkeVersions200ResponseDataInner

Get a Kubernetes version View a Kubernetes version available for deployment to a Kubernetes cluster. <<LB>> — - __CLI__. “‘ linode-cli lke version-view 1.27 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • version (String)

    The LKE version to view.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1008
1009
1010
1011
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1008

def get_lke_version(api_version, version, opts = {})
  data, _status_code, _headers = get_lke_version_with_http_info(api_version, version, opts)
  data
end

#get_lke_version_with_http_info(api_version, version, opts = {}) ⇒ Array<(GetLkeVersions200ResponseDataInner, Integer, Hash)>

Get a Kubernetes version View a Kubernetes version available for deployment to a Kubernetes cluster. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke version-view 1.27 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • version (String)

    The LKE version to view.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1019

def get_lke_version_with_http_info(api_version, version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.get_lke_version ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.get_lke_version"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'version' is set
  if @api_client.config.client_side_validation && version.nil?
    fail ArgumentError, "Missing the required parameter 'version' when calling LinodeKubernetesEngineLKEApi.get_lke_version"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/versions/{version}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetLkeVersions200ResponseDataInner'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.get_lke_version",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#get_lke_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_lke_versions(api_version, opts = {}) ⇒ GetLkeVersions200Response

List Kubernetes versions List the Kubernetes versions available for deployment to a Kubernetes cluster. <<LB>> — - __CLI__. “‘ linode-cli lke versions-list “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1081
1082
1083
1084
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1081

def get_lke_versions(api_version, opts = {})
  data, _status_code, _headers = get_lke_versions_with_http_info(api_version, opts)
  data
end

#get_lke_versions_with_http_info(api_version, opts = {}) ⇒ Array<(GetLkeVersions200Response, Integer, Hash)>

List Kubernetes versions List the Kubernetes versions available for deployment to a Kubernetes cluster. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke versions-list &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(GetLkeVersions200Response, Integer, Hash)>)

    GetLkeVersions200Response data, response status code and response headers



1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1091

def get_lke_versions_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.get_lke_versions ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.get_lke_versions"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/versions'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetLkeVersions200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.get_lke_versions",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#get_lke_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_lke_cluster(api_version, opts = {}) ⇒ PostLkeCluster200Response

Create a Kubernetes cluster Creates a Kubernetes cluster. The Kubernetes cluster will be created asynchronously. You can use the events system to determine when the Kubernetes cluster is ready to use. Please note that it often takes 2-5 minutes before the [Kubernetes API endpoints](techdocs.akamai.com/linode-api/reference/get-lke-cluster-api-endpoints) and the [Kubeconfig file](techdocs.akamai.com/linode-api/reference/get-lke-cluster-kubeconfig) for the new cluster are ready. <<LB>> — - __CLI__. “‘ linode-cli lke cluster-create \ –label cluster12345 \ –region us-central \ –k8s_version 1.27 \ –control_plane.high_availability true \ –node_pools.type g6-standard-4 –node_pools.count 6 \ –node_pools.type g6-standard-8 –node_pools.count 3 \ –node_pools.autoscaler.enabled true \ –node_pools.autoscaler.max 12 \ –node_pools.autoscaler.min 3 \ –tags ecomm “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1150
1151
1152
1153
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1150

def post_lke_cluster(api_version, opts = {})
  data, _status_code, _headers = post_lke_cluster_with_http_info(api_version, opts)
  data
end

#post_lke_cluster_node_recycle(api_version, cluster_id, node_id, opts = {}) ⇒ Object

Recycle a node Recycles an individual Node in the designated Kubernetes Cluster. The Node will be deleted and replaced with a new Linode, which may take a few minutes. Replacement Nodes are installed with the latest available patch for the Cluster’s Kubernetes Version. __Any local storage on deleted Linodes (such as ‘hostPath` and `emptyDir` volumes, or `local` PersistentVolumes) will be erased.__ <<LB>> — - __CLI__. “` linode-cli lke node-recycle 12345 12345-6aa78910bc “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster containing the Node.

  • node_id (String)

    ID of the Node to be recycled.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


1226
1227
1228
1229
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1226

def post_lke_cluster_node_recycle(api_version, cluster_id, node_id, opts = {})
  data, _status_code, _headers = post_lke_cluster_node_recycle_with_http_info(api_version, cluster_id, node_id, opts)
  data
end

#post_lke_cluster_node_recycle_with_http_info(api_version, cluster_id, node_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Recycle a node Recycles an individual Node in the designated Kubernetes Cluster. The Node will be deleted and replaced with a new Linode, which may take a few minutes. Replacement Nodes are installed with the latest available patch for the Cluster&#39;s Kubernetes Version. __Any local storage on deleted Linodes (such as &#x60;hostPath&#x60; and &#x60;emptyDir&#x60; volumes, or &#x60;local&#x60; PersistentVolumes) will be erased.__ &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke node-recycle 12345 12345-6aa78910bc &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster containing the Node.

  • node_id (String)

    ID of the Node to be recycled.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1238

def post_lke_cluster_node_recycle_with_http_info(api_version, cluster_id, node_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.post_lke_cluster_node_recycle ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_node_recycle"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_node_recycle"
  end
  # verify the required parameter 'node_id' is set
  if @api_client.config.client_side_validation && node_id.nil?
    fail ArgumentError, "Missing the required parameter 'node_id' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_node_recycle"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/nodes/{nodeId}/recycle'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'nodeId' + '}', CGI.escape(node_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.post_lke_cluster_node_recycle",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#post_lke_cluster_node_recycle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_lke_cluster_pool_recycle(api_version, cluster_id, pool_id, opts = {}) ⇒ Object

Recycle a node pool Recycles a Node Pool for the designated Kubernetes Cluster. All Linodes within the Node Pool will be deleted and replaced with new Linodes on a rolling basis, which may take several minutes. Replacement Nodes are installed with the latest available patch for the Cluster’s Kubernetes Version. __Any local storage on deleted Linodes (such as ‘hostPath` and `emptyDir` volumes, or `local` PersistentVolumes) will be erased.__ <<LB>> — - __CLI__. “` linode-cli lke pool-recycle 12345 456 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster this Node Pool is attached to.

  • pool_id (Integer)

    ID of the Node Pool to be recycled.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


1306
1307
1308
1309
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1306

def post_lke_cluster_pool_recycle(api_version, cluster_id, pool_id, opts = {})
  data, _status_code, _headers = post_lke_cluster_pool_recycle_with_http_info(api_version, cluster_id, pool_id, opts)
  data
end

#post_lke_cluster_pool_recycle_with_http_info(api_version, cluster_id, pool_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Recycle a node pool Recycles a Node Pool for the designated Kubernetes Cluster. All Linodes within the Node Pool will be deleted and replaced with new Linodes on a rolling basis, which may take several minutes. Replacement Nodes are installed with the latest available patch for the Cluster&#39;s Kubernetes Version. __Any local storage on deleted Linodes (such as &#x60;hostPath&#x60; and &#x60;emptyDir&#x60; volumes, or &#x60;local&#x60; PersistentVolumes) will be erased.__ &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke pool-recycle 12345 456 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster this Node Pool is attached to.

  • pool_id (Integer)

    ID of the Node Pool to be recycled.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1318

def post_lke_cluster_pool_recycle_with_http_info(api_version, cluster_id, pool_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.post_lke_cluster_pool_recycle ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_pool_recycle"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_pool_recycle"
  end
  # verify the required parameter 'pool_id' is set
  if @api_client.config.client_side_validation && pool_id.nil?
    fail ArgumentError, "Missing the required parameter 'pool_id' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_pool_recycle"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/pools/{poolId}/recycle'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'poolId' + '}', CGI.escape(pool_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.post_lke_cluster_pool_recycle",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#post_lke_cluster_pool_recycle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_lke_cluster_pools(api_version, cluster_id, post_lke_cluster_pools_request, opts = {}) ⇒ PostLkeClusterPools200Response

Create a node pool Creates a new Node Pool for the designated Kubernetes cluster. <<LB>> — - __CLI__. “‘ linode-cli lke pool-create 12345 \ –type g6-standard-4 \ –count 6 \ –tags example-tag \ –autoscaler.enabled true \ –autoscaler.max 12 \ –autoscaler.min 3 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • post_lke_cluster_pools_request (PostLkeClusterPoolsRequest)

    Configuration for the Node Pool.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1386
1387
1388
1389
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1386

def post_lke_cluster_pools(api_version, cluster_id, post_lke_cluster_pools_request, opts = {})
  data, _status_code, _headers = post_lke_cluster_pools_with_http_info(api_version, cluster_id, post_lke_cluster_pools_request, opts)
  data
end

#post_lke_cluster_pools_with_http_info(api_version, cluster_id, post_lke_cluster_pools_request, opts = {}) ⇒ Array<(PostLkeClusterPools200Response, Integer, Hash)>

Create a node pool Creates a new Node Pool for the designated Kubernetes cluster. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke pool-create 12345 \ –type g6-standard-4 \ –count 6 \ –tags example-tag \ –autoscaler.enabled true \ –autoscaler.max 12 \ –autoscaler.min 3 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • post_lke_cluster_pools_request (PostLkeClusterPoolsRequest)

    Configuration for the Node Pool.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1398

def post_lke_cluster_pools_with_http_info(api_version, cluster_id, post_lke_cluster_pools_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.post_lke_cluster_pools ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_pools"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_pools"
  end
  # verify the required parameter 'post_lke_cluster_pools_request' is set
  if @api_client.config.client_side_validation && post_lke_cluster_pools_request.nil?
    fail ArgumentError, "Missing the required parameter 'post_lke_cluster_pools_request' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_pools"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/pools'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(post_lke_cluster_pools_request)

  # return_type
  return_type = opts[:debug_return_type] || 'PostLkeClusterPools200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.post_lke_cluster_pools",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#post_lke_cluster_pools\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_lke_cluster_recycle(api_version, cluster_id, opts = {}) ⇒ Object

Recycle cluster nodes Recycles all nodes in all pools of a designated Kubernetes Cluster. All Linodes within the Cluster will be deleted and replaced with new Linodes on a rolling basis, which may take several minutes. Replacement Nodes are installed with the latest available [patch version](github.com/kubernetes/community/blob/master/contributors/design-proposals/release/versioning.md#kubernetes-release-versioning) for the Cluster’s current Kubernetes minor release. __Any local storage on deleted Linodes (such as ‘hostPath` and `emptyDir` volumes, or `local` PersistentVolumes) will be erased.__ <<LB>> — - __CLI__. “` linode-cli lke cluster-nodes-recycle 12345 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster which contains nodes to be recycled.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


1470
1471
1472
1473
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1470

def post_lke_cluster_recycle(api_version, cluster_id, opts = {})
  data, _status_code, _headers = post_lke_cluster_recycle_with_http_info(api_version, cluster_id, opts)
  data
end

#post_lke_cluster_recycle_with_http_info(api_version, cluster_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Recycle cluster nodes Recycles all nodes in all pools of a designated Kubernetes Cluster. All Linodes within the Cluster will be deleted and replaced with new Linodes on a rolling basis, which may take several minutes. Replacement Nodes are installed with the latest available [patch version](github.com/kubernetes/community/blob/master/contributors/design-proposals/release/versioning.md#kubernetes-release-versioning) for the Cluster&#39;s current Kubernetes minor release. __Any local storage on deleted Linodes (such as &#x60;hostPath&#x60; and &#x60;emptyDir&#x60; volumes, or &#x60;local&#x60; PersistentVolumes) will be erased.__ &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke cluster-nodes-recycle 12345 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster which contains nodes to be recycled.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1481

def post_lke_cluster_recycle_with_http_info(api_version, cluster_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.post_lke_cluster_recycle ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_recycle"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_recycle"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/recycle'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.post_lke_cluster_recycle",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#post_lke_cluster_recycle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_lke_cluster_regenerate(api_version, cluster_id, opts = {}) ⇒ Object

Regenerate a Kubernetes cluster Regenerate the Kubeconfig file and/or the service account token for a Cluster. This is a helper operation that allows performing both the [Delete a Kubeconfig](techdocs.akamai.com/linode-api/reference/delete-lke-cluster-kubeconfig) and the [Delete a service token](techdocs.akamai.com/linode-api/reference/delete-lke-service-token) operations with a single request. When using this operation, at least one of ‘kubeconfig` or `servicetoken` is required. __Note__. When regenerating a service account token, the Cluster’s control plane components and Linode CSI drivers are also restarted and configured with the new token. High Availability Clusters should not experience any disruption, while standard Clusters may experience brief control plane downtime while components are restarted. <<LB>> — - __CLI__. “‘ linode-cli lke regenerate 12345 \ –kubeconfig true \ –servicetoken true “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the target Kubernetes cluster.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Object)


1545
1546
1547
1548
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1545

def post_lke_cluster_regenerate(api_version, cluster_id, opts = {})
  data, _status_code, _headers = post_lke_cluster_regenerate_with_http_info(api_version, cluster_id, opts)
  data
end

#post_lke_cluster_regenerate_with_http_info(api_version, cluster_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Regenerate a Kubernetes cluster Regenerate the Kubeconfig file and/or the service account token for a Cluster. This is a helper operation that allows performing both the [Delete a Kubeconfig](techdocs.akamai.com/linode-api/reference/delete-lke-cluster-kubeconfig) and the [Delete a service token](techdocs.akamai.com/linode-api/reference/delete-lke-service-token) operations with a single request. When using this operation, at least one of &#x60;kubeconfig&#x60; or &#x60;servicetoken&#x60; is required. __Note__. When regenerating a service account token, the Cluster&#39;s control plane components and Linode CSI drivers are also restarted and configured with the new token. High Availability Clusters should not experience any disruption, while standard Clusters may experience brief control plane downtime while components are restarted. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke regenerate 12345 \ –kubeconfig true \ –servicetoken true &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the target Kubernetes cluster.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1557

def post_lke_cluster_regenerate_with_http_info(api_version, cluster_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.post_lke_cluster_regenerate ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_regenerate"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster_regenerate"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/regenerate'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'post_lke_cluster_regenerate_request'])

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.post_lke_cluster_regenerate",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#post_lke_cluster_regenerate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_lke_cluster_with_http_info(api_version, opts = {}) ⇒ Array<(PostLkeCluster200Response, Integer, Hash)>

Create a Kubernetes cluster Creates a Kubernetes cluster. The Kubernetes cluster will be created asynchronously. You can use the events system to determine when the Kubernetes cluster is ready to use. Please note that it often takes 2-5 minutes before the [Kubernetes API endpoints](techdocs.akamai.com/linode-api/reference/get-lke-cluster-api-endpoints) and the [Kubeconfig file](techdocs.akamai.com/linode-api/reference/get-lke-cluster-kubeconfig) for the new cluster are ready. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke cluster-create \ –label cluster12345 \ –region us-central \ –k8s_version 1.27 \ –control_plane.high_availability true \ –node_pools.type g6-standard-4 –node_pools.count 6 \ –node_pools.type g6-standard-8 –node_pools.count 3 \ –node_pools.autoscaler.enabled true \ –node_pools.autoscaler.max 12 \ –node_pools.autoscaler.min 3 \ –tags ecomm &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(PostLkeCluster200Response, Integer, Hash)>)

    PostLkeCluster200Response data, response status code and response headers



1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1161

def post_lke_cluster_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.post_lke_cluster ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.post_lke_cluster"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'post_lke_cluster_request'])

  # return_type
  return_type = opts[:debug_return_type] || 'PostLkeCluster200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.post_lke_cluster",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#post_lke_cluster\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#put_lke_cluster(api_version, cluster_id, opts = {}) ⇒ PutLkeCluster200Response

Update a Kubernetes cluster Updates a Kubernetes cluster. <<LB>> — - __CLI__. “‘ linode-cli lke cluster-update 12345 \ –label lkecluster54321 \ –control_plane.high_availability true \ –k8s_version 1.27 \ –tags ecomm \ –tags blog \ –tags prod \ –tags monitoring “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1626
1627
1628
1629
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1626

def put_lke_cluster(api_version, cluster_id, opts = {})
  data, _status_code, _headers = put_lke_cluster_with_http_info(api_version, cluster_id, opts)
  data
end

#put_lke_cluster_with_http_info(api_version, cluster_id, opts = {}) ⇒ Array<(PutLkeCluster200Response, Integer, Hash)>

Update a Kubernetes cluster Updates a Kubernetes cluster. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke cluster-update 12345 \ –label lkecluster54321 \ –control_plane.high_availability true \ –k8s_version 1.27 \ –tags ecomm \ –tags blog \ –tags prod \ –tags monitoring &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(PutLkeCluster200Response, Integer, Hash)>)

    PutLkeCluster200Response data, response status code and response headers



1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1638

def put_lke_cluster_with_http_info(api_version, cluster_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.put_lke_cluster ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.put_lke_cluster"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.put_lke_cluster"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'put_lke_cluster_request'])

  # return_type
  return_type = opts[:debug_return_type] || 'PutLkeCluster200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.put_lke_cluster",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#put_lke_cluster\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#put_lke_node_pool(api_version, cluster_id, pool_id, opts = {}) ⇒ PutLkeNodePool200Response

Update a node pool Updates a node pool’s count, labels and taints, and autoscaler configuration. Linodes are created or deleted to match changes to the Node Pool’s count. Specifying labels or taints on update overwrites any previous values, and updates existing nodes with the new values without a recycle. __Any local storage on deleted Linodes (such as ‘hostPath` and `emptyDir` volumes, or `local` PersistentVolumes) will be erased.__ <<LB>> — - __CLI__. “` linode-cli lke pool-update 12345 456 \ –count 6 \ –autoscaler.enabled true \ –autoscaler.max 12 \ –autoscaler.min 3 \ “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` lke:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • pool_id (Integer)

    ID of the Pool to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1708
1709
1710
1711
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1708

def put_lke_node_pool(api_version, cluster_id, pool_id, opts = {})
  data, _status_code, _headers = put_lke_node_pool_with_http_info(api_version, cluster_id, pool_id, opts)
  data
end

#put_lke_node_pool_with_http_info(api_version, cluster_id, pool_id, opts = {}) ⇒ Array<(PutLkeNodePool200Response, Integer, Hash)>

Update a node pool Updates a node pool&#39;s count, labels and taints, and autoscaler configuration. Linodes are created or deleted to match changes to the Node Pool&#39;s count. Specifying labels or taints on update overwrites any previous values, and updates existing nodes with the new values without a recycle. __Any local storage on deleted Linodes (such as &#x60;hostPath&#x60; and &#x60;emptyDir&#x60; volumes, or &#x60;local&#x60; PersistentVolumes) will be erased.__ &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli lke pool-update 12345 456 \ –count 6 \ –autoscaler.enabled true \ –autoscaler.max 12 \ –autoscaler.min 3 \ &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; lke:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • cluster_id (Integer)

    ID of the Kubernetes cluster to look up.

  • pool_id (Integer)

    ID of the Pool to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(PutLkeNodePool200Response, Integer, Hash)>)

    PutLkeNodePool200Response data, response status code and response headers



1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
# File 'lib/linode_openapi_client/api/linode_kubernetes_engine_lke_api.rb', line 1721

def put_lke_node_pool_with_http_info(api_version, cluster_id, pool_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: LinodeKubernetesEngineLKEApi.put_lke_node_pool ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling LinodeKubernetesEngineLKEApi.put_lke_node_pool"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'cluster_id' is set
  if @api_client.config.client_side_validation && cluster_id.nil?
    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LinodeKubernetesEngineLKEApi.put_lke_node_pool"
  end
  # verify the required parameter 'pool_id' is set
  if @api_client.config.client_side_validation && pool_id.nil?
    fail ArgumentError, "Missing the required parameter 'pool_id' when calling LinodeKubernetesEngineLKEApi.put_lke_node_pool"
  end
  # resource path
  local_var_path = '/{apiVersion}/lke/clusters/{clusterId}/pools/{poolId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'poolId' + '}', CGI.escape(pool_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'put_lke_node_pool_request'])

  # return_type
  return_type = opts[:debug_return_type] || 'PutLkeNodePool200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"LinodeKubernetesEngineLKEApi.put_lke_node_pool",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: LinodeKubernetesEngineLKEApi#put_lke_node_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end