diff --git a/magnum/common/pythonk8sclient/swagger_client/__init__.py b/magnum/common/pythonk8sclient/swagger_client/__init__.py new file mode 100644 index 0000000000..8da244222f --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/__init__.py @@ -0,0 +1,121 @@ +from __future__ import absolute_import + +# import models into sdk package +from .models.v1_node import V1Node +from .models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList +from .models.v1_object_field_selector import V1ObjectFieldSelector +from .models.v1_se_linux_options import V1SELinuxOptions +from .models.v1_container_state_running import V1ContainerStateRunning +from .models.v1_volume_mount import V1VolumeMount +from .models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec +from .models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource +from .models.v1_namespace_status import V1NamespaceStatus +from .models.v1_resource_quota_spec import V1ResourceQuotaSpec +from .models.v1_namespace_spec import V1NamespaceSpec +from .models.v1_persistent_volume import V1PersistentVolume +from .models.v1_persistent_volume_status import V1PersistentVolumeStatus +from .models.v1_endpoints_list import V1EndpointsList +from .models.v1_git_repo_volume_source import V1GitRepoVolumeSource +from .models.v1_capabilities import V1Capabilities +from .models.v1_node_condition import V1NodeCondition +from .models.v1_pod_template_list import V1PodTemplateList +from .models.v1_local_object_reference import V1LocalObjectReference +from .models.v1_resource_quota_status import V1ResourceQuotaStatus +from .models.v1_exec_action import V1ExecAction +from .models.v1_object_meta import V1ObjectMeta +from .models.api_patch import ApiPatch +from .models.v1_limit_range_spec import V1LimitRangeSpec +from .models.v1_iscsi_volume_source import V1ISCSIVolumeSource +from .models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource +from .models.v1_node_list import V1NodeList +from .models.v1_persistent_volume_claim import V1PersistentVolumeClaim +from .models.v1_namespace_list import V1NamespaceList +from .models.v1_service_account import V1ServiceAccount +from .models.v1_node_address import V1NodeAddress +from .models.v1_namespace import V1Namespace +from .models.v1_list_meta import V1ListMeta +from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource +from .models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus +from .models.v1_resource_quota_list import V1ResourceQuotaList +from .models.v1_endpoint_subset import V1EndpointSubset +from .models.v1_secret_volume_source import V1SecretVolumeSource +from .models.v1_env_var_source import V1EnvVarSource +from .models.v1_load_balancer_ingress import V1LoadBalancerIngress +from .models.v1_service import V1Service +from .models.v1_service_account_list import V1ServiceAccountList +from .models.v1_limit_range_list import V1LimitRangeList +from .models.v1_endpoints import V1Endpoints +from .models.v1_delete_options import V1DeleteOptions +from .models.v1_volume import V1Volume +from .models.v1_probe import V1Probe +from .models.v1_capability import V1Capability +from .models.v1_replication_controller import V1ReplicationController +from .models.v1_limit_range import V1LimitRange +from .models.v1_pod_status import V1PodStatus +from .models.v1_pod_spec import V1PodSpec +from .models.v1_container_port import V1ContainerPort +from .models.v1_event_list import V1EventList +from .models.v1_resource_quota import V1ResourceQuota +from .models.v1_lifecycle import V1Lifecycle +from .models.v1_node_status import V1NodeStatus +from .models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource +from .models.v1_handler import V1Handler +from .models.v1_replication_controller_spec import V1ReplicationControllerSpec +from .models.v1_event_source import V1EventSource +from .models.v1_status_cause import V1StatusCause +from .models.v1_pod_condition import V1PodCondition +from .models.v1_rbd_volume_source import V1RBDVolumeSource +from .models.v1_status import V1Status +from .models.v1_pod_template import V1PodTemplate +from .models.v1_service_status import V1ServiceStatus +from .models.v1_nfs_volume_source import V1NFSVolumeSource +from .models.v1_endpoint_port import V1EndpointPort +from .models.v1_tcp_socket_action import V1TCPSocketAction +from .models.v1_http_get_action import V1HTTPGetAction +from .models.v1_status_details import V1StatusDetails +from .models.v1_load_balancer_status import V1LoadBalancerStatus +from .models.v1_secret_list import V1SecretList +from .models.v1_container import V1Container +from .models.v1_persistent_volume_spec import V1PersistentVolumeSpec +from .models.v1_replication_controller_status import V1ReplicationControllerStatus +from .models.v1_finalizer_name import V1FinalizerName +from .models.v1_service_port import V1ServicePort +from .models.v1_component_condition import V1ComponentCondition +from .models.v1_component_status_list import V1ComponentStatusList +from .models.v1_host_path_volume_source import V1HostPathVolumeSource +from .models.json_watch_event import JsonWatchEvent +from .models.v1_binding import V1Binding +from .models.v1_container_state_terminated import V1ContainerStateTerminated +from .models.v1_security_context import V1SecurityContext +from .models.v1_container_state import V1ContainerState +from .models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource +from .models.v1_container_status import V1ContainerStatus +from .models.v1_replication_controller_list import V1ReplicationControllerList +from .models.v1_secret import V1Secret +from .models.v1_event import V1Event +from .models.v1_env_var import V1EnvVar +from .models.v1_resource_requirements import V1ResourceRequirements +from .models.v1_persistent_volume_access_mode import V1PersistentVolumeAccessMode +from .models.v1_component_status import V1ComponentStatus +from .models.v1_limit_range_item import V1LimitRangeItem +from .models.v1_pod_template_spec import V1PodTemplateSpec +from .models.v1_pod_list import V1PodList +from .models.v1_service_list import V1ServiceList +from .models.v1_persistent_volume_list import V1PersistentVolumeList +from .models.v1_object_reference import V1ObjectReference +from .models.v1_container_state_waiting import V1ContainerStateWaiting +from .models.v1_node_system_info import V1NodeSystemInfo +from .models.v1_service_spec import V1ServiceSpec +from .models.v1_pod import V1Pod +from .models.v1_node_spec import V1NodeSpec +from .models.v1_endpoint_address import V1EndpointAddress + +# import apis into sdk package +from .apis.apiv_api import ApivApi + +# import ApiClient +from .api_client import ApiClient + +from .configuration import Configuration + +configuration = Configuration() diff --git a/magnum/common/pythonk8sclient/swagger_client/api_client.py b/magnum/common/pythonk8sclient/swagger_client/api_client.py new file mode 100644 index 0000000000..02099f0ceb --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/api_client.py @@ -0,0 +1,560 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import +from . import models +from .rest import RESTClient +from .rest import ApiException + +import os +import re +import urllib +import json +import mimetypes +import random +import tempfile +import threading + +from datetime import datetime +from datetime import date + +# python 2 and python 3 compatibility library +from six import iteritems + +try: + # for python3 + from urllib.parse import quote +except ImportError: + # for python2 + from urllib import quote + +from .configuration import Configuration + + +class ApiClient(object): + """ + Generic API client for Swagger client library builds. + + Swagger generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the Swagger + templates. + + NOTE: This class is auto generated by the swagger code generator program. + https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + + :param host: The base path for the server to call. + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to the API. + """ + def __init__(self, host=Configuration().host, + header_name=None, header_value=None, cookie=None): + + """ + Constructor of the class. + """ + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.host = host + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'Python-Swagger' + + @property + def user_agent(self): + """ + Gets user agent. + """ + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + """ + Sets user agent. + """ + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, callback=None): + + # headers parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + for k, v in iteritems(path_params): + replacement = quote(str(self.to_path_value(v))) + resource_path = resource_path.\ + replace('{' + k + '}', replacement) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = {k: self.to_path_value(v) + for k, v in iteritems(query_params)} + + # post parameters + if post_params: + post_params = self.prepare_post_parameters(post_params, files) + post_params = self.sanitize_for_serialization(post_params) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + url = self.host + resource_path + + # perform request and return response + response_data = self.request(method, url, + query_params=query_params, + headers=header_params, + post_params=post_params, body=body) + + self.last_response = response_data + + # deserialize response data + if response_type: + deserialized_data = self.deserialize(response_data, response_type) + else: + deserialized_data = None + + if callback: + callback(deserialized_data) + else: + return deserialized_data + + def to_path_value(self, obj): + """ + Takes value and turn it into a string suitable for inclusion in + the path, by url-encoding. + + :param obj: object or string value. + + :return string: quoted value. + """ + if type(obj) == list: + return ','.join(obj) + else: + return str(obj) + + def sanitize_for_serialization(self, obj): + """ + Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, santize each element in the list. + If obj is dict, return the dict. + If obj is swagger model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if isinstance(obj, type(None)): + return None + elif isinstance(obj, (str, int, float, bool, tuple)): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, (datetime, date)): + return obj.isoformat() + else: + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `swagger_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in iteritems(obj.swagger_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """ + Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialzied object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if "file" == response_type: + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """ + Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match('list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in iteritems(data)} + + # convert str to class + # for native types + if klass in ['int', 'float', 'str', 'bool', + "date", 'datetime', "object"]: + klass = eval(klass) + # for model types + else: + klass = eval('models.' + klass) + + if klass in [int, float, str, bool]: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object() + elif klass == date: + return self.__deserialize_date(data) + elif klass == datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, callback=None): + """ + Makes the HTTP request and return the deserialized data. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param callback function: Callback function for asynchronous request. + If provide this parameter, + the request will be called asynchronously. + :return: + If provide parameter callback, + the request will be called asynchronously. + The method will return the request thread. + If parameter callback is None, + then the method will return the response directly. + """ + if callback is None: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, callback) + else: + thread = threading.Thread(target=self.__call_api, + args=(resource_path, method, + path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + callback)) + thread.start() + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None): + """ + Makes the HTTP request using RESTClient. + """ + if method == "GET": + return RESTClient.GET(url, + query_params=query_params, + headers=headers) + elif method == "HEAD": + return RESTClient.HEAD(url, + query_params=query_params, + headers=headers) + elif method == "POST": + return RESTClient.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + body=body) + elif method == "PUT": + return RESTClient.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + body=body) + elif method == "PATCH": + return RESTClient.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + body=body) + elif method == "DELETE": + return RESTClient.DELETE(url, + query_params=query_params, + headers=headers) + else: + raise ValueError( + "http method must be `GET`, `HEAD`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def prepare_post_parameters(self, post_params=None, files=None): + """ + Builds form parameters. + + :param post_params: Normal form parameters. + :param files: File parameters. + :return: Form parameters with files. + """ + params = {} + + if post_params: + params.update(post_params) + + if files: + for k, v in iteritems(files): + if not v: + continue + + with open(v, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = mimetypes.\ + guess_type(filename)[0] or 'application/octet-stream' + params[k] = tuple([filename, filedata, mimetype]) + + return params + + def select_header_accept(self, accepts): + """ + Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = list(map(lambda x: x.lower(), accepts)) + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """ + Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = list(map(lambda x: x.lower(), content_types)) + + if 'application/json' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """ + Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters dict to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + config = Configuration() + + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = config.auth_settings().get(auth) + if auth_setting: + if auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys[auth_setting['key']] = auth_setting['value'] + else: + raise ValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """ + Saves response body into a file in (the defined) temporary folder, + using the filename from the `Content-Disposition` header if provided, + otherwise a random filename. + + :param response: RESTResponse. + :return: file path. + """ + config = Configuration() + + fd, path = tempfile.mkstemp(dir=config.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.\ + search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition).\ + group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "w") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """ + Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, float, str, bool. + """ + try: + value = klass(data) + except UnicodeEncodeError: + value = unicode(data) + except TypeError: + value = data + return value + + def __deserialize_object(self): + """ + Deserializes empty object. + + :return: object. + """ + return object() + + def __deserialize_date(self, string): + """ + Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise ApiException( + status=0, + reason="Failed to parse `{0}` into a date object" + .format(string) + ) + + def __deserialize_datatime(self, string): + """ + Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise ApiException( + status=0, + reason="Failed to parse `{0}` into a datetime object". + format(string) + ) + + def __deserialize_model(self, data, klass): + """ + Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + instance = klass() + + for attr, attr_type in iteritems(instance.swagger_types): + if data is not None \ + and instance.attribute_map[attr] in data\ + and isinstance(data, (list, dict)): + value = data[instance.attribute_map[attr]] + setattr(instance, attr, self.__deserialize(value, attr_type)) + + return instance diff --git a/magnum/common/pythonk8sclient/swagger_client/apis/__init__.py b/magnum/common/pythonk8sclient/swagger_client/apis/__init__.py new file mode 100644 index 0000000000..f3b14bd9d6 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/apis/__init__.py @@ -0,0 +1,4 @@ +from __future__ import absolute_import + +# import apis into api package +from .apiv_api import ApivApi diff --git a/magnum/common/pythonk8sclient/swagger_client/apis/apiv_api.py b/magnum/common/pythonk8sclient/swagger_client/apis/apiv_api.py new file mode 100644 index 0000000000..2b85313b11 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/apis/apiv_api.py @@ -0,0 +1,16248 @@ +# coding: utf-8 + +""" +ApivApi.py +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ApivApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient('https://127.0.0.1:6443/') + self.api_client = config.api_client + + def create_binding(self, body, **kwargs): + """ + create a Binding + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_binding(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Binding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Binding + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_binding`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_binding" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/bindings'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Binding', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_component_status(self, **kwargs): + """ + list objects of kind ComponentStatus + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_component_status(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1ComponentStatusList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_component_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/componentstatuses'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ComponentStatusList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_endpoints(self, **kwargs): + """ + list or watch objects of kind Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_endpoints(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1EndpointsList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_endpoints" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/endpoints'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1EndpointsList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_endpoints(self, body, **kwargs): + """ + create a Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_endpoints(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Endpoints body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_endpoints`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_endpoints" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/endpoints'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Endpoints', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_event(self, **kwargs): + """ + list or watch objects of kind Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_event(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1EventList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_event" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/events'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1EventList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_event(self, body, **kwargs): + """ + create a Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_event(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Event body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_event`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_event" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/events'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Event', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_limit_range(self, **kwargs): + """ + list or watch objects of kind LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_limit_range(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1LimitRangeList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_limit_range" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/limitranges'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1LimitRangeList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_limit_range(self, body, **kwargs): + """ + create a LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_limit_range(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1LimitRange body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_limit_range`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_limit_range" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/limitranges'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1LimitRange', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_namespace(self, **kwargs): + """ + list or watch objects of kind Namespace + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_namespace(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1NamespaceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_namespace" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1NamespaceList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_namespace(self, body, **kwargs): + """ + create a Namespace + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_namespace(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Namespace body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_namespace`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_namespace" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_binding(self, body, namespace, **kwargs): + """ + create a Binding + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_binding(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Binding body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Binding + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_binding`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_binding" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/bindings'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Binding', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_component_status(self, namespace, **kwargs): + """ + list objects of kind ComponentStatus + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_component_status(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1ComponentStatusList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_component_status`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_component_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/componentstatuses'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ComponentStatusList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_component_status(self, namespace, name, **kwargs): + """ + read the specified ComponentStatus + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_component_status(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ComponentStatus (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ComponentStatus + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_component_status`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_component_status`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_component_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/componentstatuses/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ComponentStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_endpoints(self, namespace, **kwargs): + """ + list or watch objects of kind Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_endpoints(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1EndpointsList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_endpoints`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1EndpointsList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_endpoints(self, body, namespace, **kwargs): + """ + create a Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_endpoints(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Endpoints body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_endpoints`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_endpoints`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Endpoints', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_endpoints(self, namespace, name, **kwargs): + """ + read the specified Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_endpoints(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Endpoints (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_endpoints`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_endpoints`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Endpoints', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_endpoints(self, body, namespace, name, **kwargs): + """ + replace the specified Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_endpoints(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Endpoints body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Endpoints (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_endpoints`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_endpoints`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_endpoints`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Endpoints', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_endpoints(self, body, namespace, name, **kwargs): + """ + delete a Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_endpoints(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Endpoints (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_endpoints`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_endpoints`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_endpoints`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_endpoints(self, body, namespace, name, **kwargs): + """ + partially update the specified Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_endpoints(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Endpoints (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Endpoints + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_endpoints`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_endpoints`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_endpoints`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Endpoints', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_event(self, namespace, **kwargs): + """ + list or watch objects of kind Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_event(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1EventList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1EventList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_event(self, body, namespace, **kwargs): + """ + create a Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_event(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Event body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_event`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Event', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_event(self, namespace, name, **kwargs): + """ + read the specified Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_event(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Event (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_event`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_event`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Event', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_event(self, body, namespace, name, **kwargs): + """ + replace the specified Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_event(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Event body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Event (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_event`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_event`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_event`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Event', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_event(self, namespace, name, **kwargs): + """ + delete a Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_event(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Event (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_event(self, body, namespace, name, **kwargs): + """ + partially update the specified Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_event(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Event (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Event + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Event', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_limit_range(self, namespace, **kwargs): + """ + list or watch objects of kind LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_limit_range(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1LimitRangeList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_limit_range`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1LimitRangeList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_limit_range(self, body, namespace, **kwargs): + """ + create a LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_limit_range(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1LimitRange body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_limit_range`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_limit_range`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1LimitRange', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_limit_range(self, namespace, name, **kwargs): + """ + read the specified LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_limit_range(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the LimitRange (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_limit_range`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_limit_range`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1LimitRange', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_limit_range(self, body, namespace, name, **kwargs): + """ + replace the specified LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_limit_range(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1LimitRange body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the LimitRange (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_limit_range`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_limit_range`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_limit_range`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1LimitRange', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_limit_range(self, namespace, name, **kwargs): + """ + delete a LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_limit_range(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the LimitRange (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_limit_range`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_limit_range`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_limit_range(self, body, namespace, name, **kwargs): + """ + partially update the specified LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_limit_range(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the LimitRange (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LimitRange + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_limit_range`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_limit_range`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_limit_range`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1LimitRange', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): + """ + list or watch objects of kind PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_persistent_volume_claim(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1PersistentVolumeClaimList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_persistent_volume_claim`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolumeClaimList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_persistent_volume_claim(self, body, namespace, **kwargs): + """ + create a PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_persistent_volume_claim(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PersistentVolumeClaim body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_persistent_volume_claim`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_persistent_volume_claim`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_persistent_volume_claim(self, namespace, name, **kwargs): + """ + read the specified PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_persistent_volume_claim(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PersistentVolumeClaim (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_persistent_volume_claim`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume_claim`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_persistent_volume_claim(self, body, namespace, name, **kwargs): + """ + replace the specified PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_persistent_volume_claim(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PersistentVolumeClaim body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PersistentVolumeClaim (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_persistent_volume_claim(self, body, namespace, name, **kwargs): + """ + delete a PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_persistent_volume_claim(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PersistentVolumeClaim (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_persistent_volume_claim`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_persistent_volume_claim`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_persistent_volume_claim`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_persistent_volume_claim(self, body, namespace, name, **kwargs): + """ + partially update the specified PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_persistent_volume_claim(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PersistentVolumeClaim (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_persistent_volume_claim_status(self, body, namespace, name, **kwargs): + """ + replace status of the specified PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_persistent_volume_claim_status(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PersistentVolumeClaim body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PersistentVolumeClaim (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim_status`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim_status`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim_status`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_persistent_volume_claim_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_pod(self, namespace, **kwargs): + """ + list or watch objects of kind Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_pod(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1PodList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PodList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_pod(self, body, namespace, **kwargs): + """ + create a Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_pod(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Pod body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_pod(self, namespace, name, **kwargs): + """ + read the specified Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_pod(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_pod(self, body, namespace, name, **kwargs): + """ + replace the specified Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_pod(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Pod body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_pod(self, body, namespace, name, **kwargs): + """ + delete a Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_pod(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_pod`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_pod(self, body, namespace, name, **kwargs): + """ + partially update the specified Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_pod(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_binding_binding(self, body, namespace, name, **kwargs): + """ + create binding of a Binding + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_binding_binding(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Binding body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Binding (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Binding + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_binding_binding`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding_binding`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_binding_binding`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_binding_binding" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/binding'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Binding', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_get_namespaced_pod_exec(self, namespace, name, **kwargs): + """ + connect GET requests to exec of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_get_namespaced_pod_exec(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_exec`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_exec`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_get_namespaced_pod_exec" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/exec'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_post_namespaced_pod_exec(self, namespace, name, **kwargs): + """ + connect POST requests to exec of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_pod_exec(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_exec`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_exec`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_pod_exec" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/exec'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_pod_log(self, namespace, name, **kwargs): + """ + read log of the specified Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_pod_log(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_log`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_log`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_pod_log" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/log'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_get_namespaced_pod_portforward(self, namespace, name, **kwargs): + """ + connect GET requests to portforward of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_get_namespaced_pod_portforward(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_portforward`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_portforward`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_get_namespaced_pod_portforward" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/portforward'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_post_namespaced_pod_portforward(self, namespace, name, **kwargs): + """ + connect POST requests to portforward of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_pod_portforward(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_portforward`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_portforward`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_pod_portforward" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/portforward'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_get_namespaced_pod_proxy(self, namespace, name, **kwargs): + """ + connect GET requests to proxy of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_get_namespaced_pod_proxy(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_get_namespaced_pod_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_put_namespaced_pod_proxy(self, namespace, name, **kwargs): + """ + connect PUT requests to proxy of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_put_namespaced_pod_proxy(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_put_namespaced_pod_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_post_namespaced_pod_proxy(self, namespace, name, **kwargs): + """ + connect POST requests to proxy of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_post_namespaced_pod_proxy(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_post_namespaced_pod_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_delete_namespaced_pod_proxy(self, namespace, name, **kwargs): + """ + connect DELETE requests to proxy of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_delete_namespaced_pod_proxy(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_delete_namespaced_pod_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def connect_options_namespaced_pod_proxy(self, namespace, name, **kwargs): + """ + connect OPTIONS requests to proxy of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.connect_options_namespaced_pod_proxy(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method connect_options_namespaced_pod_proxy" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_pod_status(self, body, namespace, name, **kwargs): + """ + replace status of the specified Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_pod_status(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Pod body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_status`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_status`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_status`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_pod_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/status'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_pod_template(self, namespace, **kwargs): + """ + list or watch objects of kind PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_pod_template(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1PodTemplateList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_template`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PodTemplateList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_pod_template(self, body, namespace, **kwargs): + """ + create a PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_pod_template(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodTemplate body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_template`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_template`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PodTemplate', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_pod_template(self, namespace, name, **kwargs): + """ + read the specified PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_pod_template(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PodTemplate (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_template`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_template`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PodTemplate', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_pod_template(self, body, namespace, name, **kwargs): + """ + replace the specified PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_pod_template(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodTemplate body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PodTemplate (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_template`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_template`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_template`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PodTemplate', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_pod_template(self, body, namespace, name, **kwargs): + """ + delete a PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_pod_template(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PodTemplate (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_pod_template`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_template`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_template`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_pod_template(self, body, namespace, name, **kwargs): + """ + partially update the specified PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_pod_template(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PodTemplate (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_template`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_template`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_template`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PodTemplate', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_replication_controller(self, namespace, **kwargs): + """ + list or watch objects of kind ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_replication_controller(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1ReplicationControllerList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replication_controller`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ReplicationControllerList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_replication_controller(self, body, namespace, **kwargs): + """ + create a ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_replication_controller(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ReplicationController body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replication_controller`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replication_controller`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_replication_controller(self, namespace, name, **kwargs): + """ + read the specified ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_replication_controller(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ReplicationController (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_replication_controller(self, body, namespace, name, **kwargs): + """ + replace the specified ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_replication_controller(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ReplicationController body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ReplicationController (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_replication_controller(self, body, namespace, name, **kwargs): + """ + delete a ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_replication_controller(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ReplicationController (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_replication_controller`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replication_controller`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replication_controller`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_replication_controller(self, body, namespace, name, **kwargs): + """ + partially update the specified ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_replication_controller(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ReplicationController (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_resource_quota(self, namespace, **kwargs): + """ + list or watch objects of kind ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_resource_quota(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1ResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_quota`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ResourceQuotaList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_resource_quota(self, body, namespace, **kwargs): + """ + create a ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_resource_quota(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ResourceQuota body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_resource_quota`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_quota`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_resource_quota(self, namespace, name, **kwargs): + """ + read the specified ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_resource_quota(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ResourceQuota (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_quota`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_resource_quota`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_resource_quota(self, body, namespace, name, **kwargs): + """ + replace the specified ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_resource_quota(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ResourceQuota body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ResourceQuota (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_resource_quota(self, body, namespace, name, **kwargs): + """ + delete a ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_resource_quota(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ResourceQuota (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_resource_quota`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_quota`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_quota`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_resource_quota(self, body, namespace, name, **kwargs): + """ + partially update the specified ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_resource_quota(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ResourceQuota (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_resource_quota_status(self, body, namespace, name, **kwargs): + """ + replace status of the specified ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_resource_quota_status(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ResourceQuota body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ResourceQuota (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota_status`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota_status`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota_status`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_resource_quota_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_secret(self, namespace, **kwargs): + """ + list or watch objects of kind Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_secret(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1SecretList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_secret`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1SecretList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_secret(self, body, namespace, **kwargs): + """ + create a Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_secret(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Secret body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_secret`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_secret`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Secret', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_secret(self, namespace, name, **kwargs): + """ + read the specified Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_secret(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Secret (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_secret`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_secret`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Secret', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_secret(self, body, namespace, name, **kwargs): + """ + replace the specified Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_secret(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Secret body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Secret (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_secret`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_secret`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_secret`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Secret', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_secret(self, body, namespace, name, **kwargs): + """ + delete a Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_secret(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Secret (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_secret`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_secret`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_secret`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_secret(self, body, namespace, name, **kwargs): + """ + partially update the specified Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_secret(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Secret (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_secret`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_secret`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_secret`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Secret', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_service_account(self, namespace, **kwargs): + """ + list or watch objects of kind ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_service_account(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1ServiceAccountList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service_account`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ServiceAccountList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_service_account(self, body, namespace, **kwargs): + """ + create a ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_service_account(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ServiceAccount body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service_account`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service_account`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ServiceAccount', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_service_account(self, namespace, name, **kwargs): + """ + read the specified ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_service_account(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ServiceAccount (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service_account`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service_account`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ServiceAccount', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_service_account(self, body, namespace, name, **kwargs): + """ + replace the specified ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_service_account(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ServiceAccount body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ServiceAccount (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service_account`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_account`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service_account`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ServiceAccount', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_service_account(self, body, namespace, name, **kwargs): + """ + delete a ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_service_account(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ServiceAccount (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_service_account`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service_account`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service_account`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_service_account(self, body, namespace, name, **kwargs): + """ + partially update the specified ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_service_account(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ServiceAccount (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_account`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_account`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_account`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ServiceAccount', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_service(self, namespace, **kwargs): + """ + list or watch objects of kind Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_service(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1ServiceList + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ServiceList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_service(self, body, namespace, **kwargs): + """ + create a Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_service(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Service body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service`") + + all_params = ['body', 'namespace', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_service(self, namespace, name, **kwargs): + """ + read the specified Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_service(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_service(self, body, namespace, name, **kwargs): + """ + replace the specified Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_service(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Service body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_service(self, namespace, name, **kwargs): + """ + delete a Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_service(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service`") + + all_params = ['namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_service(self, body, namespace, name, **kwargs): + """ + partially update the specified Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_service(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service`") + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service`") + + all_params = ['body', 'namespace', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_namespace(self, name, **kwargs): + """ + read the specified Namespace + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_namespace(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_namespace`") + + all_params = ['name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_namespace" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_namespace(self, body, name, **kwargs): + """ + replace the specified Namespace + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_namespace(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Namespace body: (required) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_namespace`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_namespace`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_namespace" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_namespace(self, body, name, **kwargs): + """ + delete a Namespace + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_namespace(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_namespace`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_namespace`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_namespace" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_namespace(self, body, name, **kwargs): + """ + partially update the specified Namespace + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_namespace(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_namespace`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_namespace`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_namespace" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_namespace_finalize(self, body, name, **kwargs): + """ + replace finalize of the specified Namespace + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_namespace_finalize(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Namespace body: (required) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_namespace_finalize`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_namespace_finalize`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_namespace_finalize" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{name}/finalize'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_namespace_status(self, body, name, **kwargs): + """ + replace status of the specified Namespace + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_namespace_status(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Namespace body: (required) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Namespace + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_namespace_status`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_namespace_status`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_namespace_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/namespaces/{name}/status'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Namespace', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_node(self, **kwargs): + """ + list or watch objects of kind Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_node(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1NodeList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1NodeList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_node(self, body, **kwargs): + """ + create a Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_node(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Node body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_node`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_node(self, name, **kwargs): + """ + read the specified Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_node`") + + all_params = ['name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_node(self, body, name, **kwargs): + """ + replace the specified Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_node(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Node body: (required) + :param str name: name of the Node (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_node`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_node`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_node(self, body, name, **kwargs): + """ + delete a Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_node(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str name: name of the Node (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_node`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_node`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_node(self, body, name, **kwargs): + """ + partially update the specified Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_node(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str name: name of the Node (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_node`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_node`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_node_status(self, body, name, **kwargs): + """ + replace status of the specified Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_node_status(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Node body: (required) + :param str name: name of the Node (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Node + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_node_status`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_node_status`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_node_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/nodes/{name}/status'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Node', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_persistent_volume_claim(self, **kwargs): + """ + list or watch objects of kind PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_persistent_volume_claim(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1PersistentVolumeClaimList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/persistentvolumeclaims'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolumeClaimList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_persistent_volume_claim(self, body, **kwargs): + """ + create a PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_persistent_volume_claim(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PersistentVolumeClaim body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolumeClaim + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_persistent_volume_claim`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/persistentvolumeclaims'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolumeClaim', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_namespaced_persistent_volume(self, **kwargs): + """ + list or watch objects of kind PersistentVolume + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_persistent_volume(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1PersistentVolumeList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolumeList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_namespaced_persistent_volume(self, body, **kwargs): + """ + create a PersistentVolume + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_persistent_volume(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PersistentVolume body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_persistent_volume`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def read_namespaced_persistent_volume(self, name, **kwargs): + """ + read the specified PersistentVolume + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_persistent_volume(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume`") + + all_params = ['name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_persistent_volume(self, body, name, **kwargs): + """ + replace the specified PersistentVolume + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_persistent_volume(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PersistentVolume body: (required) + :param str name: name of the PersistentVolume (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_namespaced_persistent_volume(self, body, name, **kwargs): + """ + delete a PersistentVolume + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_persistent_volume(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str name: name of the PersistentVolume (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_persistent_volume`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_persistent_volume`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def patch_namespaced_persistent_volume(self, body, name, **kwargs): + """ + partially update the specified PersistentVolume + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_persistent_volume(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ApiPatch body: (required) + :param str name: name of the PersistentVolume (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') + method = 'PATCH' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def replace_namespaced_persistent_volume_status(self, body, name, **kwargs): + """ + replace status of the specified PersistentVolume + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_persistent_volume_status(body, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PersistentVolume body: (required) + :param str name: name of the PersistentVolume (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PersistentVolume + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_status`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_status`") + + all_params = ['body', 'name', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_persistent_volume_status" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/persistentvolumes/{name}/status'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PersistentVolume', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_pod(self, **kwargs): + """ + list or watch objects of kind Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_pod(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1PodList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/pods'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PodList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_pod(self, body, **kwargs): + """ + create a Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pod(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Pod body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Pod + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_pod`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/pods'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Pod', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_pod_template(self, **kwargs): + """ + list or watch objects of kind PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_pod_template(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1PodTemplateList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_pod_template" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/podtemplates'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PodTemplateList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_pod_template(self, body, **kwargs): + """ + create a PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pod_template(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1PodTemplate body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1PodTemplate + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_pod_template`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pod_template" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/podtemplates'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1PodTemplate', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_get_namespaced_pod(self, namespace, name, **kwargs): + """ + proxy GET requests to Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_get_namespaced_pod(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_pod`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_pod`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_get_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_put_namespaced_pod(self, namespace, name, **kwargs): + """ + proxy PUT requests to Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_put_namespaced_pod(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_put_namespaced_pod`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_pod`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_put_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_post_namespaced_pod(self, namespace, name, **kwargs): + """ + proxy POST requests to Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_post_namespaced_pod(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_post_namespaced_pod`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_pod`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_post_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_delete_namespaced_pod(self, namespace, name, **kwargs): + """ + proxy DELETE requests to Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_delete_namespaced_pod(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_pod`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_pod`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_delete_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_options_namespaced_pod(self, namespace, name, **kwargs): + """ + proxy OPTIONS requests to Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_options_namespaced_pod(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_pod`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_pod`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_options_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_get_namespaced_service(self, namespace, name, **kwargs): + """ + proxy GET requests to Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_get_namespaced_service(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_service`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_service`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_get_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_put_namespaced_service(self, namespace, name, **kwargs): + """ + proxy PUT requests to Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_put_namespaced_service(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_put_namespaced_service`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_service`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_put_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_post_namespaced_service(self, namespace, name, **kwargs): + """ + proxy POST requests to Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_post_namespaced_service(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_post_namespaced_service`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_service`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_post_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_delete_namespaced_service(self, namespace, name, **kwargs): + """ + proxy DELETE requests to Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_delete_namespaced_service(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_service`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_service`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_delete_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_options_namespaced_service(self, namespace, name, **kwargs): + """ + proxy OPTIONS requests to Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_options_namespaced_service(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_service`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_service`") + + all_params = ['namespace', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_options_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_get_namespaced_node(self, name, **kwargs): + """ + proxy GET requests to Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_get_namespaced_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_node`") + + all_params = ['name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_get_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_put_namespaced_node(self, name, **kwargs): + """ + proxy PUT requests to Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_put_namespaced_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_node`") + + all_params = ['name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_put_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + method = 'PUT' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_post_namespaced_node(self, name, **kwargs): + """ + proxy POST requests to Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_post_namespaced_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_node`") + + all_params = ['name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_post_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_delete_namespaced_node(self, name, **kwargs): + """ + proxy DELETE requests to Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_delete_namespaced_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_node`") + + all_params = ['name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_delete_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + method = 'DELETE' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def proxy_options_namespaced_node(self, name, **kwargs): + """ + proxy OPTIONS requests to Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.proxy_options_namespaced_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_node`") + + all_params = ['name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method proxy_options_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') + method = 'OPTIONS' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_replication_controller(self, **kwargs): + """ + list or watch objects of kind ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_replication_controller(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1ReplicationControllerList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/replicationcontrollers'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ReplicationControllerList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_replication_controller(self, body, **kwargs): + """ + create a ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_replication_controller(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ReplicationController body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ReplicationController + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_replication_controller`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/replicationcontrollers'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ReplicationController', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_resource_quota(self, **kwargs): + """ + list or watch objects of kind ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_resource_quota(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1ResourceQuotaList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/resourcequotas'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ResourceQuotaList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_resource_quota(self, body, **kwargs): + """ + create a ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_resource_quota(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ResourceQuota body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ResourceQuota + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_resource_quota`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/resourcequotas'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ResourceQuota', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_secret(self, **kwargs): + """ + list or watch objects of kind Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_secret(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1SecretList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_secret" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/secrets'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1SecretList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_secret(self, body, **kwargs): + """ + create a Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_secret(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Secret body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Secret + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_secret`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_secret" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/secrets'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Secret', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_service_account(self, **kwargs): + """ + list or watch objects of kind ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_service_account(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1ServiceAccountList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_service_account" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/serviceaccounts'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ServiceAccountList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_service_account(self, body, **kwargs): + """ + create a ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_service_account(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1ServiceAccount body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1ServiceAccount + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_service_account`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_service_account" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/serviceaccounts'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ServiceAccount', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_service(self, **kwargs): + """ + list or watch objects of kind Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_service(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: V1ServiceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/services'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1ServiceList', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_service(self, body, **kwargs): + """ + create a Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_service(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Service body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1Service + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'body' is set + if body is None: + raise ValueError("Missing the required parameter `body` when calling `create_service`") + + all_params = ['body', 'pretty'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/services'.replace('{format}', 'json') + method = 'POST' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='V1Service', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_endpoints_list(self, **kwargs): + """ + watch individual changes to a list of Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_endpoints_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_endpoints_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/endpoints'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_event_list(self, **kwargs): + """ + watch individual changes to a list of Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_event_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_event_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/events'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_limit_range_list(self, **kwargs): + """ + watch individual changes to a list of LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_limit_range_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_limit_range_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/limitranges'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_namespace_list(self, **kwargs): + """ + watch individual changes to a list of Namespace + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_namespace_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_namespace_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_endpoints_list(self, namespace, **kwargs): + """ + watch individual changes to a list of Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_endpoints_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_endpoints_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_endpoints_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/endpoints'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_endpoints(self, namespace, name, **kwargs): + """ + watch changes to an object of kind Endpoints + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_endpoints(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Endpoints (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_endpoints`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_endpoints`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_endpoints" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_event_list(self, namespace, **kwargs): + """ + watch individual changes to a list of Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_event_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_event_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_event_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/events'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_event(self, namespace, name, **kwargs): + """ + watch changes to an object of kind Event + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_event(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Event (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_event`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_event`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_event" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_limit_range_list(self, namespace, **kwargs): + """ + watch individual changes to a list of LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_limit_range_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_limit_range_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_limit_range_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/limitranges'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_limit_range(self, namespace, name, **kwargs): + """ + watch changes to an object of kind LimitRange + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_limit_range(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the LimitRange (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_limit_range`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_limit_range`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_limit_range" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_persistent_volume_claim_list(self, namespace, **kwargs): + """ + watch individual changes to a list of PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_persistent_volume_claim_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_persistent_volume_claim_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_persistent_volume_claim_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_persistent_volume_claim(self, namespace, name, **kwargs): + """ + watch changes to an object of kind PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_persistent_volume_claim(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PersistentVolumeClaim (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_persistent_volume_claim`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_persistent_volume_claim`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_persistent_volume_claim" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_pod_list(self, namespace, **kwargs): + """ + watch individual changes to a list of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_pod_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_pod_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/pods'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_pod(self, namespace, name, **kwargs): + """ + watch changes to an object of kind Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_pod(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Pod (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_pod`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_pod" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_pod_template_list(self, namespace, **kwargs): + """ + watch individual changes to a list of PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_pod_template_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_template_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_pod_template_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_pod_template(self, namespace, name, **kwargs): + """ + watch changes to an object of kind PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_pod_template(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the PodTemplate (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_template`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_pod_template`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_pod_template" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_replication_controller_list(self, namespace, **kwargs): + """ + watch individual changes to a list of ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_replication_controller_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_replication_controller_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_replication_controller_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_replication_controller(self, namespace, name, **kwargs): + """ + watch changes to an object of kind ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_replication_controller(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ReplicationController (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_replication_controller`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_replication_controller`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_replication_controller" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_resource_quota_list(self, namespace, **kwargs): + """ + watch individual changes to a list of ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_resource_quota_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_resource_quota_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_resource_quota_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_resource_quota(self, namespace, name, **kwargs): + """ + watch changes to an object of kind ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_resource_quota(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ResourceQuota (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_resource_quota`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_resource_quota`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_resource_quota" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_secret_list(self, namespace, **kwargs): + """ + watch individual changes to a list of Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_secret_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_secret_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_secret_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/secrets'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_secret(self, namespace, name, **kwargs): + """ + watch changes to an object of kind Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_secret(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Secret (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_secret`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_secret`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_secret" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_service_account_list(self, namespace, **kwargs): + """ + watch individual changes to a list of ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_service_account_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service_account_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_service_account_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_service_account(self, namespace, name, **kwargs): + """ + watch changes to an object of kind ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_service_account(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ServiceAccount (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service_account`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_service_account`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_service_account" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_service_list(self, namespace, **kwargs): + """ + watch individual changes to a list of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_service_list(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service_list`") + + all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_service_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/services'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_service(self, namespace, name, **kwargs): + """ + watch changes to an object of kind Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_service(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the Service (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'namespace' is set + if namespace is None: + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service`") + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_service`") + + all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_service" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_namespace(self, name, **kwargs): + """ + watch changes to an object of kind Namespace + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_namespace(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Namespace (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_namespace`") + + all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_namespace" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/namespaces/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_node_list(self, **kwargs): + """ + watch individual changes to a list of Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_node_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_node_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/nodes'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_node(self, name, **kwargs): + """ + watch changes to an object of kind Node + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_node(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the Node (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_node`") + + all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_node" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/nodes/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_persistent_volume_claim_list(self, **kwargs): + """ + watch individual changes to a list of PersistentVolumeClaim + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_persistent_volume_claim_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_persistent_volume_claim_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/persistentvolumeclaims'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_persistent_volume_list(self, **kwargs): + """ + watch individual changes to a list of PersistentVolume + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_persistent_volume_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_persistent_volume_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/persistentvolumes'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_namespaced_persistent_volume(self, name, **kwargs): + """ + watch changes to an object of kind PersistentVolume + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_persistent_volume(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PersistentVolume (required) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + # verify the required parameter 'name' is set + if name is None: + raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_persistent_volume`") + + all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_persistent_volume" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/persistentvolumes/{name}'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_pod_list(self, **kwargs): + """ + watch individual changes to a list of Pod + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_pod_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_pod_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/pods'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_pod_template_list(self, **kwargs): + """ + watch individual changes to a list of PodTemplate + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_pod_template_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_pod_template_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/podtemplates'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_replication_controller_list(self, **kwargs): + """ + watch individual changes to a list of ReplicationController + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_replication_controller_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_replication_controller_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/replicationcontrollers'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_resource_quota_list(self, **kwargs): + """ + watch individual changes to a list of ResourceQuota + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_resource_quota_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_resource_quota_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/resourcequotas'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_secret_list(self, **kwargs): + """ + watch individual changes to a list of Secret + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_secret_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_secret_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/secrets'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_service_account_list(self, **kwargs): + """ + watch individual changes to a list of ServiceAccount + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_service_account_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_service_account_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/serviceaccounts'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def watch_service_list(self, **kwargs): + """ + watch individual changes to a list of Service + + + This method makes a synchronous HTTP request by default.To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_service_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pretty: If 'true', then the output is pretty printed. + :param str label_selector: a selector to restrict the list of returned objects by their labels; defaults to everything + :param str field_selector: a selector to restrict the list of returned objects by their fields; defaults to everything + :param bool watch: watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion + :param str resource_version: 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 + :return: JsonWatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_service_list" % key + ) + params[key] = val + del params['kwargs'] + + resource_path = '/api/v1/watch/services'.replace('{format}', 'json') + method = 'GET' + + path_params = {} + + query_params = {} + if 'pretty' in params: + query_params['pretty'] = params['pretty'] + if 'label_selector' in params: + query_params['labelSelector'] = params['label_selector'] + if 'field_selector' in params: + query_params['fieldSelector'] = params['field_selector'] + if 'watch' in params: + query_params['watch'] = params['watch'] + if 'resource_version' in params: + query_params['resourceVersion'] = params['resource_version'] + + header_params = {} + + form_params = {} + files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + response = self.api_client.call_api(resource_path, method, + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=files, + response_type='JsonWatchEvent', + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/magnum/common/pythonk8sclient/swagger_client/configuration.py b/magnum/common/pythonk8sclient/swagger_client/configuration.py new file mode 100644 index 0000000000..54a47fb8b5 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/configuration.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import +import base64 +import urllib3 + +try: + import httplib +except ImportError: + # for python3 + import http.client as httplib + +import sys +import logging + + +def singleton(cls, *args, **kw): + instances = {} + + def _singleton(): + if cls not in instances: + instances[cls] = cls(*args, **kw) + return instances[cls] + return _singleton + + +@singleton +class Configuration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + """ + + def __init__(self): + """ + Constructor + """ + # Default Base url + self.host = "https://127.0.0.1:6443/" + # Default api client + self.api_client = None + # Temp file folder for download + self.temp_folder_path = None + + # Authentication Settings + # dict to store API key(s) + self.api_key = {} + # dict to store API prefix (e.g. Bearer) + self.api_key_prefix = {} + # Username for HTTP basic authentication + self.username = "" + # Password for HTTP basic authentication + self.password = "" + + # Logging Settings + self.logging_format = '%(asctime)s %(levelname)s %(message)s' + # Debug file location + self.__logging_file = None + # Debug switch + self.__debug = False + self.init_logger() + + def init_logger(self): + """ + Initializes logger settings. + """ + self.logger = logging.getLogger() + formatter = logging.Formatter(self.logging_format) + stream_handler = logging.StreamHandler() + stream_handler.setFormatter(formatter) + self.logger.addHandler(stream_handler) + if self.__debug: + self.logger.setLevel(logging.DEBUG) + else: + self.logger.setLevel(logging.WARNING) + if self.__logging_file: + file_handler = logging.FileHandler(self.__logging_file) + file_handler.setFormatter(formatter) + self.logger.addFilter(file_handler) + + @property + def logging_file(self): + return self.__logging_file + + @logging_file.setter + def logging_file(self, value): + self.__logging_file = value + if self.__logging_file: + formater = logging.Formatter(self.logging_format) + file_handler = logging.FileHandler(self.__logging_file) + file_handler.setFormatter(formater) + self.logger.addHandler(file_handler) + + @property + def debug(self): + return self.__debug + + @debug.setter + def debug(self, value): + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + self.logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + self.logger.setLevel(logging.WARNING) + + def get_api_key_with_prefix(self, identifier): + """ + Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :return: The token for api key authentication. + """ + if self.api_key.get(identifier) and self.api_key_prefix.get(identifier): + return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] + elif self.api_key.get(identifier): + return self.api_key[identifier] + + def get_basic_auth_token(self): + """ + Gets basic auth header string. + + :return: The token for basic HTTP authentication. + """ + return urllib3.util.make_headers(basic_auth=self.username + ':' + self.password)\ + .get('authorization') + + def auth_settings(self): + """ + Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + return { + } + + def to_debug_report(self): + """ + Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: v1\n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) diff --git a/magnum/common/pythonk8sclient/swagger_client/models/__init__.py b/magnum/common/pythonk8sclient/swagger_client/models/__init__.py new file mode 100644 index 0000000000..92c73ebc7c --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/__init__.py @@ -0,0 +1,111 @@ +from __future__ import absolute_import + +# import models into model package +from .v1_node import V1Node +from .v1_persistent_volume_claim_list import V1PersistentVolumeClaimList +from .v1_object_field_selector import V1ObjectFieldSelector +from .v1_se_linux_options import V1SELinuxOptions +from .v1_container_state_running import V1ContainerStateRunning +from .v1_volume_mount import V1VolumeMount +from .v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec +from .v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource +from .v1_namespace_status import V1NamespaceStatus +from .v1_resource_quota_spec import V1ResourceQuotaSpec +from .v1_namespace_spec import V1NamespaceSpec +from .v1_persistent_volume import V1PersistentVolume +from .v1_persistent_volume_status import V1PersistentVolumeStatus +from .v1_endpoints_list import V1EndpointsList +from .v1_git_repo_volume_source import V1GitRepoVolumeSource +from .v1_capabilities import V1Capabilities +from .v1_node_condition import V1NodeCondition +from .v1_pod_template_list import V1PodTemplateList +from .v1_local_object_reference import V1LocalObjectReference +from .v1_resource_quota_status import V1ResourceQuotaStatus +from .v1_exec_action import V1ExecAction +from .v1_object_meta import V1ObjectMeta +from .api_patch import ApiPatch +from .v1_limit_range_spec import V1LimitRangeSpec +from .v1_iscsi_volume_source import V1ISCSIVolumeSource +from .v1_empty_dir_volume_source import V1EmptyDirVolumeSource +from .v1_node_list import V1NodeList +from .v1_persistent_volume_claim import V1PersistentVolumeClaim +from .v1_namespace_list import V1NamespaceList +from .v1_service_account import V1ServiceAccount +from .v1_node_address import V1NodeAddress +from .v1_namespace import V1Namespace +from .v1_list_meta import V1ListMeta +from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource +from .v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus +from .v1_resource_quota_list import V1ResourceQuotaList +from .v1_endpoint_subset import V1EndpointSubset +from .v1_secret_volume_source import V1SecretVolumeSource +from .v1_env_var_source import V1EnvVarSource +from .v1_load_balancer_ingress import V1LoadBalancerIngress +from .v1_service import V1Service +from .v1_service_account_list import V1ServiceAccountList +from .v1_limit_range_list import V1LimitRangeList +from .v1_endpoints import V1Endpoints +from .v1_delete_options import V1DeleteOptions +from .v1_volume import V1Volume +from .v1_probe import V1Probe +from .v1_capability import V1Capability +from .v1_replication_controller import V1ReplicationController +from .v1_limit_range import V1LimitRange +from .v1_pod_status import V1PodStatus +from .v1_pod_spec import V1PodSpec +from .v1_container_port import V1ContainerPort +from .v1_event_list import V1EventList +from .v1_resource_quota import V1ResourceQuota +from .v1_lifecycle import V1Lifecycle +from .v1_node_status import V1NodeStatus +from .v1_glusterfs_volume_source import V1GlusterfsVolumeSource +from .v1_handler import V1Handler +from .v1_replication_controller_spec import V1ReplicationControllerSpec +from .v1_event_source import V1EventSource +from .v1_status_cause import V1StatusCause +from .v1_pod_condition import V1PodCondition +from .v1_rbd_volume_source import V1RBDVolumeSource +from .v1_status import V1Status +from .v1_pod_template import V1PodTemplate +from .v1_service_status import V1ServiceStatus +from .v1_nfs_volume_source import V1NFSVolumeSource +from .v1_endpoint_port import V1EndpointPort +from .v1_tcp_socket_action import V1TCPSocketAction +from .v1_http_get_action import V1HTTPGetAction +from .v1_status_details import V1StatusDetails +from .v1_load_balancer_status import V1LoadBalancerStatus +from .v1_secret_list import V1SecretList +from .v1_container import V1Container +from .v1_persistent_volume_spec import V1PersistentVolumeSpec +from .v1_replication_controller_status import V1ReplicationControllerStatus +from .v1_finalizer_name import V1FinalizerName +from .v1_service_port import V1ServicePort +from .v1_component_condition import V1ComponentCondition +from .v1_component_status_list import V1ComponentStatusList +from .v1_host_path_volume_source import V1HostPathVolumeSource +from .json_watch_event import JsonWatchEvent +from .v1_binding import V1Binding +from .v1_container_state_terminated import V1ContainerStateTerminated +from .v1_security_context import V1SecurityContext +from .v1_container_state import V1ContainerState +from .v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource +from .v1_container_status import V1ContainerStatus +from .v1_replication_controller_list import V1ReplicationControllerList +from .v1_secret import V1Secret +from .v1_event import V1Event +from .v1_env_var import V1EnvVar +from .v1_resource_requirements import V1ResourceRequirements +from .v1_persistent_volume_access_mode import V1PersistentVolumeAccessMode +from .v1_component_status import V1ComponentStatus +from .v1_limit_range_item import V1LimitRangeItem +from .v1_pod_template_spec import V1PodTemplateSpec +from .v1_pod_list import V1PodList +from .v1_service_list import V1ServiceList +from .v1_persistent_volume_list import V1PersistentVolumeList +from .v1_object_reference import V1ObjectReference +from .v1_container_state_waiting import V1ContainerStateWaiting +from .v1_node_system_info import V1NodeSystemInfo +from .v1_service_spec import V1ServiceSpec +from .v1_pod import V1Pod +from .v1_node_spec import V1NodeSpec +from .v1_endpoint_address import V1EndpointAddress diff --git a/magnum/common/pythonk8sclient/swagger_client/models/api_patch.py b/magnum/common/pythonk8sclient/swagger_client/models/api_patch.py new file mode 100644 index 0000000000..9e9ff283ea --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/api_patch.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class ApiPatch(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + + } + + self.attribute_map = { + + } + + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/json_watch_event.py b/magnum/common/pythonk8sclient/swagger_client/models/json_watch_event.py new file mode 100644 index 0000000000..3c4f59c2f7 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/json_watch_event.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class JsonWatchEvent(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'type': 'str', + 'object': 'str' + } + + self.attribute_map = { + 'type': 'type', + 'object': 'object' + } + + self._type = None + self._object = None + + @property + def type(self): + """ + Gets the type of this JsonWatchEvent. + the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR + + :return: The type of this JsonWatchEvent. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this JsonWatchEvent. + the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR + + :param type: The type of this JsonWatchEvent. + :type: str + """ + self._type = type + + @property + def object(self): + """ + Gets the object of this JsonWatchEvent. + the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR + + :return: The object of this JsonWatchEvent. + :rtype: str + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this JsonWatchEvent. + the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR + + :param object: The object of this JsonWatchEvent. + :type: str + """ + self._object = object + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_aws_elastic_block_store_volume_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_aws_elastic_block_store_volume_source.py new file mode 100644 index 0000000000..8e2a2ebdba --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_aws_elastic_block_store_volume_source.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1AWSElasticBlockStoreVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'volume_id': 'str', + 'fs_type': 'str', + 'partition': 'int', + 'read_only': 'bool' + } + + self.attribute_map = { + 'volume_id': 'volumeID', + 'fs_type': 'fsType', + 'partition': 'partition', + 'read_only': 'readOnly' + } + + self._volume_id = None + self._fs_type = None + self._partition = None + self._read_only = None + + @property + def volume_id(self): + """ + Gets the volume_id of this V1AWSElasticBlockStoreVolumeSource. + unique id of the PD resource in AWS; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :return: The volume_id of this V1AWSElasticBlockStoreVolumeSource. + :rtype: str + """ + return self._volume_id + + @volume_id.setter + def volume_id(self, volume_id): + """ + Sets the volume_id of this V1AWSElasticBlockStoreVolumeSource. + unique id of the PD resource in AWS; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :param volume_id: The volume_id of this V1AWSElasticBlockStoreVolumeSource. + :type: str + """ + self._volume_id = volume_id + + @property + def fs_type(self): + """ + Gets the fs_type of this V1AWSElasticBlockStoreVolumeSource. + file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :return: The fs_type of this V1AWSElasticBlockStoreVolumeSource. + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """ + Sets the fs_type of this V1AWSElasticBlockStoreVolumeSource. + file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :param fs_type: The fs_type of this V1AWSElasticBlockStoreVolumeSource. + :type: str + """ + self._fs_type = fs_type + + @property + def partition(self): + """ + Gets the partition of this V1AWSElasticBlockStoreVolumeSource. + partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :return: The partition of this V1AWSElasticBlockStoreVolumeSource. + :rtype: int + """ + return self._partition + + @partition.setter + def partition(self, partition): + """ + Sets the partition of this V1AWSElasticBlockStoreVolumeSource. + partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :param partition: The partition of this V1AWSElasticBlockStoreVolumeSource. + :type: int + """ + self._partition = partition + + @property + def read_only(self): + """ + Gets the read_only of this V1AWSElasticBlockStoreVolumeSource. + read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :return: The read_only of this V1AWSElasticBlockStoreVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1AWSElasticBlockStoreVolumeSource. + read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :param read_only: The read_only of this V1AWSElasticBlockStoreVolumeSource. + :type: bool + """ + self._read_only = read_only + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_binding.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_binding.py new file mode 100644 index 0000000000..94768b1db9 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_binding.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Binding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'target': 'V1ObjectReference' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'target': 'target' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._target = None + + @property + def kind(self): + """ + Gets the kind of this V1Binding. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1Binding. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Binding. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1Binding. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1Binding. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1Binding. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Binding. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1Binding. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1Binding. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1Binding. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Binding. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1Binding. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def target(self): + """ + Gets the target of this V1Binding. + an object to bind to + + :return: The target of this V1Binding. + :rtype: V1ObjectReference + """ + return self._target + + @target.setter + def target(self, target): + """ + Sets the target of this V1Binding. + an object to bind to + + :param target: The target of this V1Binding. + :type: V1ObjectReference + """ + self._target = target + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_capabilities.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_capabilities.py new file mode 100644 index 0000000000..af97b2bf43 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_capabilities.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Capabilities(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'add': 'list[V1Capability]', + 'drop': 'list[V1Capability]' + } + + self.attribute_map = { + 'add': 'add', + 'drop': 'drop' + } + + self._add = None + self._drop = None + + @property + def add(self): + """ + Gets the add of this V1Capabilities. + added capabilities + + :return: The add of this V1Capabilities. + :rtype: list[V1Capability] + """ + return self._add + + @add.setter + def add(self, add): + """ + Sets the add of this V1Capabilities. + added capabilities + + :param add: The add of this V1Capabilities. + :type: list[V1Capability] + """ + self._add = add + + @property + def drop(self): + """ + Gets the drop of this V1Capabilities. + droped capabilities + + :return: The drop of this V1Capabilities. + :rtype: list[V1Capability] + """ + return self._drop + + @drop.setter + def drop(self, drop): + """ + Sets the drop of this V1Capabilities. + droped capabilities + + :param drop: The drop of this V1Capabilities. + :type: list[V1Capability] + """ + self._drop = drop + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_capability.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_capability.py new file mode 100644 index 0000000000..05128e82b4 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_capability.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Capability(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + + } + + self.attribute_map = { + + } + + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_component_condition.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_component_condition.py new file mode 100644 index 0000000000..e29727156f --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_component_condition.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ComponentCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'type': 'str', + 'status': 'str', + 'message': 'str', + 'error': 'str' + } + + self.attribute_map = { + 'type': 'type', + 'status': 'status', + 'message': 'message', + 'error': 'error' + } + + self._type = None + self._status = None + self._message = None + self._error = None + + @property + def type(self): + """ + Gets the type of this V1ComponentCondition. + type of component condition, currently only Healthy + + :return: The type of this V1ComponentCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1ComponentCondition. + type of component condition, currently only Healthy + + :param type: The type of this V1ComponentCondition. + :type: str + """ + self._type = type + + @property + def status(self): + """ + Gets the status of this V1ComponentCondition. + current status of this component condition, one of True, False, Unknown + + :return: The status of this V1ComponentCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ComponentCondition. + current status of this component condition, one of True, False, Unknown + + :param status: The status of this V1ComponentCondition. + :type: str + """ + self._status = status + + @property + def message(self): + """ + Gets the message of this V1ComponentCondition. + health check message received from the component + + :return: The message of this V1ComponentCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1ComponentCondition. + health check message received from the component + + :param message: The message of this V1ComponentCondition. + :type: str + """ + self._message = message + + @property + def error(self): + """ + Gets the error of this V1ComponentCondition. + error code from health check attempt (if any) + + :return: The error of this V1ComponentCondition. + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this V1ComponentCondition. + error code from health check attempt (if any) + + :param error: The error of this V1ComponentCondition. + :type: str + """ + self._error = error + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_component_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_component_status.py new file mode 100644 index 0000000000..e6fcbeb3b9 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_component_status.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ComponentStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'conditions': 'list[V1ComponentCondition]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'conditions': 'conditions' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._conditions = None + + @property + def kind(self): + """ + Gets the kind of this V1ComponentStatus. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1ComponentStatus. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ComponentStatus. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1ComponentStatus. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1ComponentStatus. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1ComponentStatus. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ComponentStatus. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1ComponentStatus. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1ComponentStatus. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1ComponentStatus. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ComponentStatus. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1ComponentStatus. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def conditions(self): + """ + Gets the conditions of this V1ComponentStatus. + list of component conditions observed + + :return: The conditions of this V1ComponentStatus. + :rtype: list[V1ComponentCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1ComponentStatus. + list of component conditions observed + + :param conditions: The conditions of this V1ComponentStatus. + :type: list[V1ComponentCondition] + """ + self._conditions = conditions + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_component_status_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_component_status_list.py new file mode 100644 index 0000000000..51ce03ea2b --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_component_status_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ComponentStatusList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1ComponentStatus]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1ComponentStatusList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1ComponentStatusList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ComponentStatusList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1ComponentStatusList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1ComponentStatusList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1ComponentStatusList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ComponentStatusList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1ComponentStatusList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1ComponentStatusList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1ComponentStatusList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ComponentStatusList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1ComponentStatusList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1ComponentStatusList. + list of component status objects + + :return: The items of this V1ComponentStatusList. + :rtype: list[V1ComponentStatus] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ComponentStatusList. + list of component status objects + + :param items: The items of this V1ComponentStatusList. + :type: list[V1ComponentStatus] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_container.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_container.py new file mode 100644 index 0000000000..3200ffc52b --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_container.py @@ -0,0 +1,449 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Container(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'image': 'str', + 'command': 'list[str]', + 'args': 'list[str]', + 'working_dir': 'str', + 'ports': 'list[V1ContainerPort]', + 'env': 'list[V1EnvVar]', + 'resources': 'V1ResourceRequirements', + 'volume_mounts': 'list[V1VolumeMount]', + 'liveness_probe': 'V1Probe', + 'readiness_probe': 'V1Probe', + 'lifecycle': 'V1Lifecycle', + 'termination_message_path': 'str', + 'image_pull_policy': 'str', + 'security_context': 'V1SecurityContext' + } + + self.attribute_map = { + 'name': 'name', + 'image': 'image', + 'command': 'command', + 'args': 'args', + 'working_dir': 'workingDir', + 'ports': 'ports', + 'env': 'env', + 'resources': 'resources', + 'volume_mounts': 'volumeMounts', + 'liveness_probe': 'livenessProbe', + 'readiness_probe': 'readinessProbe', + 'lifecycle': 'lifecycle', + 'termination_message_path': 'terminationMessagePath', + 'image_pull_policy': 'imagePullPolicy', + 'security_context': 'securityContext' + } + + self._name = None + self._image = None + self._command = None + self._args = None + self._working_dir = None + self._ports = None + self._env = None + self._resources = None + self._volume_mounts = None + self._liveness_probe = None + self._readiness_probe = None + self._lifecycle = None + self._termination_message_path = None + self._image_pull_policy = None + self._security_context = None + + @property + def name(self): + """ + Gets the name of this V1Container. + name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated + + :return: The name of this V1Container. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1Container. + name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated + + :param name: The name of this V1Container. + :type: str + """ + self._name = name + + @property + def image(self): + """ + Gets the image of this V1Container. + Docker image name; see http://releases.k8s.io/v1.0.4/docs/images.md + + :return: The image of this V1Container. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1Container. + Docker image name; see http://releases.k8s.io/v1.0.4/docs/images.md + + :param image: The image of this V1Container. + :type: str + """ + self._image = image + + @property + def command(self): + """ + Gets the command of this V1Container. + entrypoint array; not executed within a shell; the docker image's entrypoint is used if this is not provided; cannot be updated; variable references $(VAR_NAME) are expanded using the container's environment variables; if a variable cannot be resolved, the reference in the input string will be unchanged; the $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME) ; escaped references will never be expanded, regardless of whether the variable exists or not; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands + + :return: The command of this V1Container. + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """ + Sets the command of this V1Container. + entrypoint array; not executed within a shell; the docker image's entrypoint is used if this is not provided; cannot be updated; variable references $(VAR_NAME) are expanded using the container's environment variables; if a variable cannot be resolved, the reference in the input string will be unchanged; the $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME) ; escaped references will never be expanded, regardless of whether the variable exists or not; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands + + :param command: The command of this V1Container. + :type: list[str] + """ + self._command = command + + @property + def args(self): + """ + Gets the args of this V1Container. + command array; the docker image's cmd is used if this is not provided; arguments to the entrypoint; cannot be updated; variable references $(VAR_NAME) are expanded using the container's environment variables; if a variable cannot be resolved, the reference in the input string will be unchanged; the $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME) ; escaped references will never be expanded, regardless of whether the variable exists or not; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands + + :return: The args of this V1Container. + :rtype: list[str] + """ + return self._args + + @args.setter + def args(self, args): + """ + Sets the args of this V1Container. + command array; the docker image's cmd is used if this is not provided; arguments to the entrypoint; cannot be updated; variable references $(VAR_NAME) are expanded using the container's environment variables; if a variable cannot be resolved, the reference in the input string will be unchanged; the $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME) ; escaped references will never be expanded, regardless of whether the variable exists or not; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands + + :param args: The args of this V1Container. + :type: list[str] + """ + self._args = args + + @property + def working_dir(self): + """ + Gets the working_dir of this V1Container. + container's working directory; defaults to image's default; cannot be updated + + :return: The working_dir of this V1Container. + :rtype: str + """ + return self._working_dir + + @working_dir.setter + def working_dir(self, working_dir): + """ + Sets the working_dir of this V1Container. + container's working directory; defaults to image's default; cannot be updated + + :param working_dir: The working_dir of this V1Container. + :type: str + """ + self._working_dir = working_dir + + @property + def ports(self): + """ + Gets the ports of this V1Container. + list of ports to expose from the container; cannot be updated + + :return: The ports of this V1Container. + :rtype: list[V1ContainerPort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """ + Sets the ports of this V1Container. + list of ports to expose from the container; cannot be updated + + :param ports: The ports of this V1Container. + :type: list[V1ContainerPort] + """ + self._ports = ports + + @property + def env(self): + """ + Gets the env of this V1Container. + list of environment variables to set in the container; cannot be updated + + :return: The env of this V1Container. + :rtype: list[V1EnvVar] + """ + return self._env + + @env.setter + def env(self, env): + """ + Sets the env of this V1Container. + list of environment variables to set in the container; cannot be updated + + :param env: The env of this V1Container. + :type: list[V1EnvVar] + """ + self._env = env + + @property + def resources(self): + """ + Gets the resources of this V1Container. + Compute Resources required by this container; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md + + :return: The resources of this V1Container. + :rtype: V1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1Container. + Compute Resources required by this container; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md + + :param resources: The resources of this V1Container. + :type: V1ResourceRequirements + """ + self._resources = resources + + @property + def volume_mounts(self): + """ + Gets the volume_mounts of this V1Container. + pod volumes to mount into the container's filesyste; cannot be updated + + :return: The volume_mounts of this V1Container. + :rtype: list[V1VolumeMount] + """ + return self._volume_mounts + + @volume_mounts.setter + def volume_mounts(self, volume_mounts): + """ + Sets the volume_mounts of this V1Container. + pod volumes to mount into the container's filesyste; cannot be updated + + :param volume_mounts: The volume_mounts of this V1Container. + :type: list[V1VolumeMount] + """ + self._volume_mounts = volume_mounts + + @property + def liveness_probe(self): + """ + Gets the liveness_probe of this V1Container. + periodic probe of container liveness; container will be restarted if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + + :return: The liveness_probe of this V1Container. + :rtype: V1Probe + """ + return self._liveness_probe + + @liveness_probe.setter + def liveness_probe(self, liveness_probe): + """ + Sets the liveness_probe of this V1Container. + periodic probe of container liveness; container will be restarted if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + + :param liveness_probe: The liveness_probe of this V1Container. + :type: V1Probe + """ + self._liveness_probe = liveness_probe + + @property + def readiness_probe(self): + """ + Gets the readiness_probe of this V1Container. + periodic probe of container service readiness; container will be removed from service endpoints if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + + :return: The readiness_probe of this V1Container. + :rtype: V1Probe + """ + return self._readiness_probe + + @readiness_probe.setter + def readiness_probe(self, readiness_probe): + """ + Sets the readiness_probe of this V1Container. + periodic probe of container service readiness; container will be removed from service endpoints if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + + :param readiness_probe: The readiness_probe of this V1Container. + :type: V1Probe + """ + self._readiness_probe = readiness_probe + + @property + def lifecycle(self): + """ + Gets the lifecycle of this V1Container. + actions that the management system should take in response to container lifecycle events; cannot be updated + + :return: The lifecycle of this V1Container. + :rtype: V1Lifecycle + """ + return self._lifecycle + + @lifecycle.setter + def lifecycle(self, lifecycle): + """ + Sets the lifecycle of this V1Container. + actions that the management system should take in response to container lifecycle events; cannot be updated + + :param lifecycle: The lifecycle of this V1Container. + :type: V1Lifecycle + """ + self._lifecycle = lifecycle + + @property + def termination_message_path(self): + """ + Gets the termination_message_path of this V1Container. + path at which the file to which the container's termination message will be written is mounted into the container's filesystem; message written is intended to be brief final status, such as an assertion failure message; defaults to /dev/termination-log; cannot be updated + + :return: The termination_message_path of this V1Container. + :rtype: str + """ + return self._termination_message_path + + @termination_message_path.setter + def termination_message_path(self, termination_message_path): + """ + Sets the termination_message_path of this V1Container. + path at which the file to which the container's termination message will be written is mounted into the container's filesystem; message written is intended to be brief final status, such as an assertion failure message; defaults to /dev/termination-log; cannot be updated + + :param termination_message_path: The termination_message_path of this V1Container. + :type: str + """ + self._termination_message_path = termination_message_path + + @property + def image_pull_policy(self): + """ + Gets the image_pull_policy of this V1Container. + image pull policy; one of Always, Never, IfNotPresent; defaults to Always if :latest tag is specified, or IfNotPresent otherwise; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/images.md#updating-images + + :return: The image_pull_policy of this V1Container. + :rtype: str + """ + return self._image_pull_policy + + @image_pull_policy.setter + def image_pull_policy(self, image_pull_policy): + """ + Sets the image_pull_policy of this V1Container. + image pull policy; one of Always, Never, IfNotPresent; defaults to Always if :latest tag is specified, or IfNotPresent otherwise; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/images.md#updating-images + + :param image_pull_policy: The image_pull_policy of this V1Container. + :type: str + """ + self._image_pull_policy = image_pull_policy + + @property + def security_context(self): + """ + Gets the security_context of this V1Container. + security options the pod should run with; see http://releases.k8s.io/v1.0.4/docs/security_context.md + + :return: The security_context of this V1Container. + :rtype: V1SecurityContext + """ + return self._security_context + + @security_context.setter + def security_context(self, security_context): + """ + Sets the security_context of this V1Container. + security options the pod should run with; see http://releases.k8s.io/v1.0.4/docs/security_context.md + + :param security_context: The security_context of this V1Container. + :type: V1SecurityContext + """ + self._security_context = security_context + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_container_port.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_port.py new file mode 100644 index 0000000000..8b1fac4d37 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_port.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ContainerPort(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'host_port': 'int', + 'container_port': 'int', + 'protocol': 'str', + 'host_ip': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'host_port': 'hostPort', + 'container_port': 'containerPort', + 'protocol': 'protocol', + 'host_ip': 'hostIP' + } + + self._name = None + self._host_port = None + self._container_port = None + self._protocol = None + self._host_ip = None + + @property + def name(self): + """ + Gets the name of this V1ContainerPort. + name for the port that can be referred to by services; must be an IANA_SVC_NAME and unique within the pod + + :return: The name of this V1ContainerPort. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ContainerPort. + name for the port that can be referred to by services; must be an IANA_SVC_NAME and unique within the pod + + :param name: The name of this V1ContainerPort. + :type: str + """ + self._name = name + + @property + def host_port(self): + """ + Gets the host_port of this V1ContainerPort. + number of port to expose on the host; most containers do not need this + + :return: The host_port of this V1ContainerPort. + :rtype: int + """ + return self._host_port + + @host_port.setter + def host_port(self, host_port): + """ + Sets the host_port of this V1ContainerPort. + number of port to expose on the host; most containers do not need this + + :param host_port: The host_port of this V1ContainerPort. + :type: int + """ + self._host_port = host_port + + @property + def container_port(self): + """ + Gets the container_port of this V1ContainerPort. + number of port to expose on the pod's IP address + + :return: The container_port of this V1ContainerPort. + :rtype: int + """ + return self._container_port + + @container_port.setter + def container_port(self, container_port): + """ + Sets the container_port of this V1ContainerPort. + number of port to expose on the pod's IP address + + :param container_port: The container_port of this V1ContainerPort. + :type: int + """ + self._container_port = container_port + + @property + def protocol(self): + """ + Gets the protocol of this V1ContainerPort. + protocol for port; must be UDP or TCP; TCP if unspecified + + :return: The protocol of this V1ContainerPort. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """ + Sets the protocol of this V1ContainerPort. + protocol for port; must be UDP or TCP; TCP if unspecified + + :param protocol: The protocol of this V1ContainerPort. + :type: str + """ + self._protocol = protocol + + @property + def host_ip(self): + """ + Gets the host_ip of this V1ContainerPort. + host IP to bind the port to + + :return: The host_ip of this V1ContainerPort. + :rtype: str + """ + return self._host_ip + + @host_ip.setter + def host_ip(self, host_ip): + """ + Sets the host_ip of this V1ContainerPort. + host IP to bind the port to + + :param host_ip: The host_ip of this V1ContainerPort. + :type: str + """ + self._host_ip = host_ip + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state.py new file mode 100644 index 0000000000..d4cc66c890 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ContainerState(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'waiting': 'V1ContainerStateWaiting', + 'running': 'V1ContainerStateRunning', + 'terminated': 'V1ContainerStateTerminated' + } + + self.attribute_map = { + 'waiting': 'waiting', + 'running': 'running', + 'terminated': 'terminated' + } + + self._waiting = None + self._running = None + self._terminated = None + + @property + def waiting(self): + """ + Gets the waiting of this V1ContainerState. + details about a waiting container + + :return: The waiting of this V1ContainerState. + :rtype: V1ContainerStateWaiting + """ + return self._waiting + + @waiting.setter + def waiting(self, waiting): + """ + Sets the waiting of this V1ContainerState. + details about a waiting container + + :param waiting: The waiting of this V1ContainerState. + :type: V1ContainerStateWaiting + """ + self._waiting = waiting + + @property + def running(self): + """ + Gets the running of this V1ContainerState. + details about a running container + + :return: The running of this V1ContainerState. + :rtype: V1ContainerStateRunning + """ + return self._running + + @running.setter + def running(self, running): + """ + Sets the running of this V1ContainerState. + details about a running container + + :param running: The running of this V1ContainerState. + :type: V1ContainerStateRunning + """ + self._running = running + + @property + def terminated(self): + """ + Gets the terminated of this V1ContainerState. + details about a terminated container + + :return: The terminated of this V1ContainerState. + :rtype: V1ContainerStateTerminated + """ + return self._terminated + + @terminated.setter + def terminated(self, terminated): + """ + Sets the terminated of this V1ContainerState. + details about a terminated container + + :param terminated: The terminated of this V1ContainerState. + :type: V1ContainerStateTerminated + """ + self._terminated = terminated + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state_running.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state_running.py new file mode 100644 index 0000000000..26b2b9de5f --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state_running.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ContainerStateRunning(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'started_at': 'str' + } + + self.attribute_map = { + 'started_at': 'startedAt' + } + + self._started_at = None + + @property + def started_at(self): + """ + Gets the started_at of this V1ContainerStateRunning. + time at which the container was last (re-)started + + :return: The started_at of this V1ContainerStateRunning. + :rtype: str + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """ + Sets the started_at of this V1ContainerStateRunning. + time at which the container was last (re-)started + + :param started_at: The started_at of this V1ContainerStateRunning. + :type: str + """ + self._started_at = started_at + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state_terminated.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state_terminated.py new file mode 100644 index 0000000000..235256a082 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state_terminated.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ContainerStateTerminated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'exit_code': 'int', + 'signal': 'int', + 'reason': 'str', + 'message': 'str', + 'started_at': 'str', + 'finished_at': 'str', + 'container_id': 'str' + } + + self.attribute_map = { + 'exit_code': 'exitCode', + 'signal': 'signal', + 'reason': 'reason', + 'message': 'message', + 'started_at': 'startedAt', + 'finished_at': 'finishedAt', + 'container_id': 'containerID' + } + + self._exit_code = None + self._signal = None + self._reason = None + self._message = None + self._started_at = None + self._finished_at = None + self._container_id = None + + @property + def exit_code(self): + """ + Gets the exit_code of this V1ContainerStateTerminated. + exit status from the last termination of the container + + :return: The exit_code of this V1ContainerStateTerminated. + :rtype: int + """ + return self._exit_code + + @exit_code.setter + def exit_code(self, exit_code): + """ + Sets the exit_code of this V1ContainerStateTerminated. + exit status from the last termination of the container + + :param exit_code: The exit_code of this V1ContainerStateTerminated. + :type: int + """ + self._exit_code = exit_code + + @property + def signal(self): + """ + Gets the signal of this V1ContainerStateTerminated. + signal from the last termination of the container + + :return: The signal of this V1ContainerStateTerminated. + :rtype: int + """ + return self._signal + + @signal.setter + def signal(self, signal): + """ + Sets the signal of this V1ContainerStateTerminated. + signal from the last termination of the container + + :param signal: The signal of this V1ContainerStateTerminated. + :type: int + """ + self._signal = signal + + @property + def reason(self): + """ + Gets the reason of this V1ContainerStateTerminated. + (brief) reason from the last termination of the container + + :return: The reason of this V1ContainerStateTerminated. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1ContainerStateTerminated. + (brief) reason from the last termination of the container + + :param reason: The reason of this V1ContainerStateTerminated. + :type: str + """ + self._reason = reason + + @property + def message(self): + """ + Gets the message of this V1ContainerStateTerminated. + message regarding the last termination of the container + + :return: The message of this V1ContainerStateTerminated. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1ContainerStateTerminated. + message regarding the last termination of the container + + :param message: The message of this V1ContainerStateTerminated. + :type: str + """ + self._message = message + + @property + def started_at(self): + """ + Gets the started_at of this V1ContainerStateTerminated. + time at which previous execution of the container started + + :return: The started_at of this V1ContainerStateTerminated. + :rtype: str + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """ + Sets the started_at of this V1ContainerStateTerminated. + time at which previous execution of the container started + + :param started_at: The started_at of this V1ContainerStateTerminated. + :type: str + """ + self._started_at = started_at + + @property + def finished_at(self): + """ + Gets the finished_at of this V1ContainerStateTerminated. + time at which the container last terminated + + :return: The finished_at of this V1ContainerStateTerminated. + :rtype: str + """ + return self._finished_at + + @finished_at.setter + def finished_at(self, finished_at): + """ + Sets the finished_at of this V1ContainerStateTerminated. + time at which the container last terminated + + :param finished_at: The finished_at of this V1ContainerStateTerminated. + :type: str + """ + self._finished_at = finished_at + + @property + def container_id(self): + """ + Gets the container_id of this V1ContainerStateTerminated. + container's ID in the format 'docker://' + + :return: The container_id of this V1ContainerStateTerminated. + :rtype: str + """ + return self._container_id + + @container_id.setter + def container_id(self, container_id): + """ + Sets the container_id of this V1ContainerStateTerminated. + container's ID in the format 'docker://' + + :param container_id: The container_id of this V1ContainerStateTerminated. + :type: str + """ + self._container_id = container_id + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state_waiting.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state_waiting.py new file mode 100644 index 0000000000..f240076e09 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_state_waiting.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ContainerStateWaiting(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'reason': 'str' + } + + self.attribute_map = { + 'reason': 'reason' + } + + self._reason = None + + @property + def reason(self): + """ + Gets the reason of this V1ContainerStateWaiting. + (brief) reason the container is not yet running, such as pulling its image + + :return: The reason of this V1ContainerStateWaiting. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1ContainerStateWaiting. + (brief) reason the container is not yet running, such as pulling its image + + :param reason: The reason of this V1ContainerStateWaiting. + :type: str + """ + self._reason = reason + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_container_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_status.py new file mode 100644 index 0000000000..dbf3626cec --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_container_status.py @@ -0,0 +1,274 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ContainerStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'state': 'V1ContainerState', + 'last_state': 'V1ContainerState', + 'ready': 'bool', + 'restart_count': 'int', + 'image': 'str', + 'image_id': 'str', + 'container_id': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'state': 'state', + 'last_state': 'lastState', + 'ready': 'ready', + 'restart_count': 'restartCount', + 'image': 'image', + 'image_id': 'imageID', + 'container_id': 'containerID' + } + + self._name = None + self._state = None + self._last_state = None + self._ready = None + self._restart_count = None + self._image = None + self._image_id = None + self._container_id = None + + @property + def name(self): + """ + Gets the name of this V1ContainerStatus. + name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated + + :return: The name of this V1ContainerStatus. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ContainerStatus. + name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated + + :param name: The name of this V1ContainerStatus. + :type: str + """ + self._name = name + + @property + def state(self): + """ + Gets the state of this V1ContainerStatus. + details about the container's current condition + + :return: The state of this V1ContainerStatus. + :rtype: V1ContainerState + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this V1ContainerStatus. + details about the container's current condition + + :param state: The state of this V1ContainerStatus. + :type: V1ContainerState + """ + self._state = state + + @property + def last_state(self): + """ + Gets the last_state of this V1ContainerStatus. + details about the container's last termination condition + + :return: The last_state of this V1ContainerStatus. + :rtype: V1ContainerState + """ + return self._last_state + + @last_state.setter + def last_state(self, last_state): + """ + Sets the last_state of this V1ContainerStatus. + details about the container's last termination condition + + :param last_state: The last_state of this V1ContainerStatus. + :type: V1ContainerState + """ + self._last_state = last_state + + @property + def ready(self): + """ + Gets the ready of this V1ContainerStatus. + specifies whether the container has passed its readiness probe + + :return: The ready of this V1ContainerStatus. + :rtype: bool + """ + return self._ready + + @ready.setter + def ready(self, ready): + """ + Sets the ready of this V1ContainerStatus. + specifies whether the container has passed its readiness probe + + :param ready: The ready of this V1ContainerStatus. + :type: bool + """ + self._ready = ready + + @property + def restart_count(self): + """ + Gets the restart_count of this V1ContainerStatus. + the number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed + + :return: The restart_count of this V1ContainerStatus. + :rtype: int + """ + return self._restart_count + + @restart_count.setter + def restart_count(self, restart_count): + """ + Sets the restart_count of this V1ContainerStatus. + the number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed + + :param restart_count: The restart_count of this V1ContainerStatus. + :type: int + """ + self._restart_count = restart_count + + @property + def image(self): + """ + Gets the image of this V1ContainerStatus. + image of the container; see http://releases.k8s.io/v1.0.4/docs/images.md + + :return: The image of this V1ContainerStatus. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1ContainerStatus. + image of the container; see http://releases.k8s.io/v1.0.4/docs/images.md + + :param image: The image of this V1ContainerStatus. + :type: str + """ + self._image = image + + @property + def image_id(self): + """ + Gets the image_id of this V1ContainerStatus. + ID of the container's image + + :return: The image_id of this V1ContainerStatus. + :rtype: str + """ + return self._image_id + + @image_id.setter + def image_id(self, image_id): + """ + Sets the image_id of this V1ContainerStatus. + ID of the container's image + + :param image_id: The image_id of this V1ContainerStatus. + :type: str + """ + self._image_id = image_id + + @property + def container_id(self): + """ + Gets the container_id of this V1ContainerStatus. + container's ID in the format 'docker://'; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#container-information + + :return: The container_id of this V1ContainerStatus. + :rtype: str + """ + return self._container_id + + @container_id.setter + def container_id(self, container_id): + """ + Sets the container_id of this V1ContainerStatus. + container's ID in the format 'docker://'; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#container-information + + :param container_id: The container_id of this V1ContainerStatus. + :type: str + """ + self._container_id = container_id + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_delete_options.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_delete_options.py new file mode 100644 index 0000000000..9c947d5883 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_delete_options.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1DeleteOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'grace_period_seconds': 'int' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'grace_period_seconds': 'gracePeriodSeconds' + } + + self._kind = None + self._api_version = None + self._grace_period_seconds = None + + @property + def kind(self): + """ + Gets the kind of this V1DeleteOptions. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1DeleteOptions. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1DeleteOptions. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1DeleteOptions. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1DeleteOptions. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1DeleteOptions. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1DeleteOptions. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1DeleteOptions. + :type: str + """ + self._api_version = api_version + + @property + def grace_period_seconds(self): + """ + Gets the grace_period_seconds of this V1DeleteOptions. + the duration in seconds to wait before deleting this object; defaults to a per object value if not specified; zero means delete immediately + + :return: The grace_period_seconds of this V1DeleteOptions. + :rtype: int + """ + return self._grace_period_seconds + + @grace_period_seconds.setter + def grace_period_seconds(self, grace_period_seconds): + """ + Sets the grace_period_seconds of this V1DeleteOptions. + the duration in seconds to wait before deleting this object; defaults to a per object value if not specified; zero means delete immediately + + :param grace_period_seconds: The grace_period_seconds of this V1DeleteOptions. + :type: int + """ + self._grace_period_seconds = grace_period_seconds + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_empty_dir_volume_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_empty_dir_volume_source.py new file mode 100644 index 0000000000..b9c067100b --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_empty_dir_volume_source.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1EmptyDirVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'medium': 'str' + } + + self.attribute_map = { + 'medium': 'medium' + } + + self._medium = None + + @property + def medium(self): + """ + Gets the medium of this V1EmptyDirVolumeSource. + type of storage used to back the volume; must be an empty string (default) or Memory; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir + + :return: The medium of this V1EmptyDirVolumeSource. + :rtype: str + """ + return self._medium + + @medium.setter + def medium(self, medium): + """ + Sets the medium of this V1EmptyDirVolumeSource. + type of storage used to back the volume; must be an empty string (default) or Memory; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir + + :param medium: The medium of this V1EmptyDirVolumeSource. + :type: str + """ + self._medium = medium + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoint_address.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoint_address.py new file mode 100644 index 0000000000..e17277e729 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoint_address.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1EndpointAddress(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ip': 'str', + 'target_ref': 'V1ObjectReference' + } + + self.attribute_map = { + 'ip': 'ip', + 'target_ref': 'targetRef' + } + + self._ip = None + self._target_ref = None + + @property + def ip(self): + """ + Gets the ip of this V1EndpointAddress. + IP address of the endpoint + + :return: The ip of this V1EndpointAddress. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """ + Sets the ip of this V1EndpointAddress. + IP address of the endpoint + + :param ip: The ip of this V1EndpointAddress. + :type: str + """ + self._ip = ip + + @property + def target_ref(self): + """ + Gets the target_ref of this V1EndpointAddress. + reference to object providing the endpoint + + :return: The target_ref of this V1EndpointAddress. + :rtype: V1ObjectReference + """ + return self._target_ref + + @target_ref.setter + def target_ref(self, target_ref): + """ + Sets the target_ref of this V1EndpointAddress. + reference to object providing the endpoint + + :param target_ref: The target_ref of this V1EndpointAddress. + :type: V1ObjectReference + """ + self._target_ref = target_ref + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoint_port.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoint_port.py new file mode 100644 index 0000000000..7a7bd8c8ca --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoint_port.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1EndpointPort(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'port': 'int', + 'protocol': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'port': 'port', + 'protocol': 'protocol' + } + + self._name = None + self._port = None + self._protocol = None + + @property + def name(self): + """ + Gets the name of this V1EndpointPort. + name of this port + + :return: The name of this V1EndpointPort. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1EndpointPort. + name of this port + + :param name: The name of this V1EndpointPort. + :type: str + """ + self._name = name + + @property + def port(self): + """ + Gets the port of this V1EndpointPort. + port number of the endpoint + + :return: The port of this V1EndpointPort. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1EndpointPort. + port number of the endpoint + + :param port: The port of this V1EndpointPort. + :type: int + """ + self._port = port + + @property + def protocol(self): + """ + Gets the protocol of this V1EndpointPort. + protocol for this port; must be UDP or TCP; TCP if unspecified + + :return: The protocol of this V1EndpointPort. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """ + Sets the protocol of this V1EndpointPort. + protocol for this port; must be UDP or TCP; TCP if unspecified + + :param protocol: The protocol of this V1EndpointPort. + :type: str + """ + self._protocol = protocol + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoint_subset.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoint_subset.py new file mode 100644 index 0000000000..bac809a9c3 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoint_subset.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1EndpointSubset(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'addresses': 'list[V1EndpointAddress]', + 'ports': 'list[V1EndpointPort]' + } + + self.attribute_map = { + 'addresses': 'addresses', + 'ports': 'ports' + } + + self._addresses = None + self._ports = None + + @property + def addresses(self): + """ + Gets the addresses of this V1EndpointSubset. + IP addresses which offer the related ports + + :return: The addresses of this V1EndpointSubset. + :rtype: list[V1EndpointAddress] + """ + return self._addresses + + @addresses.setter + def addresses(self, addresses): + """ + Sets the addresses of this V1EndpointSubset. + IP addresses which offer the related ports + + :param addresses: The addresses of this V1EndpointSubset. + :type: list[V1EndpointAddress] + """ + self._addresses = addresses + + @property + def ports(self): + """ + Gets the ports of this V1EndpointSubset. + port numbers available on the related IP addresses + + :return: The ports of this V1EndpointSubset. + :rtype: list[V1EndpointPort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """ + Sets the ports of this V1EndpointSubset. + port numbers available on the related IP addresses + + :param ports: The ports of this V1EndpointSubset. + :type: list[V1EndpointPort] + """ + self._ports = ports + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoints.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoints.py new file mode 100644 index 0000000000..aa07d24603 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoints.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Endpoints(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'subsets': 'list[V1EndpointSubset]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'subsets': 'subsets' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._subsets = None + + @property + def kind(self): + """ + Gets the kind of this V1Endpoints. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1Endpoints. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Endpoints. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1Endpoints. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1Endpoints. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1Endpoints. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Endpoints. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1Endpoints. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1Endpoints. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1Endpoints. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Endpoints. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1Endpoints. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def subsets(self): + """ + Gets the subsets of this V1Endpoints. + sets of addresses and ports that comprise a service + + :return: The subsets of this V1Endpoints. + :rtype: list[V1EndpointSubset] + """ + return self._subsets + + @subsets.setter + def subsets(self, subsets): + """ + Sets the subsets of this V1Endpoints. + sets of addresses and ports that comprise a service + + :param subsets: The subsets of this V1Endpoints. + :type: list[V1EndpointSubset] + """ + self._subsets = subsets + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoints_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoints_list.py new file mode 100644 index 0000000000..0fb4a483bb --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_endpoints_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1EndpointsList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1Endpoints]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1EndpointsList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1EndpointsList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1EndpointsList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1EndpointsList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1EndpointsList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1EndpointsList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1EndpointsList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1EndpointsList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1EndpointsList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1EndpointsList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1EndpointsList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1EndpointsList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1EndpointsList. + list of endpoints + + :return: The items of this V1EndpointsList. + :rtype: list[V1Endpoints] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1EndpointsList. + list of endpoints + + :param items: The items of this V1EndpointsList. + :type: list[V1Endpoints] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_env_var.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_env_var.py new file mode 100644 index 0000000000..6aca78ed95 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_env_var.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1EnvVar(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'value': 'str', + 'value_from': 'V1EnvVarSource' + } + + self.attribute_map = { + 'name': 'name', + 'value': 'value', + 'value_from': 'valueFrom' + } + + self._name = None + self._value = None + self._value_from = None + + @property + def name(self): + """ + Gets the name of this V1EnvVar. + name of the environment variable; must be a C_IDENTIFIER + + :return: The name of this V1EnvVar. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1EnvVar. + name of the environment variable; must be a C_IDENTIFIER + + :param name: The name of this V1EnvVar. + :type: str + """ + self._name = name + + @property + def value(self): + """ + Gets the value of this V1EnvVar. + value of the environment variable; defaults to empty string; variable references $(VAR_NAME) are expanded using the previously defined environment varibles in the container and any service environment variables; if a variable cannot be resolved, the reference in the input string will be unchanged; the $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME) ; escaped references will never be expanded, regardless of whether the variable exists or not + + :return: The value of this V1EnvVar. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1EnvVar. + value of the environment variable; defaults to empty string; variable references $(VAR_NAME) are expanded using the previously defined environment varibles in the container and any service environment variables; if a variable cannot be resolved, the reference in the input string will be unchanged; the $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME) ; escaped references will never be expanded, regardless of whether the variable exists or not + + :param value: The value of this V1EnvVar. + :type: str + """ + self._value = value + + @property + def value_from(self): + """ + Gets the value_from of this V1EnvVar. + source for the environment variable's value; cannot be used if value is not empty + + :return: The value_from of this V1EnvVar. + :rtype: V1EnvVarSource + """ + return self._value_from + + @value_from.setter + def value_from(self, value_from): + """ + Sets the value_from of this V1EnvVar. + source for the environment variable's value; cannot be used if value is not empty + + :param value_from: The value_from of this V1EnvVar. + :type: V1EnvVarSource + """ + self._value_from = value_from + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_env_var_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_env_var_source.py new file mode 100644 index 0000000000..952792e91c --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_env_var_source.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1EnvVarSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'field_ref': 'V1ObjectFieldSelector' + } + + self.attribute_map = { + 'field_ref': 'fieldRef' + } + + self._field_ref = None + + @property + def field_ref(self): + """ + Gets the field_ref of this V1EnvVarSource. + selects a field of the pod; only name and namespace are supported + + :return: The field_ref of this V1EnvVarSource. + :rtype: V1ObjectFieldSelector + """ + return self._field_ref + + @field_ref.setter + def field_ref(self, field_ref): + """ + Sets the field_ref of this V1EnvVarSource. + selects a field of the pod; only name and namespace are supported + + :param field_ref: The field_ref of this V1EnvVarSource. + :type: V1ObjectFieldSelector + """ + self._field_ref = field_ref + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_event.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_event.py new file mode 100644 index 0000000000..324ebd5c91 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_event.py @@ -0,0 +1,324 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Event(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'involved_object': 'V1ObjectReference', + 'reason': 'str', + 'message': 'str', + 'source': 'V1EventSource', + 'first_timestamp': 'str', + 'last_timestamp': 'str', + 'count': 'int' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'involved_object': 'involvedObject', + 'reason': 'reason', + 'message': 'message', + 'source': 'source', + 'first_timestamp': 'firstTimestamp', + 'last_timestamp': 'lastTimestamp', + 'count': 'count' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._involved_object = None + self._reason = None + self._message = None + self._source = None + self._first_timestamp = None + self._last_timestamp = None + self._count = None + + @property + def kind(self): + """ + Gets the kind of this V1Event. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1Event. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Event. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1Event. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1Event. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1Event. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Event. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1Event. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1Event. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1Event. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Event. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1Event. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def involved_object(self): + """ + Gets the involved_object of this V1Event. + object this event is about + + :return: The involved_object of this V1Event. + :rtype: V1ObjectReference + """ + return self._involved_object + + @involved_object.setter + def involved_object(self, involved_object): + """ + Sets the involved_object of this V1Event. + object this event is about + + :param involved_object: The involved_object of this V1Event. + :type: V1ObjectReference + """ + self._involved_object = involved_object + + @property + def reason(self): + """ + Gets the reason of this V1Event. + short, machine understandable string that gives the reason for the transition into the object's current status + + :return: The reason of this V1Event. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1Event. + short, machine understandable string that gives the reason for the transition into the object's current status + + :param reason: The reason of this V1Event. + :type: str + """ + self._reason = reason + + @property + def message(self): + """ + Gets the message of this V1Event. + human-readable description of the status of this operation + + :return: The message of this V1Event. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1Event. + human-readable description of the status of this operation + + :param message: The message of this V1Event. + :type: str + """ + self._message = message + + @property + def source(self): + """ + Gets the source of this V1Event. + component reporting this event + + :return: The source of this V1Event. + :rtype: V1EventSource + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1Event. + component reporting this event + + :param source: The source of this V1Event. + :type: V1EventSource + """ + self._source = source + + @property + def first_timestamp(self): + """ + Gets the first_timestamp of this V1Event. + the time at which the event was first recorded + + :return: The first_timestamp of this V1Event. + :rtype: str + """ + return self._first_timestamp + + @first_timestamp.setter + def first_timestamp(self, first_timestamp): + """ + Sets the first_timestamp of this V1Event. + the time at which the event was first recorded + + :param first_timestamp: The first_timestamp of this V1Event. + :type: str + """ + self._first_timestamp = first_timestamp + + @property + def last_timestamp(self): + """ + Gets the last_timestamp of this V1Event. + the time at which the most recent occurance of this event was recorded + + :return: The last_timestamp of this V1Event. + :rtype: str + """ + return self._last_timestamp + + @last_timestamp.setter + def last_timestamp(self, last_timestamp): + """ + Sets the last_timestamp of this V1Event. + the time at which the most recent occurance of this event was recorded + + :param last_timestamp: The last_timestamp of this V1Event. + :type: str + """ + self._last_timestamp = last_timestamp + + @property + def count(self): + """ + Gets the count of this V1Event. + the number of times this event has occurred + + :return: The count of this V1Event. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this V1Event. + the number of times this event has occurred + + :param count: The count of this V1Event. + :type: int + """ + self._count = count + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_event_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_event_list.py new file mode 100644 index 0000000000..fe6f807fdd --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_event_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1EventList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1Event]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1EventList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1EventList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1EventList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1EventList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1EventList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1EventList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1EventList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1EventList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1EventList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1EventList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1EventList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1EventList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1EventList. + list of events + + :return: The items of this V1EventList. + :rtype: list[V1Event] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1EventList. + list of events + + :param items: The items of this V1EventList. + :type: list[V1Event] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_event_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_event_source.py new file mode 100644 index 0000000000..82bfc159b4 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_event_source.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1EventSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'component': 'str', + 'host': 'str' + } + + self.attribute_map = { + 'component': 'component', + 'host': 'host' + } + + self._component = None + self._host = None + + @property + def component(self): + """ + Gets the component of this V1EventSource. + component that generated the event + + :return: The component of this V1EventSource. + :rtype: str + """ + return self._component + + @component.setter + def component(self, component): + """ + Sets the component of this V1EventSource. + component that generated the event + + :param component: The component of this V1EventSource. + :type: str + """ + self._component = component + + @property + def host(self): + """ + Gets the host of this V1EventSource. + name of the host where the event is generated + + :return: The host of this V1EventSource. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this V1EventSource. + name of the host where the event is generated + + :param host: The host of this V1EventSource. + :type: str + """ + self._host = host + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_exec_action.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_exec_action.py new file mode 100644 index 0000000000..d561882198 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_exec_action.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ExecAction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'command': 'list[str]' + } + + self.attribute_map = { + 'command': 'command' + } + + self._command = None + + @property + def command(self): + """ + Gets the command of this V1ExecAction. + command line to execute inside the container; working directory for the command is root ('/') in the container's file system; the command is exec'd, not run inside a shell; exit status of 0 is treated as live/healthy and non-zero is unhealthy + + :return: The command of this V1ExecAction. + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """ + Sets the command of this V1ExecAction. + command line to execute inside the container; working directory for the command is root ('/') in the container's file system; the command is exec'd, not run inside a shell; exit status of 0 is treated as live/healthy and non-zero is unhealthy + + :param command: The command of this V1ExecAction. + :type: list[str] + """ + self._command = command + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_finalizer_name.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_finalizer_name.py new file mode 100644 index 0000000000..715d131eb0 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_finalizer_name.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1FinalizerName(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + + } + + self.attribute_map = { + + } + + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_gce_persistent_disk_volume_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_gce_persistent_disk_volume_source.py new file mode 100644 index 0000000000..5fca715a21 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_gce_persistent_disk_volume_source.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1GCEPersistentDiskVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'pd_name': 'str', + 'fs_type': 'str', + 'partition': 'int', + 'read_only': 'bool' + } + + self.attribute_map = { + 'pd_name': 'pdName', + 'fs_type': 'fsType', + 'partition': 'partition', + 'read_only': 'readOnly' + } + + self._pd_name = None + self._fs_type = None + self._partition = None + self._read_only = None + + @property + def pd_name(self): + """ + Gets the pd_name of this V1GCEPersistentDiskVolumeSource. + unique name of the PD resource in GCE; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :return: The pd_name of this V1GCEPersistentDiskVolumeSource. + :rtype: str + """ + return self._pd_name + + @pd_name.setter + def pd_name(self, pd_name): + """ + Sets the pd_name of this V1GCEPersistentDiskVolumeSource. + unique name of the PD resource in GCE; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :param pd_name: The pd_name of this V1GCEPersistentDiskVolumeSource. + :type: str + """ + self._pd_name = pd_name + + @property + def fs_type(self): + """ + Gets the fs_type of this V1GCEPersistentDiskVolumeSource. + file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :return: The fs_type of this V1GCEPersistentDiskVolumeSource. + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """ + Sets the fs_type of this V1GCEPersistentDiskVolumeSource. + file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :param fs_type: The fs_type of this V1GCEPersistentDiskVolumeSource. + :type: str + """ + self._fs_type = fs_type + + @property + def partition(self): + """ + Gets the partition of this V1GCEPersistentDiskVolumeSource. + partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :return: The partition of this V1GCEPersistentDiskVolumeSource. + :rtype: int + """ + return self._partition + + @partition.setter + def partition(self, partition): + """ + Sets the partition of this V1GCEPersistentDiskVolumeSource. + partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :param partition: The partition of this V1GCEPersistentDiskVolumeSource. + :type: int + """ + self._partition = partition + + @property + def read_only(self): + """ + Gets the read_only of this V1GCEPersistentDiskVolumeSource. + read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :return: The read_only of this V1GCEPersistentDiskVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1GCEPersistentDiskVolumeSource. + read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :param read_only: The read_only of this V1GCEPersistentDiskVolumeSource. + :type: bool + """ + self._read_only = read_only + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_git_repo_volume_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_git_repo_volume_source.py new file mode 100644 index 0000000000..ff567d3ae2 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_git_repo_volume_source.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1GitRepoVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'repository': 'str', + 'revision': 'str' + } + + self.attribute_map = { + 'repository': 'repository', + 'revision': 'revision' + } + + self._repository = None + self._revision = None + + @property + def repository(self): + """ + Gets the repository of this V1GitRepoVolumeSource. + repository URL + + :return: The repository of this V1GitRepoVolumeSource. + :rtype: str + """ + return self._repository + + @repository.setter + def repository(self, repository): + """ + Sets the repository of this V1GitRepoVolumeSource. + repository URL + + :param repository: The repository of this V1GitRepoVolumeSource. + :type: str + """ + self._repository = repository + + @property + def revision(self): + """ + Gets the revision of this V1GitRepoVolumeSource. + commit hash for the specified revision + + :return: The revision of this V1GitRepoVolumeSource. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this V1GitRepoVolumeSource. + commit hash for the specified revision + + :param revision: The revision of this V1GitRepoVolumeSource. + :type: str + """ + self._revision = revision + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_glusterfs_volume_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_glusterfs_volume_source.py new file mode 100644 index 0000000000..49b0b4628b --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_glusterfs_volume_source.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1GlusterfsVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'endpoints': 'str', + 'path': 'str', + 'read_only': 'bool' + } + + self.attribute_map = { + 'endpoints': 'endpoints', + 'path': 'path', + 'read_only': 'readOnly' + } + + self._endpoints = None + self._path = None + self._read_only = None + + @property + def endpoints(self): + """ + Gets the endpoints of this V1GlusterfsVolumeSource. + gluster hosts endpoints name; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + + :return: The endpoints of this V1GlusterfsVolumeSource. + :rtype: str + """ + return self._endpoints + + @endpoints.setter + def endpoints(self, endpoints): + """ + Sets the endpoints of this V1GlusterfsVolumeSource. + gluster hosts endpoints name; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + + :param endpoints: The endpoints of this V1GlusterfsVolumeSource. + :type: str + """ + self._endpoints = endpoints + + @property + def path(self): + """ + Gets the path of this V1GlusterfsVolumeSource. + path to gluster volume; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + + :return: The path of this V1GlusterfsVolumeSource. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1GlusterfsVolumeSource. + path to gluster volume; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + + :param path: The path of this V1GlusterfsVolumeSource. + :type: str + """ + self._path = path + + @property + def read_only(self): + """ + Gets the read_only of this V1GlusterfsVolumeSource. + glusterfs volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + + :return: The read_only of this V1GlusterfsVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1GlusterfsVolumeSource. + glusterfs volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod + + :param read_only: The read_only of this V1GlusterfsVolumeSource. + :type: bool + """ + self._read_only = read_only + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_handler.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_handler.py new file mode 100644 index 0000000000..9d5a7aa699 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_handler.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Handler(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + '_exec': 'V1ExecAction', + 'http_get': 'V1HTTPGetAction', + 'tcp_socket': 'V1TCPSocketAction' + } + + self.attribute_map = { + '_exec': 'exec', + 'http_get': 'httpGet', + 'tcp_socket': 'tcpSocket' + } + + self.__exec = None + self._http_get = None + self._tcp_socket = None + + @property + def _exec(self): + """ + Gets the _exec of this V1Handler. + exec-based handler + + :return: The _exec of this V1Handler. + :rtype: V1ExecAction + """ + return self.__exec + + @_exec.setter + def _exec(self, _exec): + """ + Sets the _exec of this V1Handler. + exec-based handler + + :param _exec: The _exec of this V1Handler. + :type: V1ExecAction + """ + self.__exec = _exec + + @property + def http_get(self): + """ + Gets the http_get of this V1Handler. + HTTP-based handler + + :return: The http_get of this V1Handler. + :rtype: V1HTTPGetAction + """ + return self._http_get + + @http_get.setter + def http_get(self, http_get): + """ + Sets the http_get of this V1Handler. + HTTP-based handler + + :param http_get: The http_get of this V1Handler. + :type: V1HTTPGetAction + """ + self._http_get = http_get + + @property + def tcp_socket(self): + """ + Gets the tcp_socket of this V1Handler. + TCP-based handler; TCP hooks not yet supported + + :return: The tcp_socket of this V1Handler. + :rtype: V1TCPSocketAction + """ + return self._tcp_socket + + @tcp_socket.setter + def tcp_socket(self, tcp_socket): + """ + Sets the tcp_socket of this V1Handler. + TCP-based handler; TCP hooks not yet supported + + :param tcp_socket: The tcp_socket of this V1Handler. + :type: V1TCPSocketAction + """ + self._tcp_socket = tcp_socket + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_host_path_volume_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_host_path_volume_source.py new file mode 100644 index 0000000000..81113c29a5 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_host_path_volume_source.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1HostPathVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'path': 'str' + } + + self.attribute_map = { + 'path': 'path' + } + + self._path = None + + @property + def path(self): + """ + Gets the path of this V1HostPathVolumeSource. + path of the directory on the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + + :return: The path of this V1HostPathVolumeSource. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1HostPathVolumeSource. + path of the directory on the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + + :param path: The path of this V1HostPathVolumeSource. + :type: str + """ + self._path = path + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_http_get_action.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_http_get_action.py new file mode 100644 index 0000000000..427245f318 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_http_get_action.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1HTTPGetAction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'path': 'str', + 'port': 'str', + 'host': 'str', + 'scheme': 'str' + } + + self.attribute_map = { + 'path': 'path', + 'port': 'port', + 'host': 'host', + 'scheme': 'scheme' + } + + self._path = None + self._port = None + self._host = None + self._scheme = None + + @property + def path(self): + """ + Gets the path of this V1HTTPGetAction. + path to access on the HTTP server + + :return: The path of this V1HTTPGetAction. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1HTTPGetAction. + path to access on the HTTP server + + :param path: The path of this V1HTTPGetAction. + :type: str + """ + self._path = path + + @property + def port(self): + """ + Gets the port of this V1HTTPGetAction. + number or name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME + + :return: The port of this V1HTTPGetAction. + :rtype: str + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1HTTPGetAction. + number or name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME + + :param port: The port of this V1HTTPGetAction. + :type: str + """ + self._port = port + + @property + def host(self): + """ + Gets the host of this V1HTTPGetAction. + hostname to connect to; defaults to pod IP + + :return: The host of this V1HTTPGetAction. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this V1HTTPGetAction. + hostname to connect to; defaults to pod IP + + :param host: The host of this V1HTTPGetAction. + :type: str + """ + self._host = host + + @property + def scheme(self): + """ + Gets the scheme of this V1HTTPGetAction. + scheme to connect with, must be HTTP or HTTPS, defaults to HTTP + + :return: The scheme of this V1HTTPGetAction. + :rtype: str + """ + return self._scheme + + @scheme.setter + def scheme(self, scheme): + """ + Sets the scheme of this V1HTTPGetAction. + scheme to connect with, must be HTTP or HTTPS, defaults to HTTP + + :param scheme: The scheme of this V1HTTPGetAction. + :type: str + """ + self._scheme = scheme + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_iscsi_volume_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_iscsi_volume_source.py new file mode 100644 index 0000000000..e4a73173f8 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_iscsi_volume_source.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ISCSIVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'target_portal': 'str', + 'iqn': 'str', + 'lun': 'int', + 'fs_type': 'str', + 'read_only': 'bool' + } + + self.attribute_map = { + 'target_portal': 'targetPortal', + 'iqn': 'iqn', + 'lun': 'lun', + 'fs_type': 'fsType', + 'read_only': 'readOnly' + } + + self._target_portal = None + self._iqn = None + self._lun = None + self._fs_type = None + self._read_only = None + + @property + def target_portal(self): + """ + Gets the target_portal of this V1ISCSIVolumeSource. + iSCSI target portal + + :return: The target_portal of this V1ISCSIVolumeSource. + :rtype: str + """ + return self._target_portal + + @target_portal.setter + def target_portal(self, target_portal): + """ + Sets the target_portal of this V1ISCSIVolumeSource. + iSCSI target portal + + :param target_portal: The target_portal of this V1ISCSIVolumeSource. + :type: str + """ + self._target_portal = target_portal + + @property + def iqn(self): + """ + Gets the iqn of this V1ISCSIVolumeSource. + iSCSI Qualified Name + + :return: The iqn of this V1ISCSIVolumeSource. + :rtype: str + """ + return self._iqn + + @iqn.setter + def iqn(self, iqn): + """ + Sets the iqn of this V1ISCSIVolumeSource. + iSCSI Qualified Name + + :param iqn: The iqn of this V1ISCSIVolumeSource. + :type: str + """ + self._iqn = iqn + + @property + def lun(self): + """ + Gets the lun of this V1ISCSIVolumeSource. + iscsi target lun number + + :return: The lun of this V1ISCSIVolumeSource. + :rtype: int + """ + return self._lun + + @lun.setter + def lun(self, lun): + """ + Sets the lun of this V1ISCSIVolumeSource. + iscsi target lun number + + :param lun: The lun of this V1ISCSIVolumeSource. + :type: int + """ + self._lun = lun + + @property + def fs_type(self): + """ + Gets the fs_type of this V1ISCSIVolumeSource. + file system type to mount, such as ext4, xfs, ntfs + + :return: The fs_type of this V1ISCSIVolumeSource. + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """ + Sets the fs_type of this V1ISCSIVolumeSource. + file system type to mount, such as ext4, xfs, ntfs + + :param fs_type: The fs_type of this V1ISCSIVolumeSource. + :type: str + """ + self._fs_type = fs_type + + @property + def read_only(self): + """ + Gets the read_only of this V1ISCSIVolumeSource. + read-only if true, read-write otherwise (false or unspecified) + + :return: The read_only of this V1ISCSIVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1ISCSIVolumeSource. + read-only if true, read-write otherwise (false or unspecified) + + :param read_only: The read_only of this V1ISCSIVolumeSource. + :type: bool + """ + self._read_only = read_only + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_lifecycle.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_lifecycle.py new file mode 100644 index 0000000000..5d88fb698a --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_lifecycle.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Lifecycle(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'post_start': 'V1Handler', + 'pre_stop': 'V1Handler' + } + + self.attribute_map = { + 'post_start': 'postStart', + 'pre_stop': 'preStop' + } + + self._post_start = None + self._pre_stop = None + + @property + def post_start(self): + """ + Gets the post_start of this V1Lifecycle. + called immediately after a container is started; if the handler fails, the container is terminated and restarted according to its restart policy; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details + + :return: The post_start of this V1Lifecycle. + :rtype: V1Handler + """ + return self._post_start + + @post_start.setter + def post_start(self, post_start): + """ + Sets the post_start of this V1Lifecycle. + called immediately after a container is started; if the handler fails, the container is terminated and restarted according to its restart policy; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details + + :param post_start: The post_start of this V1Lifecycle. + :type: V1Handler + """ + self._post_start = post_start + + @property + def pre_stop(self): + """ + Gets the pre_stop of this V1Lifecycle. + called before a container is terminated; the container is terminated after the handler completes; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details + + :return: The pre_stop of this V1Lifecycle. + :rtype: V1Handler + """ + return self._pre_stop + + @pre_stop.setter + def pre_stop(self, pre_stop): + """ + Sets the pre_stop of this V1Lifecycle. + called before a container is terminated; the container is terminated after the handler completes; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details + + :param pre_stop: The pre_stop of this V1Lifecycle. + :type: V1Handler + """ + self._pre_stop = pre_stop + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range.py new file mode 100644 index 0000000000..f97c494e21 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1LimitRange(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1LimitRangeSpec' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'spec': 'spec' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._spec = None + + @property + def kind(self): + """ + Gets the kind of this V1LimitRange. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1LimitRange. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1LimitRange. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1LimitRange. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1LimitRange. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1LimitRange. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1LimitRange. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1LimitRange. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1LimitRange. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1LimitRange. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1LimitRange. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1LimitRange. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1LimitRange. + spec defines the limits enforced; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The spec of this V1LimitRange. + :rtype: V1LimitRangeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1LimitRange. + spec defines the limits enforced; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param spec: The spec of this V1LimitRange. + :type: V1LimitRangeSpec + """ + self._spec = spec + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range_item.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range_item.py new file mode 100644 index 0000000000..368728cc03 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range_item.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1LimitRangeItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'type': 'str', + 'max': 'str', + 'min': 'str', + 'default': 'str' + } + + self.attribute_map = { + 'type': 'type', + 'max': 'max', + 'min': 'min', + 'default': 'default' + } + + self._type = None + self._max = None + self._min = None + self._default = None + + @property + def type(self): + """ + Gets the type of this V1LimitRangeItem. + type of resource that this limit applies to + + :return: The type of this V1LimitRangeItem. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1LimitRangeItem. + type of resource that this limit applies to + + :param type: The type of this V1LimitRangeItem. + :type: str + """ + self._type = type + + @property + def max(self): + """ + Gets the max of this V1LimitRangeItem. + max usage constraints on this kind by resource name + + :return: The max of this V1LimitRangeItem. + :rtype: str + """ + return self._max + + @max.setter + def max(self, max): + """ + Sets the max of this V1LimitRangeItem. + max usage constraints on this kind by resource name + + :param max: The max of this V1LimitRangeItem. + :type: str + """ + self._max = max + + @property + def min(self): + """ + Gets the min of this V1LimitRangeItem. + min usage constraints on this kind by resource name + + :return: The min of this V1LimitRangeItem. + :rtype: str + """ + return self._min + + @min.setter + def min(self, min): + """ + Sets the min of this V1LimitRangeItem. + min usage constraints on this kind by resource name + + :param min: The min of this V1LimitRangeItem. + :type: str + """ + self._min = min + + @property + def default(self): + """ + Gets the default of this V1LimitRangeItem. + default values on this kind by resource name if omitted + + :return: The default of this V1LimitRangeItem. + :rtype: str + """ + return self._default + + @default.setter + def default(self, default): + """ + Sets the default of this V1LimitRangeItem. + default values on this kind by resource name if omitted + + :param default: The default of this V1LimitRangeItem. + :type: str + """ + self._default = default + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range_list.py new file mode 100644 index 0000000000..840a34edf5 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1LimitRangeList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1LimitRange]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1LimitRangeList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1LimitRangeList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1LimitRangeList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1LimitRangeList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1LimitRangeList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1LimitRangeList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1LimitRangeList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1LimitRangeList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1LimitRangeList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1LimitRangeList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1LimitRangeList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1LimitRangeList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1LimitRangeList. + items is a list of LimitRange objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_limit_range.md + + :return: The items of this V1LimitRangeList. + :rtype: list[V1LimitRange] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1LimitRangeList. + items is a list of LimitRange objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_limit_range.md + + :param items: The items of this V1LimitRangeList. + :type: list[V1LimitRange] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range_spec.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range_spec.py new file mode 100644 index 0000000000..e662a7c841 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_limit_range_spec.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1LimitRangeSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'limits': 'list[V1LimitRangeItem]' + } + + self.attribute_map = { + 'limits': 'limits' + } + + self._limits = None + + @property + def limits(self): + """ + Gets the limits of this V1LimitRangeSpec. + limits is the list of LimitRangeItem objects that are enforced + + :return: The limits of this V1LimitRangeSpec. + :rtype: list[V1LimitRangeItem] + """ + return self._limits + + @limits.setter + def limits(self, limits): + """ + Sets the limits of this V1LimitRangeSpec. + limits is the list of LimitRangeItem objects that are enforced + + :param limits: The limits of this V1LimitRangeSpec. + :type: list[V1LimitRangeItem] + """ + self._limits = limits + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_list_meta.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_list_meta.py new file mode 100644 index 0000000000..673fc38426 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_list_meta.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ListMeta(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'self_link': 'str', + 'resource_version': 'str' + } + + self.attribute_map = { + 'self_link': 'selfLink', + 'resource_version': 'resourceVersion' + } + + self._self_link = None + self._resource_version = None + + @property + def self_link(self): + """ + Gets the self_link of this V1ListMeta. + URL for the object; populated by the system, read-only + + :return: The self_link of this V1ListMeta. + :rtype: str + """ + return self._self_link + + @self_link.setter + def self_link(self, self_link): + """ + Sets the self_link of this V1ListMeta. + URL for the object; populated by the system, read-only + + :param self_link: The self_link of this V1ListMeta. + :type: str + """ + self._self_link = self_link + + @property + def resource_version(self): + """ + Gets the resource_version of this V1ListMeta. + string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + + :return: The resource_version of this V1ListMeta. + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """ + Sets the resource_version of this V1ListMeta. + string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + + :param resource_version: The resource_version of this V1ListMeta. + :type: str + """ + self._resource_version = resource_version + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_load_balancer_ingress.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_load_balancer_ingress.py new file mode 100644 index 0000000000..10e503a7e2 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_load_balancer_ingress.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1LoadBalancerIngress(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ip': 'str', + 'hostname': 'str' + } + + self.attribute_map = { + 'ip': 'ip', + 'hostname': 'hostname' + } + + self._ip = None + self._hostname = None + + @property + def ip(self): + """ + Gets the ip of this V1LoadBalancerIngress. + IP address of ingress point + + :return: The ip of this V1LoadBalancerIngress. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """ + Sets the ip of this V1LoadBalancerIngress. + IP address of ingress point + + :param ip: The ip of this V1LoadBalancerIngress. + :type: str + """ + self._ip = ip + + @property + def hostname(self): + """ + Gets the hostname of this V1LoadBalancerIngress. + hostname of ingress point + + :return: The hostname of this V1LoadBalancerIngress. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this V1LoadBalancerIngress. + hostname of ingress point + + :param hostname: The hostname of this V1LoadBalancerIngress. + :type: str + """ + self._hostname = hostname + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_load_balancer_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_load_balancer_status.py new file mode 100644 index 0000000000..a323138449 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_load_balancer_status.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1LoadBalancerStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ingress': 'list[V1LoadBalancerIngress]' + } + + self.attribute_map = { + 'ingress': 'ingress' + } + + self._ingress = None + + @property + def ingress(self): + """ + Gets the ingress of this V1LoadBalancerStatus. + load-balancer ingress points + + :return: The ingress of this V1LoadBalancerStatus. + :rtype: list[V1LoadBalancerIngress] + """ + return self._ingress + + @ingress.setter + def ingress(self, ingress): + """ + Sets the ingress of this V1LoadBalancerStatus. + load-balancer ingress points + + :param ingress: The ingress of this V1LoadBalancerStatus. + :type: list[V1LoadBalancerIngress] + """ + self._ingress = ingress + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_local_object_reference.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_local_object_reference.py new file mode 100644 index 0000000000..07d66d2d69 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_local_object_reference.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1LocalObjectReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str' + } + + self.attribute_map = { + 'name': 'name' + } + + self._name = None + + @property + def name(self): + """ + Gets the name of this V1LocalObjectReference. + name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + + :return: The name of this V1LocalObjectReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1LocalObjectReference. + name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + + :param name: The name of this V1LocalObjectReference. + :type: str + """ + self._name = name + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace.py new file mode 100644 index 0000000000..5f5738b759 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Namespace(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1NamespaceSpec', + 'status': 'V1NamespaceStatus' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._spec = None + self._status = None + + @property + def kind(self): + """ + Gets the kind of this V1Namespace. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1Namespace. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Namespace. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1Namespace. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1Namespace. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1Namespace. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Namespace. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1Namespace. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1Namespace. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1Namespace. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Namespace. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1Namespace. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Namespace. + spec defines the behavior of the Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The spec of this V1Namespace. + :rtype: V1NamespaceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Namespace. + spec defines the behavior of the Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param spec: The spec of this V1Namespace. + :type: V1NamespaceSpec + """ + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Namespace. + status describes the current status of a Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The status of this V1Namespace. + :rtype: V1NamespaceStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Namespace. + status describes the current status of a Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param status: The status of this V1Namespace. + :type: V1NamespaceStatus + """ + self._status = status + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace_list.py new file mode 100644 index 0000000000..cae345c792 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1NamespaceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1Namespace]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1NamespaceList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1NamespaceList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1NamespaceList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1NamespaceList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1NamespaceList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1NamespaceList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1NamespaceList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1NamespaceList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1NamespaceList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1NamespaceList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1NamespaceList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1NamespaceList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1NamespaceList. + items is the list of Namespace objects in the list; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + + :return: The items of this V1NamespaceList. + :rtype: list[V1Namespace] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1NamespaceList. + items is the list of Namespace objects in the list; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + + :param items: The items of this V1NamespaceList. + :type: list[V1Namespace] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace_spec.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace_spec.py new file mode 100644 index 0000000000..dceaee4a22 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace_spec.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1NamespaceSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'finalizers': 'list[V1FinalizerName]' + } + + self.attribute_map = { + 'finalizers': 'finalizers' + } + + self._finalizers = None + + @property + def finalizers(self): + """ + Gets the finalizers of this V1NamespaceSpec. + an opaque list of values that must be empty to permanently remove object from storage; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#finalizers + + :return: The finalizers of this V1NamespaceSpec. + :rtype: list[V1FinalizerName] + """ + return self._finalizers + + @finalizers.setter + def finalizers(self, finalizers): + """ + Sets the finalizers of this V1NamespaceSpec. + an opaque list of values that must be empty to permanently remove object from storage; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#finalizers + + :param finalizers: The finalizers of this V1NamespaceSpec. + :type: list[V1FinalizerName] + """ + self._finalizers = finalizers + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace_status.py new file mode 100644 index 0000000000..280d76adea --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_namespace_status.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1NamespaceStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'phase': 'str' + } + + self.attribute_map = { + 'phase': 'phase' + } + + self._phase = None + + @property + def phase(self): + """ + Gets the phase of this V1NamespaceStatus. + phase is the current lifecycle phase of the namespace; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#phases + + :return: The phase of this V1NamespaceStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1NamespaceStatus. + phase is the current lifecycle phase of the namespace; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#phases + + :param phase: The phase of this V1NamespaceStatus. + :type: str + """ + self._phase = phase + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_nfs_volume_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_nfs_volume_source.py new file mode 100644 index 0000000000..ceac2c7c8d --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_nfs_volume_source.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1NFSVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'server': 'str', + 'path': 'str', + 'read_only': 'bool' + } + + self.attribute_map = { + 'server': 'server', + 'path': 'path', + 'read_only': 'readOnly' + } + + self._server = None + self._path = None + self._read_only = None + + @property + def server(self): + """ + Gets the server of this V1NFSVolumeSource. + the hostname or IP address of the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + + :return: The server of this V1NFSVolumeSource. + :rtype: str + """ + return self._server + + @server.setter + def server(self, server): + """ + Sets the server of this V1NFSVolumeSource. + the hostname or IP address of the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + + :param server: The server of this V1NFSVolumeSource. + :type: str + """ + self._server = server + + @property + def path(self): + """ + Gets the path of this V1NFSVolumeSource. + the path that is exported by the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + + :return: The path of this V1NFSVolumeSource. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1NFSVolumeSource. + the path that is exported by the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + + :param path: The path of this V1NFSVolumeSource. + :type: str + """ + self._path = path + + @property + def read_only(self): + """ + Gets the read_only of this V1NFSVolumeSource. + forces the NFS export to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + + :return: The read_only of this V1NFSVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1NFSVolumeSource. + forces the NFS export to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + + :param read_only: The read_only of this V1NFSVolumeSource. + :type: bool + """ + self._read_only = read_only + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_node.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_node.py new file mode 100644 index 0000000000..c77deab5f9 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_node.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Node(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1NodeSpec', + 'status': 'V1NodeStatus' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._spec = None + self._status = None + + @property + def kind(self): + """ + Gets the kind of this V1Node. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1Node. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Node. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1Node. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1Node. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1Node. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Node. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1Node. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1Node. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1Node. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Node. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1Node. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Node. + specification of a node; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The spec of this V1Node. + :rtype: V1NodeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Node. + specification of a node; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param spec: The spec of this V1Node. + :type: V1NodeSpec + """ + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Node. + most recently observed status of the node; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The status of this V1Node. + :rtype: V1NodeStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Node. + most recently observed status of the node; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param status: The status of this V1Node. + :type: V1NodeStatus + """ + self._status = status + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_node_address.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_address.py new file mode 100644 index 0000000000..d82ce8b1e7 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_address.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1NodeAddress(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'type': 'str', + 'address': 'str' + } + + self.attribute_map = { + 'type': 'type', + 'address': 'address' + } + + self._type = None + self._address = None + + @property + def type(self): + """ + Gets the type of this V1NodeAddress. + node address type, one of Hostname, ExternalIP or InternalIP + + :return: The type of this V1NodeAddress. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1NodeAddress. + node address type, one of Hostname, ExternalIP or InternalIP + + :param type: The type of this V1NodeAddress. + :type: str + """ + self._type = type + + @property + def address(self): + """ + Gets the address of this V1NodeAddress. + the node address + + :return: The address of this V1NodeAddress. + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """ + Sets the address of this V1NodeAddress. + the node address + + :param address: The address of this V1NodeAddress. + :type: str + """ + self._address = address + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_node_condition.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_condition.py new file mode 100644 index 0000000000..cb4fb1664c --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_condition.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1NodeCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'type': 'str', + 'status': 'str', + 'last_heartbeat_time': 'str', + 'last_transition_time': 'str', + 'reason': 'str', + 'message': 'str' + } + + self.attribute_map = { + 'type': 'type', + 'status': 'status', + 'last_heartbeat_time': 'lastHeartbeatTime', + 'last_transition_time': 'lastTransitionTime', + 'reason': 'reason', + 'message': 'message' + } + + self._type = None + self._status = None + self._last_heartbeat_time = None + self._last_transition_time = None + self._reason = None + self._message = None + + @property + def type(self): + """ + Gets the type of this V1NodeCondition. + type of node condition, currently only Ready + + :return: The type of this V1NodeCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1NodeCondition. + type of node condition, currently only Ready + + :param type: The type of this V1NodeCondition. + :type: str + """ + self._type = type + + @property + def status(self): + """ + Gets the status of this V1NodeCondition. + status of the condition, one of True, False, Unknown + + :return: The status of this V1NodeCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1NodeCondition. + status of the condition, one of True, False, Unknown + + :param status: The status of this V1NodeCondition. + :type: str + """ + self._status = status + + @property + def last_heartbeat_time(self): + """ + Gets the last_heartbeat_time of this V1NodeCondition. + last time we got an update on a given condition + + :return: The last_heartbeat_time of this V1NodeCondition. + :rtype: str + """ + return self._last_heartbeat_time + + @last_heartbeat_time.setter + def last_heartbeat_time(self, last_heartbeat_time): + """ + Sets the last_heartbeat_time of this V1NodeCondition. + last time we got an update on a given condition + + :param last_heartbeat_time: The last_heartbeat_time of this V1NodeCondition. + :type: str + """ + self._last_heartbeat_time = last_heartbeat_time + + @property + def last_transition_time(self): + """ + Gets the last_transition_time of this V1NodeCondition. + last time the condition transit from one status to another + + :return: The last_transition_time of this V1NodeCondition. + :rtype: str + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """ + Sets the last_transition_time of this V1NodeCondition. + last time the condition transit from one status to another + + :param last_transition_time: The last_transition_time of this V1NodeCondition. + :type: str + """ + self._last_transition_time = last_transition_time + + @property + def reason(self): + """ + Gets the reason of this V1NodeCondition. + (brief) reason for the condition's last transition + + :return: The reason of this V1NodeCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1NodeCondition. + (brief) reason for the condition's last transition + + :param reason: The reason of this V1NodeCondition. + :type: str + """ + self._reason = reason + + @property + def message(self): + """ + Gets the message of this V1NodeCondition. + human readable message indicating details about last transition + + :return: The message of this V1NodeCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1NodeCondition. + human readable message indicating details about last transition + + :param message: The message of this V1NodeCondition. + :type: str + """ + self._message = message + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_node_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_list.py new file mode 100644 index 0000000000..5d48003a6b --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1NodeList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1Node]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1NodeList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1NodeList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1NodeList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1NodeList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1NodeList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1NodeList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1NodeList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1NodeList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1NodeList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1NodeList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1NodeList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1NodeList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1NodeList. + list of nodes + + :return: The items of this V1NodeList. + :rtype: list[V1Node] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1NodeList. + list of nodes + + :param items: The items of this V1NodeList. + :type: list[V1Node] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_node_spec.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_spec.py new file mode 100644 index 0000000000..9daa958796 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_spec.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1NodeSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'pod_cidr': 'str', + 'external_id': 'str', + 'provider_id': 'str', + 'unschedulable': 'bool' + } + + self.attribute_map = { + 'pod_cidr': 'podCIDR', + 'external_id': 'externalID', + 'provider_id': 'providerID', + 'unschedulable': 'unschedulable' + } + + self._pod_cidr = None + self._external_id = None + self._provider_id = None + self._unschedulable = None + + @property + def pod_cidr(self): + """ + Gets the pod_cidr of this V1NodeSpec. + pod IP range assigned to the node + + :return: The pod_cidr of this V1NodeSpec. + :rtype: str + """ + return self._pod_cidr + + @pod_cidr.setter + def pod_cidr(self, pod_cidr): + """ + Sets the pod_cidr of this V1NodeSpec. + pod IP range assigned to the node + + :param pod_cidr: The pod_cidr of this V1NodeSpec. + :type: str + """ + self._pod_cidr = pod_cidr + + @property + def external_id(self): + """ + Gets the external_id of this V1NodeSpec. + deprecated. External ID assigned to the node by some machine database (e.g. a cloud provider). Defaults to node name when empty. + + :return: The external_id of this V1NodeSpec. + :rtype: str + """ + return self._external_id + + @external_id.setter + def external_id(self, external_id): + """ + Sets the external_id of this V1NodeSpec. + deprecated. External ID assigned to the node by some machine database (e.g. a cloud provider). Defaults to node name when empty. + + :param external_id: The external_id of this V1NodeSpec. + :type: str + """ + self._external_id = external_id + + @property + def provider_id(self): + """ + Gets the provider_id of this V1NodeSpec. + ID of the node assigned by the cloud provider in the format: :// + + :return: The provider_id of this V1NodeSpec. + :rtype: str + """ + return self._provider_id + + @provider_id.setter + def provider_id(self, provider_id): + """ + Sets the provider_id of this V1NodeSpec. + ID of the node assigned by the cloud provider in the format: :// + + :param provider_id: The provider_id of this V1NodeSpec. + :type: str + """ + self._provider_id = provider_id + + @property + def unschedulable(self): + """ + Gets the unschedulable of this V1NodeSpec. + disable pod scheduling on the node; see http://releases.k8s.io/v1.0.4/docs/node.md#manual-node-administration + + :return: The unschedulable of this V1NodeSpec. + :rtype: bool + """ + return self._unschedulable + + @unschedulable.setter + def unschedulable(self, unschedulable): + """ + Sets the unschedulable of this V1NodeSpec. + disable pod scheduling on the node; see http://releases.k8s.io/v1.0.4/docs/node.md#manual-node-administration + + :param unschedulable: The unschedulable of this V1NodeSpec. + :type: bool + """ + self._unschedulable = unschedulable + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_node_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_status.py new file mode 100644 index 0000000000..848293fd33 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_status.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1NodeStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'capacity': 'str', + 'phase': 'str', + 'conditions': 'list[V1NodeCondition]', + 'addresses': 'list[V1NodeAddress]', + 'node_info': 'V1NodeSystemInfo' + } + + self.attribute_map = { + 'capacity': 'capacity', + 'phase': 'phase', + 'conditions': 'conditions', + 'addresses': 'addresses', + 'node_info': 'nodeInfo' + } + + self._capacity = None + self._phase = None + self._conditions = None + self._addresses = None + self._node_info = None + + @property + def capacity(self): + """ + Gets the capacity of this V1NodeStatus. + compute resource capacity of the node; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md + + :return: The capacity of this V1NodeStatus. + :rtype: str + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this V1NodeStatus. + compute resource capacity of the node; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md + + :param capacity: The capacity of this V1NodeStatus. + :type: str + """ + self._capacity = capacity + + @property + def phase(self): + """ + Gets the phase of this V1NodeStatus. + most recently observed lifecycle phase of the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-phase + + :return: The phase of this V1NodeStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1NodeStatus. + most recently observed lifecycle phase of the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-phase + + :param phase: The phase of this V1NodeStatus. + :type: str + """ + self._phase = phase + + @property + def conditions(self): + """ + Gets the conditions of this V1NodeStatus. + list of node conditions observed; see http://releases.k8s.io/v1.0.4/docs/node.md#node-condition + + :return: The conditions of this V1NodeStatus. + :rtype: list[V1NodeCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1NodeStatus. + list of node conditions observed; see http://releases.k8s.io/v1.0.4/docs/node.md#node-condition + + :param conditions: The conditions of this V1NodeStatus. + :type: list[V1NodeCondition] + """ + self._conditions = conditions + + @property + def addresses(self): + """ + Gets the addresses of this V1NodeStatus. + list of addresses reachable to the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-addresses + + :return: The addresses of this V1NodeStatus. + :rtype: list[V1NodeAddress] + """ + return self._addresses + + @addresses.setter + def addresses(self, addresses): + """ + Sets the addresses of this V1NodeStatus. + list of addresses reachable to the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-addresses + + :param addresses: The addresses of this V1NodeStatus. + :type: list[V1NodeAddress] + """ + self._addresses = addresses + + @property + def node_info(self): + """ + Gets the node_info of this V1NodeStatus. + set of ids/uuids to uniquely identify the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-info + + :return: The node_info of this V1NodeStatus. + :rtype: V1NodeSystemInfo + """ + return self._node_info + + @node_info.setter + def node_info(self, node_info): + """ + Sets the node_info of this V1NodeStatus. + set of ids/uuids to uniquely identify the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-info + + :param node_info: The node_info of this V1NodeStatus. + :type: V1NodeSystemInfo + """ + self._node_info = node_info + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_node_system_info.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_system_info.py new file mode 100644 index 0000000000..bc50459853 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_node_system_info.py @@ -0,0 +1,274 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1NodeSystemInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'machine_id': 'str', + 'system_uuid': 'str', + 'boot_id': 'str', + 'kernel_version': 'str', + 'os_image': 'str', + 'container_runtime_version': 'str', + 'kubelet_version': 'str', + 'kube_proxy_version': 'str' + } + + self.attribute_map = { + 'machine_id': 'machineID', + 'system_uuid': 'systemUUID', + 'boot_id': 'bootID', + 'kernel_version': 'kernelVersion', + 'os_image': 'osImage', + 'container_runtime_version': 'containerRuntimeVersion', + 'kubelet_version': 'kubeletVersion', + 'kube_proxy_version': 'kubeProxyVersion' + } + + self._machine_id = None + self._system_uuid = None + self._boot_id = None + self._kernel_version = None + self._os_image = None + self._container_runtime_version = None + self._kubelet_version = None + self._kube_proxy_version = None + + @property + def machine_id(self): + """ + Gets the machine_id of this V1NodeSystemInfo. + machine-id reported by the node + + :return: The machine_id of this V1NodeSystemInfo. + :rtype: str + """ + return self._machine_id + + @machine_id.setter + def machine_id(self, machine_id): + """ + Sets the machine_id of this V1NodeSystemInfo. + machine-id reported by the node + + :param machine_id: The machine_id of this V1NodeSystemInfo. + :type: str + """ + self._machine_id = machine_id + + @property + def system_uuid(self): + """ + Gets the system_uuid of this V1NodeSystemInfo. + system-uuid reported by the node + + :return: The system_uuid of this V1NodeSystemInfo. + :rtype: str + """ + return self._system_uuid + + @system_uuid.setter + def system_uuid(self, system_uuid): + """ + Sets the system_uuid of this V1NodeSystemInfo. + system-uuid reported by the node + + :param system_uuid: The system_uuid of this V1NodeSystemInfo. + :type: str + """ + self._system_uuid = system_uuid + + @property + def boot_id(self): + """ + Gets the boot_id of this V1NodeSystemInfo. + boot id is the boot-id reported by the node + + :return: The boot_id of this V1NodeSystemInfo. + :rtype: str + """ + return self._boot_id + + @boot_id.setter + def boot_id(self, boot_id): + """ + Sets the boot_id of this V1NodeSystemInfo. + boot id is the boot-id reported by the node + + :param boot_id: The boot_id of this V1NodeSystemInfo. + :type: str + """ + self._boot_id = boot_id + + @property + def kernel_version(self): + """ + Gets the kernel_version of this V1NodeSystemInfo. + Kernel version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64) + + :return: The kernel_version of this V1NodeSystemInfo. + :rtype: str + """ + return self._kernel_version + + @kernel_version.setter + def kernel_version(self, kernel_version): + """ + Sets the kernel_version of this V1NodeSystemInfo. + Kernel version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64) + + :param kernel_version: The kernel_version of this V1NodeSystemInfo. + :type: str + """ + self._kernel_version = kernel_version + + @property + def os_image(self): + """ + Gets the os_image of this V1NodeSystemInfo. + OS image used reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)) + + :return: The os_image of this V1NodeSystemInfo. + :rtype: str + """ + return self._os_image + + @os_image.setter + def os_image(self, os_image): + """ + Sets the os_image of this V1NodeSystemInfo. + OS image used reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)) + + :param os_image: The os_image of this V1NodeSystemInfo. + :type: str + """ + self._os_image = os_image + + @property + def container_runtime_version(self): + """ + Gets the container_runtime_version of this V1NodeSystemInfo. + Container runtime version reported by the node through runtime remote API (e.g. docker://1.5.0) + + :return: The container_runtime_version of this V1NodeSystemInfo. + :rtype: str + """ + return self._container_runtime_version + + @container_runtime_version.setter + def container_runtime_version(self, container_runtime_version): + """ + Sets the container_runtime_version of this V1NodeSystemInfo. + Container runtime version reported by the node through runtime remote API (e.g. docker://1.5.0) + + :param container_runtime_version: The container_runtime_version of this V1NodeSystemInfo. + :type: str + """ + self._container_runtime_version = container_runtime_version + + @property + def kubelet_version(self): + """ + Gets the kubelet_version of this V1NodeSystemInfo. + Kubelet version reported by the node + + :return: The kubelet_version of this V1NodeSystemInfo. + :rtype: str + """ + return self._kubelet_version + + @kubelet_version.setter + def kubelet_version(self, kubelet_version): + """ + Sets the kubelet_version of this V1NodeSystemInfo. + Kubelet version reported by the node + + :param kubelet_version: The kubelet_version of this V1NodeSystemInfo. + :type: str + """ + self._kubelet_version = kubelet_version + + @property + def kube_proxy_version(self): + """ + Gets the kube_proxy_version of this V1NodeSystemInfo. + Kube-proxy version reported by the node + + :return: The kube_proxy_version of this V1NodeSystemInfo. + :rtype: str + """ + return self._kube_proxy_version + + @kube_proxy_version.setter + def kube_proxy_version(self, kube_proxy_version): + """ + Sets the kube_proxy_version of this V1NodeSystemInfo. + Kube-proxy version reported by the node + + :param kube_proxy_version: The kube_proxy_version of this V1NodeSystemInfo. + :type: str + """ + self._kube_proxy_version = kube_proxy_version + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_object_field_selector.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_object_field_selector.py new file mode 100644 index 0000000000..d383835587 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_object_field_selector.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ObjectFieldSelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'api_version': 'str', + 'field_path': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'field_path': 'fieldPath' + } + + self._api_version = None + self._field_path = None + + @property + def api_version(self): + """ + Gets the api_version of this V1ObjectFieldSelector. + version of the schema that fieldPath is written in terms of; defaults to v1 + + :return: The api_version of this V1ObjectFieldSelector. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ObjectFieldSelector. + version of the schema that fieldPath is written in terms of; defaults to v1 + + :param api_version: The api_version of this V1ObjectFieldSelector. + :type: str + """ + self._api_version = api_version + + @property + def field_path(self): + """ + Gets the field_path of this V1ObjectFieldSelector. + path of the field to select in the specified API version + + :return: The field_path of this V1ObjectFieldSelector. + :rtype: str + """ + return self._field_path + + @field_path.setter + def field_path(self, field_path): + """ + Sets the field_path of this V1ObjectFieldSelector. + path of the field to select in the specified API version + + :param field_path: The field_path of this V1ObjectFieldSelector. + :type: str + """ + self._field_path = field_path + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_object_meta.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_object_meta.py new file mode 100644 index 0000000000..2cbb44b6df --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_object_meta.py @@ -0,0 +1,349 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ObjectMeta(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'generate_name': 'str', + 'namespace': 'str', + 'self_link': 'str', + 'uid': 'str', + 'resource_version': 'str', + 'generation': 'int', + 'creation_timestamp': 'str', + 'deletion_timestamp': 'str', + 'labels': 'str', + 'annotations': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'generate_name': 'generateName', + 'namespace': 'namespace', + 'self_link': 'selfLink', + 'uid': 'uid', + 'resource_version': 'resourceVersion', + 'generation': 'generation', + 'creation_timestamp': 'creationTimestamp', + 'deletion_timestamp': 'deletionTimestamp', + 'labels': 'labels', + 'annotations': 'annotations' + } + + self._name = None + self._generate_name = None + self._namespace = None + self._self_link = None + self._uid = None + self._resource_version = None + self._generation = None + self._creation_timestamp = None + self._deletion_timestamp = None + self._labels = None + self._annotations = None + + @property + def name(self): + """ + Gets the name of this V1ObjectMeta. + string that identifies an object. Must be unique within a namespace; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + + :return: The name of this V1ObjectMeta. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ObjectMeta. + string that identifies an object. Must be unique within a namespace; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + + :param name: The name of this V1ObjectMeta. + :type: str + """ + self._name = name + + @property + def generate_name(self): + """ + Gets the generate_name of this V1ObjectMeta. + an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#idempotency + + :return: The generate_name of this V1ObjectMeta. + :rtype: str + """ + return self._generate_name + + @generate_name.setter + def generate_name(self, generate_name): + """ + Sets the generate_name of this V1ObjectMeta. + an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#idempotency + + :param generate_name: The generate_name of this V1ObjectMeta. + :type: str + """ + self._generate_name = generate_name + + @property + def namespace(self): + """ + Gets the namespace of this V1ObjectMeta. + namespace of the object; must be a DNS_LABEL; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + + :return: The namespace of this V1ObjectMeta. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1ObjectMeta. + namespace of the object; must be a DNS_LABEL; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + + :param namespace: The namespace of this V1ObjectMeta. + :type: str + """ + self._namespace = namespace + + @property + def self_link(self): + """ + Gets the self_link of this V1ObjectMeta. + URL for the object; populated by the system, read-only + + :return: The self_link of this V1ObjectMeta. + :rtype: str + """ + return self._self_link + + @self_link.setter + def self_link(self, self_link): + """ + Sets the self_link of this V1ObjectMeta. + URL for the object; populated by the system, read-only + + :param self_link: The self_link of this V1ObjectMeta. + :type: str + """ + self._self_link = self_link + + @property + def uid(self): + """ + Gets the uid of this V1ObjectMeta. + unique UUID across space and time; populated by the system; read-only; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids + + :return: The uid of this V1ObjectMeta. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1ObjectMeta. + unique UUID across space and time; populated by the system; read-only; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids + + :param uid: The uid of this V1ObjectMeta. + :type: str + """ + self._uid = uid + + @property + def resource_version(self): + """ + Gets the resource_version of this V1ObjectMeta. + string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + + :return: The resource_version of this V1ObjectMeta. + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """ + Sets the resource_version of this V1ObjectMeta. + string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + + :param resource_version: The resource_version of this V1ObjectMeta. + :type: str + """ + self._resource_version = resource_version + + @property + def generation(self): + """ + Gets the generation of this V1ObjectMeta. + a sequence number representing a specific generation of the desired state; populated by the system; read-only + + :return: The generation of this V1ObjectMeta. + :rtype: int + """ + return self._generation + + @generation.setter + def generation(self, generation): + """ + Sets the generation of this V1ObjectMeta. + a sequence number representing a specific generation of the desired state; populated by the system; read-only + + :param generation: The generation of this V1ObjectMeta. + :type: int + """ + self._generation = generation + + @property + def creation_timestamp(self): + """ + Gets the creation_timestamp of this V1ObjectMeta. + RFC 3339 date and time at which the object was created; populated by the system, read-only; null for lists; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The creation_timestamp of this V1ObjectMeta. + :rtype: str + """ + return self._creation_timestamp + + @creation_timestamp.setter + def creation_timestamp(self, creation_timestamp): + """ + Sets the creation_timestamp of this V1ObjectMeta. + RFC 3339 date and time at which the object was created; populated by the system, read-only; null for lists; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param creation_timestamp: The creation_timestamp of this V1ObjectMeta. + :type: str + """ + self._creation_timestamp = creation_timestamp + + @property + def deletion_timestamp(self): + """ + Gets the deletion_timestamp of this V1ObjectMeta. + RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested, read-only; if not set, graceful deletion of the object has not been requested; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The deletion_timestamp of this V1ObjectMeta. + :rtype: str + """ + return self._deletion_timestamp + + @deletion_timestamp.setter + def deletion_timestamp(self, deletion_timestamp): + """ + Sets the deletion_timestamp of this V1ObjectMeta. + RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested, read-only; if not set, graceful deletion of the object has not been requested; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. + :type: str + """ + self._deletion_timestamp = deletion_timestamp + + @property + def labels(self): + """ + Gets the labels of this V1ObjectMeta. + map of string keys and values that can be used to organize and categorize objects; may match selectors of replication controllers and services; see http://releases.k8s.io/v1.0.4/docs/labels.md + + :return: The labels of this V1ObjectMeta. + :rtype: str + """ + return self._labels + + @labels.setter + def labels(self, labels): + """ + Sets the labels of this V1ObjectMeta. + map of string keys and values that can be used to organize and categorize objects; may match selectors of replication controllers and services; see http://releases.k8s.io/v1.0.4/docs/labels.md + + :param labels: The labels of this V1ObjectMeta. + :type: str + """ + self._labels = labels + + @property + def annotations(self): + """ + Gets the annotations of this V1ObjectMeta. + map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about objects; see http://releases.k8s.io/v1.0.4/docs/annotations.md + + :return: The annotations of this V1ObjectMeta. + :rtype: str + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """ + Sets the annotations of this V1ObjectMeta. + map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about objects; see http://releases.k8s.io/v1.0.4/docs/annotations.md + + :param annotations: The annotations of this V1ObjectMeta. + :type: str + """ + self._annotations = annotations + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_object_reference.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_object_reference.py new file mode 100644 index 0000000000..574c7e658d --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_object_reference.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ObjectReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'namespace': 'str', + 'name': 'str', + 'uid': 'str', + 'api_version': 'str', + 'resource_version': 'str', + 'field_path': 'str' + } + + self.attribute_map = { + 'kind': 'kind', + 'namespace': 'namespace', + 'name': 'name', + 'uid': 'uid', + 'api_version': 'apiVersion', + 'resource_version': 'resourceVersion', + 'field_path': 'fieldPath' + } + + self._kind = None + self._namespace = None + self._name = None + self._uid = None + self._api_version = None + self._resource_version = None + self._field_path = None + + @property + def kind(self): + """ + Gets the kind of this V1ObjectReference. + kind of the referent; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1ObjectReference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ObjectReference. + kind of the referent; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1ObjectReference. + :type: str + """ + self._kind = kind + + @property + def namespace(self): + """ + Gets the namespace of this V1ObjectReference. + namespace of the referent; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + + :return: The namespace of this V1ObjectReference. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1ObjectReference. + namespace of the referent; see http://releases.k8s.io/v1.0.4/docs/namespaces.md + + :param namespace: The namespace of this V1ObjectReference. + :type: str + """ + self._namespace = namespace + + @property + def name(self): + """ + Gets the name of this V1ObjectReference. + name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + + :return: The name of this V1ObjectReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ObjectReference. + name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + + :param name: The name of this V1ObjectReference. + :type: str + """ + self._name = name + + @property + def uid(self): + """ + Gets the uid of this V1ObjectReference. + uid of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids + + :return: The uid of this V1ObjectReference. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1ObjectReference. + uid of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids + + :param uid: The uid of this V1ObjectReference. + :type: str + """ + self._uid = uid + + @property + def api_version(self): + """ + Gets the api_version of this V1ObjectReference. + API version of the referent + + :return: The api_version of this V1ObjectReference. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ObjectReference. + API version of the referent + + :param api_version: The api_version of this V1ObjectReference. + :type: str + """ + self._api_version = api_version + + @property + def resource_version(self): + """ + Gets the resource_version of this V1ObjectReference. + specific resourceVersion to which this reference is made, if any: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + + :return: The resource_version of this V1ObjectReference. + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """ + Sets the resource_version of this V1ObjectReference. + specific resourceVersion to which this reference is made, if any: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency + + :param resource_version: The resource_version of this V1ObjectReference. + :type: str + """ + self._resource_version = resource_version + + @property + def field_path(self): + """ + Gets the field_path of this V1ObjectReference. + if referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2] + + :return: The field_path of this V1ObjectReference. + :rtype: str + """ + return self._field_path + + @field_path.setter + def field_path(self, field_path): + """ + Sets the field_path of this V1ObjectReference. + if referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2] + + :param field_path: The field_path of this V1ObjectReference. + :type: str + """ + self._field_path = field_path + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume.py new file mode 100644 index 0000000000..00b1d684d4 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PersistentVolume(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PersistentVolumeSpec', + 'status': 'V1PersistentVolumeStatus' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._spec = None + self._status = None + + @property + def kind(self): + """ + Gets the kind of this V1PersistentVolume. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1PersistentVolume. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PersistentVolume. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1PersistentVolume. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1PersistentVolume. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1PersistentVolume. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PersistentVolume. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1PersistentVolume. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1PersistentVolume. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1PersistentVolume. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PersistentVolume. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1PersistentVolume. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1PersistentVolume. + specification of a persistent volume as provisioned by an administrator; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes + + :return: The spec of this V1PersistentVolume. + :rtype: V1PersistentVolumeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1PersistentVolume. + specification of a persistent volume as provisioned by an administrator; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes + + :param spec: The spec of this V1PersistentVolume. + :type: V1PersistentVolumeSpec + """ + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1PersistentVolume. + current status of a persistent volume; populated by the system, read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes + + :return: The status of this V1PersistentVolume. + :rtype: V1PersistentVolumeStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1PersistentVolume. + current status of a persistent volume; populated by the system, read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes + + :param status: The status of this V1PersistentVolume. + :type: V1PersistentVolumeStatus + """ + self._status = status + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_access_mode.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_access_mode.py new file mode 100644 index 0000000000..09d3b09251 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_access_mode.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PersistentVolumeAccessMode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + + } + + self.attribute_map = { + + } + + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim.py new file mode 100644 index 0000000000..dec92c1f45 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PersistentVolumeClaim(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PersistentVolumeClaimSpec', + 'status': 'V1PersistentVolumeClaimStatus' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._spec = None + self._status = None + + @property + def kind(self): + """ + Gets the kind of this V1PersistentVolumeClaim. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1PersistentVolumeClaim. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PersistentVolumeClaim. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1PersistentVolumeClaim. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1PersistentVolumeClaim. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1PersistentVolumeClaim. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PersistentVolumeClaim. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1PersistentVolumeClaim. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1PersistentVolumeClaim. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1PersistentVolumeClaim. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PersistentVolumeClaim. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1PersistentVolumeClaim. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1PersistentVolumeClaim. + the desired characteristics of a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + + :return: The spec of this V1PersistentVolumeClaim. + :rtype: V1PersistentVolumeClaimSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1PersistentVolumeClaim. + the desired characteristics of a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + + :param spec: The spec of this V1PersistentVolumeClaim. + :type: V1PersistentVolumeClaimSpec + """ + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1PersistentVolumeClaim. + the current status of a persistent volume claim; read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + + :return: The status of this V1PersistentVolumeClaim. + :rtype: V1PersistentVolumeClaimStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1PersistentVolumeClaim. + the current status of a persistent volume claim; read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + + :param status: The status of this V1PersistentVolumeClaim. + :type: V1PersistentVolumeClaimStatus + """ + self._status = status + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_list.py new file mode 100644 index 0000000000..67f9e1375e --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PersistentVolumeClaimList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1PersistentVolumeClaim]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1PersistentVolumeClaimList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1PersistentVolumeClaimList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PersistentVolumeClaimList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1PersistentVolumeClaimList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1PersistentVolumeClaimList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1PersistentVolumeClaimList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PersistentVolumeClaimList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1PersistentVolumeClaimList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1PersistentVolumeClaimList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The metadata of this V1PersistentVolumeClaimList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PersistentVolumeClaimList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1PersistentVolumeClaimList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1PersistentVolumeClaimList. + a list of persistent volume claims; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + + :return: The items of this V1PersistentVolumeClaimList. + :rtype: list[V1PersistentVolumeClaim] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1PersistentVolumeClaimList. + a list of persistent volume claims; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + + :param items: The items of this V1PersistentVolumeClaimList. + :type: list[V1PersistentVolumeClaim] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_spec.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_spec.py new file mode 100644 index 0000000000..a43e0ef168 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_spec.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PersistentVolumeClaimSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'access_modes': 'list[V1PersistentVolumeAccessMode]', + 'resources': 'V1ResourceRequirements', + 'volume_name': 'str' + } + + self.attribute_map = { + 'access_modes': 'accessModes', + 'resources': 'resources', + 'volume_name': 'volumeName' + } + + self._access_modes = None + self._resources = None + self._volume_name = None + + @property + def access_modes(self): + """ + Gets the access_modes of this V1PersistentVolumeClaimSpec. + the desired access modes the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1 + + :return: The access_modes of this V1PersistentVolumeClaimSpec. + :rtype: list[V1PersistentVolumeAccessMode] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """ + Sets the access_modes of this V1PersistentVolumeClaimSpec. + the desired access modes the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1 + + :param access_modes: The access_modes of this V1PersistentVolumeClaimSpec. + :type: list[V1PersistentVolumeAccessMode] + """ + self._access_modes = access_modes + + @property + def resources(self): + """ + Gets the resources of this V1PersistentVolumeClaimSpec. + the desired resources the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#resources + + :return: The resources of this V1PersistentVolumeClaimSpec. + :rtype: V1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1PersistentVolumeClaimSpec. + the desired resources the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#resources + + :param resources: The resources of this V1PersistentVolumeClaimSpec. + :type: V1ResourceRequirements + """ + self._resources = resources + + @property + def volume_name(self): + """ + Gets the volume_name of this V1PersistentVolumeClaimSpec. + the binding reference to the persistent volume backing this claim + + :return: The volume_name of this V1PersistentVolumeClaimSpec. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1PersistentVolumeClaimSpec. + the binding reference to the persistent volume backing this claim + + :param volume_name: The volume_name of this V1PersistentVolumeClaimSpec. + :type: str + """ + self._volume_name = volume_name + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_status.py new file mode 100644 index 0000000000..e91cf64ad6 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_status.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PersistentVolumeClaimStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'phase': 'str', + 'access_modes': 'list[V1PersistentVolumeAccessMode]', + 'capacity': 'str' + } + + self.attribute_map = { + 'phase': 'phase', + 'access_modes': 'accessModes', + 'capacity': 'capacity' + } + + self._phase = None + self._access_modes = None + self._capacity = None + + @property + def phase(self): + """ + Gets the phase of this V1PersistentVolumeClaimStatus. + the current phase of the claim + + :return: The phase of this V1PersistentVolumeClaimStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1PersistentVolumeClaimStatus. + the current phase of the claim + + :param phase: The phase of this V1PersistentVolumeClaimStatus. + :type: str + """ + self._phase = phase + + @property + def access_modes(self): + """ + Gets the access_modes of this V1PersistentVolumeClaimStatus. + the actual access modes the volume has; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1 + + :return: The access_modes of this V1PersistentVolumeClaimStatus. + :rtype: list[V1PersistentVolumeAccessMode] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """ + Sets the access_modes of this V1PersistentVolumeClaimStatus. + the actual access modes the volume has; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1 + + :param access_modes: The access_modes of this V1PersistentVolumeClaimStatus. + :type: list[V1PersistentVolumeAccessMode] + """ + self._access_modes = access_modes + + @property + def capacity(self): + """ + Gets the capacity of this V1PersistentVolumeClaimStatus. + the actual resources the volume has + + :return: The capacity of this V1PersistentVolumeClaimStatus. + :rtype: str + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this V1PersistentVolumeClaimStatus. + the actual resources the volume has + + :param capacity: The capacity of this V1PersistentVolumeClaimStatus. + :type: str + """ + self._capacity = capacity + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_volume_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_volume_source.py new file mode 100644 index 0000000000..209de7e9c2 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_claim_volume_source.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PersistentVolumeClaimVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'claim_name': 'str', + 'read_only': 'bool' + } + + self.attribute_map = { + 'claim_name': 'claimName', + 'read_only': 'readOnly' + } + + self._claim_name = None + self._read_only = None + + @property + def claim_name(self): + """ + Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. + the name of the claim in the same namespace to be mounted as a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + + :return: The claim_name of this V1PersistentVolumeClaimVolumeSource. + :rtype: str + """ + return self._claim_name + + @claim_name.setter + def claim_name(self, claim_name): + """ + Sets the claim_name of this V1PersistentVolumeClaimVolumeSource. + the name of the claim in the same namespace to be mounted as a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + + :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. + :type: str + """ + self._claim_name = claim_name + + @property + def read_only(self): + """ + Gets the read_only of this V1PersistentVolumeClaimVolumeSource. + mount volume as read-only when true; default false + + :return: The read_only of this V1PersistentVolumeClaimVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1PersistentVolumeClaimVolumeSource. + mount volume as read-only when true; default false + + :param read_only: The read_only of this V1PersistentVolumeClaimVolumeSource. + :type: bool + """ + self._read_only = read_only + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_list.py new file mode 100644 index 0000000000..41b7047dda --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PersistentVolumeList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1PersistentVolume]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1PersistentVolumeList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1PersistentVolumeList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PersistentVolumeList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1PersistentVolumeList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1PersistentVolumeList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1PersistentVolumeList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PersistentVolumeList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1PersistentVolumeList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1PersistentVolumeList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The metadata of this V1PersistentVolumeList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PersistentVolumeList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1PersistentVolumeList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1PersistentVolumeList. + list of persistent volumes; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md + + :return: The items of this V1PersistentVolumeList. + :rtype: list[V1PersistentVolume] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1PersistentVolumeList. + list of persistent volumes; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md + + :param items: The items of this V1PersistentVolumeList. + :type: list[V1PersistentVolume] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_spec.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_spec.py new file mode 100644 index 0000000000..eba7227970 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_spec.py @@ -0,0 +1,349 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PersistentVolumeSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'capacity': 'str', + 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource', + 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', + 'host_path': 'V1HostPathVolumeSource', + 'glusterfs': 'V1GlusterfsVolumeSource', + 'nfs': 'V1NFSVolumeSource', + 'rbd': 'V1RBDVolumeSource', + 'iscsi': 'V1ISCSIVolumeSource', + 'access_modes': 'list[V1PersistentVolumeAccessMode]', + 'claim_ref': 'V1ObjectReference', + 'persistent_volume_reclaim_policy': 'str' + } + + self.attribute_map = { + 'capacity': 'capacity', + 'gce_persistent_disk': 'gcePersistentDisk', + 'aws_elastic_block_store': 'awsElasticBlockStore', + 'host_path': 'hostPath', + 'glusterfs': 'glusterfs', + 'nfs': 'nfs', + 'rbd': 'rbd', + 'iscsi': 'iscsi', + 'access_modes': 'accessModes', + 'claim_ref': 'claimRef', + 'persistent_volume_reclaim_policy': 'persistentVolumeReclaimPolicy' + } + + self._capacity = None + self._gce_persistent_disk = None + self._aws_elastic_block_store = None + self._host_path = None + self._glusterfs = None + self._nfs = None + self._rbd = None + self._iscsi = None + self._access_modes = None + self._claim_ref = None + self._persistent_volume_reclaim_policy = None + + @property + def capacity(self): + """ + Gets the capacity of this V1PersistentVolumeSpec. + a description of the persistent volume's resources and capacityr; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#capacity + + :return: The capacity of this V1PersistentVolumeSpec. + :rtype: str + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this V1PersistentVolumeSpec. + a description of the persistent volume's resources and capacityr; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#capacity + + :param capacity: The capacity of this V1PersistentVolumeSpec. + :type: str + """ + self._capacity = capacity + + @property + def gce_persistent_disk(self): + """ + Gets the gce_persistent_disk of this V1PersistentVolumeSpec. + GCE disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :return: The gce_persistent_disk of this V1PersistentVolumeSpec. + :rtype: V1GCEPersistentDiskVolumeSource + """ + return self._gce_persistent_disk + + @gce_persistent_disk.setter + def gce_persistent_disk(self, gce_persistent_disk): + """ + Sets the gce_persistent_disk of this V1PersistentVolumeSpec. + GCE disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :param gce_persistent_disk: The gce_persistent_disk of this V1PersistentVolumeSpec. + :type: V1GCEPersistentDiskVolumeSource + """ + self._gce_persistent_disk = gce_persistent_disk + + @property + def aws_elastic_block_store(self): + """ + Gets the aws_elastic_block_store of this V1PersistentVolumeSpec. + AWS disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :return: The aws_elastic_block_store of this V1PersistentVolumeSpec. + :rtype: V1AWSElasticBlockStoreVolumeSource + """ + return self._aws_elastic_block_store + + @aws_elastic_block_store.setter + def aws_elastic_block_store(self, aws_elastic_block_store): + """ + Sets the aws_elastic_block_store of this V1PersistentVolumeSpec. + AWS disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :param aws_elastic_block_store: The aws_elastic_block_store of this V1PersistentVolumeSpec. + :type: V1AWSElasticBlockStoreVolumeSource + """ + self._aws_elastic_block_store = aws_elastic_block_store + + @property + def host_path(self): + """ + Gets the host_path of this V1PersistentVolumeSpec. + a HostPath provisioned by a developer or tester; for develment use only; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + + :return: The host_path of this V1PersistentVolumeSpec. + :rtype: V1HostPathVolumeSource + """ + return self._host_path + + @host_path.setter + def host_path(self, host_path): + """ + Sets the host_path of this V1PersistentVolumeSpec. + a HostPath provisioned by a developer or tester; for develment use only; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + + :param host_path: The host_path of this V1PersistentVolumeSpec. + :type: V1HostPathVolumeSource + """ + self._host_path = host_path + + @property + def glusterfs(self): + """ + Gets the glusterfs of this V1PersistentVolumeSpec. + Glusterfs volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md + + :return: The glusterfs of this V1PersistentVolumeSpec. + :rtype: V1GlusterfsVolumeSource + """ + return self._glusterfs + + @glusterfs.setter + def glusterfs(self, glusterfs): + """ + Sets the glusterfs of this V1PersistentVolumeSpec. + Glusterfs volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md + + :param glusterfs: The glusterfs of this V1PersistentVolumeSpec. + :type: V1GlusterfsVolumeSource + """ + self._glusterfs = glusterfs + + @property + def nfs(self): + """ + Gets the nfs of this V1PersistentVolumeSpec. + NFS volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + + :return: The nfs of this V1PersistentVolumeSpec. + :rtype: V1NFSVolumeSource + """ + return self._nfs + + @nfs.setter + def nfs(self, nfs): + """ + Sets the nfs of this V1PersistentVolumeSpec. + NFS volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + + :param nfs: The nfs of this V1PersistentVolumeSpec. + :type: V1NFSVolumeSource + """ + self._nfs = nfs + + @property + def rbd(self): + """ + Gets the rbd of this V1PersistentVolumeSpec. + rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md + + :return: The rbd of this V1PersistentVolumeSpec. + :rtype: V1RBDVolumeSource + """ + return self._rbd + + @rbd.setter + def rbd(self, rbd): + """ + Sets the rbd of this V1PersistentVolumeSpec. + rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md + + :param rbd: The rbd of this V1PersistentVolumeSpec. + :type: V1RBDVolumeSource + """ + self._rbd = rbd + + @property + def iscsi(self): + """ + Gets the iscsi of this V1PersistentVolumeSpec. + an iSCSI disk resource provisioned by an admin + + :return: The iscsi of this V1PersistentVolumeSpec. + :rtype: V1ISCSIVolumeSource + """ + return self._iscsi + + @iscsi.setter + def iscsi(self, iscsi): + """ + Sets the iscsi of this V1PersistentVolumeSpec. + an iSCSI disk resource provisioned by an admin + + :param iscsi: The iscsi of this V1PersistentVolumeSpec. + :type: V1ISCSIVolumeSource + """ + self._iscsi = iscsi + + @property + def access_modes(self): + """ + Gets the access_modes of this V1PersistentVolumeSpec. + all ways the volume can be mounted; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes + + :return: The access_modes of this V1PersistentVolumeSpec. + :rtype: list[V1PersistentVolumeAccessMode] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """ + Sets the access_modes of this V1PersistentVolumeSpec. + all ways the volume can be mounted; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes + + :param access_modes: The access_modes of this V1PersistentVolumeSpec. + :type: list[V1PersistentVolumeAccessMode] + """ + self._access_modes = access_modes + + @property + def claim_ref(self): + """ + Gets the claim_ref of this V1PersistentVolumeSpec. + when bound, a reference to the bound claim; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#binding + + :return: The claim_ref of this V1PersistentVolumeSpec. + :rtype: V1ObjectReference + """ + return self._claim_ref + + @claim_ref.setter + def claim_ref(self, claim_ref): + """ + Sets the claim_ref of this V1PersistentVolumeSpec. + when bound, a reference to the bound claim; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#binding + + :param claim_ref: The claim_ref of this V1PersistentVolumeSpec. + :type: V1ObjectReference + """ + self._claim_ref = claim_ref + + @property + def persistent_volume_reclaim_policy(self): + """ + Gets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + what happens to a volume when released from its claim; Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. See http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#recycling-policy + + :return: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + :rtype: str + """ + return self._persistent_volume_reclaim_policy + + @persistent_volume_reclaim_policy.setter + def persistent_volume_reclaim_policy(self, persistent_volume_reclaim_policy): + """ + Sets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + what happens to a volume when released from its claim; Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. See http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#recycling-policy + + :param persistent_volume_reclaim_policy: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + :type: str + """ + self._persistent_volume_reclaim_policy = persistent_volume_reclaim_policy + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_status.py new file mode 100644 index 0000000000..716e8eaa7f --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_persistent_volume_status.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PersistentVolumeStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'phase': 'str', + 'message': 'str', + 'reason': 'str' + } + + self.attribute_map = { + 'phase': 'phase', + 'message': 'message', + 'reason': 'reason' + } + + self._phase = None + self._message = None + self._reason = None + + @property + def phase(self): + """ + Gets the phase of this V1PersistentVolumeStatus. + the current phase of a persistent volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#phase + + :return: The phase of this V1PersistentVolumeStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1PersistentVolumeStatus. + the current phase of a persistent volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#phase + + :param phase: The phase of this V1PersistentVolumeStatus. + :type: str + """ + self._phase = phase + + @property + def message(self): + """ + Gets the message of this V1PersistentVolumeStatus. + human-readable message indicating details about why the volume is in this state + + :return: The message of this V1PersistentVolumeStatus. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1PersistentVolumeStatus. + human-readable message indicating details about why the volume is in this state + + :param message: The message of this V1PersistentVolumeStatus. + :type: str + """ + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1PersistentVolumeStatus. + (brief) reason the volume is not is not available + + :return: The reason of this V1PersistentVolumeStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1PersistentVolumeStatus. + (brief) reason the volume is not is not available + + :param reason: The reason of this V1PersistentVolumeStatus. + :type: str + """ + self._reason = reason + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_pod.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod.py new file mode 100644 index 0000000000..38290c02a6 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Pod(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PodSpec', + 'status': 'V1PodStatus' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._spec = None + self._status = None + + @property + def kind(self): + """ + Gets the kind of this V1Pod. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1Pod. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Pod. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1Pod. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1Pod. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1Pod. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Pod. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1Pod. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1Pod. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1Pod. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Pod. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1Pod. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Pod. + specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The spec of this V1Pod. + :rtype: V1PodSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Pod. + specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param spec: The spec of this V1Pod. + :type: V1PodSpec + """ + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Pod. + most recently observed status of the pod; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The status of this V1Pod. + :rtype: V1PodStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Pod. + most recently observed status of the pod; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param status: The status of this V1Pod. + :type: V1PodStatus + """ + self._status = status + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_condition.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_condition.py new file mode 100644 index 0000000000..284d4f4f1c --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_condition.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PodCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'type': 'str', + 'status': 'str' + } + + self.attribute_map = { + 'type': 'type', + 'status': 'status' + } + + self._type = None + self._status = None + + @property + def type(self): + """ + Gets the type of this V1PodCondition. + kind of the condition, currently only Ready; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + + :return: The type of this V1PodCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1PodCondition. + kind of the condition, currently only Ready; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + + :param type: The type of this V1PodCondition. + :type: str + """ + self._type = type + + @property + def status(self): + """ + Gets the status of this V1PodCondition. + status of the condition, one of True, False, Unknown; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + + :return: The status of this V1PodCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1PodCondition. + status of the condition, one of True, False, Unknown; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + + :param status: The status of this V1PodCondition. + :type: str + """ + self._status = status + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_list.py new file mode 100644 index 0000000000..310a6856f1 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PodList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1Pod]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1PodList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1PodList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PodList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1PodList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1PodList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1PodList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PodList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1PodList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1PodList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The metadata of this V1PodList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PodList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param metadata: The metadata of this V1PodList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1PodList. + list of pods; see http://releases.k8s.io/v1.0.4/docs/pods.md + + :return: The items of this V1PodList. + :rtype: list[V1Pod] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1PodList. + list of pods; see http://releases.k8s.io/v1.0.4/docs/pods.md + + :param items: The items of this V1PodList. + :type: list[V1Pod] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_spec.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_spec.py new file mode 100644 index 0000000000..d03ee000f2 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_spec.py @@ -0,0 +1,374 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PodSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'volumes': 'list[V1Volume]', + 'containers': 'list[V1Container]', + 'restart_policy': 'str', + 'termination_grace_period_seconds': 'int', + 'active_deadline_seconds': 'int', + 'dns_policy': 'str', + 'node_selector': 'str', + 'service_account_name': 'str', + 'service_account': 'str', + 'node_name': 'str', + 'host_network': 'bool', + 'image_pull_secrets': 'list[V1LocalObjectReference]' + } + + self.attribute_map = { + 'volumes': 'volumes', + 'containers': 'containers', + 'restart_policy': 'restartPolicy', + 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', + 'active_deadline_seconds': 'activeDeadlineSeconds', + 'dns_policy': 'dnsPolicy', + 'node_selector': 'nodeSelector', + 'service_account_name': 'serviceAccountName', + 'service_account': 'serviceAccount', + 'node_name': 'nodeName', + 'host_network': 'hostNetwork', + 'image_pull_secrets': 'imagePullSecrets' + } + + self._volumes = None + self._containers = None + self._restart_policy = None + self._termination_grace_period_seconds = None + self._active_deadline_seconds = None + self._dns_policy = None + self._node_selector = None + self._service_account_name = None + self._service_account = None + self._node_name = None + self._host_network = None + self._image_pull_secrets = None + + @property + def volumes(self): + """ + Gets the volumes of this V1PodSpec. + list of volumes that can be mounted by containers belonging to the pod; see http://releases.k8s.io/v1.0.4/docs/volumes.md + + :return: The volumes of this V1PodSpec. + :rtype: list[V1Volume] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1PodSpec. + list of volumes that can be mounted by containers belonging to the pod; see http://releases.k8s.io/v1.0.4/docs/volumes.md + + :param volumes: The volumes of this V1PodSpec. + :type: list[V1Volume] + """ + self._volumes = volumes + + @property + def containers(self): + """ + Gets the containers of this V1PodSpec. + list of containers belonging to the pod; cannot be updated; containers cannot currently be added or removed; there must be at least one container in a Pod; see http://releases.k8s.io/v1.0.4/docs/containers.md + + :return: The containers of this V1PodSpec. + :rtype: list[V1Container] + """ + return self._containers + + @containers.setter + def containers(self, containers): + """ + Sets the containers of this V1PodSpec. + list of containers belonging to the pod; cannot be updated; containers cannot currently be added or removed; there must be at least one container in a Pod; see http://releases.k8s.io/v1.0.4/docs/containers.md + + :param containers: The containers of this V1PodSpec. + :type: list[V1Container] + """ + self._containers = containers + + @property + def restart_policy(self): + """ + Gets the restart_policy of this V1PodSpec. + restart policy for all containers within the pod; one of Always, OnFailure, Never; defaults to Always; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#restartpolicy + + :return: The restart_policy of this V1PodSpec. + :rtype: str + """ + return self._restart_policy + + @restart_policy.setter + def restart_policy(self, restart_policy): + """ + Sets the restart_policy of this V1PodSpec. + restart policy for all containers within the pod; one of Always, OnFailure, Never; defaults to Always; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#restartpolicy + + :param restart_policy: The restart_policy of this V1PodSpec. + :type: str + """ + self._restart_policy = restart_policy + + @property + def termination_grace_period_seconds(self): + """ + Gets the termination_grace_period_seconds of this V1PodSpec. + optional duration in seconds the pod needs to terminate gracefully; may be decreased in delete request; value must be non-negative integer; the value zero indicates delete immediately; if this value is not set, the default grace period will be used instead; the grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal; set this value longer than the expected cleanup time for your process + + :return: The termination_grace_period_seconds of this V1PodSpec. + :rtype: int + """ + return self._termination_grace_period_seconds + + @termination_grace_period_seconds.setter + def termination_grace_period_seconds(self, termination_grace_period_seconds): + """ + Sets the termination_grace_period_seconds of this V1PodSpec. + optional duration in seconds the pod needs to terminate gracefully; may be decreased in delete request; value must be non-negative integer; the value zero indicates delete immediately; if this value is not set, the default grace period will be used instead; the grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal; set this value longer than the expected cleanup time for your process + + :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1PodSpec. + :type: int + """ + self._termination_grace_period_seconds = termination_grace_period_seconds + + @property + def active_deadline_seconds(self): + """ + Gets the active_deadline_seconds of this V1PodSpec. + + + :return: The active_deadline_seconds of this V1PodSpec. + :rtype: int + """ + return self._active_deadline_seconds + + @active_deadline_seconds.setter + def active_deadline_seconds(self, active_deadline_seconds): + """ + Sets the active_deadline_seconds of this V1PodSpec. + + + :param active_deadline_seconds: The active_deadline_seconds of this V1PodSpec. + :type: int + """ + self._active_deadline_seconds = active_deadline_seconds + + @property + def dns_policy(self): + """ + Gets the dns_policy of this V1PodSpec. + DNS policy for containers within the pod; one of 'ClusterFirst' or 'Default' + + :return: The dns_policy of this V1PodSpec. + :rtype: str + """ + return self._dns_policy + + @dns_policy.setter + def dns_policy(self, dns_policy): + """ + Sets the dns_policy of this V1PodSpec. + DNS policy for containers within the pod; one of 'ClusterFirst' or 'Default' + + :param dns_policy: The dns_policy of this V1PodSpec. + :type: str + """ + self._dns_policy = dns_policy + + @property + def node_selector(self): + """ + Gets the node_selector of this V1PodSpec. + selector which must match a node's labels for the pod to be scheduled on that node; see http://releases.k8s.io/v1.0.4/examples/node-selection/README.md + + :return: The node_selector of this V1PodSpec. + :rtype: str + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """ + Sets the node_selector of this V1PodSpec. + selector which must match a node's labels for the pod to be scheduled on that node; see http://releases.k8s.io/v1.0.4/examples/node-selection/README.md + + :param node_selector: The node_selector of this V1PodSpec. + :type: str + """ + self._node_selector = node_selector + + @property + def service_account_name(self): + """ + Gets the service_account_name of this V1PodSpec. + name of the ServiceAccount to use to run this pod; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md + + :return: The service_account_name of this V1PodSpec. + :rtype: str + """ + return self._service_account_name + + @service_account_name.setter + def service_account_name(self, service_account_name): + """ + Sets the service_account_name of this V1PodSpec. + name of the ServiceAccount to use to run this pod; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md + + :param service_account_name: The service_account_name of this V1PodSpec. + :type: str + """ + self._service_account_name = service_account_name + + @property + def service_account(self): + """ + Gets the service_account of this V1PodSpec. + deprecated; use serviceAccountName instead + + :return: The service_account of this V1PodSpec. + :rtype: str + """ + return self._service_account + + @service_account.setter + def service_account(self, service_account): + """ + Sets the service_account of this V1PodSpec. + deprecated; use serviceAccountName instead + + :param service_account: The service_account of this V1PodSpec. + :type: str + """ + self._service_account = service_account + + @property + def node_name(self): + """ + Gets the node_name of this V1PodSpec. + node requested for this pod + + :return: The node_name of this V1PodSpec. + :rtype: str + """ + return self._node_name + + @node_name.setter + def node_name(self, node_name): + """ + Sets the node_name of this V1PodSpec. + node requested for this pod + + :param node_name: The node_name of this V1PodSpec. + :type: str + """ + self._node_name = node_name + + @property + def host_network(self): + """ + Gets the host_network of this V1PodSpec. + host networking requested for this pod + + :return: The host_network of this V1PodSpec. + :rtype: bool + """ + return self._host_network + + @host_network.setter + def host_network(self, host_network): + """ + Sets the host_network of this V1PodSpec. + host networking requested for this pod + + :param host_network: The host_network of this V1PodSpec. + :type: bool + """ + self._host_network = host_network + + @property + def image_pull_secrets(self): + """ + Gets the image_pull_secrets of this V1PodSpec. + list of references to secrets in the same namespace available for pulling the container images; see http://releases.k8s.io/v1.0.4/docs/images.md#specifying-imagepullsecrets-on-a-pod + + :return: The image_pull_secrets of this V1PodSpec. + :rtype: list[V1LocalObjectReference] + """ + return self._image_pull_secrets + + @image_pull_secrets.setter + def image_pull_secrets(self, image_pull_secrets): + """ + Sets the image_pull_secrets of this V1PodSpec. + list of references to secrets in the same namespace available for pulling the container images; see http://releases.k8s.io/v1.0.4/docs/images.md#specifying-imagepullsecrets-on-a-pod + + :param image_pull_secrets: The image_pull_secrets of this V1PodSpec. + :type: list[V1LocalObjectReference] + """ + self._image_pull_secrets = image_pull_secrets + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_status.py new file mode 100644 index 0000000000..fbffcff7e1 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_status.py @@ -0,0 +1,274 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PodStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'phase': 'str', + 'conditions': 'list[V1PodCondition]', + 'message': 'str', + 'reason': 'str', + 'host_ip': 'str', + 'pod_ip': 'str', + 'start_time': 'str', + 'container_statuses': 'list[V1ContainerStatus]' + } + + self.attribute_map = { + 'phase': 'phase', + 'conditions': 'conditions', + 'message': 'message', + 'reason': 'reason', + 'host_ip': 'hostIP', + 'pod_ip': 'podIP', + 'start_time': 'startTime', + 'container_statuses': 'containerStatuses' + } + + self._phase = None + self._conditions = None + self._message = None + self._reason = None + self._host_ip = None + self._pod_ip = None + self._start_time = None + self._container_statuses = None + + @property + def phase(self): + """ + Gets the phase of this V1PodStatus. + current condition of the pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-phase + + :return: The phase of this V1PodStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1PodStatus. + current condition of the pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-phase + + :param phase: The phase of this V1PodStatus. + :type: str + """ + self._phase = phase + + @property + def conditions(self): + """ + Gets the conditions of this V1PodStatus. + current service state of pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + + :return: The conditions of this V1PodStatus. + :rtype: list[V1PodCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1PodStatus. + current service state of pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions + + :param conditions: The conditions of this V1PodStatus. + :type: list[V1PodCondition] + """ + self._conditions = conditions + + @property + def message(self): + """ + Gets the message of this V1PodStatus. + human readable message indicating details about why the pod is in this condition + + :return: The message of this V1PodStatus. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1PodStatus. + human readable message indicating details about why the pod is in this condition + + :param message: The message of this V1PodStatus. + :type: str + """ + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1PodStatus. + (brief-CamelCase) reason indicating details about why the pod is in this condition + + :return: The reason of this V1PodStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1PodStatus. + (brief-CamelCase) reason indicating details about why the pod is in this condition + + :param reason: The reason of this V1PodStatus. + :type: str + """ + self._reason = reason + + @property + def host_ip(self): + """ + Gets the host_ip of this V1PodStatus. + IP address of the host to which the pod is assigned; empty if not yet scheduled + + :return: The host_ip of this V1PodStatus. + :rtype: str + """ + return self._host_ip + + @host_ip.setter + def host_ip(self, host_ip): + """ + Sets the host_ip of this V1PodStatus. + IP address of the host to which the pod is assigned; empty if not yet scheduled + + :param host_ip: The host_ip of this V1PodStatus. + :type: str + """ + self._host_ip = host_ip + + @property + def pod_ip(self): + """ + Gets the pod_ip of this V1PodStatus. + IP address allocated to the pod; routable at least within the cluster; empty if not yet allocated + + :return: The pod_ip of this V1PodStatus. + :rtype: str + """ + return self._pod_ip + + @pod_ip.setter + def pod_ip(self, pod_ip): + """ + Sets the pod_ip of this V1PodStatus. + IP address allocated to the pod; routable at least within the cluster; empty if not yet allocated + + :param pod_ip: The pod_ip of this V1PodStatus. + :type: str + """ + self._pod_ip = pod_ip + + @property + def start_time(self): + """ + Gets the start_time of this V1PodStatus. + RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. + + :return: The start_time of this V1PodStatus. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this V1PodStatus. + RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. + + :param start_time: The start_time of this V1PodStatus. + :type: str + """ + self._start_time = start_time + + @property + def container_statuses(self): + """ + Gets the container_statuses of this V1PodStatus. + list of container statuses; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-statuses + + :return: The container_statuses of this V1PodStatus. + :rtype: list[V1ContainerStatus] + """ + return self._container_statuses + + @container_statuses.setter + def container_statuses(self, container_statuses): + """ + Sets the container_statuses of this V1PodStatus. + list of container statuses; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-statuses + + :param container_statuses: The container_statuses of this V1PodStatus. + :type: list[V1ContainerStatus] + """ + self._container_statuses = container_statuses + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_template.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_template.py new file mode 100644 index 0000000000..f8106f7d52 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_template.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PodTemplate(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'template': 'template' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._template = None + + @property + def kind(self): + """ + Gets the kind of this V1PodTemplate. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1PodTemplate. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PodTemplate. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1PodTemplate. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1PodTemplate. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1PodTemplate. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PodTemplate. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1PodTemplate. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1PodTemplate. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1PodTemplate. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PodTemplate. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1PodTemplate. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def template(self): + """ + Gets the template of this V1PodTemplate. + the template of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The template of this V1PodTemplate. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1PodTemplate. + the template of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param template: The template of this V1PodTemplate. + :type: V1PodTemplateSpec + """ + self._template = template + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_template_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_template_list.py new file mode 100644 index 0000000000..a4945385ed --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_template_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PodTemplateList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1PodTemplate]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1PodTemplateList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1PodTemplateList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PodTemplateList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1PodTemplateList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1PodTemplateList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1PodTemplateList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PodTemplateList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1PodTemplateList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1PodTemplateList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1PodTemplateList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PodTemplateList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1PodTemplateList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1PodTemplateList. + list of pod templates + + :return: The items of this V1PodTemplateList. + :rtype: list[V1PodTemplate] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1PodTemplateList. + list of pod templates + + :param items: The items of this V1PodTemplateList. + :type: list[V1PodTemplate] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_template_spec.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_template_spec.py new file mode 100644 index 0000000000..e526ad5b18 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_pod_template_spec.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1PodTemplateSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PodSpec' + } + + self.attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec' + } + + self._metadata = None + self._spec = None + + @property + def metadata(self): + """ + Gets the metadata of this V1PodTemplateSpec. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1PodTemplateSpec. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PodTemplateSpec. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1PodTemplateSpec. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1PodTemplateSpec. + specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The spec of this V1PodTemplateSpec. + :rtype: V1PodSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1PodTemplateSpec. + specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param spec: The spec of this V1PodTemplateSpec. + :type: V1PodSpec + """ + self._spec = spec + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_probe.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_probe.py new file mode 100644 index 0000000000..db104d61cf --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_probe.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Probe(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + '_exec': 'V1ExecAction', + 'http_get': 'V1HTTPGetAction', + 'tcp_socket': 'V1TCPSocketAction', + 'initial_delay_seconds': 'int', + 'timeout_seconds': 'int' + } + + self.attribute_map = { + '_exec': 'exec', + 'http_get': 'httpGet', + 'tcp_socket': 'tcpSocket', + 'initial_delay_seconds': 'initialDelaySeconds', + 'timeout_seconds': 'timeoutSeconds' + } + + self.__exec = None + self._http_get = None + self._tcp_socket = None + self._initial_delay_seconds = None + self._timeout_seconds = None + + @property + def _exec(self): + """ + Gets the _exec of this V1Probe. + exec-based handler + + :return: The _exec of this V1Probe. + :rtype: V1ExecAction + """ + return self.__exec + + @_exec.setter + def _exec(self, _exec): + """ + Sets the _exec of this V1Probe. + exec-based handler + + :param _exec: The _exec of this V1Probe. + :type: V1ExecAction + """ + self.__exec = _exec + + @property + def http_get(self): + """ + Gets the http_get of this V1Probe. + HTTP-based handler + + :return: The http_get of this V1Probe. + :rtype: V1HTTPGetAction + """ + return self._http_get + + @http_get.setter + def http_get(self, http_get): + """ + Sets the http_get of this V1Probe. + HTTP-based handler + + :param http_get: The http_get of this V1Probe. + :type: V1HTTPGetAction + """ + self._http_get = http_get + + @property + def tcp_socket(self): + """ + Gets the tcp_socket of this V1Probe. + TCP-based handler; TCP hooks not yet supported + + :return: The tcp_socket of this V1Probe. + :rtype: V1TCPSocketAction + """ + return self._tcp_socket + + @tcp_socket.setter + def tcp_socket(self, tcp_socket): + """ + Sets the tcp_socket of this V1Probe. + TCP-based handler; TCP hooks not yet supported + + :param tcp_socket: The tcp_socket of this V1Probe. + :type: V1TCPSocketAction + """ + self._tcp_socket = tcp_socket + + @property + def initial_delay_seconds(self): + """ + Gets the initial_delay_seconds of this V1Probe. + number of seconds after the container has started before liveness probes are initiated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + + :return: The initial_delay_seconds of this V1Probe. + :rtype: int + """ + return self._initial_delay_seconds + + @initial_delay_seconds.setter + def initial_delay_seconds(self, initial_delay_seconds): + """ + Sets the initial_delay_seconds of this V1Probe. + number of seconds after the container has started before liveness probes are initiated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + + :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. + :type: int + """ + self._initial_delay_seconds = initial_delay_seconds + + @property + def timeout_seconds(self): + """ + Gets the timeout_seconds of this V1Probe. + number of seconds after which liveness probes timeout; defaults to 1 second; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + + :return: The timeout_seconds of this V1Probe. + :rtype: int + """ + return self._timeout_seconds + + @timeout_seconds.setter + def timeout_seconds(self, timeout_seconds): + """ + Sets the timeout_seconds of this V1Probe. + number of seconds after which liveness probes timeout; defaults to 1 second; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes + + :param timeout_seconds: The timeout_seconds of this V1Probe. + :type: int + """ + self._timeout_seconds = timeout_seconds + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_rbd_volume_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_rbd_volume_source.py new file mode 100644 index 0000000000..a533b5e60d --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_rbd_volume_source.py @@ -0,0 +1,274 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1RBDVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'monitors': 'list[str]', + 'image': 'str', + 'fs_type': 'str', + 'pool': 'str', + 'user': 'str', + 'keyring': 'str', + 'secret_ref': 'V1LocalObjectReference', + 'read_only': 'bool' + } + + self.attribute_map = { + 'monitors': 'monitors', + 'image': 'image', + 'fs_type': 'fsType', + 'pool': 'pool', + 'user': 'user', + 'keyring': 'keyring', + 'secret_ref': 'secretRef', + 'read_only': 'readOnly' + } + + self._monitors = None + self._image = None + self._fs_type = None + self._pool = None + self._user = None + self._keyring = None + self._secret_ref = None + self._read_only = None + + @property + def monitors(self): + """ + Gets the monitors of this V1RBDVolumeSource. + a collection of Ceph monitors; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :return: The monitors of this V1RBDVolumeSource. + :rtype: list[str] + """ + return self._monitors + + @monitors.setter + def monitors(self, monitors): + """ + Sets the monitors of this V1RBDVolumeSource. + a collection of Ceph monitors; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :param monitors: The monitors of this V1RBDVolumeSource. + :type: list[str] + """ + self._monitors = monitors + + @property + def image(self): + """ + Gets the image of this V1RBDVolumeSource. + rados image name; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :return: The image of this V1RBDVolumeSource. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1RBDVolumeSource. + rados image name; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :param image: The image of this V1RBDVolumeSource. + :type: str + """ + self._image = image + + @property + def fs_type(self): + """ + Gets the fs_type of this V1RBDVolumeSource. + file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :return: The fs_type of this V1RBDVolumeSource. + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """ + Sets the fs_type of this V1RBDVolumeSource. + file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :param fs_type: The fs_type of this V1RBDVolumeSource. + :type: str + """ + self._fs_type = fs_type + + @property + def pool(self): + """ + Gets the pool of this V1RBDVolumeSource. + rados pool name; default is rbd; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :return: The pool of this V1RBDVolumeSource. + :rtype: str + """ + return self._pool + + @pool.setter + def pool(self, pool): + """ + Sets the pool of this V1RBDVolumeSource. + rados pool name; default is rbd; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :param pool: The pool of this V1RBDVolumeSource. + :type: str + """ + self._pool = pool + + @property + def user(self): + """ + Gets the user of this V1RBDVolumeSource. + rados user name; default is admin; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :return: The user of this V1RBDVolumeSource. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1RBDVolumeSource. + rados user name; default is admin; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :param user: The user of this V1RBDVolumeSource. + :type: str + """ + self._user = user + + @property + def keyring(self): + """ + Gets the keyring of this V1RBDVolumeSource. + keyring is the path to key ring for rados user; default is /etc/ceph/keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :return: The keyring of this V1RBDVolumeSource. + :rtype: str + """ + return self._keyring + + @keyring.setter + def keyring(self, keyring): + """ + Sets the keyring of this V1RBDVolumeSource. + keyring is the path to key ring for rados user; default is /etc/ceph/keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :param keyring: The keyring of this V1RBDVolumeSource. + :type: str + """ + self._keyring = keyring + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1RBDVolumeSource. + name of a secret to authenticate the RBD user; if provided overrides keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :return: The secret_ref of this V1RBDVolumeSource. + :rtype: V1LocalObjectReference + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1RBDVolumeSource. + name of a secret to authenticate the RBD user; if provided overrides keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :param secret_ref: The secret_ref of this V1RBDVolumeSource. + :type: V1LocalObjectReference + """ + self._secret_ref = secret_ref + + @property + def read_only(self): + """ + Gets the read_only of this V1RBDVolumeSource. + rbd volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :return: The read_only of this V1RBDVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1RBDVolumeSource. + rbd volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it + + :param read_only: The read_only of this V1RBDVolumeSource. + :type: bool + """ + self._read_only = read_only + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller.py new file mode 100644 index 0000000000..173ea94502 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ReplicationController(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ReplicationControllerSpec', + 'status': 'V1ReplicationControllerStatus' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._spec = None + self._status = None + + @property + def kind(self): + """ + Gets the kind of this V1ReplicationController. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1ReplicationController. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ReplicationController. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1ReplicationController. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1ReplicationController. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1ReplicationController. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ReplicationController. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1ReplicationController. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1ReplicationController. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1ReplicationController. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ReplicationController. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1ReplicationController. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1ReplicationController. + specification of the desired behavior of the replication controller; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The spec of this V1ReplicationController. + :rtype: V1ReplicationControllerSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1ReplicationController. + specification of the desired behavior of the replication controller; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param spec: The spec of this V1ReplicationController. + :type: V1ReplicationControllerSpec + """ + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1ReplicationController. + most recently observed status of the replication controller; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The status of this V1ReplicationController. + :rtype: V1ReplicationControllerStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ReplicationController. + most recently observed status of the replication controller; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param status: The status of this V1ReplicationController. + :type: V1ReplicationControllerStatus + """ + self._status = status + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller_list.py new file mode 100644 index 0000000000..9f8fd001f1 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ReplicationControllerList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1ReplicationController]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1ReplicationControllerList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1ReplicationControllerList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ReplicationControllerList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1ReplicationControllerList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1ReplicationControllerList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1ReplicationControllerList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ReplicationControllerList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1ReplicationControllerList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1ReplicationControllerList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1ReplicationControllerList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ReplicationControllerList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1ReplicationControllerList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1ReplicationControllerList. + list of replication controllers; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md + + :return: The items of this V1ReplicationControllerList. + :rtype: list[V1ReplicationController] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ReplicationControllerList. + list of replication controllers; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md + + :param items: The items of this V1ReplicationControllerList. + :type: list[V1ReplicationController] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller_spec.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller_spec.py new file mode 100644 index 0000000000..ba0b0e5030 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller_spec.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ReplicationControllerSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'replicas': 'int', + 'selector': 'str', + 'template': 'V1PodTemplateSpec' + } + + self.attribute_map = { + 'replicas': 'replicas', + 'selector': 'selector', + 'template': 'template' + } + + self._replicas = None + self._selector = None + self._template = None + + @property + def replicas(self): + """ + Gets the replicas of this V1ReplicationControllerSpec. + number of replicas desired; defaults to 1; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller + + :return: The replicas of this V1ReplicationControllerSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1ReplicationControllerSpec. + number of replicas desired; defaults to 1; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller + + :param replicas: The replicas of this V1ReplicationControllerSpec. + :type: int + """ + self._replicas = replicas + + @property + def selector(self): + """ + Gets the selector of this V1ReplicationControllerSpec. + label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template; see http://releases.k8s.io/v1.0.4/docs/labels.md#label-selectors + + :return: The selector of this V1ReplicationControllerSpec. + :rtype: str + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1ReplicationControllerSpec. + label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template; see http://releases.k8s.io/v1.0.4/docs/labels.md#label-selectors + + :param selector: The selector of this V1ReplicationControllerSpec. + :type: str + """ + self._selector = selector + + @property + def template(self): + """ + Gets the template of this V1ReplicationControllerSpec. + object that describes the pod that will be created if insufficient replicas are detected; takes precendence over templateRef; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#pod-template + + :return: The template of this V1ReplicationControllerSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1ReplicationControllerSpec. + object that describes the pod that will be created if insufficient replicas are detected; takes precendence over templateRef; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#pod-template + + :param template: The template of this V1ReplicationControllerSpec. + :type: V1PodTemplateSpec + """ + self._template = template + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller_status.py new file mode 100644 index 0000000000..3e1e3059fb --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_replication_controller_status.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ReplicationControllerStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'replicas': 'int', + 'observed_generation': 'int' + } + + self.attribute_map = { + 'replicas': 'replicas', + 'observed_generation': 'observedGeneration' + } + + self._replicas = None + self._observed_generation = None + + @property + def replicas(self): + """ + Gets the replicas of this V1ReplicationControllerStatus. + most recently oberved number of replicas; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller + + :return: The replicas of this V1ReplicationControllerStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1ReplicationControllerStatus. + most recently oberved number of replicas; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller + + :param replicas: The replicas of this V1ReplicationControllerStatus. + :type: int + """ + self._replicas = replicas + + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1ReplicationControllerStatus. + reflects the generation of the most recently observed replication controller + + :return: The observed_generation of this V1ReplicationControllerStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1ReplicationControllerStatus. + reflects the generation of the most recently observed replication controller + + :param observed_generation: The observed_generation of this V1ReplicationControllerStatus. + :type: int + """ + self._observed_generation = observed_generation + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota.py new file mode 100644 index 0000000000..849614277a --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ResourceQuota(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ResourceQuotaSpec', + 'status': 'V1ResourceQuotaStatus' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._spec = None + self._status = None + + @property + def kind(self): + """ + Gets the kind of this V1ResourceQuota. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1ResourceQuota. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ResourceQuota. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1ResourceQuota. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1ResourceQuota. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1ResourceQuota. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ResourceQuota. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1ResourceQuota. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1ResourceQuota. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1ResourceQuota. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ResourceQuota. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1ResourceQuota. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1ResourceQuota. + spec defines the desired quota; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The spec of this V1ResourceQuota. + :rtype: V1ResourceQuotaSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1ResourceQuota. + spec defines the desired quota; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param spec: The spec of this V1ResourceQuota. + :type: V1ResourceQuotaSpec + """ + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1ResourceQuota. + status defines the actual enforced quota and current usage; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The status of this V1ResourceQuota. + :rtype: V1ResourceQuotaStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1ResourceQuota. + status defines the actual enforced quota and current usage; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param status: The status of this V1ResourceQuota. + :type: V1ResourceQuotaStatus + """ + self._status = status + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota_list.py new file mode 100644 index 0000000000..d4154c5626 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ResourceQuotaList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1ResourceQuota]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1ResourceQuotaList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1ResourceQuotaList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ResourceQuotaList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1ResourceQuotaList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1ResourceQuotaList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1ResourceQuotaList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ResourceQuotaList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1ResourceQuotaList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1ResourceQuotaList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1ResourceQuotaList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ResourceQuotaList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1ResourceQuotaList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1ResourceQuotaList. + items is a list of ResourceQuota objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :return: The items of this V1ResourceQuotaList. + :rtype: list[V1ResourceQuota] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ResourceQuotaList. + items is a list of ResourceQuota objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :param items: The items of this V1ResourceQuotaList. + :type: list[V1ResourceQuota] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota_spec.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota_spec.py new file mode 100644 index 0000000000..e003a7abdc --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota_spec.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ResourceQuotaSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'hard': 'str' + } + + self.attribute_map = { + 'hard': 'hard' + } + + self._hard = None + + @property + def hard(self): + """ + Gets the hard of this V1ResourceQuotaSpec. + hard is the set of desired hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :return: The hard of this V1ResourceQuotaSpec. + :rtype: str + """ + return self._hard + + @hard.setter + def hard(self, hard): + """ + Sets the hard of this V1ResourceQuotaSpec. + hard is the set of desired hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :param hard: The hard of this V1ResourceQuotaSpec. + :type: str + """ + self._hard = hard + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota_status.py new file mode 100644 index 0000000000..4355d3dc61 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_quota_status.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ResourceQuotaStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'hard': 'str', + 'used': 'str' + } + + self.attribute_map = { + 'hard': 'hard', + 'used': 'used' + } + + self._hard = None + self._used = None + + @property + def hard(self): + """ + Gets the hard of this V1ResourceQuotaStatus. + hard is the set of enforced hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :return: The hard of this V1ResourceQuotaStatus. + :rtype: str + """ + return self._hard + + @hard.setter + def hard(self, hard): + """ + Sets the hard of this V1ResourceQuotaStatus. + hard is the set of enforced hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + + :param hard: The hard of this V1ResourceQuotaStatus. + :type: str + """ + self._hard = hard + + @property + def used(self): + """ + Gets the used of this V1ResourceQuotaStatus. + used is the current observed total usage of the resource in the namespace + + :return: The used of this V1ResourceQuotaStatus. + :rtype: str + """ + return self._used + + @used.setter + def used(self, used): + """ + Sets the used of this V1ResourceQuotaStatus. + used is the current observed total usage of the resource in the namespace + + :param used: The used of this V1ResourceQuotaStatus. + :type: str + """ + self._used = used + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_requirements.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_requirements.py new file mode 100644 index 0000000000..0751e51cbe --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_resource_requirements.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ResourceRequirements(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'limits': 'str', + 'requests': 'str' + } + + self.attribute_map = { + 'limits': 'limits', + 'requests': 'requests' + } + + self._limits = None + self._requests = None + + @property + def limits(self): + """ + Gets the limits of this V1ResourceRequirements. + Maximum amount of compute resources allowed; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications + + :return: The limits of this V1ResourceRequirements. + :rtype: str + """ + return self._limits + + @limits.setter + def limits(self, limits): + """ + Sets the limits of this V1ResourceRequirements. + Maximum amount of compute resources allowed; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications + + :param limits: The limits of this V1ResourceRequirements. + :type: str + """ + self._limits = limits + + @property + def requests(self): + """ + Gets the requests of this V1ResourceRequirements. + Minimum amount of resources requested; requests are honored only for persistent volumes as of now; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications + + :return: The requests of this V1ResourceRequirements. + :rtype: str + """ + return self._requests + + @requests.setter + def requests(self, requests): + """ + Sets the requests of this V1ResourceRequirements. + Minimum amount of resources requested; requests are honored only for persistent volumes as of now; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications + + :param requests: The requests of this V1ResourceRequirements. + :type: str + """ + self._requests = requests + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_se_linux_options.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_se_linux_options.py new file mode 100644 index 0000000000..e661e770a9 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_se_linux_options.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1SELinuxOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'user': 'str', + 'role': 'str', + 'type': 'str', + 'level': 'str' + } + + self.attribute_map = { + 'user': 'user', + 'role': 'role', + 'type': 'type', + 'level': 'level' + } + + self._user = None + self._role = None + self._type = None + self._level = None + + @property + def user(self): + """ + Gets the user of this V1SELinuxOptions. + the user label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + + :return: The user of this V1SELinuxOptions. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1SELinuxOptions. + the user label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + + :param user: The user of this V1SELinuxOptions. + :type: str + """ + self._user = user + + @property + def role(self): + """ + Gets the role of this V1SELinuxOptions. + the role label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + + :return: The role of this V1SELinuxOptions. + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """ + Sets the role of this V1SELinuxOptions. + the role label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + + :param role: The role of this V1SELinuxOptions. + :type: str + """ + self._role = role + + @property + def type(self): + """ + Gets the type of this V1SELinuxOptions. + the type label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + + :return: The type of this V1SELinuxOptions. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1SELinuxOptions. + the type label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + + :param type: The type of this V1SELinuxOptions. + :type: str + """ + self._type = type + + @property + def level(self): + """ + Gets the level of this V1SELinuxOptions. + the level label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + + :return: The level of this V1SELinuxOptions. + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """ + Sets the level of this V1SELinuxOptions. + the level label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md + + :param level: The level of this V1SELinuxOptions. + :type: str + """ + self._level = level + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_secret.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_secret.py new file mode 100644 index 0000000000..f3d3cf8dfb --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_secret.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Secret(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'data': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'data': 'data', + 'type': 'type' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._data = None + self._type = None + + @property + def kind(self): + """ + Gets the kind of this V1Secret. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1Secret. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Secret. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1Secret. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1Secret. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1Secret. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Secret. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1Secret. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1Secret. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1Secret. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Secret. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1Secret. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def data(self): + """ + Gets the data of this V1Secret. + data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. Each value must be a base64 encoded string as described in https://tools.ietf.org/html/rfc4648#section-4 + + :return: The data of this V1Secret. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this V1Secret. + data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. Each value must be a base64 encoded string as described in https://tools.ietf.org/html/rfc4648#section-4 + + :param data: The data of this V1Secret. + :type: str + """ + self._data = data + + @property + def type(self): + """ + Gets the type of this V1Secret. + type facilitates programmatic handling of secret data + + :return: The type of this V1Secret. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1Secret. + type facilitates programmatic handling of secret data + + :param type: The type of this V1Secret. + :type: str + """ + self._type = type + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_secret_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_secret_list.py new file mode 100644 index 0000000000..0fd43f1aaa --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_secret_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1SecretList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1Secret]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1SecretList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1SecretList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1SecretList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1SecretList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1SecretList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1SecretList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1SecretList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1SecretList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1SecretList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1SecretList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1SecretList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1SecretList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1SecretList. + items is a list of secret objects; see http://releases.k8s.io/v1.0.4/docs/secrets.md + + :return: The items of this V1SecretList. + :rtype: list[V1Secret] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1SecretList. + items is a list of secret objects; see http://releases.k8s.io/v1.0.4/docs/secrets.md + + :param items: The items of this V1SecretList. + :type: list[V1Secret] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_secret_volume_source.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_secret_volume_source.py new file mode 100644 index 0000000000..67c5d24ac0 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_secret_volume_source.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1SecretVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'secret_name': 'str' + } + + self.attribute_map = { + 'secret_name': 'secretName' + } + + self._secret_name = None + + @property + def secret_name(self): + """ + Gets the secret_name of this V1SecretVolumeSource. + secretName is the name of a secret in the pod's namespace; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets + + :return: The secret_name of this V1SecretVolumeSource. + :rtype: str + """ + return self._secret_name + + @secret_name.setter + def secret_name(self, secret_name): + """ + Sets the secret_name of this V1SecretVolumeSource. + secretName is the name of a secret in the pod's namespace; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets + + :param secret_name: The secret_name of this V1SecretVolumeSource. + :type: str + """ + self._secret_name = secret_name + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_security_context.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_security_context.py new file mode 100644 index 0000000000..a0dc3feae8 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_security_context.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1SecurityContext(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'capabilities': 'V1Capabilities', + 'privileged': 'bool', + 'se_linux_options': 'V1SELinuxOptions', + 'run_as_user': 'int' + } + + self.attribute_map = { + 'capabilities': 'capabilities', + 'privileged': 'privileged', + 'se_linux_options': 'seLinuxOptions', + 'run_as_user': 'runAsUser' + } + + self._capabilities = None + self._privileged = None + self._se_linux_options = None + self._run_as_user = None + + @property + def capabilities(self): + """ + Gets the capabilities of this V1SecurityContext. + the linux capabilites that should be added or removed; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + + :return: The capabilities of this V1SecurityContext. + :rtype: V1Capabilities + """ + return self._capabilities + + @capabilities.setter + def capabilities(self, capabilities): + """ + Sets the capabilities of this V1SecurityContext. + the linux capabilites that should be added or removed; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + + :param capabilities: The capabilities of this V1SecurityContext. + :type: V1Capabilities + """ + self._capabilities = capabilities + + @property + def privileged(self): + """ + Gets the privileged of this V1SecurityContext. + run the container in privileged mode; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + + :return: The privileged of this V1SecurityContext. + :rtype: bool + """ + return self._privileged + + @privileged.setter + def privileged(self, privileged): + """ + Sets the privileged of this V1SecurityContext. + run the container in privileged mode; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + + :param privileged: The privileged of this V1SecurityContext. + :type: bool + """ + self._privileged = privileged + + @property + def se_linux_options(self): + """ + Gets the se_linux_options of this V1SecurityContext. + options that control the SELinux labels applied; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + + :return: The se_linux_options of this V1SecurityContext. + :rtype: V1SELinuxOptions + """ + return self._se_linux_options + + @se_linux_options.setter + def se_linux_options(self, se_linux_options): + """ + Sets the se_linux_options of this V1SecurityContext. + options that control the SELinux labels applied; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + + :param se_linux_options: The se_linux_options of this V1SecurityContext. + :type: V1SELinuxOptions + """ + self._se_linux_options = se_linux_options + + @property + def run_as_user(self): + """ + Gets the run_as_user of this V1SecurityContext. + the user id that runs the first process in the container; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + + :return: The run_as_user of this V1SecurityContext. + :rtype: int + """ + return self._run_as_user + + @run_as_user.setter + def run_as_user(self, run_as_user): + """ + Sets the run_as_user of this V1SecurityContext. + the user id that runs the first process in the container; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context + + :param run_as_user: The run_as_user of this V1SecurityContext. + :type: int + """ + self._run_as_user = run_as_user + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_service.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_service.py new file mode 100644 index 0000000000..b0ddff0478 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_service.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Service(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ServiceSpec', + 'status': 'V1ServiceStatus' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._spec = None + self._status = None + + @property + def kind(self): + """ + Gets the kind of this V1Service. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1Service. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Service. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1Service. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1Service. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1Service. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Service. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1Service. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1Service. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1Service. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Service. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1Service. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1Service. + specification of the desired behavior of the service; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The spec of this V1Service. + :rtype: V1ServiceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1Service. + specification of the desired behavior of the service; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param spec: The spec of this V1Service. + :type: V1ServiceSpec + """ + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1Service. + most recently observed status of the service; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The status of this V1Service. + :rtype: V1ServiceStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Service. + most recently observed status of the service; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param status: The status of this V1Service. + :type: V1ServiceStatus + """ + self._status = status + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_service_account.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_account.py new file mode 100644 index 0000000000..b4cb57cc2e --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_account.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ServiceAccount(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ObjectMeta', + 'secrets': 'list[V1ObjectReference]', + 'image_pull_secrets': 'list[V1LocalObjectReference]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'secrets': 'secrets', + 'image_pull_secrets': 'imagePullSecrets' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._secrets = None + self._image_pull_secrets = None + + @property + def kind(self): + """ + Gets the kind of this V1ServiceAccount. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1ServiceAccount. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ServiceAccount. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1ServiceAccount. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1ServiceAccount. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1ServiceAccount. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ServiceAccount. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1ServiceAccount. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1ServiceAccount. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1ServiceAccount. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ServiceAccount. + standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1ServiceAccount. + :type: V1ObjectMeta + """ + self._metadata = metadata + + @property + def secrets(self): + """ + Gets the secrets of this V1ServiceAccount. + list of secrets that can be used by pods running as this service account; see http://releases.k8s.io/v1.0.4/docs/secrets.md + + :return: The secrets of this V1ServiceAccount. + :rtype: list[V1ObjectReference] + """ + return self._secrets + + @secrets.setter + def secrets(self, secrets): + """ + Sets the secrets of this V1ServiceAccount. + list of secrets that can be used by pods running as this service account; see http://releases.k8s.io/v1.0.4/docs/secrets.md + + :param secrets: The secrets of this V1ServiceAccount. + :type: list[V1ObjectReference] + """ + self._secrets = secrets + + @property + def image_pull_secrets(self): + """ + Gets the image_pull_secrets of this V1ServiceAccount. + list of references to secrets in the same namespace available for pulling container images; see http://releases.k8s.io/v1.0.4/docs/secrets.md#manually-specifying-an-imagepullsecret + + :return: The image_pull_secrets of this V1ServiceAccount. + :rtype: list[V1LocalObjectReference] + """ + return self._image_pull_secrets + + @image_pull_secrets.setter + def image_pull_secrets(self, image_pull_secrets): + """ + Sets the image_pull_secrets of this V1ServiceAccount. + list of references to secrets in the same namespace available for pulling container images; see http://releases.k8s.io/v1.0.4/docs/secrets.md#manually-specifying-an-imagepullsecret + + :param image_pull_secrets: The image_pull_secrets of this V1ServiceAccount. + :type: list[V1LocalObjectReference] + """ + self._image_pull_secrets = image_pull_secrets + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_service_account_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_account_list.py new file mode 100644 index 0000000000..200b759f01 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_account_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ServiceAccountList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1ServiceAccount]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1ServiceAccountList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1ServiceAccountList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ServiceAccountList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1ServiceAccountList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1ServiceAccountList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1ServiceAccountList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ServiceAccountList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1ServiceAccountList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1ServiceAccountList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1ServiceAccountList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ServiceAccountList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1ServiceAccountList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1ServiceAccountList. + list of ServiceAccounts; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md#service-accounts + + :return: The items of this V1ServiceAccountList. + :rtype: list[V1ServiceAccount] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ServiceAccountList. + list of ServiceAccounts; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md#service-accounts + + :param items: The items of this V1ServiceAccountList. + :type: list[V1ServiceAccount] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_service_list.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_list.py new file mode 100644 index 0000000000..792902d700 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_list.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ServiceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'items': 'list[V1Service]' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'items': 'items' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._items = None + + @property + def kind(self): + """ + Gets the kind of this V1ServiceList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1ServiceList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ServiceList. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1ServiceList. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1ServiceList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1ServiceList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ServiceList. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1ServiceList. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1ServiceList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1ServiceList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1ServiceList. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1ServiceList. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def items(self): + """ + Gets the items of this V1ServiceList. + list of services + + :return: The items of this V1ServiceList. + :rtype: list[V1Service] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ServiceList. + list of services + + :param items: The items of this V1ServiceList. + :type: list[V1Service] + """ + self._items = items + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_service_port.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_port.py new file mode 100644 index 0000000000..fc7d96aac6 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_port.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ServicePort(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'protocol': 'str', + 'port': 'int', + 'target_port': 'str', + 'node_port': 'int' + } + + self.attribute_map = { + 'name': 'name', + 'protocol': 'protocol', + 'port': 'port', + 'target_port': 'targetPort', + 'node_port': 'nodePort' + } + + self._name = None + self._protocol = None + self._port = None + self._target_port = None + self._node_port = None + + @property + def name(self): + """ + Gets the name of this V1ServicePort. + the name of this port; optional if only one port is defined + + :return: The name of this V1ServicePort. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ServicePort. + the name of this port; optional if only one port is defined + + :param name: The name of this V1ServicePort. + :type: str + """ + self._name = name + + @property + def protocol(self): + """ + Gets the protocol of this V1ServicePort. + the protocol used by this port; must be UDP or TCP; TCP if unspecified + + :return: The protocol of this V1ServicePort. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """ + Sets the protocol of this V1ServicePort. + the protocol used by this port; must be UDP or TCP; TCP if unspecified + + :param protocol: The protocol of this V1ServicePort. + :type: str + """ + self._protocol = protocol + + @property + def port(self): + """ + Gets the port of this V1ServicePort. + the port number that is exposed + + :return: The port of this V1ServicePort. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1ServicePort. + the port number that is exposed + + :param port: The port of this V1ServicePort. + :type: int + """ + self._port = port + + @property + def target_port(self): + """ + Gets the target_port of this V1ServicePort. + number or name of the port to access on the pods targeted by the service; defaults to the service port; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME; see http://releases.k8s.io/v1.0.4/docs/services.md#defining-a-service + + :return: The target_port of this V1ServicePort. + :rtype: str + """ + return self._target_port + + @target_port.setter + def target_port(self, target_port): + """ + Sets the target_port of this V1ServicePort. + number or name of the port to access on the pods targeted by the service; defaults to the service port; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME; see http://releases.k8s.io/v1.0.4/docs/services.md#defining-a-service + + :param target_port: The target_port of this V1ServicePort. + :type: str + """ + self._target_port = target_port + + @property + def node_port(self): + """ + Gets the node_port of this V1ServicePort. + the port on each node on which this service is exposed when type=NodePort or LoadBalancer; usually assigned by the system; if specified, it will be allocated to the service if unused or else creation of the service will fail; see http://releases.k8s.io/v1.0.4/docs/services.md#type--nodeport + + :return: The node_port of this V1ServicePort. + :rtype: int + """ + return self._node_port + + @node_port.setter + def node_port(self, node_port): + """ + Sets the node_port of this V1ServicePort. + the port on each node on which this service is exposed when type=NodePort or LoadBalancer; usually assigned by the system; if specified, it will be allocated to the service if unused or else creation of the service will fail; see http://releases.k8s.io/v1.0.4/docs/services.md#type--nodeport + + :param node_port: The node_port of this V1ServicePort. + :type: int + """ + self._node_port = node_port + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_service_spec.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_spec.py new file mode 100644 index 0000000000..1bbcf454ab --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_spec.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ServiceSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ports': 'list[V1ServicePort]', + 'selector': 'str', + 'cluster_ip': 'str', + 'type': 'str', + 'deprecated_public_i_ps': 'list[str]', + 'session_affinity': 'str' + } + + self.attribute_map = { + 'ports': 'ports', + 'selector': 'selector', + 'cluster_ip': 'clusterIP', + 'type': 'type', + 'deprecated_public_i_ps': 'deprecatedPublicIPs', + 'session_affinity': 'sessionAffinity' + } + + self._ports = None + self._selector = None + self._cluster_ip = None + self._type = None + self._deprecated_public_i_ps = None + self._session_affinity = None + + @property + def ports(self): + """ + Gets the ports of this V1ServiceSpec. + ports exposed by the service; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + + :return: The ports of this V1ServiceSpec. + :rtype: list[V1ServicePort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """ + Sets the ports of this V1ServiceSpec. + ports exposed by the service; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + + :param ports: The ports of this V1ServiceSpec. + :type: list[V1ServicePort] + """ + self._ports = ports + + @property + def selector(self): + """ + Gets the selector of this V1ServiceSpec. + label keys and values that must match in order to receive traffic for this service; if empty, all pods are selected, if not specified, endpoints must be manually specified; see http://releases.k8s.io/v1.0.4/docs/services.md#overview + + :return: The selector of this V1ServiceSpec. + :rtype: str + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1ServiceSpec. + label keys and values that must match in order to receive traffic for this service; if empty, all pods are selected, if not specified, endpoints must be manually specified; see http://releases.k8s.io/v1.0.4/docs/services.md#overview + + :param selector: The selector of this V1ServiceSpec. + :type: str + """ + self._selector = selector + + @property + def cluster_ip(self): + """ + Gets the cluster_ip of this V1ServiceSpec. + IP address of the service; usually assigned by the system; if specified, it will be allocated to the service if unused or else creation of the service will fail; cannot be updated; 'None' can be specified for a headless service when proxying is not required; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + + :return: The cluster_ip of this V1ServiceSpec. + :rtype: str + """ + return self._cluster_ip + + @cluster_ip.setter + def cluster_ip(self, cluster_ip): + """ + Sets the cluster_ip of this V1ServiceSpec. + IP address of the service; usually assigned by the system; if specified, it will be allocated to the service if unused or else creation of the service will fail; cannot be updated; 'None' can be specified for a headless service when proxying is not required; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + + :param cluster_ip: The cluster_ip of this V1ServiceSpec. + :type: str + """ + self._cluster_ip = cluster_ip + + @property + def type(self): + """ + Gets the type of this V1ServiceSpec. + type of this service; must be ClusterIP, NodePort, or LoadBalancer; defaults to ClusterIP; see http://releases.k8s.io/v1.0.4/docs/services.md#external-services + + :return: The type of this V1ServiceSpec. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1ServiceSpec. + type of this service; must be ClusterIP, NodePort, or LoadBalancer; defaults to ClusterIP; see http://releases.k8s.io/v1.0.4/docs/services.md#external-services + + :param type: The type of this V1ServiceSpec. + :type: str + """ + self._type = type + + @property + def deprecated_public_i_ps(self): + """ + Gets the deprecated_public_i_ps of this V1ServiceSpec. + deprecated. externally visible IPs (e.g. load balancers) that should be proxied to this service + + :return: The deprecated_public_i_ps of this V1ServiceSpec. + :rtype: list[str] + """ + return self._deprecated_public_i_ps + + @deprecated_public_i_ps.setter + def deprecated_public_i_ps(self, deprecated_public_i_ps): + """ + Sets the deprecated_public_i_ps of this V1ServiceSpec. + deprecated. externally visible IPs (e.g. load balancers) that should be proxied to this service + + :param deprecated_public_i_ps: The deprecated_public_i_ps of this V1ServiceSpec. + :type: list[str] + """ + self._deprecated_public_i_ps = deprecated_public_i_ps + + @property + def session_affinity(self): + """ + Gets the session_affinity of this V1ServiceSpec. + enable client IP based session affinity; must be ClientIP or None; defaults to None; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + + :return: The session_affinity of this V1ServiceSpec. + :rtype: str + """ + return self._session_affinity + + @session_affinity.setter + def session_affinity(self, session_affinity): + """ + Sets the session_affinity of this V1ServiceSpec. + enable client IP based session affinity; must be ClientIP or None; defaults to None; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies + + :param session_affinity: The session_affinity of this V1ServiceSpec. + :type: str + """ + self._session_affinity = session_affinity + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_service_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_status.py new file mode 100644 index 0000000000..85ce4c11ac --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_service_status.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1ServiceStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'load_balancer': 'V1LoadBalancerStatus' + } + + self.attribute_map = { + 'load_balancer': 'loadBalancer' + } + + self._load_balancer = None + + @property + def load_balancer(self): + """ + Gets the load_balancer of this V1ServiceStatus. + status of load-balancer + + :return: The load_balancer of this V1ServiceStatus. + :rtype: V1LoadBalancerStatus + """ + return self._load_balancer + + @load_balancer.setter + def load_balancer(self, load_balancer): + """ + Sets the load_balancer of this V1ServiceStatus. + status of load-balancer + + :param load_balancer: The load_balancer of this V1ServiceStatus. + :type: V1LoadBalancerStatus + """ + self._load_balancer = load_balancer + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_status.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_status.py new file mode 100644 index 0000000000..02ab6a285b --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_status.py @@ -0,0 +1,274 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Status(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'kind': 'str', + 'api_version': 'str', + 'metadata': 'V1ListMeta', + 'status': 'str', + 'message': 'str', + 'reason': 'str', + 'details': 'V1StatusDetails', + 'code': 'int' + } + + self.attribute_map = { + 'kind': 'kind', + 'api_version': 'apiVersion', + 'metadata': 'metadata', + 'status': 'status', + 'message': 'message', + 'reason': 'reason', + 'details': 'details', + 'code': 'code' + } + + self._kind = None + self._api_version = None + self._metadata = None + self._status = None + self._message = None + self._reason = None + self._details = None + self._code = None + + @property + def kind(self): + """ + Gets the kind of this V1Status. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1Status. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1Status. + kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1Status. + :type: str + """ + self._kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1Status. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :return: The api_version of this V1Status. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1Status. + version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources + + :param api_version: The api_version of this V1Status. + :type: str + """ + self._api_version = api_version + + @property + def metadata(self): + """ + Gets the metadata of this V1Status. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :return: The metadata of this V1Status. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1Status. + standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata + + :param metadata: The metadata of this V1Status. + :type: V1ListMeta + """ + self._metadata = metadata + + @property + def status(self): + """ + Gets the status of this V1Status. + status of the operation; either Success, or Failure; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :return: The status of this V1Status. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1Status. + status of the operation; either Success, or Failure; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status + + :param status: The status of this V1Status. + :type: str + """ + self._status = status + + @property + def message(self): + """ + Gets the message of this V1Status. + human-readable description of the status of this operation + + :return: The message of this V1Status. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1Status. + human-readable description of the status of this operation + + :param message: The message of this V1Status. + :type: str + """ + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1Status. + machine-readable description of why this operation is in the 'Failure' status; if this value is empty there is no information available; a reason clarifies an HTTP status code but does not override it + + :return: The reason of this V1Status. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1Status. + machine-readable description of why this operation is in the 'Failure' status; if this value is empty there is no information available; a reason clarifies an HTTP status code but does not override it + + :param reason: The reason of this V1Status. + :type: str + """ + self._reason = reason + + @property + def details(self): + """ + Gets the details of this V1Status. + extended data associated with the reason; each reason may define its own extended details; this field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type + + :return: The details of this V1Status. + :rtype: V1StatusDetails + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this V1Status. + extended data associated with the reason; each reason may define its own extended details; this field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type + + :param details: The details of this V1Status. + :type: V1StatusDetails + """ + self._details = details + + @property + def code(self): + """ + Gets the code of this V1Status. + suggested HTTP return code for this status; 0 if not set + + :return: The code of this V1Status. + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this V1Status. + suggested HTTP return code for this status; 0 if not set + + :param code: The code of this V1Status. + :type: int + """ + self._code = code + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_status_cause.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_status_cause.py new file mode 100644 index 0000000000..34c917e0cf --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_status_cause.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1StatusCause(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'reason': 'str', + 'message': 'str', + 'field': 'str' + } + + self.attribute_map = { + 'reason': 'reason', + 'message': 'message', + 'field': 'field' + } + + self._reason = None + self._message = None + self._field = None + + @property + def reason(self): + """ + Gets the reason of this V1StatusCause. + machine-readable description of the cause of the error; if this value is empty there is no information available + + :return: The reason of this V1StatusCause. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1StatusCause. + machine-readable description of the cause of the error; if this value is empty there is no information available + + :param reason: The reason of this V1StatusCause. + :type: str + """ + self._reason = reason + + @property + def message(self): + """ + Gets the message of this V1StatusCause. + human-readable description of the cause of the error; this field may be presented as-is to a reader + + :return: The message of this V1StatusCause. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1StatusCause. + human-readable description of the cause of the error; this field may be presented as-is to a reader + + :param message: The message of this V1StatusCause. + :type: str + """ + self._message = message + + @property + def field(self): + """ + Gets the field of this V1StatusCause. + field of the resource that has caused this error, as named by its JSON serialization; may include dot and postfix notation for nested attributes; arrays are zero-indexed; fields may appear more than once in an array of causes due to fields having multiple errors + + :return: The field of this V1StatusCause. + :rtype: str + """ + return self._field + + @field.setter + def field(self, field): + """ + Sets the field of this V1StatusCause. + field of the resource that has caused this error, as named by its JSON serialization; may include dot and postfix notation for nested attributes; arrays are zero-indexed; fields may appear more than once in an array of causes due to fields having multiple errors + + :param field: The field of this V1StatusCause. + :type: str + """ + self._field = field + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_status_details.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_status_details.py new file mode 100644 index 0000000000..83f7d84c26 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_status_details.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1StatusDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'kind': 'str', + 'causes': 'list[V1StatusCause]', + 'retry_after_seconds': 'int' + } + + self.attribute_map = { + 'name': 'name', + 'kind': 'kind', + 'causes': 'causes', + 'retry_after_seconds': 'retryAfterSeconds' + } + + self._name = None + self._kind = None + self._causes = None + self._retry_after_seconds = None + + @property + def name(self): + """ + Gets the name of this V1StatusDetails. + the name attribute of the resource associated with the status StatusReason (when there is a single name which can be described) + + :return: The name of this V1StatusDetails. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1StatusDetails. + the name attribute of the resource associated with the status StatusReason (when there is a single name which can be described) + + :param name: The name of this V1StatusDetails. + :type: str + """ + self._name = name + + @property + def kind(self): + """ + Gets the kind of this V1StatusDetails. + the kind attribute of the resource associated with the status StatusReason; on some operations may differ from the requested resource Kind; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :return: The kind of this V1StatusDetails. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1StatusDetails. + the kind attribute of the resource associated with the status StatusReason; on some operations may differ from the requested resource Kind; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds + + :param kind: The kind of this V1StatusDetails. + :type: str + """ + self._kind = kind + + @property + def causes(self): + """ + Gets the causes of this V1StatusDetails. + the Causes array includes more details associated with the StatusReason failure; not all StatusReasons may provide detailed causes + + :return: The causes of this V1StatusDetails. + :rtype: list[V1StatusCause] + """ + return self._causes + + @causes.setter + def causes(self, causes): + """ + Sets the causes of this V1StatusDetails. + the Causes array includes more details associated with the StatusReason failure; not all StatusReasons may provide detailed causes + + :param causes: The causes of this V1StatusDetails. + :type: list[V1StatusCause] + """ + self._causes = causes + + @property + def retry_after_seconds(self): + """ + Gets the retry_after_seconds of this V1StatusDetails. + the number of seconds before the client should attempt to retry this operation + + :return: The retry_after_seconds of this V1StatusDetails. + :rtype: int + """ + return self._retry_after_seconds + + @retry_after_seconds.setter + def retry_after_seconds(self, retry_after_seconds): + """ + Sets the retry_after_seconds of this V1StatusDetails. + the number of seconds before the client should attempt to retry this operation + + :param retry_after_seconds: The retry_after_seconds of this V1StatusDetails. + :type: int + """ + self._retry_after_seconds = retry_after_seconds + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_tcp_socket_action.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_tcp_socket_action.py new file mode 100644 index 0000000000..af1c5803b2 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_tcp_socket_action.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1TCPSocketAction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'port': 'str' + } + + self.attribute_map = { + 'port': 'port' + } + + self._port = None + + @property + def port(self): + """ + Gets the port of this V1TCPSocketAction. + number of name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME + + :return: The port of this V1TCPSocketAction. + :rtype: str + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1TCPSocketAction. + number of name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME + + :param port: The port of this V1TCPSocketAction. + :type: str + """ + self._port = port + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_volume.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_volume.py new file mode 100644 index 0000000000..40f5595c31 --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_volume.py @@ -0,0 +1,374 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1Volume(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'host_path': 'V1HostPathVolumeSource', + 'empty_dir': 'V1EmptyDirVolumeSource', + 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource', + 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', + 'git_repo': 'V1GitRepoVolumeSource', + 'secret': 'V1SecretVolumeSource', + 'nfs': 'V1NFSVolumeSource', + 'iscsi': 'V1ISCSIVolumeSource', + 'glusterfs': 'V1GlusterfsVolumeSource', + 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', + 'rbd': 'V1RBDVolumeSource' + } + + self.attribute_map = { + 'name': 'name', + 'host_path': 'hostPath', + 'empty_dir': 'emptyDir', + 'gce_persistent_disk': 'gcePersistentDisk', + 'aws_elastic_block_store': 'awsElasticBlockStore', + 'git_repo': 'gitRepo', + 'secret': 'secret', + 'nfs': 'nfs', + 'iscsi': 'iscsi', + 'glusterfs': 'glusterfs', + 'persistent_volume_claim': 'persistentVolumeClaim', + 'rbd': 'rbd' + } + + self._name = None + self._host_path = None + self._empty_dir = None + self._gce_persistent_disk = None + self._aws_elastic_block_store = None + self._git_repo = None + self._secret = None + self._nfs = None + self._iscsi = None + self._glusterfs = None + self._persistent_volume_claim = None + self._rbd = None + + @property + def name(self): + """ + Gets the name of this V1Volume. + volume name; must be a DNS_LABEL and unique within the pod; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + + :return: The name of this V1Volume. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1Volume. + volume name; must be a DNS_LABEL and unique within the pod; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names + + :param name: The name of this V1Volume. + :type: str + """ + self._name = name + + @property + def host_path(self): + """ + Gets the host_path of this V1Volume. + pre-existing host file or directory; generally for privileged system daemons or other agents tied to the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + + :return: The host_path of this V1Volume. + :rtype: V1HostPathVolumeSource + """ + return self._host_path + + @host_path.setter + def host_path(self, host_path): + """ + Sets the host_path of this V1Volume. + pre-existing host file or directory; generally for privileged system daemons or other agents tied to the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath + + :param host_path: The host_path of this V1Volume. + :type: V1HostPathVolumeSource + """ + self._host_path = host_path + + @property + def empty_dir(self): + """ + Gets the empty_dir of this V1Volume. + temporary directory that shares a pod's lifetime; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir + + :return: The empty_dir of this V1Volume. + :rtype: V1EmptyDirVolumeSource + """ + return self._empty_dir + + @empty_dir.setter + def empty_dir(self, empty_dir): + """ + Sets the empty_dir of this V1Volume. + temporary directory that shares a pod's lifetime; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir + + :param empty_dir: The empty_dir of this V1Volume. + :type: V1EmptyDirVolumeSource + """ + self._empty_dir = empty_dir + + @property + def gce_persistent_disk(self): + """ + Gets the gce_persistent_disk of this V1Volume. + GCE disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :return: The gce_persistent_disk of this V1Volume. + :rtype: V1GCEPersistentDiskVolumeSource + """ + return self._gce_persistent_disk + + @gce_persistent_disk.setter + def gce_persistent_disk(self, gce_persistent_disk): + """ + Sets the gce_persistent_disk of this V1Volume. + GCE disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk + + :param gce_persistent_disk: The gce_persistent_disk of this V1Volume. + :type: V1GCEPersistentDiskVolumeSource + """ + self._gce_persistent_disk = gce_persistent_disk + + @property + def aws_elastic_block_store(self): + """ + Gets the aws_elastic_block_store of this V1Volume. + AWS disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :return: The aws_elastic_block_store of this V1Volume. + :rtype: V1AWSElasticBlockStoreVolumeSource + """ + return self._aws_elastic_block_store + + @aws_elastic_block_store.setter + def aws_elastic_block_store(self, aws_elastic_block_store): + """ + Sets the aws_elastic_block_store of this V1Volume. + AWS disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore + + :param aws_elastic_block_store: The aws_elastic_block_store of this V1Volume. + :type: V1AWSElasticBlockStoreVolumeSource + """ + self._aws_elastic_block_store = aws_elastic_block_store + + @property + def git_repo(self): + """ + Gets the git_repo of this V1Volume. + git repository at a particular revision + + :return: The git_repo of this V1Volume. + :rtype: V1GitRepoVolumeSource + """ + return self._git_repo + + @git_repo.setter + def git_repo(self, git_repo): + """ + Sets the git_repo of this V1Volume. + git repository at a particular revision + + :param git_repo: The git_repo of this V1Volume. + :type: V1GitRepoVolumeSource + """ + self._git_repo = git_repo + + @property + def secret(self): + """ + Gets the secret of this V1Volume. + secret to populate volume; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets + + :return: The secret of this V1Volume. + :rtype: V1SecretVolumeSource + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1Volume. + secret to populate volume; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets + + :param secret: The secret of this V1Volume. + :type: V1SecretVolumeSource + """ + self._secret = secret + + @property + def nfs(self): + """ + Gets the nfs of this V1Volume. + NFS volume that will be mounted in the host machine; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + + :return: The nfs of this V1Volume. + :rtype: V1NFSVolumeSource + """ + return self._nfs + + @nfs.setter + def nfs(self, nfs): + """ + Sets the nfs of this V1Volume. + NFS volume that will be mounted in the host machine; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs + + :param nfs: The nfs of this V1Volume. + :type: V1NFSVolumeSource + """ + self._nfs = nfs + + @property + def iscsi(self): + """ + Gets the iscsi of this V1Volume. + iSCSI disk attached to host machine on demand; see http://releases.k8s.io/v1.0.4/examples/iscsi/README.md + + :return: The iscsi of this V1Volume. + :rtype: V1ISCSIVolumeSource + """ + return self._iscsi + + @iscsi.setter + def iscsi(self, iscsi): + """ + Sets the iscsi of this V1Volume. + iSCSI disk attached to host machine on demand; see http://releases.k8s.io/v1.0.4/examples/iscsi/README.md + + :param iscsi: The iscsi of this V1Volume. + :type: V1ISCSIVolumeSource + """ + self._iscsi = iscsi + + @property + def glusterfs(self): + """ + Gets the glusterfs of this V1Volume. + Glusterfs volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md + + :return: The glusterfs of this V1Volume. + :rtype: V1GlusterfsVolumeSource + """ + return self._glusterfs + + @glusterfs.setter + def glusterfs(self, glusterfs): + """ + Sets the glusterfs of this V1Volume. + Glusterfs volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md + + :param glusterfs: The glusterfs of this V1Volume. + :type: V1GlusterfsVolumeSource + """ + self._glusterfs = glusterfs + + @property + def persistent_volume_claim(self): + """ + Gets the persistent_volume_claim of this V1Volume. + a reference to a PersistentVolumeClaim in the same namespace; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + + :return: The persistent_volume_claim of this V1Volume. + :rtype: V1PersistentVolumeClaimVolumeSource + """ + return self._persistent_volume_claim + + @persistent_volume_claim.setter + def persistent_volume_claim(self, persistent_volume_claim): + """ + Sets the persistent_volume_claim of this V1Volume. + a reference to a PersistentVolumeClaim in the same namespace; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims + + :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. + :type: V1PersistentVolumeClaimVolumeSource + """ + self._persistent_volume_claim = persistent_volume_claim + + @property + def rbd(self): + """ + Gets the rbd of this V1Volume. + rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md + + :return: The rbd of this V1Volume. + :rtype: V1RBDVolumeSource + """ + return self._rbd + + @rbd.setter + def rbd(self, rbd): + """ + Sets the rbd of this V1Volume. + rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md + + :param rbd: The rbd of this V1Volume. + :type: V1RBDVolumeSource + """ + self._rbd = rbd + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/models/v1_volume_mount.py b/magnum/common/pythonk8sclient/swagger_client/models/v1_volume_mount.py new file mode 100644 index 0000000000..9276c2b85b --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/models/v1_volume_mount.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from pprint import pformat +from six import iteritems + + +class V1VolumeMount(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + Swagger model + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'name': 'str', + 'read_only': 'bool', + 'mount_path': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'read_only': 'readOnly', + 'mount_path': 'mountPath' + } + + self._name = None + self._read_only = None + self._mount_path = None + + @property + def name(self): + """ + Gets the name of this V1VolumeMount. + name of the volume to mount + + :return: The name of this V1VolumeMount. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1VolumeMount. + name of the volume to mount + + :param name: The name of this V1VolumeMount. + :type: str + """ + self._name = name + + @property + def read_only(self): + """ + Gets the read_only of this V1VolumeMount. + mounted read-only if true, read-write otherwise (false or unspecified) + + :return: The read_only of this V1VolumeMount. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1VolumeMount. + mounted read-only if true, read-write otherwise (false or unspecified) + + :param read_only: The read_only of this V1VolumeMount. + :type: bool + """ + self._read_only = read_only + + @property + def mount_path(self): + """ + Gets the mount_path of this V1VolumeMount. + path within the container at which the volume should be mounted + + :return: The mount_path of this V1VolumeMount. + :rtype: str + """ + return self._mount_path + + @mount_path.setter + def mount_path(self, mount_path): + """ + Sets the mount_path of this V1VolumeMount. + path within the container at which the volume should be mounted + + :param mount_path: The mount_path of this V1VolumeMount. + :type: str + """ + self._mount_path = mount_path + + def to_dict(self): + """ + Return model properties dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + else: + result[attr] = value + + return result + + def to_str(self): + """ + Return model properties str + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() diff --git a/magnum/common/pythonk8sclient/swagger_client/rest.py b/magnum/common/pythonk8sclient/swagger_client/rest.py new file mode 100644 index 0000000000..f9f85f294d --- /dev/null +++ b/magnum/common/pythonk8sclient/swagger_client/rest.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +""" +Copyright 2015 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +Credit: this file (rest.py) is modified based on rest.py in Dropbox Python SDK: +https://www.dropbox.com/developers/core/sdks/python +""" + +import sys +import io +import json +import ssl +import certifi +import logging + +# python 2 and python 3 compatibility library +from six import iteritems + +try: + import urllib3 +except ImportError: + raise ImportError('Swagger python client requires urllib3.') + +try: + # for python3 + from urllib.parse import urlencode +except ImportError: + # for python2 + from urllib import urlencode + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """ + Returns a dictionary of the response headers. + """ + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """ + Returns a given response header. + """ + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, pools_size=4): + # http pool manager + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size + ) + + # https pool manager + # certificates validated using Mozilla’s root certificates + self.ssl_pool_manager = urllib3.PoolManager( + num_pools=pools_size, + cert_reqs=ssl.CERT_REQUIRED, + ca_certs=certifi.where() + ) + + def agent(self, url): + """ + Use `urllib3.util.parse_url` for backward compatibility. + Return proper pool manager for the http/https schemes. + """ + url = urllib3.util.parse_url(url) + scheme = url.scheme + if scheme == 'https': + return self.ssl_pool_manager + else: + return self.pool_manager + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None): + """ + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencode` + and `multipart/form-data` + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', 'PATCH'] + + if post_params and body: + raise ValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + # For `POST`, `PUT`, `PATCH` + if method in ['POST', 'PUT', 'PATCH']: + if query_params: + url += '?' + urlencode(query_params) + if headers['Content-Type'] == 'application/json': + r = self.agent(url).request(method, url, + body=json.dumps(body), + headers=headers) + if headers['Content-Type'] == 'application/x-www-form-urlencoded': + r = self.agent(url).request(method, url, + fields=post_params, + encode_multipart=False, + headers=headers) + if headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct Content-Type + # which generated by urllib3 will be overwritten. + del headers['Content-Type'] + r = self.agent(url).request(method, url, + fields=post_params, + encode_multipart=True, + headers=headers) + # For `GET`, `HEAD`, `DELETE` + else: + r = self.agent(url).request(method, url, + fields=query_params, + headers=headers) + r = RESTResponse(r) + + # In the python 3, the response.data is bytes. + # we need to decode it to string. + if sys.version_info > (3,): + r.data = r.data.decode('utf8') + + # log response body + logger.debug("response body: %s" % r.data) + + if r.status not in range(200, 206): + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None): + return self.request("GET", url, + headers=headers, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None): + return self.request("HEAD", url, + headers=headers, + query_params=query_params) + + def DELETE(self, url, headers=None, query_params=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params) + + def POST(self, url, headers=None, query_params=None, post_params=None, body=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, body=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, body=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + body=body) + + +class ApiException(Exception): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """ + Custom error messages for exception + """ + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format(self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message + + +class RESTClient(object): + """ + A class with all class methods to perform JSON requests. + """ + + IMPL = RESTClientObject() + + @classmethod + def request(cls, *n, **kw): + """ + Perform a REST request and parse the response. + """ + return cls.IMPL.request(*n, **kw) + + @classmethod + def GET(cls, *n, **kw): + """ + Perform a GET request using `RESTClient.request()`. + """ + return cls.IMPL.GET(*n, **kw) + + @classmethod + def HEAD(cls, *n, **kw): + """ + Perform a HEAD request using `RESTClient.request()`. + """ + return cls.IMPL.GET(*n, **kw) + + @classmethod + def POST(cls, *n, **kw): + """ + Perform a POST request using `RESTClient.request()` + """ + return cls.IMPL.POST(*n, **kw) + + @classmethod + def PUT(cls, *n, **kw): + """ + Perform a PUT request using `RESTClient.request()` + """ + return cls.IMPL.PUT(*n, **kw) + + @classmethod + def PATCH(cls, *n, **kw): + """ + Perform a PATCH request using `RESTClient.request()` + """ + return cls.IMPL.PATCH(*n, **kw) + + @classmethod + def DELETE(cls, *n, **kw): + """ + Perform a DELETE request using `RESTClient.request()` + """ + return cls.IMPL.DELETE(*n, **kw) diff --git a/magnum/common/pythonk8sclient/templates/v1.json b/magnum/common/pythonk8sclient/templates/v1.json new file mode 100644 index 0000000000..1db910aef2 --- /dev/null +++ b/magnum/common/pythonk8sclient/templates/v1.json @@ -0,0 +1,12683 @@ +{ + "swaggerVersion": "1.2", + "apiVersion": "v1", + "basePath": "https://127.0.0.1:6443", + "resourcePath": "/api/v1", + "apis": [ + { + "path": "/api/v1/namespaces/{namespace}/bindings", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Binding", + "method": "POST", + "summary": "create a Binding", + "nickname": "createNamespacedBinding", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Binding", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Binding" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/bindings", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Binding", + "method": "POST", + "summary": "create a Binding", + "nickname": "createBinding", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Binding", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Binding" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/componentstatuses", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ComponentStatusList", + "method": "GET", + "summary": "list objects of kind ComponentStatus", + "nickname": "listNamespacedComponentStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ComponentStatusList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/componentstatuses/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ComponentStatus", + "method": "GET", + "summary": "read the specified ComponentStatus", + "nickname": "readNamespacedComponentStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ComponentStatus", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ComponentStatus" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/componentstatuses", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ComponentStatusList", + "method": "GET", + "summary": "list objects of kind ComponentStatus", + "nickname": "listComponentStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ComponentStatusList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/endpoints", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.EndpointsList", + "method": "GET", + "summary": "list or watch objects of kind Endpoints", + "nickname": "listNamespacedEndpoints", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.EndpointsList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Endpoints", + "method": "POST", + "summary": "create a Endpoints", + "nickname": "createNamespacedEndpoints", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Endpoints", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Endpoints" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/endpoints", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Endpoints", + "nickname": "watchNamespacedEndpointsList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/endpoints/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Endpoints", + "method": "GET", + "summary": "read the specified Endpoints", + "nickname": "readNamespacedEndpoints", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Endpoints", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Endpoints" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Endpoints", + "method": "PUT", + "summary": "replace the specified Endpoints", + "nickname": "replaceNamespacedEndpoints", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Endpoints", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Endpoints", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Endpoints" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Endpoints", + "method": "PATCH", + "summary": "partially update the specified Endpoints", + "nickname": "patchNamespacedEndpoints", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Endpoints", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Endpoints" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a Endpoints", + "nickname": "deleteNamespacedEndpoints", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Endpoints", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/endpoints/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind Endpoints", + "nickname": "watchNamespacedEndpoints", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Endpoints", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/endpoints", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.EndpointsList", + "method": "GET", + "summary": "list or watch objects of kind Endpoints", + "nickname": "listEndpoints", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.EndpointsList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Endpoints", + "method": "POST", + "summary": "create a Endpoints", + "nickname": "createEndpoints", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Endpoints", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Endpoints" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/endpoints", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Endpoints", + "nickname": "watchEndpointsList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/events", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.EventList", + "method": "GET", + "summary": "list or watch objects of kind Event", + "nickname": "listNamespacedEvent", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.EventList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Event", + "method": "POST", + "summary": "create a Event", + "nickname": "createNamespacedEvent", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Event", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Event" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/events", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Event", + "nickname": "watchNamespacedEventList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/events/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Event", + "method": "GET", + "summary": "read the specified Event", + "nickname": "readNamespacedEvent", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Event", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Event" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Event", + "method": "PUT", + "summary": "replace the specified Event", + "nickname": "replaceNamespacedEvent", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Event", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Event", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Event" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Event", + "method": "PATCH", + "summary": "partially update the specified Event", + "nickname": "patchNamespacedEvent", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Event", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Event" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a Event", + "nickname": "deleteNamespacedEvent", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Event", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/events/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind Event", + "nickname": "watchNamespacedEvent", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Event", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/events", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.EventList", + "method": "GET", + "summary": "list or watch objects of kind Event", + "nickname": "listEvent", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.EventList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Event", + "method": "POST", + "summary": "create a Event", + "nickname": "createEvent", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Event", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Event" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/events", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Event", + "nickname": "watchEventList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/limitranges", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.LimitRangeList", + "method": "GET", + "summary": "list or watch objects of kind LimitRange", + "nickname": "listNamespacedLimitRange", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.LimitRangeList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.LimitRange", + "method": "POST", + "summary": "create a LimitRange", + "nickname": "createNamespacedLimitRange", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.LimitRange", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.LimitRange" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/limitranges", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of LimitRange", + "nickname": "watchNamespacedLimitRangeList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/limitranges/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.LimitRange", + "method": "GET", + "summary": "read the specified LimitRange", + "nickname": "readNamespacedLimitRange", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the LimitRange", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.LimitRange" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.LimitRange", + "method": "PUT", + "summary": "replace the specified LimitRange", + "nickname": "replaceNamespacedLimitRange", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.LimitRange", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the LimitRange", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.LimitRange" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.LimitRange", + "method": "PATCH", + "summary": "partially update the specified LimitRange", + "nickname": "patchNamespacedLimitRange", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the LimitRange", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.LimitRange" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a LimitRange", + "nickname": "deleteNamespacedLimitRange", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the LimitRange", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/limitranges/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind LimitRange", + "nickname": "watchNamespacedLimitRange", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the LimitRange", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/limitranges", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.LimitRangeList", + "method": "GET", + "summary": "list or watch objects of kind LimitRange", + "nickname": "listLimitRange", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.LimitRangeList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.LimitRange", + "method": "POST", + "summary": "create a LimitRange", + "nickname": "createLimitRange", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.LimitRange", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.LimitRange" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/limitranges", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of LimitRange", + "nickname": "watchLimitRangeList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.NamespaceList", + "method": "GET", + "summary": "list or watch objects of kind Namespace", + "nickname": "listNamespacedNamespace", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.NamespaceList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Namespace", + "method": "POST", + "summary": "create a Namespace", + "nickname": "createNamespacedNamespace", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Namespace", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Namespace" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Namespace", + "nickname": "watchNamespacedNamespaceList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Namespace", + "method": "GET", + "summary": "read the specified Namespace", + "nickname": "readNamespacedNamespace", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Namespace", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Namespace" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Namespace", + "method": "PUT", + "summary": "replace the specified Namespace", + "nickname": "replaceNamespacedNamespace", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Namespace", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Namespace", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Namespace" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Namespace", + "method": "PATCH", + "summary": "partially update the specified Namespace", + "nickname": "patchNamespacedNamespace", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Namespace", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Namespace" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a Namespace", + "nickname": "deleteNamespacedNamespace", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Namespace", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind Namespace", + "nickname": "watchNamespacedNamespace", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Namespace", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{name}/finalize", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Namespace", + "method": "PUT", + "summary": "replace finalize of the specified Namespace", + "nickname": "replaceNamespacedNamespaceFinalize", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Namespace", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Namespace", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Namespace" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{name}/status", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Namespace", + "method": "PUT", + "summary": "replace status of the specified Namespace", + "nickname": "replaceNamespacedNamespaceStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Namespace", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Namespace", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Namespace" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/nodes", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.NodeList", + "method": "GET", + "summary": "list or watch objects of kind Node", + "nickname": "listNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.NodeList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Node", + "method": "POST", + "summary": "create a Node", + "nickname": "createNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Node", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Node" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/nodes", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Node", + "nickname": "watchNamespacedNodeList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/nodes/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Node", + "method": "GET", + "summary": "read the specified Node", + "nickname": "readNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Node" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Node", + "method": "PUT", + "summary": "replace the specified Node", + "nickname": "replaceNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Node", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Node" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Node", + "method": "PATCH", + "summary": "partially update the specified Node", + "nickname": "patchNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Node" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a Node", + "nickname": "deleteNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/nodes/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind Node", + "nickname": "watchNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/proxy/nodes/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "proxy GET requests to Node", + "nickname": "proxyGETNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "proxy PUT requests to Node", + "nickname": "proxyPUTNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "proxy POST requests to Node", + "nickname": "proxyPOSTNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "proxy DELETE requests to Node", + "nickname": "proxyDELETENamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "proxy HEAD requests to Node", + "nickname": "proxyHEADNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "proxy OPTIONS requests to Node", + "nickname": "proxyOPTIONSNamespacedNode", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/nodes/{name}/status", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Node", + "method": "PUT", + "summary": "replace status of the specified Node", + "nickname": "replaceNamespacedNodeStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Node", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Node", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Node" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PersistentVolumeClaimList", + "method": "GET", + "summary": "list or watch objects of kind PersistentVolumeClaim", + "nickname": "listNamespacedPersistentVolumeClaim", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolumeClaimList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.PersistentVolumeClaim", + "method": "POST", + "summary": "create a PersistentVolumeClaim", + "nickname": "createNamespacedPersistentVolumeClaim", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.PersistentVolumeClaim", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolumeClaim" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of PersistentVolumeClaim", + "nickname": "watchNamespacedPersistentVolumeClaimList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PersistentVolumeClaim", + "method": "GET", + "summary": "read the specified PersistentVolumeClaim", + "nickname": "readNamespacedPersistentVolumeClaim", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolumeClaim", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolumeClaim" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.PersistentVolumeClaim", + "method": "PUT", + "summary": "replace the specified PersistentVolumeClaim", + "nickname": "replaceNamespacedPersistentVolumeClaim", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.PersistentVolumeClaim", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolumeClaim", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolumeClaim" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.PersistentVolumeClaim", + "method": "PATCH", + "summary": "partially update the specified PersistentVolumeClaim", + "nickname": "patchNamespacedPersistentVolumeClaim", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolumeClaim", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolumeClaim" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a PersistentVolumeClaim", + "nickname": "deleteNamespacedPersistentVolumeClaim", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolumeClaim", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind PersistentVolumeClaim", + "nickname": "watchNamespacedPersistentVolumeClaim", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolumeClaim", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/persistentvolumeclaims", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PersistentVolumeClaimList", + "method": "GET", + "summary": "list or watch objects of kind PersistentVolumeClaim", + "nickname": "listPersistentVolumeClaim", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolumeClaimList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.PersistentVolumeClaim", + "method": "POST", + "summary": "create a PersistentVolumeClaim", + "nickname": "createPersistentVolumeClaim", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.PersistentVolumeClaim", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolumeClaim" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/persistentvolumeclaims", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of PersistentVolumeClaim", + "nickname": "watchPersistentVolumeClaimList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PersistentVolumeClaim", + "method": "PUT", + "summary": "replace status of the specified PersistentVolumeClaim", + "nickname": "replaceNamespacedPersistentVolumeClaimStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.PersistentVolumeClaim", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolumeClaim", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolumeClaim" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/persistentvolumes", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PersistentVolumeList", + "method": "GET", + "summary": "list or watch objects of kind PersistentVolume", + "nickname": "listNamespacedPersistentVolume", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolumeList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.PersistentVolume", + "method": "POST", + "summary": "create a PersistentVolume", + "nickname": "createNamespacedPersistentVolume", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.PersistentVolume", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolume" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/persistentvolumes", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of PersistentVolume", + "nickname": "watchNamespacedPersistentVolumeList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/persistentvolumes/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PersistentVolume", + "method": "GET", + "summary": "read the specified PersistentVolume", + "nickname": "readNamespacedPersistentVolume", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolume", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolume" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.PersistentVolume", + "method": "PUT", + "summary": "replace the specified PersistentVolume", + "nickname": "replaceNamespacedPersistentVolume", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.PersistentVolume", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolume", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolume" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.PersistentVolume", + "method": "PATCH", + "summary": "partially update the specified PersistentVolume", + "nickname": "patchNamespacedPersistentVolume", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolume", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolume" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a PersistentVolume", + "nickname": "deleteNamespacedPersistentVolume", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolume", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/persistentvolumes/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind PersistentVolume", + "nickname": "watchNamespacedPersistentVolume", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolume", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/persistentvolumes/{name}/status", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PersistentVolume", + "method": "PUT", + "summary": "replace status of the specified PersistentVolume", + "nickname": "replaceNamespacedPersistentVolumeStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.PersistentVolume", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PersistentVolume", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PersistentVolume" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/pods", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PodList", + "method": "GET", + "summary": "list or watch objects of kind Pod", + "nickname": "listNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PodList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Pod", + "method": "POST", + "summary": "create a Pod", + "nickname": "createNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Pod", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Pod" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/pods", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Pod", + "nickname": "watchNamespacedPodList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/pods/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Pod", + "method": "GET", + "summary": "read the specified Pod", + "nickname": "readNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Pod" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Pod", + "method": "PUT", + "summary": "replace the specified Pod", + "nickname": "replaceNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Pod", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Pod" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Pod", + "method": "PATCH", + "summary": "partially update the specified Pod", + "nickname": "patchNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Pod" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a Pod", + "nickname": "deleteNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/pods/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind Pod", + "nickname": "watchNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/proxy/namespaces/{namespace}/pods/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "proxy GET requests to Pod", + "nickname": "proxyGETNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "proxy PUT requests to Pod", + "nickname": "proxyPUTNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "proxy POST requests to Pod", + "nickname": "proxyPOSTNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "proxy DELETE requests to Pod", + "nickname": "proxyDELETENamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "proxy HEAD requests to Pod", + "nickname": "proxyHEADNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "proxy OPTIONS requests to Pod", + "nickname": "proxyOPTIONSNamespacedPod", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/pods", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PodList", + "method": "GET", + "summary": "list or watch objects of kind Pod", + "nickname": "listPod", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PodList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Pod", + "method": "POST", + "summary": "create a Pod", + "nickname": "createPod", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Pod", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Pod" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/pods", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Pod", + "nickname": "watchPodList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/pods/{name}/binding", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Binding", + "method": "POST", + "summary": "create binding of a Binding", + "nickname": "createNamespacedBindingBinding", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Binding", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Binding", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Binding" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/pods/{name}/exec", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "connect GET requests to exec of Pod", + "nickname": "connectGetNamespacedPodExec", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "connect POST requests to exec of Pod", + "nickname": "connectPostNamespacedPodExec", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/pods/{name}/log", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Pod", + "method": "GET", + "summary": "read log of the specified Pod", + "nickname": "readNamespacedPodLog", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Pod" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/pods/{name}/portforward", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "connect GET requests to portforward of Pod", + "nickname": "connectGetNamespacedPodPortforward", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "connect POST requests to portforward of Pod", + "nickname": "connectPostNamespacedPodPortforward", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/pods/{name}/proxy", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "connect GET requests to proxy of Pod", + "nickname": "connectGetNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "connect POST requests to proxy of Pod", + "nickname": "connectPostNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "connect PUT requests to proxy of Pod", + "nickname": "connectPutNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "connect DELETE requests to proxy of Pod", + "nickname": "connectDeleteNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "connect HEAD requests to proxy of Pod", + "nickname": "connectHeadNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "connect OPTIONS requests to proxy of Pod", + "nickname": "connectOptionsNamespacedPodProxy", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/pods/{name}/status", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Pod", + "method": "PUT", + "summary": "replace status of the specified Pod", + "nickname": "replaceNamespacedPodStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Pod", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Pod", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Pod" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/podtemplates", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PodTemplateList", + "method": "GET", + "summary": "list or watch objects of kind PodTemplate", + "nickname": "listNamespacedPodTemplate", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PodTemplateList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.PodTemplate", + "method": "POST", + "summary": "create a PodTemplate", + "nickname": "createNamespacedPodTemplate", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.PodTemplate", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PodTemplate" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/podtemplates", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of PodTemplate", + "nickname": "watchNamespacedPodTemplateList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/podtemplates/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PodTemplate", + "method": "GET", + "summary": "read the specified PodTemplate", + "nickname": "readNamespacedPodTemplate", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PodTemplate", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PodTemplate" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.PodTemplate", + "method": "PUT", + "summary": "replace the specified PodTemplate", + "nickname": "replaceNamespacedPodTemplate", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.PodTemplate", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PodTemplate", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PodTemplate" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.PodTemplate", + "method": "PATCH", + "summary": "partially update the specified PodTemplate", + "nickname": "patchNamespacedPodTemplate", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PodTemplate", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PodTemplate" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a PodTemplate", + "nickname": "deleteNamespacedPodTemplate", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PodTemplate", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind PodTemplate", + "nickname": "watchNamespacedPodTemplate", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the PodTemplate", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/podtemplates", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.PodTemplateList", + "method": "GET", + "summary": "list or watch objects of kind PodTemplate", + "nickname": "listPodTemplate", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PodTemplateList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.PodTemplate", + "method": "POST", + "summary": "create a PodTemplate", + "nickname": "createPodTemplate", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.PodTemplate", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.PodTemplate" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/podtemplates", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of PodTemplate", + "nickname": "watchPodTemplateList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/replicationcontrollers", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ReplicationControllerList", + "method": "GET", + "summary": "list or watch objects of kind ReplicationController", + "nickname": "listNamespacedReplicationController", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ReplicationControllerList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ReplicationController", + "method": "POST", + "summary": "create a ReplicationController", + "nickname": "createNamespacedReplicationController", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ReplicationController", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ReplicationController" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/replicationcontrollers", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of ReplicationController", + "nickname": "watchNamespacedReplicationControllerList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ReplicationController", + "method": "GET", + "summary": "read the specified ReplicationController", + "nickname": "readNamespacedReplicationController", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ReplicationController", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ReplicationController" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ReplicationController", + "method": "PUT", + "summary": "replace the specified ReplicationController", + "nickname": "replaceNamespacedReplicationController", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ReplicationController", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ReplicationController", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ReplicationController" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ReplicationController", + "method": "PATCH", + "summary": "partially update the specified ReplicationController", + "nickname": "patchNamespacedReplicationController", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ReplicationController", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ReplicationController" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a ReplicationController", + "nickname": "deleteNamespacedReplicationController", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ReplicationController", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind ReplicationController", + "nickname": "watchNamespacedReplicationController", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ReplicationController", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/replicationcontrollers", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ReplicationControllerList", + "method": "GET", + "summary": "list or watch objects of kind ReplicationController", + "nickname": "listReplicationController", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ReplicationControllerList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ReplicationController", + "method": "POST", + "summary": "create a ReplicationController", + "nickname": "createReplicationController", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ReplicationController", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ReplicationController" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/replicationcontrollers", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of ReplicationController", + "nickname": "watchReplicationControllerList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/resourcequotas", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ResourceQuotaList", + "method": "GET", + "summary": "list or watch objects of kind ResourceQuota", + "nickname": "listNamespacedResourceQuota", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ResourceQuotaList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ResourceQuota", + "method": "POST", + "summary": "create a ResourceQuota", + "nickname": "createNamespacedResourceQuota", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ResourceQuota", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ResourceQuota" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/resourcequotas", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of ResourceQuota", + "nickname": "watchNamespacedResourceQuotaList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/resourcequotas/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ResourceQuota", + "method": "GET", + "summary": "read the specified ResourceQuota", + "nickname": "readNamespacedResourceQuota", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ResourceQuota", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ResourceQuota" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ResourceQuota", + "method": "PUT", + "summary": "replace the specified ResourceQuota", + "nickname": "replaceNamespacedResourceQuota", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ResourceQuota", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ResourceQuota", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ResourceQuota" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ResourceQuota", + "method": "PATCH", + "summary": "partially update the specified ResourceQuota", + "nickname": "patchNamespacedResourceQuota", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ResourceQuota", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ResourceQuota" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a ResourceQuota", + "nickname": "deleteNamespacedResourceQuota", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ResourceQuota", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind ResourceQuota", + "nickname": "watchNamespacedResourceQuota", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ResourceQuota", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/resourcequotas", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ResourceQuotaList", + "method": "GET", + "summary": "list or watch objects of kind ResourceQuota", + "nickname": "listResourceQuota", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ResourceQuotaList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ResourceQuota", + "method": "POST", + "summary": "create a ResourceQuota", + "nickname": "createResourceQuota", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ResourceQuota", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ResourceQuota" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/resourcequotas", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of ResourceQuota", + "nickname": "watchResourceQuotaList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ResourceQuota", + "method": "PUT", + "summary": "replace status of the specified ResourceQuota", + "nickname": "replaceNamespacedResourceQuotaStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ResourceQuota", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ResourceQuota", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ResourceQuota" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/secrets", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.SecretList", + "method": "GET", + "summary": "list or watch objects of kind Secret", + "nickname": "listNamespacedSecret", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.SecretList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Secret", + "method": "POST", + "summary": "create a Secret", + "nickname": "createNamespacedSecret", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Secret", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Secret" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/secrets", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Secret", + "nickname": "watchNamespacedSecretList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/secrets/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Secret", + "method": "GET", + "summary": "read the specified Secret", + "nickname": "readNamespacedSecret", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Secret", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Secret" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Secret", + "method": "PUT", + "summary": "replace the specified Secret", + "nickname": "replaceNamespacedSecret", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Secret", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Secret", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Secret" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Secret", + "method": "PATCH", + "summary": "partially update the specified Secret", + "nickname": "patchNamespacedSecret", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Secret", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Secret" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a Secret", + "nickname": "deleteNamespacedSecret", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Secret", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/secrets/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind Secret", + "nickname": "watchNamespacedSecret", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Secret", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/secrets", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.SecretList", + "method": "GET", + "summary": "list or watch objects of kind Secret", + "nickname": "listSecret", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.SecretList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Secret", + "method": "POST", + "summary": "create a Secret", + "nickname": "createSecret", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Secret", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Secret" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/secrets", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Secret", + "nickname": "watchSecretList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/serviceaccounts", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ServiceAccountList", + "method": "GET", + "summary": "list or watch objects of kind ServiceAccount", + "nickname": "listNamespacedServiceAccount", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ServiceAccountList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ServiceAccount", + "method": "POST", + "summary": "create a ServiceAccount", + "nickname": "createNamespacedServiceAccount", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ServiceAccount", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ServiceAccount" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/serviceaccounts", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of ServiceAccount", + "nickname": "watchNamespacedServiceAccountList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/serviceaccounts/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ServiceAccount", + "method": "GET", + "summary": "read the specified ServiceAccount", + "nickname": "readNamespacedServiceAccount", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ServiceAccount", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ServiceAccount" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ServiceAccount", + "method": "PUT", + "summary": "replace the specified ServiceAccount", + "nickname": "replaceNamespacedServiceAccount", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ServiceAccount", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ServiceAccount", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ServiceAccount" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ServiceAccount", + "method": "PATCH", + "summary": "partially update the specified ServiceAccount", + "nickname": "patchNamespacedServiceAccount", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ServiceAccount", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ServiceAccount" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a ServiceAccount", + "nickname": "deleteNamespacedServiceAccount", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ServiceAccount", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind ServiceAccount", + "nickname": "watchNamespacedServiceAccount", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the ServiceAccount", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/serviceaccounts", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ServiceAccountList", + "method": "GET", + "summary": "list or watch objects of kind ServiceAccount", + "nickname": "listServiceAccount", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ServiceAccountList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.ServiceAccount", + "method": "POST", + "summary": "create a ServiceAccount", + "nickname": "createServiceAccount", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.ServiceAccount", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ServiceAccount" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/serviceaccounts", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of ServiceAccount", + "nickname": "watchServiceAccountList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/services", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ServiceList", + "method": "GET", + "summary": "list or watch objects of kind Service", + "nickname": "listNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ServiceList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Service", + "method": "POST", + "summary": "create a Service", + "nickname": "createNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Service", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Service" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/services", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Service", + "nickname": "watchNamespacedServiceList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/namespaces/{namespace}/services/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.Service", + "method": "GET", + "summary": "read the specified Service", + "nickname": "readNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Service" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Service", + "method": "PUT", + "summary": "replace the specified Service", + "nickname": "replaceNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Service", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Service" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Service", + "method": "PATCH", + "summary": "partially update the specified Service", + "nickname": "patchNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "api.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Service" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "v1.Status", + "method": "DELETE", + "summary": "delete a Service", + "nickname": "deleteNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/namespaces/{namespace}/services/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind Service", + "nickname": "watchNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/proxy/namespaces/{namespace}/services/{name}", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "string", + "method": "GET", + "summary": "proxy GET requests to Service", + "nickname": "proxyGETNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "PUT", + "summary": "proxy PUT requests to Service", + "nickname": "proxyPUTNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "POST", + "summary": "proxy POST requests to Service", + "nickname": "proxyPOSTNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "DELETE", + "summary": "proxy DELETE requests to Service", + "nickname": "proxyDELETENamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "HEAD", + "summary": "proxy HEAD requests to Service", + "nickname": "proxyHEADNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "string", + "method": "OPTIONS", + "summary": "proxy OPTIONS requests to Service", + "nickname": "proxyOPTIONSNamespacedService", + "parameters": [ + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Service", + "required": true, + "allowMultiple": false + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/services", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "v1.ServiceList", + "method": "GET", + "summary": "list or watch objects of kind Service", + "nickname": "listService", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.ServiceList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + { + "type": "v1.Service", + "method": "POST", + "summary": "create a Service", + "nickname": "createService", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.Service", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1.Service" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + }, + { + "path": "/api/v1/watch/services", + "description": "API at /api/v1 version v1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Service", + "nickname": "watchServiceList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "a selector to restrict the list of returned objects by their labels; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "a selector to restrict the list of returned objects by their fields; defaults to everything", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "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", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + } + ], + "models": { + "v1.Binding": { + "id": "v1.Binding", + "required": [ + "target" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "target": { + "$ref": "v1.ObjectReference", + "description": "an object to bind to" + } + } + }, + "v1.ObjectMeta": { + "id": "v1.ObjectMeta", + "properties": { + "name": { + "type": "string", + "description": "string that identifies an object. Must be unique within a namespace; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names" + }, + "generateName": { + "type": "string", + "description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#idempotency" + }, + "namespace": { + "type": "string", + "description": "namespace of the object; must be a DNS_LABEL; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/namespaces.md" + }, + "selfLink": { + "type": "string", + "description": "URL for the object; populated by the system, read-only" + }, + "uid": { + "type": "string", + "description": "unique UUID across space and time; populated by the system; read-only; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids" + }, + "resourceVersion": { + "type": "string", + "description": "string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency" + }, + "generation": { + "type": "integer", + "format": "int64", + "description": "a sequence number representing a specific generation of the desired state; populated by the system; read-only" + }, + "creationTimestamp": { + "type": "string", + "description": "RFC 3339 date and time at which the object was created; populated by the system, read-only; null for lists; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "deletionTimestamp": { + "type": "string", + "description": "RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested, read-only; if not set, graceful deletion of the object has not been requested; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "labels": { + "type": "string", + "description": "map of string keys and values that can be used to organize and categorize objects; may match selectors of replication controllers and services; see http://releases.k8s.io/v1.0.4/docs/labels.md" + }, + "annotations": { + "type": "string", + "description": "map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about objects; see http://releases.k8s.io/v1.0.4/docs/annotations.md" + } + } + }, + "v1.ObjectReference": { + "id": "v1.ObjectReference", + "properties": { + "kind": { + "type": "string", + "description": "kind of the referent; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "namespace": { + "type": "string", + "description": "namespace of the referent; see http://releases.k8s.io/v1.0.4/docs/namespaces.md" + }, + "name": { + "type": "string", + "description": "name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names" + }, + "uid": { + "type": "string", + "description": "uid of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#uids" + }, + "apiVersion": { + "type": "string", + "description": "API version of the referent" + }, + "resourceVersion": { + "type": "string", + "description": "specific resourceVersion to which this reference is made, if any: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency" + }, + "fieldPath": { + "type": "string", + "description": "if referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]" + } + } + }, + "v1.ComponentStatusList": { + "id": "v1.ComponentStatusList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.ComponentStatus" + }, + "description": "list of component status objects" + } + } + }, + "v1.ListMeta": { + "id": "v1.ListMeta", + "properties": { + "selfLink": { + "type": "string", + "description": "URL for the object; populated by the system, read-only" + }, + "resourceVersion": { + "type": "string", + "description": "string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: http://releases.k8s.io/v1.0.4/docs/api-conventions.md#concurrency-control-and-consistency" + } + } + }, + "v1.ComponentStatus": { + "id": "v1.ComponentStatus", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "conditions": { + "type": "array", + "items": { + "$ref": "v1.ComponentCondition" + }, + "description": "list of component conditions observed" + } + } + }, + "v1.ComponentCondition": { + "id": "v1.ComponentCondition", + "required": [ + "type", + "status" + ], + "properties": { + "type": { + "type": "string", + "description": "type of component condition, currently only Healthy" + }, + "status": { + "type": "string", + "description": "current status of this component condition, one of True, False, Unknown" + }, + "message": { + "type": "string", + "description": "health check message received from the component" + }, + "error": { + "type": "string", + "description": "error code from health check attempt (if any)" + } + } + }, + "v1.EndpointsList": { + "id": "v1.EndpointsList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.Endpoints" + }, + "description": "list of endpoints" + } + } + }, + "v1.Endpoints": { + "id": "v1.Endpoints", + "required": [ + "subsets" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "subsets": { + "type": "array", + "items": { + "$ref": "v1.EndpointSubset" + }, + "description": "sets of addresses and ports that comprise a service" + } + } + }, + "v1.EndpointSubset": { + "id": "v1.EndpointSubset", + "properties": { + "addresses": { + "type": "array", + "items": { + "$ref": "v1.EndpointAddress" + }, + "description": "IP addresses which offer the related ports" + }, + "ports": { + "type": "array", + "items": { + "$ref": "v1.EndpointPort" + }, + "description": "port numbers available on the related IP addresses" + } + } + }, + "v1.EndpointAddress": { + "id": "v1.EndpointAddress", + "required": [ + "ip" + ], + "properties": { + "ip": { + "type": "string", + "description": "IP address of the endpoint" + }, + "targetRef": { + "$ref": "v1.ObjectReference", + "description": "reference to object providing the endpoint" + } + } + }, + "v1.EndpointPort": { + "id": "v1.EndpointPort", + "required": [ + "port" + ], + "properties": { + "name": { + "type": "string", + "description": "name of this port" + }, + "port": { + "type": "integer", + "format": "int32", + "description": "port number of the endpoint" + }, + "protocol": { + "type": "string", + "description": "protocol for this port; must be UDP or TCP; TCP if unspecified" + } + } + }, + "json.WatchEvent": { + "id": "json.WatchEvent", + "properties": { + "type": { + "type": "string", + "description": "the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR" + }, + "object": { + "type": "string", + "description": "the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR" + } + } + }, + "api.Patch": { + "id": "api.Patch", + "properties": {} + }, + "v1.Status": { + "id": "v1.Status", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "status": { + "type": "string", + "description": "status of the operation; either Success, or Failure; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + }, + "message": { + "type": "string", + "description": "human-readable description of the status of this operation" + }, + "reason": { + "type": "string", + "description": "machine-readable description of why this operation is in the 'Failure' status; if this value is empty there is no information available; a reason clarifies an HTTP status code but does not override it" + }, + "details": { + "$ref": "v1.StatusDetails", + "description": "extended data associated with the reason; each reason may define its own extended details; this field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type" + }, + "code": { + "type": "integer", + "format": "int32", + "description": "suggested HTTP return code for this status; 0 if not set" + } + } + }, + "v1.StatusDetails": { + "id": "v1.StatusDetails", + "properties": { + "name": { + "type": "string", + "description": "the name attribute of the resource associated with the status StatusReason (when there is a single name which can be described)" + }, + "kind": { + "type": "string", + "description": "the kind attribute of the resource associated with the status StatusReason; on some operations may differ from the requested resource Kind; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "causes": { + "type": "array", + "items": { + "$ref": "v1.StatusCause" + }, + "description": "the Causes array includes more details associated with the StatusReason failure; not all StatusReasons may provide detailed causes" + }, + "retryAfterSeconds": { + "type": "integer", + "format": "int32", + "description": "the number of seconds before the client should attempt to retry this operation" + } + } + }, + "v1.StatusCause": { + "id": "v1.StatusCause", + "properties": { + "reason": { + "type": "string", + "description": "machine-readable description of the cause of the error; if this value is empty there is no information available" + }, + "message": { + "type": "string", + "description": "human-readable description of the cause of the error; this field may be presented as-is to a reader" + }, + "field": { + "type": "string", + "description": "field of the resource that has caused this error, as named by its JSON serialization; may include dot and postfix notation for nested attributes; arrays are zero-indexed; fields may appear more than once in an array of causes due to fields having multiple errors" + } + } + }, + "v1.DeleteOptions": { + "id": "v1.DeleteOptions", + "required": [ + "gracePeriodSeconds" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "gracePeriodSeconds": { + "type": "integer", + "format": "int64", + "description": "the duration in seconds to wait before deleting this object; defaults to a per object value if not specified; zero means delete immediately" + } + } + }, + "v1.EventList": { + "id": "v1.EventList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.Event" + }, + "description": "list of events" + } + } + }, + "v1.Event": { + "id": "v1.Event", + "required": [ + "metadata", + "involvedObject" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "involvedObject": { + "$ref": "v1.ObjectReference", + "description": "object this event is about" + }, + "reason": { + "type": "string", + "description": "short, machine understandable string that gives the reason for the transition into the object's current status" + }, + "message": { + "type": "string", + "description": "human-readable description of the status of this operation" + }, + "source": { + "$ref": "v1.EventSource", + "description": "component reporting this event" + }, + "firstTimestamp": { + "type": "string", + "description": "the time at which the event was first recorded" + }, + "lastTimestamp": { + "type": "string", + "description": "the time at which the most recent occurance of this event was recorded" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "the number of times this event has occurred" + } + } + }, + "v1.EventSource": { + "id": "v1.EventSource", + "properties": { + "component": { + "type": "string", + "description": "component that generated the event" + }, + "host": { + "type": "string", + "description": "name of the host where the event is generated" + } + } + }, + "v1.LimitRangeList": { + "id": "v1.LimitRangeList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.LimitRange" + }, + "description": "items is a list of LimitRange objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_limit_range.md" + } + } + }, + "v1.LimitRange": { + "id": "v1.LimitRange", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1.LimitRangeSpec", + "description": "spec defines the limits enforced; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + } + } + }, + "v1.LimitRangeSpec": { + "id": "v1.LimitRangeSpec", + "required": [ + "limits" + ], + "properties": { + "limits": { + "type": "array", + "items": { + "$ref": "v1.LimitRangeItem" + }, + "description": "limits is the list of LimitRangeItem objects that are enforced" + } + } + }, + "v1.LimitRangeItem": { + "id": "v1.LimitRangeItem", + "properties": { + "type": { + "type": "string", + "description": "type of resource that this limit applies to" + }, + "max": { + "type": "string", + "description": "max usage constraints on this kind by resource name" + }, + "min": { + "type": "string", + "description": "min usage constraints on this kind by resource name" + }, + "default": { + "type": "string", + "description": "default values on this kind by resource name if omitted" + } + } + }, + "v1.NamespaceList": { + "id": "v1.NamespaceList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.Namespace" + }, + "description": "items is the list of Namespace objects in the list; see http://releases.k8s.io/v1.0.4/docs/namespaces.md" + } + } + }, + "v1.Namespace": { + "id": "v1.Namespace", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1.NamespaceSpec", + "description": "spec defines the behavior of the Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "v1.NamespaceStatus", + "description": "status describes the current status of a Namespace; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + } + } + }, + "v1.NamespaceSpec": { + "id": "v1.NamespaceSpec", + "properties": { + "finalizers": { + "type": "array", + "items": { + "$ref": "v1.FinalizerName" + }, + "description": "an opaque list of values that must be empty to permanently remove object from storage; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#finalizers" + } + } + }, + "v1.FinalizerName": { + "id": "v1.FinalizerName", + "properties": {} + }, + "v1.NamespaceStatus": { + "id": "v1.NamespaceStatus", + "properties": { + "phase": { + "type": "string", + "description": "phase is the current lifecycle phase of the namespace; see http://releases.k8s.io/v1.0.4/docs/design/namespaces.md#phases" + } + } + }, + "v1.NodeList": { + "id": "v1.NodeList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.Node" + }, + "description": "list of nodes" + } + } + }, + "v1.Node": { + "id": "v1.Node", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1.NodeSpec", + "description": "specification of a node; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "v1.NodeStatus", + "description": "most recently observed status of the node; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + } + } + }, + "v1.NodeSpec": { + "id": "v1.NodeSpec", + "properties": { + "podCIDR": { + "type": "string", + "description": "pod IP range assigned to the node" + }, + "externalID": { + "type": "string", + "description": "deprecated. External ID assigned to the node by some machine database (e.g. a cloud provider). Defaults to node name when empty." + }, + "providerID": { + "type": "string", + "description": "ID of the node assigned by the cloud provider in the format: \u003cProviderName\u003e://\u003cProviderSpecificNodeID\u003e" + }, + "unschedulable": { + "type": "boolean", + "description": "disable pod scheduling on the node; see http://releases.k8s.io/v1.0.4/docs/node.md#manual-node-administration" + } + } + }, + "v1.NodeStatus": { + "id": "v1.NodeStatus", + "properties": { + "capacity": { + "type": "string", + "description": "compute resource capacity of the node; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md" + }, + "phase": { + "type": "string", + "description": "most recently observed lifecycle phase of the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-phase" + }, + "conditions": { + "type": "array", + "items": { + "$ref": "v1.NodeCondition" + }, + "description": "list of node conditions observed; see http://releases.k8s.io/v1.0.4/docs/node.md#node-condition" + }, + "addresses": { + "type": "array", + "items": { + "$ref": "v1.NodeAddress" + }, + "description": "list of addresses reachable to the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-addresses" + }, + "nodeInfo": { + "$ref": "v1.NodeSystemInfo", + "description": "set of ids/uuids to uniquely identify the node; see http://releases.k8s.io/v1.0.4/docs/node.md#node-info" + } + } + }, + "v1.NodeCondition": { + "id": "v1.NodeCondition", + "required": [ + "type", + "status" + ], + "properties": { + "type": { + "type": "string", + "description": "type of node condition, currently only Ready" + }, + "status": { + "type": "string", + "description": "status of the condition, one of True, False, Unknown" + }, + "lastHeartbeatTime": { + "type": "string", + "description": "last time we got an update on a given condition" + }, + "lastTransitionTime": { + "type": "string", + "description": "last time the condition transit from one status to another" + }, + "reason": { + "type": "string", + "description": "(brief) reason for the condition's last transition" + }, + "message": { + "type": "string", + "description": "human readable message indicating details about last transition" + } + } + }, + "v1.NodeAddress": { + "id": "v1.NodeAddress", + "required": [ + "type", + "address" + ], + "properties": { + "type": { + "type": "string", + "description": "node address type, one of Hostname, ExternalIP or InternalIP" + }, + "address": { + "type": "string", + "description": "the node address" + } + } + }, + "v1.NodeSystemInfo": { + "id": "v1.NodeSystemInfo", + "required": [ + "machineID", + "systemUUID", + "bootID", + "kernelVersion", + "osImage", + "containerRuntimeVersion", + "kubeletVersion", + "kubeProxyVersion" + ], + "properties": { + "machineID": { + "type": "string", + "description": "machine-id reported by the node" + }, + "systemUUID": { + "type": "string", + "description": "system-uuid reported by the node" + }, + "bootID": { + "type": "string", + "description": "boot id is the boot-id reported by the node" + }, + "kernelVersion": { + "type": "string", + "description": "Kernel version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64)" + }, + "osImage": { + "type": "string", + "description": "OS image used reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy))" + }, + "containerRuntimeVersion": { + "type": "string", + "description": "Container runtime version reported by the node through runtime remote API (e.g. docker://1.5.0)" + }, + "kubeletVersion": { + "type": "string", + "description": "Kubelet version reported by the node" + }, + "kubeProxyVersion": { + "type": "string", + "description": "Kube-proxy version reported by the node" + } + } + }, + "v1.PersistentVolumeClaimList": { + "id": "v1.PersistentVolumeClaimList", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.PersistentVolumeClaim" + }, + "description": "a list of persistent volume claims; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims" + } + } + }, + "v1.PersistentVolumeClaim": { + "id": "v1.PersistentVolumeClaim", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1.PersistentVolumeClaimSpec", + "description": "the desired characteristics of a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims" + }, + "status": { + "$ref": "v1.PersistentVolumeClaimStatus", + "description": "the current status of a persistent volume claim; read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims" + } + } + }, + "v1.PersistentVolumeClaimSpec": { + "id": "v1.PersistentVolumeClaimSpec", + "properties": { + "accessModes": { + "type": "array", + "items": { + "$ref": "v1.PersistentVolumeAccessMode" + }, + "description": "the desired access modes the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1" + }, + "resources": { + "$ref": "v1.ResourceRequirements", + "description": "the desired resources the volume should have; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#resources" + }, + "volumeName": { + "type": "string", + "description": "the binding reference to the persistent volume backing this claim" + } + } + }, + "v1.PersistentVolumeAccessMode": { + "id": "v1.PersistentVolumeAccessMode", + "properties": {} + }, + "v1.ResourceRequirements": { + "id": "v1.ResourceRequirements", + "properties": { + "limits": { + "type": "string", + "description": "Maximum amount of compute resources allowed; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications" + }, + "requests": { + "type": "string", + "description": "Minimum amount of resources requested; requests are honored only for persistent volumes as of now; see http://releases.k8s.io/v1.0.4/docs/design/resources.md#resource-specifications" + } + } + }, + "v1.PersistentVolumeClaimStatus": { + "id": "v1.PersistentVolumeClaimStatus", + "properties": { + "phase": { + "type": "string", + "description": "the current phase of the claim" + }, + "accessModes": { + "type": "array", + "items": { + "$ref": "v1.PersistentVolumeAccessMode" + }, + "description": "the actual access modes the volume has; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes-1" + }, + "capacity": { + "type": "string", + "description": "the actual resources the volume has" + } + } + }, + "v1.PersistentVolumeList": { + "id": "v1.PersistentVolumeList", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.PersistentVolume" + }, + "description": "list of persistent volumes; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md" + } + } + }, + "v1.PersistentVolume": { + "id": "v1.PersistentVolume", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1.PersistentVolumeSpec", + "description": "specification of a persistent volume as provisioned by an administrator; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes" + }, + "status": { + "$ref": "v1.PersistentVolumeStatus", + "description": "current status of a persistent volume; populated by the system, read-only; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistent-volumes" + } + } + }, + "v1.PersistentVolumeSpec": { + "id": "v1.PersistentVolumeSpec", + "properties": { + "capacity": { + "type": "string", + "description": "a description of the persistent volume's resources and capacityr; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#capacity" + }, + "gcePersistentDisk": { + "$ref": "v1.GCEPersistentDiskVolumeSource", + "description": "GCE disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + }, + "awsElasticBlockStore": { + "$ref": "v1.AWSElasticBlockStoreVolumeSource", + "description": "AWS disk resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + }, + "hostPath": { + "$ref": "v1.HostPathVolumeSource", + "description": "a HostPath provisioned by a developer or tester; for develment use only; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath" + }, + "glusterfs": { + "$ref": "v1.GlusterfsVolumeSource", + "description": "Glusterfs volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md" + }, + "nfs": { + "$ref": "v1.NFSVolumeSource", + "description": "NFS volume resource provisioned by an admin; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs" + }, + "rbd": { + "$ref": "v1.RBDVolumeSource", + "description": "rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md" + }, + "iscsi": { + "$ref": "v1.ISCSIVolumeSource", + "description": "an iSCSI disk resource provisioned by an admin" + }, + "accessModes": { + "type": "array", + "items": { + "$ref": "v1.PersistentVolumeAccessMode" + }, + "description": "all ways the volume can be mounted; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#access-modes" + }, + "claimRef": { + "$ref": "v1.ObjectReference", + "description": "when bound, a reference to the bound claim; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#binding" + }, + "persistentVolumeReclaimPolicy": { + "type": "string", + "description": "what happens to a volume when released from its claim; Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. See http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#recycling-policy" + } + } + }, + "v1.GCEPersistentDiskVolumeSource": { + "id": "v1.GCEPersistentDiskVolumeSource", + "required": [ + "pdName", + "fsType" + ], + "properties": { + "pdName": { + "type": "string", + "description": "unique name of the PD resource in GCE; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + }, + "fsType": { + "type": "string", + "description": "file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + }, + "partition": { + "type": "integer", + "format": "int32", + "description": "partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + }, + "readOnly": { + "type": "boolean", + "description": "read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + } + } + }, + "v1.AWSElasticBlockStoreVolumeSource": { + "id": "v1.AWSElasticBlockStoreVolumeSource", + "required": [ + "volumeID", + "fsType" + ], + "properties": { + "volumeID": { + "type": "string", + "description": "unique id of the PD resource in AWS; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + }, + "fsType": { + "type": "string", + "description": "file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + }, + "partition": { + "type": "integer", + "format": "int32", + "description": "partition on the disk to mount (e.g., '1' for /dev/sda1); if omitted the plain device name (e.g., /dev/sda) will be mounted; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + }, + "readOnly": { + "type": "boolean", + "description": "read-only if true, read-write otherwise (false or unspecified); see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + } + } + }, + "v1.HostPathVolumeSource": { + "id": "v1.HostPathVolumeSource", + "required": [ + "path" + ], + "properties": { + "path": { + "type": "string", + "description": "path of the directory on the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath" + } + } + }, + "v1.GlusterfsVolumeSource": { + "id": "v1.GlusterfsVolumeSource", + "required": [ + "endpoints", + "path" + ], + "properties": { + "endpoints": { + "type": "string", + "description": "gluster hosts endpoints name; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod" + }, + "path": { + "type": "string", + "description": "path to gluster volume; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod" + }, + "readOnly": { + "type": "boolean", + "description": "glusterfs volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md#create-a-pod" + } + } + }, + "v1.NFSVolumeSource": { + "id": "v1.NFSVolumeSource", + "required": [ + "server", + "path" + ], + "properties": { + "server": { + "type": "string", + "description": "the hostname or IP address of the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs" + }, + "path": { + "type": "string", + "description": "the path that is exported by the NFS server; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs" + }, + "readOnly": { + "type": "boolean", + "description": "forces the NFS export to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs" + } + } + }, + "v1.RBDVolumeSource": { + "id": "v1.RBDVolumeSource", + "required": [ + "monitors", + "image", + "pool", + "user", + "keyring", + "secretRef" + ], + "properties": { + "monitors": { + "type": "array", + "items": { + "type": "string" + }, + "description": "a collection of Ceph monitors; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + }, + "image": { + "type": "string", + "description": "rados image name; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + }, + "fsType": { + "type": "string", + "description": "file system type to mount, such as ext4, xfs, ntfs; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + }, + "pool": { + "type": "string", + "description": "rados pool name; default is rbd; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + }, + "user": { + "type": "string", + "description": "rados user name; default is admin; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + }, + "keyring": { + "type": "string", + "description": "keyring is the path to key ring for rados user; default is /etc/ceph/keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + }, + "secretRef": { + "$ref": "v1.LocalObjectReference", + "description": "name of a secret to authenticate the RBD user; if provided overrides keyring; optional; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + }, + "readOnly": { + "type": "boolean", + "description": "rbd volume to be mounted with read-only permissions; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md#how-to-use-it" + } + } + }, + "v1.LocalObjectReference": { + "id": "v1.LocalObjectReference", + "properties": { + "name": { + "type": "string", + "description": "name of the referent; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names" + } + } + }, + "v1.ISCSIVolumeSource": { + "id": "v1.ISCSIVolumeSource", + "required": [ + "targetPortal", + "iqn", + "lun", + "fsType" + ], + "properties": { + "targetPortal": { + "type": "string", + "description": "iSCSI target portal" + }, + "iqn": { + "type": "string", + "description": "iSCSI Qualified Name" + }, + "lun": { + "type": "integer", + "format": "int32", + "description": "iscsi target lun number" + }, + "fsType": { + "type": "string", + "description": "file system type to mount, such as ext4, xfs, ntfs" + }, + "readOnly": { + "type": "boolean", + "description": "read-only if true, read-write otherwise (false or unspecified)" + } + } + }, + "v1.PersistentVolumeStatus": { + "id": "v1.PersistentVolumeStatus", + "properties": { + "phase": { + "type": "string", + "description": "the current phase of a persistent volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#phase" + }, + "message": { + "type": "string", + "description": "human-readable message indicating details about why the volume is in this state" + }, + "reason": { + "type": "string", + "description": "(brief) reason the volume is not is not available" + } + } + }, + "v1.PodList": { + "id": "v1.PodList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.Pod" + }, + "description": "list of pods; see http://releases.k8s.io/v1.0.4/docs/pods.md" + } + } + }, + "v1.Pod": { + "id": "v1.Pod", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1.PodSpec", + "description": "specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "v1.PodStatus", + "description": "most recently observed status of the pod; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + } + } + }, + "v1.PodSpec": { + "id": "v1.PodSpec", + "required": [ + "containers" + ], + "properties": { + "volumes": { + "type": "array", + "items": { + "$ref": "v1.Volume" + }, + "description": "list of volumes that can be mounted by containers belonging to the pod; see http://releases.k8s.io/v1.0.4/docs/volumes.md" + }, + "containers": { + "type": "array", + "items": { + "$ref": "v1.Container" + }, + "description": "list of containers belonging to the pod; cannot be updated; containers cannot currently be added or removed; there must be at least one container in a Pod; see http://releases.k8s.io/v1.0.4/docs/containers.md" + }, + "restartPolicy": { + "type": "string", + "description": "restart policy for all containers within the pod; one of Always, OnFailure, Never; defaults to Always; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#restartpolicy" + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "format": "int64", + "description": "optional duration in seconds the pod needs to terminate gracefully; may be decreased in delete request; value must be non-negative integer; the value zero indicates delete immediately; if this value is not set, the default grace period will be used instead; the grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal; set this value longer than the expected cleanup time for your process" + }, + "activeDeadlineSeconds": { + "type": "integer", + "format": "int64" + }, + "dnsPolicy": { + "type": "string", + "description": "DNS policy for containers within the pod; one of 'ClusterFirst' or 'Default'" + }, + "nodeSelector": { + "type": "string", + "description": "selector which must match a node's labels for the pod to be scheduled on that node; see http://releases.k8s.io/v1.0.4/examples/node-selection/README.md" + }, + "serviceAccountName": { + "type": "string", + "description": "name of the ServiceAccount to use to run this pod; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md" + }, + "serviceAccount": { + "type": "string", + "description": "deprecated; use serviceAccountName instead" + }, + "nodeName": { + "type": "string", + "description": "node requested for this pod" + }, + "hostNetwork": { + "type": "boolean", + "description": "host networking requested for this pod" + }, + "imagePullSecrets": { + "type": "array", + "items": { + "$ref": "v1.LocalObjectReference" + }, + "description": "list of references to secrets in the same namespace available for pulling the container images; see http://releases.k8s.io/v1.0.4/docs/images.md#specifying-imagepullsecrets-on-a-pod" + } + } + }, + "v1.Volume": { + "id": "v1.Volume", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "volume name; must be a DNS_LABEL and unique within the pod; see http://releases.k8s.io/v1.0.4/docs/identifiers.md#names" + }, + "hostPath": { + "$ref": "v1.HostPathVolumeSource", + "description": "pre-existing host file or directory; generally for privileged system daemons or other agents tied to the host; see http://releases.k8s.io/v1.0.4/docs/volumes.md#hostpath" + }, + "emptyDir": { + "$ref": "v1.EmptyDirVolumeSource", + "description": "temporary directory that shares a pod's lifetime; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir" + }, + "gcePersistentDisk": { + "$ref": "v1.GCEPersistentDiskVolumeSource", + "description": "GCE disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#gcepersistentdisk" + }, + "awsElasticBlockStore": { + "$ref": "v1.AWSElasticBlockStoreVolumeSource", + "description": "AWS disk resource attached to the host machine on demand; see http://releases.k8s.io/v1.0.4/docs/volumes.md#awselasticblockstore" + }, + "gitRepo": { + "$ref": "v1.GitRepoVolumeSource", + "description": "git repository at a particular revision" + }, + "secret": { + "$ref": "v1.SecretVolumeSource", + "description": "secret to populate volume; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets" + }, + "nfs": { + "$ref": "v1.NFSVolumeSource", + "description": "NFS volume that will be mounted in the host machine; see http://releases.k8s.io/v1.0.4/docs/volumes.md#nfs" + }, + "iscsi": { + "$ref": "v1.ISCSIVolumeSource", + "description": "iSCSI disk attached to host machine on demand; see http://releases.k8s.io/v1.0.4/examples/iscsi/README.md" + }, + "glusterfs": { + "$ref": "v1.GlusterfsVolumeSource", + "description": "Glusterfs volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/glusterfs/README.md" + }, + "persistentVolumeClaim": { + "$ref": "v1.PersistentVolumeClaimVolumeSource", + "description": "a reference to a PersistentVolumeClaim in the same namespace; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims" + }, + "rbd": { + "$ref": "v1.RBDVolumeSource", + "description": "rados block volume that will be mounted on the host machine; see http://releases.k8s.io/v1.0.4/examples/rbd/README.md" + } + } + }, + "v1.EmptyDirVolumeSource": { + "id": "v1.EmptyDirVolumeSource", + "properties": { + "medium": { + "type": "string", + "description": "type of storage used to back the volume; must be an empty string (default) or Memory; see http://releases.k8s.io/v1.0.4/docs/volumes.md#emptydir" + } + } + }, + "v1.GitRepoVolumeSource": { + "id": "v1.GitRepoVolumeSource", + "required": [ + "repository", + "revision" + ], + "properties": { + "repository": { + "type": "string", + "description": "repository URL" + }, + "revision": { + "type": "string", + "description": "commit hash for the specified revision" + } + } + }, + "v1.SecretVolumeSource": { + "id": "v1.SecretVolumeSource", + "required": [ + "secretName" + ], + "properties": { + "secretName": { + "type": "string", + "description": "secretName is the name of a secret in the pod's namespace; see http://releases.k8s.io/v1.0.4/docs/volumes.md#secrets" + } + } + }, + "v1.PersistentVolumeClaimVolumeSource": { + "id": "v1.PersistentVolumeClaimVolumeSource", + "required": [ + "claimName" + ], + "properties": { + "claimName": { + "type": "string", + "description": "the name of the claim in the same namespace to be mounted as a volume; see http://releases.k8s.io/v1.0.4/docs/persistent-volumes.md#persistentvolumeclaims" + }, + "readOnly": { + "type": "boolean", + "description": "mount volume as read-only when true; default false" + } + } + }, + "v1.Container": { + "id": "v1.Container", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated" + }, + "image": { + "type": "string", + "description": "Docker image name; see http://releases.k8s.io/v1.0.4/docs/images.md" + }, + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "entrypoint array; not executed within a shell; the docker image's entrypoint is used if this is not provided; cannot be updated; variable references $(VAR_NAME) are expanded using the container's environment variables; if a variable cannot be resolved, the reference in the input string will be unchanged; the $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME) ; escaped references will never be expanded, regardless of whether the variable exists or not; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands" + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "description": "command array; the docker image's cmd is used if this is not provided; arguments to the entrypoint; cannot be updated; variable references $(VAR_NAME) are expanded using the container's environment variables; if a variable cannot be resolved, the reference in the input string will be unchanged; the $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME) ; escaped references will never be expanded, regardless of whether the variable exists or not; see http://releases.k8s.io/v1.0.4/docs/containers.md#containers-and-commands" + }, + "workingDir": { + "type": "string", + "description": "container's working directory; defaults to image's default; cannot be updated" + }, + "ports": { + "type": "array", + "items": { + "$ref": "v1.ContainerPort" + }, + "description": "list of ports to expose from the container; cannot be updated" + }, + "env": { + "type": "array", + "items": { + "$ref": "v1.EnvVar" + }, + "description": "list of environment variables to set in the container; cannot be updated" + }, + "resources": { + "$ref": "v1.ResourceRequirements", + "description": "Compute Resources required by this container; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/compute_resources.md" + }, + "volumeMounts": { + "type": "array", + "items": { + "$ref": "v1.VolumeMount" + }, + "description": "pod volumes to mount into the container's filesyste; cannot be updated" + }, + "livenessProbe": { + "$ref": "v1.Probe", + "description": "periodic probe of container liveness; container will be restarted if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes" + }, + "readinessProbe": { + "$ref": "v1.Probe", + "description": "periodic probe of container service readiness; container will be removed from service endpoints if the probe fails; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes" + }, + "lifecycle": { + "$ref": "v1.Lifecycle", + "description": "actions that the management system should take in response to container lifecycle events; cannot be updated" + }, + "terminationMessagePath": { + "type": "string", + "description": "path at which the file to which the container's termination message will be written is mounted into the container's filesystem; message written is intended to be brief final status, such as an assertion failure message; defaults to /dev/termination-log; cannot be updated" + }, + "imagePullPolicy": { + "type": "string", + "description": "image pull policy; one of Always, Never, IfNotPresent; defaults to Always if :latest tag is specified, or IfNotPresent otherwise; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/images.md#updating-images" + }, + "securityContext": { + "$ref": "v1.SecurityContext", + "description": "security options the pod should run with; see http://releases.k8s.io/v1.0.4/docs/security_context.md" + } + } + }, + "v1.ContainerPort": { + "id": "v1.ContainerPort", + "required": [ + "containerPort" + ], + "properties": { + "name": { + "type": "string", + "description": "name for the port that can be referred to by services; must be an IANA_SVC_NAME and unique within the pod" + }, + "hostPort": { + "type": "integer", + "format": "int32", + "description": "number of port to expose on the host; most containers do not need this" + }, + "containerPort": { + "type": "integer", + "format": "int32", + "description": "number of port to expose on the pod's IP address" + }, + "protocol": { + "type": "string", + "description": "protocol for port; must be UDP or TCP; TCP if unspecified" + }, + "hostIP": { + "type": "string", + "description": "host IP to bind the port to" + } + } + }, + "v1.EnvVar": { + "id": "v1.EnvVar", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "name of the environment variable; must be a C_IDENTIFIER" + }, + "value": { + "type": "string", + "description": "value of the environment variable; defaults to empty string; variable references $(VAR_NAME) are expanded using the previously defined environment varibles in the container and any service environment variables; if a variable cannot be resolved, the reference in the input string will be unchanged; the $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME) ; escaped references will never be expanded, regardless of whether the variable exists or not" + }, + "valueFrom": { + "$ref": "v1.EnvVarSource", + "description": "source for the environment variable's value; cannot be used if value is not empty" + } + } + }, + "v1.EnvVarSource": { + "id": "v1.EnvVarSource", + "required": [ + "fieldRef" + ], + "properties": { + "fieldRef": { + "$ref": "v1.ObjectFieldSelector", + "description": "selects a field of the pod; only name and namespace are supported" + } + } + }, + "v1.ObjectFieldSelector": { + "id": "v1.ObjectFieldSelector", + "required": [ + "fieldPath" + ], + "properties": { + "apiVersion": { + "type": "string", + "description": "version of the schema that fieldPath is written in terms of; defaults to v1" + }, + "fieldPath": { + "type": "string", + "description": "path of the field to select in the specified API version" + } + } + }, + "v1.VolumeMount": { + "id": "v1.VolumeMount", + "required": [ + "name", + "mountPath" + ], + "properties": { + "name": { + "type": "string", + "description": "name of the volume to mount" + }, + "readOnly": { + "type": "boolean", + "description": "mounted read-only if true, read-write otherwise (false or unspecified)" + }, + "mountPath": { + "type": "string", + "description": "path within the container at which the volume should be mounted" + } + } + }, + "v1.Probe": { + "id": "v1.Probe", + "properties": { + "exec": { + "$ref": "v1.ExecAction", + "description": "exec-based handler" + }, + "httpGet": { + "$ref": "v1.HTTPGetAction", + "description": "HTTP-based handler" + }, + "tcpSocket": { + "$ref": "v1.TCPSocketAction", + "description": "TCP-based handler; TCP hooks not yet supported" + }, + "initialDelaySeconds": { + "type": "integer", + "format": "int64", + "description": "number of seconds after the container has started before liveness probes are initiated; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes" + }, + "timeoutSeconds": { + "type": "integer", + "format": "int64", + "description": "number of seconds after which liveness probes timeout; defaults to 1 second; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-probes" + } + } + }, + "v1.ExecAction": { + "id": "v1.ExecAction", + "properties": { + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "command line to execute inside the container; working directory for the command is root ('/') in the container's file system; the command is exec'd, not run inside a shell; exit status of 0 is treated as live/healthy and non-zero is unhealthy" + } + } + }, + "v1.HTTPGetAction": { + "id": "v1.HTTPGetAction", + "required": [ + "port" + ], + "properties": { + "path": { + "type": "string", + "description": "path to access on the HTTP server" + }, + "port": { + "type": "string", + "description": "number or name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME" + }, + "host": { + "type": "string", + "description": "hostname to connect to; defaults to pod IP" + }, + "scheme": { + "type": "string", + "description": "scheme to connect with, must be HTTP or HTTPS, defaults to HTTP" + } + } + }, + "v1.TCPSocketAction": { + "id": "v1.TCPSocketAction", + "required": [ + "port" + ], + "properties": { + "port": { + "type": "string", + "description": "number of name of the port to access on the container; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME" + } + } + }, + "v1.Lifecycle": { + "id": "v1.Lifecycle", + "properties": { + "postStart": { + "$ref": "v1.Handler", + "description": "called immediately after a container is started; if the handler fails, the container is terminated and restarted according to its restart policy; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details" + }, + "preStop": { + "$ref": "v1.Handler", + "description": "called before a container is terminated; the container is terminated after the handler completes; other management of the container blocks until the hook completes; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#hook-details" + } + } + }, + "v1.Handler": { + "id": "v1.Handler", + "properties": { + "exec": { + "$ref": "v1.ExecAction", + "description": "exec-based handler" + }, + "httpGet": { + "$ref": "v1.HTTPGetAction", + "description": "HTTP-based handler" + }, + "tcpSocket": { + "$ref": "v1.TCPSocketAction", + "description": "TCP-based handler; TCP hooks not yet supported" + } + } + }, + "v1.SecurityContext": { + "id": "v1.SecurityContext", + "properties": { + "capabilities": { + "$ref": "v1.Capabilities", + "description": "the linux capabilites that should be added or removed; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context" + }, + "privileged": { + "type": "boolean", + "description": "run the container in privileged mode; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context" + }, + "seLinuxOptions": { + "$ref": "v1.SELinuxOptions", + "description": "options that control the SELinux labels applied; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context" + }, + "runAsUser": { + "type": "integer", + "format": "int64", + "description": "the user id that runs the first process in the container; see http://releases.k8s.io/v1.0.4/docs/design/security_context.md#security-context" + } + } + }, + "v1.Capabilities": { + "id": "v1.Capabilities", + "properties": { + "add": { + "type": "array", + "items": { + "$ref": "v1.Capability" + }, + "description": "added capabilities" + }, + "drop": { + "type": "array", + "items": { + "$ref": "v1.Capability" + }, + "description": "droped capabilities" + } + } + }, + "v1.Capability": { + "id": "v1.Capability", + "properties": {} + }, + "v1.SELinuxOptions": { + "id": "v1.SELinuxOptions", + "properties": { + "user": { + "type": "string", + "description": "the user label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md" + }, + "role": { + "type": "string", + "description": "the role label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md" + }, + "type": { + "type": "string", + "description": "the type label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md" + }, + "level": { + "type": "string", + "description": "the level label to apply to the container; see http://releases.k8s.io/v1.0.4/docs/labels.md" + } + } + }, + "v1.PodStatus": { + "id": "v1.PodStatus", + "properties": { + "phase": { + "type": "string", + "description": "current condition of the pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-phase" + }, + "conditions": { + "type": "array", + "items": { + "$ref": "v1.PodCondition" + }, + "description": "current service state of pod; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions" + }, + "message": { + "type": "string", + "description": "human readable message indicating details about why the pod is in this condition" + }, + "reason": { + "type": "string", + "description": "(brief-CamelCase) reason indicating details about why the pod is in this condition" + }, + "hostIP": { + "type": "string", + "description": "IP address of the host to which the pod is assigned; empty if not yet scheduled" + }, + "podIP": { + "type": "string", + "description": "IP address allocated to the pod; routable at least within the cluster; empty if not yet allocated" + }, + "startTime": { + "type": "string", + "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod." + }, + "containerStatuses": { + "type": "array", + "items": { + "$ref": "v1.ContainerStatus" + }, + "description": "list of container statuses; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#container-statuses" + } + } + }, + "v1.PodCondition": { + "id": "v1.PodCondition", + "required": [ + "type", + "status" + ], + "properties": { + "type": { + "type": "string", + "description": "kind of the condition, currently only Ready; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions" + }, + "status": { + "type": "string", + "description": "status of the condition, one of True, False, Unknown; see http://releases.k8s.io/v1.0.4/docs/pod-states.md#pod-conditions" + } + } + }, + "v1.ContainerStatus": { + "id": "v1.ContainerStatus", + "required": [ + "name", + "ready", + "restartCount", + "image", + "imageID" + ], + "properties": { + "name": { + "type": "string", + "description": "name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated" + }, + "state": { + "$ref": "v1.ContainerState", + "description": "details about the container's current condition" + }, + "lastState": { + "$ref": "v1.ContainerState", + "description": "details about the container's last termination condition" + }, + "ready": { + "type": "boolean", + "description": "specifies whether the container has passed its readiness probe" + }, + "restartCount": { + "type": "integer", + "format": "int32", + "description": "the number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed" + }, + "image": { + "type": "string", + "description": "image of the container; see http://releases.k8s.io/v1.0.4/docs/images.md" + }, + "imageID": { + "type": "string", + "description": "ID of the container's image" + }, + "containerID": { + "type": "string", + "description": "container's ID in the format 'docker://\u003ccontainer_id\u003e'; see http://releases.k8s.io/v1.0.4/docs/container-environment.md#container-information" + } + } + }, + "v1.ContainerState": { + "id": "v1.ContainerState", + "properties": { + "waiting": { + "$ref": "v1.ContainerStateWaiting", + "description": "details about a waiting container" + }, + "running": { + "$ref": "v1.ContainerStateRunning", + "description": "details about a running container" + }, + "terminated": { + "$ref": "v1.ContainerStateTerminated", + "description": "details about a terminated container" + } + } + }, + "v1.ContainerStateWaiting": { + "id": "v1.ContainerStateWaiting", + "properties": { + "reason": { + "type": "string", + "description": "(brief) reason the container is not yet running, such as pulling its image" + } + } + }, + "v1.ContainerStateRunning": { + "id": "v1.ContainerStateRunning", + "properties": { + "startedAt": { + "type": "string", + "description": "time at which the container was last (re-)started" + } + } + }, + "v1.ContainerStateTerminated": { + "id": "v1.ContainerStateTerminated", + "required": [ + "exitCode" + ], + "properties": { + "exitCode": { + "type": "integer", + "format": "int32", + "description": "exit status from the last termination of the container" + }, + "signal": { + "type": "integer", + "format": "int32", + "description": "signal from the last termination of the container" + }, + "reason": { + "type": "string", + "description": "(brief) reason from the last termination of the container" + }, + "message": { + "type": "string", + "description": "message regarding the last termination of the container" + }, + "startedAt": { + "type": "string", + "description": "time at which previous execution of the container started" + }, + "finishedAt": { + "type": "string", + "description": "time at which the container last terminated" + }, + "containerID": { + "type": "string", + "description": "container's ID in the format 'docker://\u003ccontainer_id\u003e'" + } + } + }, + "v1.PodTemplateList": { + "id": "v1.PodTemplateList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.PodTemplate" + }, + "description": "list of pod templates" + } + } + }, + "v1.PodTemplate": { + "id": "v1.PodTemplate", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "template": { + "$ref": "v1.PodTemplateSpec", + "description": "the template of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + } + } + }, + "v1.PodTemplateSpec": { + "id": "v1.PodTemplateSpec", + "properties": { + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1.PodSpec", + "description": "specification of the desired behavior of the pod; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + } + } + }, + "v1.ReplicationControllerList": { + "id": "v1.ReplicationControllerList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.ReplicationController" + }, + "description": "list of replication controllers; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md" + } + } + }, + "v1.ReplicationController": { + "id": "v1.ReplicationController", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1.ReplicationControllerSpec", + "description": "specification of the desired behavior of the replication controller; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "v1.ReplicationControllerStatus", + "description": "most recently observed status of the replication controller; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + } + } + }, + "v1.ReplicationControllerSpec": { + "id": "v1.ReplicationControllerSpec", + "properties": { + "replicas": { + "type": "integer", + "format": "int32", + "description": "number of replicas desired; defaults to 1; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller" + }, + "selector": { + "type": "string", + "description": "label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template; see http://releases.k8s.io/v1.0.4/docs/labels.md#label-selectors" + }, + "template": { + "$ref": "v1.PodTemplateSpec", + "description": "object that describes the pod that will be created if insufficient replicas are detected; takes precendence over templateRef; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#pod-template" + } + } + }, + "v1.ReplicationControllerStatus": { + "id": "v1.ReplicationControllerStatus", + "required": [ + "replicas" + ], + "properties": { + "replicas": { + "type": "integer", + "format": "int32", + "description": "most recently oberved number of replicas; see http://releases.k8s.io/v1.0.4/docs/replication-controller.md#what-is-a-replication-controller" + }, + "observedGeneration": { + "type": "integer", + "format": "int64", + "description": "reflects the generation of the most recently observed replication controller" + } + } + }, + "v1.ResourceQuotaList": { + "id": "v1.ResourceQuotaList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.ResourceQuota" + }, + "description": "items is a list of ResourceQuota objects; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" + } + } + }, + "v1.ResourceQuota": { + "id": "v1.ResourceQuota", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1.ResourceQuotaSpec", + "description": "spec defines the desired quota; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "v1.ResourceQuotaStatus", + "description": "status defines the actual enforced quota and current usage; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + } + } + }, + "v1.ResourceQuotaSpec": { + "id": "v1.ResourceQuotaSpec", + "properties": { + "hard": { + "type": "string", + "description": "hard is the set of desired hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" + } + } + }, + "v1.ResourceQuotaStatus": { + "id": "v1.ResourceQuotaStatus", + "properties": { + "hard": { + "type": "string", + "description": "hard is the set of enforced hard limits for each named resource; see http://releases.k8s.io/v1.0.4/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" + }, + "used": { + "type": "string", + "description": "used is the current observed total usage of the resource in the namespace" + } + } + }, + "v1.SecretList": { + "id": "v1.SecretList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.Secret" + }, + "description": "items is a list of secret objects; see http://releases.k8s.io/v1.0.4/docs/secrets.md" + } + } + }, + "v1.Secret": { + "id": "v1.Secret", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "data": { + "type": "string", + "description": "data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. Each value must be a base64 encoded string as described in https://tools.ietf.org/html/rfc4648#section-4" + }, + "type": { + "type": "string", + "description": "type facilitates programmatic handling of secret data" + } + } + }, + "v1.ServiceAccountList": { + "id": "v1.ServiceAccountList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.ServiceAccount" + }, + "description": "list of ServiceAccounts; see http://releases.k8s.io/v1.0.4/docs/service_accounts.md#service-accounts" + } + } + }, + "v1.ServiceAccount": { + "id": "v1.ServiceAccount", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "secrets": { + "type": "array", + "items": { + "$ref": "v1.ObjectReference" + }, + "description": "list of secrets that can be used by pods running as this service account; see http://releases.k8s.io/v1.0.4/docs/secrets.md" + }, + "imagePullSecrets": { + "type": "array", + "items": { + "$ref": "v1.LocalObjectReference" + }, + "description": "list of references to secrets in the same namespace available for pulling container images; see http://releases.k8s.io/v1.0.4/docs/secrets.md#manually-specifying-an-imagepullsecret" + } + } + }, + "v1.ServiceList": { + "id": "v1.ServiceList", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ListMeta", + "description": "standard list metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1.Service" + }, + "description": "list of services" + } + } + }, + "v1.Service": { + "id": "v1.Service", + "properties": { + "kind": { + "type": "string", + "description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "version of the schema the object should have; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "standard object metadata; see http://releases.k8s.io/v1.0.4/docs/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1.ServiceSpec", + "description": "specification of the desired behavior of the service; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "v1.ServiceStatus", + "description": "most recently observed status of the service; populated by the system, read-only; http://releases.k8s.io/v1.0.4/docs/api-conventions.md#spec-and-status" + } + } + }, + "v1.ServiceSpec": { + "id": "v1.ServiceSpec", + "required": [ + "ports" + ], + "properties": { + "ports": { + "type": "array", + "items": { + "$ref": "v1.ServicePort" + }, + "description": "ports exposed by the service; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies" + }, + "selector": { + "type": "string", + "description": "label keys and values that must match in order to receive traffic for this service; if empty, all pods are selected, if not specified, endpoints must be manually specified; see http://releases.k8s.io/v1.0.4/docs/services.md#overview" + }, + "clusterIP": { + "type": "string", + "description": "IP address of the service; usually assigned by the system; if specified, it will be allocated to the service if unused or else creation of the service will fail; cannot be updated; 'None' can be specified for a headless service when proxying is not required; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies" + }, + "type": { + "type": "string", + "description": "type of this service; must be ClusterIP, NodePort, or LoadBalancer; defaults to ClusterIP; see http://releases.k8s.io/v1.0.4/docs/services.md#external-services" + }, + "deprecatedPublicIPs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "deprecated. externally visible IPs (e.g. load balancers) that should be proxied to this service" + }, + "sessionAffinity": { + "type": "string", + "description": "enable client IP based session affinity; must be ClientIP or None; defaults to None; see http://releases.k8s.io/v1.0.4/docs/services.md#virtual-ips-and-service-proxies" + } + } + }, + "v1.ServicePort": { + "id": "v1.ServicePort", + "required": [ + "port", + "nodePort" + ], + "properties": { + "name": { + "type": "string", + "description": "the name of this port; optional if only one port is defined" + }, + "protocol": { + "type": "string", + "description": "the protocol used by this port; must be UDP or TCP; TCP if unspecified" + }, + "port": { + "type": "integer", + "format": "int32", + "description": "the port number that is exposed" + }, + "targetPort": { + "type": "string", + "description": "number or name of the port to access on the pods targeted by the service; defaults to the service port; number must be in the range 1 to 65535; name must be an IANA_SVC_NAME; see http://releases.k8s.io/v1.0.4/docs/services.md#defining-a-service" + }, + "nodePort": { + "type": "integer", + "format": "int32", + "description": "the port on each node on which this service is exposed when type=NodePort or LoadBalancer; usually assigned by the system; if specified, it will be allocated to the service if unused or else creation of the service will fail; see http://releases.k8s.io/v1.0.4/docs/services.md#type--nodeport" + } + } + }, + "v1.ServiceStatus": { + "id": "v1.ServiceStatus", + "properties": { + "loadBalancer": { + "$ref": "v1.LoadBalancerStatus", + "description": "status of load-balancer" + } + } + }, + "v1.LoadBalancerStatus": { + "id": "v1.LoadBalancerStatus", + "properties": { + "ingress": { + "type": "array", + "items": { + "$ref": "v1.LoadBalancerIngress" + }, + "description": "load-balancer ingress points" + } + } + }, + "v1.LoadBalancerIngress": { + "id": "v1.LoadBalancerIngress", + "properties": { + "ip": { + "type": "string", + "description": "IP address of ingress point" + }, + "hostname": { + "type": "string", + "description": "hostname of ingress point" + } + } + } + } + }