--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/61d0092c-529d-4372-9a7a-51ef7a6464e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
from kubernetes.client import ApiClient
r=v1.list_node()
rs=ApiClient().sanitize_for_serialization(r)
rsj=json.dumps(rs)
I believe you can add _preload_content=False to your API call and get back the raw JSON response.
On Jan 1, 2018 1:14 PM, "Tomasz Prus" <tomas...@gmail.com> wrote:
Hi, this client is a standard client based on OpenAPI specification.It transforms returned objects to Python objects. You can find some examples here: https://github.com/kubernetes-incubator/client-python/tree/master/examples--
If you want to get a raw JSON response from API Server it will be simpler to call API directly (from urllib, requests or other libraries).
Regards,
Tomasz Prus
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.