kubernetes.client.rest module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: release-1.36 Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class kubernetes.client.rest.RESTClientObject(configuration)

Bases: object

close() None
request(method, url, headers=None, body=None, post_params=None, _request_timeout=None)

Perform requests.

Parameters:
  • method – http request method

  • url – http request url

  • headers – http request headers

  • body – request json body, for application/json

  • post_params – request post parameters, application/x-www-form-urlencoded and multipart/form-data

  • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

class kubernetes.client.rest.RESTResponse(resp)

Bases: IOBase

getheader(name, default=None)

Returns a given response header; use headers.get() instead.

getheaders()

Returns a dictionary of the response headers; use headers instead.

property headers

Returns a dictionary of response headers.

read()
kubernetes.client.rest.is_socks_proxy_url(url)
kubernetes.client.rest.should_bypass_proxies(url: str, no_proxy: str) bool

Return whether url matches the comma-separated no_proxy rules.