- .github
- devel
- doc
-
examples
-
dynamic-client
-
notebooks
-
watch
-
yaml_dir
- README.md
- __init__.py
- annotate_deployment.py
- api_discovery.py
- apply_from_dict.py
- apply_from_directory.py
- apply_from_single_file.py
- cluster_scoped_custom_object.py
- cronjob_crud.py
- deployment_create.py
- deployment_crud.py
- duration-gep2257.py
- in_cluster_config.py
- ingress_create.py
- job_crud.py
- multiple_clusters.py
- namespaced_custom_object.py
- node_labels.py
- out_of_cluster_config.py
- pick_kube_config_context.py
- pod_config_list.py
- pod_exec.py
- pod_portforward.py
- remote_cluster.py
- rollout-daemonset.py
- rollout-statefulset.py
-
dynamic-client
- kubernetes
- scripts
- .gitignore
- CHANGELOG.md
- CONTRIBUTING.md
- LICENSE
- MANIFEST.in
- OWNERS
- README.md
- SECURITY_CONTACTS
- code-of-conduct.md
- codecov.yml
- requirements.txt
- setup.cfg
- setup.py
- test-requirements.txt
- tox.ini
Explanation
This code defines a Python class StorageApi
that interacts with the Kubernetes API to manage storage resources.
The get_api_group
method makes a GET request to the /apis/storage.k8s.io/
endpoint, retrieving information about the storage API group.
The method handles both synchronous and asynchronous requests. The synchronous version returns a V1APIGroup
object representing the API group information, while the asynchronous version returns a request thread that can be used to retrieve the result later.
The get_api_group_with_http_info
method is a variant of get_api_group
that returns a tuple containing the response data, status code, and headers. This is useful for scenarios where you need access to the raw HTTP response.
Both methods utilize the ApiClient
class to perform the HTTP request and handle authentication using the BearerToken
scheme.
This code provides a basic interface for interacting with the Kubernetes storage API, allowing developers to retrieve information about the API group and potentially perform other storage-related operations.
Graph
The graph shows the usage of functions within the codebase.
Select a code symbol to view it's graph