Skip to content

Commit 880091d

Browse files
authored
Merge pull request #9 from kubernetes-incubator/o2
Remove watch_* operations in favor of "list_*(watch=True)"
2 parents 9e2e8e4 + 26b815f commit 880091d

33 files changed

+86
-24052
lines changed

README.md

Lines changed: 0 additions & 100 deletions
Large diffs are not rendered by default.

docs/AppsV1beta1Api.md

Lines changed: 0 additions & 195 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ Method | HTTP request | Description
1616
[**read_namespaced_stateful_set_status**](AppsV1beta1Api.md#read_namespaced_stateful_set_status) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status |
1717
[**replace_namespaced_stateful_set**](AppsV1beta1Api.md#replace_namespaced_stateful_set) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} |
1818
[**replace_namespaced_stateful_set_status**](AppsV1beta1Api.md#replace_namespaced_stateful_set_status) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status |
19-
[**watch_namespaced_stateful_set**](AppsV1beta1Api.md#watch_namespaced_stateful_set) | **GET** /apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name} |
20-
[**watch_namespaced_stateful_set_list**](AppsV1beta1Api.md#watch_namespaced_stateful_set_list) | **GET** /apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets |
21-
[**watch_stateful_set_list_for_all_namespaces**](AppsV1beta1Api.md#watch_stateful_set_list_for_all_namespaces) | **GET** /apis/apps/v1beta1/watch/statefulsets |
2219

2320

2421
# **create_namespaced_stateful_set**
@@ -725,195 +722,3 @@ Name | Type | Description | Notes
725722

726723
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
727724

728-
# **watch_namespaced_stateful_set**
729-
> VersionedEvent watch_namespaced_stateful_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
730-
731-
732-
733-
watch changes to an object of kind StatefulSet
734-
735-
### Example
736-
```python
737-
from __future__ import print_statement
738-
import time
739-
import k8sclient
740-
from k8sclient.rest import ApiException
741-
from pprint import pprint
742-
743-
# Configure API key authorization: BearerToken
744-
k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY'
745-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
746-
# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer'
747-
748-
# create an instance of the API class
749-
api_instance = k8sclient.AppsV1beta1Api()
750-
name = 'name_example' # str | name of the StatefulSet
751-
namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects
752-
field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional)
753-
label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional)
754-
pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional)
755-
resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional)
756-
timeout_seconds = 56 # int | Timeout for the list/watch call. (optional)
757-
watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional)
758-
759-
try:
760-
api_response = api_instance.watch_namespaced_stateful_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
761-
pprint(api_response)
762-
except ApiException as e:
763-
print("Exception when calling AppsV1beta1Api->watch_namespaced_stateful_set: %s\n" % e)
764-
```
765-
766-
### Parameters
767-
768-
Name | Type | Description | Notes
769-
------------- | ------------- | ------------- | -------------
770-
**name** | **str**| name of the StatefulSet |
771-
**namespace** | **str**| object name and auth scope, such as for teams and projects |
772-
**field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional]
773-
**label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional]
774-
**pretty** | **str**| If 'true', then the output is pretty printed. | [optional]
775-
**resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional]
776-
**timeout_seconds** | **int**| Timeout for the list/watch call. | [optional]
777-
**watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional]
778-
779-
### Return type
780-
781-
[**VersionedEvent**](VersionedEvent.md)
782-
783-
### Authorization
784-
785-
[BearerToken](../README.md#BearerToken)
786-
787-
### HTTP request headers
788-
789-
- **Content-Type**: */*
790-
- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
791-
792-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
793-
794-
# **watch_namespaced_stateful_set_list**
795-
> VersionedEvent watch_namespaced_stateful_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
796-
797-
798-
799-
watch individual changes to a list of StatefulSet
800-
801-
### Example
802-
```python
803-
from __future__ import print_statement
804-
import time
805-
import k8sclient
806-
from k8sclient.rest import ApiException
807-
from pprint import pprint
808-
809-
# Configure API key authorization: BearerToken
810-
k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY'
811-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
812-
# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer'
813-
814-
# create an instance of the API class
815-
api_instance = k8sclient.AppsV1beta1Api()
816-
namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects
817-
field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional)
818-
label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional)
819-
pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional)
820-
resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional)
821-
timeout_seconds = 56 # int | Timeout for the list/watch call. (optional)
822-
watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional)
823-
824-
try:
825-
api_response = api_instance.watch_namespaced_stateful_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
826-
pprint(api_response)
827-
except ApiException as e:
828-
print("Exception when calling AppsV1beta1Api->watch_namespaced_stateful_set_list: %s\n" % e)
829-
```
830-
831-
### Parameters
832-
833-
Name | Type | Description | Notes
834-
------------- | ------------- | ------------- | -------------
835-
**namespace** | **str**| object name and auth scope, such as for teams and projects |
836-
**field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional]
837-
**label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional]
838-
**pretty** | **str**| If 'true', then the output is pretty printed. | [optional]
839-
**resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional]
840-
**timeout_seconds** | **int**| Timeout for the list/watch call. | [optional]
841-
**watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional]
842-
843-
### Return type
844-
845-
[**VersionedEvent**](VersionedEvent.md)
846-
847-
### Authorization
848-
849-
[BearerToken](../README.md#BearerToken)
850-
851-
### HTTP request headers
852-
853-
- **Content-Type**: */*
854-
- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
855-
856-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
857-
858-
# **watch_stateful_set_list_for_all_namespaces**
859-
> VersionedEvent watch_stateful_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
860-
861-
862-
863-
watch individual changes to a list of StatefulSet
864-
865-
### Example
866-
```python
867-
from __future__ import print_statement
868-
import time
869-
import k8sclient
870-
from k8sclient.rest import ApiException
871-
from pprint import pprint
872-
873-
# Configure API key authorization: BearerToken
874-
k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY'
875-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
876-
# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer'
877-
878-
# create an instance of the API class
879-
api_instance = k8sclient.AppsV1beta1Api()
880-
field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional)
881-
label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional)
882-
pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional)
883-
resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional)
884-
timeout_seconds = 56 # int | Timeout for the list/watch call. (optional)
885-
watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional)
886-
887-
try:
888-
api_response = api_instance.watch_stateful_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
889-
pprint(api_response)
890-
except ApiException as e:
891-
print("Exception when calling AppsV1beta1Api->watch_stateful_set_list_for_all_namespaces: %s\n" % e)
892-
```
893-
894-
### Parameters
895-
896-
Name | Type | Description | Notes
897-
------------- | ------------- | ------------- | -------------
898-
**field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional]
899-
**label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional]
900-
**pretty** | **str**| If 'true', then the output is pretty printed. | [optional]
901-
**resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional]
902-
**timeout_seconds** | **int**| Timeout for the list/watch call. | [optional]
903-
**watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional]
904-
905-
### Return type
906-
907-
[**VersionedEvent**](VersionedEvent.md)
908-
909-
### Authorization
910-
911-
[BearerToken](../README.md#BearerToken)
912-
913-
### HTTP request headers
914-
915-
- **Content-Type**: */*
916-
- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
917-
918-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
919-

0 commit comments

Comments
 (0)