text: # coding: utf-8
  
  """
      Kubernetes
  
      No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501
  
      OpenAPI spec version: release-1.15
      Generated by: https://openapi-generator.tech
  """
  
  
  from __future__ import absolute_import
  
  import re  # noqa: F401
  
  # python 2 and python 3 compatibility library
  import six
  
  from kubernetes.client.api_client import ApiClient
  
  
  class ExtensionsV1beta1Api(object):
      """NOTE: This class is auto generated by OpenAPI Generator
      Ref: https://openapi-generator.tech
  
      Do not edit the class manually.
      """
  
      def __init__(self, api_client=None):
          if api_client is None:
              api_client = ApiClient()
          self.api_client = api_client
  
      def create_namespaced_daemon_set(self, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_daemon_set  # noqa: E501
  
          create a DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_daemon_set(namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1DaemonSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs)  # noqa: E501
              return data
  
      def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_daemon_set  # noqa: E501
  
          create a DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_daemon_set_with_http_info(namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1DaemonSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_namespaced_daemon_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1DaemonSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_namespaced_deployment(self, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_deployment  # noqa: E501
  
          create a Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_deployment(namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Deployment body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs)  # noqa: E501
              return data
  
      def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_deployment  # noqa: E501
  
          create a Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Deployment body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_namespaced_deployment" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Deployment',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_namespaced_deployment_rollback(self, name, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_deployment_rollback  # noqa: E501
  
          create rollback of a Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_deployment_rollback(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DeploymentRollback (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1DeploymentRollback body: (required)
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :param str pretty: If 'true', then the output is pretty printed.
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_deployment_rollback  # noqa: E501
  
          create rollback of a Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DeploymentRollback (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1DeploymentRollback body: (required)
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :param str pretty: If 'true', then the output is pretty printed.
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_namespaced_deployment_rollback" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_namespaced_ingress(self, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_ingress  # noqa: E501
  
          create an Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_ingress(namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Ingress body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs)  # noqa: E501
              return data
  
      def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_ingress  # noqa: E501
  
          create an Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_ingress_with_http_info(namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Ingress body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_namespaced_ingress" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Ingress',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_namespaced_network_policy(self, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_network_policy  # noqa: E501
  
          create a NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_network_policy(namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1NetworkPolicy body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1NetworkPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs)  # noqa: E501
              return data
  
      def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_network_policy  # noqa: E501
  
          create a NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_network_policy_with_http_info(namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1NetworkPolicy body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1NetworkPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_namespaced_network_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_network_policy`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1NetworkPolicy',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_namespaced_replica_set(self, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_replica_set  # noqa: E501
  
          create a ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_replica_set(namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1ReplicaSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs)  # noqa: E501
              return data
  
      def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs):  # noqa: E501
          """create_namespaced_replica_set  # noqa: E501
  
          create a ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_namespaced_replica_set_with_http_info(namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1ReplicaSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_namespaced_replica_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1ReplicaSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_pod_security_policy(self, body, **kwargs):  # noqa: E501
          """create_pod_security_policy  # noqa: E501
  
          create a PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_pod_security_policy(body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param ExtensionsV1beta1PodSecurityPolicy body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1PodSecurityPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_pod_security_policy_with_http_info(body, **kwargs)  # noqa: E501
          else:
              (data) = self.create_pod_security_policy_with_http_info(body, **kwargs)  # noqa: E501
              return data
  
      def create_pod_security_policy_with_http_info(self, body, **kwargs):  # noqa: E501
          """create_pod_security_policy  # noqa: E501
  
          create a PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_pod_security_policy_with_http_info(body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param ExtensionsV1beta1PodSecurityPolicy body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1PodSecurityPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_pod_security_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/podsecuritypolicies', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1PodSecurityPolicy',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_collection_namespaced_daemon_set(self, namespace, **kwargs):  # noqa: E501
          """delete_collection_namespaced_daemon_set  # noqa: E501
  
          delete collection of DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_namespaced_daemon_set(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs)  # noqa: E501
              return data
  
      def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs):  # noqa: E501
          """delete_collection_namespaced_daemon_set  # noqa: E501
  
          delete collection of DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_namespaced_daemon_set_with_http_info(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_collection_namespaced_daemon_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'v1_delete_options' in local_var_params:
              body_params = local_var_params['v1_delete_options']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_collection_namespaced_deployment(self, namespace, **kwargs):  # noqa: E501
          """delete_collection_namespaced_deployment  # noqa: E501
  
          delete collection of Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_namespaced_deployment(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs)  # noqa: E501
              return data
  
      def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs):  # noqa: E501
          """delete_collection_namespaced_deployment  # noqa: E501
  
          delete collection of Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_collection_namespaced_deployment" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'v1_delete_options' in local_var_params:
              body_params = local_var_params['v1_delete_options']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_collection_namespaced_ingress(self, namespace, **kwargs):  # noqa: E501
          """delete_collection_namespaced_ingress  # noqa: E501
  
          delete collection of Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_namespaced_ingress(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs)  # noqa: E501
              return data
  
      def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs):  # noqa: E501
          """delete_collection_namespaced_ingress  # noqa: E501
  
          delete collection of Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_namespaced_ingress_with_http_info(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_collection_namespaced_ingress" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'v1_delete_options' in local_var_params:
              body_params = local_var_params['v1_delete_options']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_collection_namespaced_network_policy(self, namespace, **kwargs):  # noqa: E501
          """delete_collection_namespaced_network_policy  # noqa: E501
  
          delete collection of NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_namespaced_network_policy(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs)  # noqa: E501
              return data
  
      def delete_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs):  # noqa: E501
          """delete_collection_namespaced_network_policy  # noqa: E501
  
          delete collection of NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_namespaced_network_policy_with_http_info(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_collection_namespaced_network_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'v1_delete_options' in local_var_params:
              body_params = local_var_params['v1_delete_options']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_collection_namespaced_replica_set(self, namespace, **kwargs):  # noqa: E501
          """delete_collection_namespaced_replica_set  # noqa: E501
  
          delete collection of ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_namespaced_replica_set(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs)  # noqa: E501
              return data
  
      def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs):  # noqa: E501
          """delete_collection_namespaced_replica_set  # noqa: E501
  
          delete collection of ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_namespaced_replica_set_with_http_info(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_collection_namespaced_replica_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'v1_delete_options' in local_var_params:
              body_params = local_var_params['v1_delete_options']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_collection_pod_security_policy(self, **kwargs):  # noqa: E501
          """delete_collection_pod_security_policy  # noqa: E501
  
          delete collection of PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_pod_security_policy(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str pretty: If 'true', then the output is pretty printed.
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_collection_pod_security_policy_with_http_info(**kwargs)  # noqa: E501
          else:
              (data) = self.delete_collection_pod_security_policy_with_http_info(**kwargs)  # noqa: E501
              return data
  
      def delete_collection_pod_security_policy_with_http_info(self, **kwargs):  # noqa: E501
          """delete_collection_pod_security_policy  # noqa: E501
  
          delete collection of PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_collection_pod_security_policy_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str pretty: If 'true', then the output is pretty printed.
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :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 V1DeleteOptions v1_delete_options:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_collection_pod_security_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'v1_delete_options' in local_var_params:
              body_params = local_var_params['v1_delete_options']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/podsecuritypolicies', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_namespaced_daemon_set(self, name, namespace, **kwargs):  # noqa: E501
          """delete_namespaced_daemon_set  # noqa: E501
  
          delete a DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_namespaced_daemon_set(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (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.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """delete_namespaced_daemon_set  # noqa: E501
  
          delete a DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_namespaced_daemon_set_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (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.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_namespaced_daemon_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_namespaced_deployment(self, name, namespace, **kwargs):  # noqa: E501
          """delete_namespaced_deployment  # noqa: E501
  
          delete a Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_namespaced_deployment(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (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.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """delete_namespaced_deployment  # noqa: E501
  
          delete a Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (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.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_namespaced_deployment" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_namespaced_ingress(self, name, namespace, **kwargs):  # noqa: E501
          """delete_namespaced_ingress  # noqa: E501
  
          delete an Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_namespaced_ingress(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (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.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """delete_namespaced_ingress  # noqa: E501
  
          delete an Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_namespaced_ingress_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (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.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_namespaced_ingress" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_namespaced_network_policy(self, name, namespace, **kwargs):  # noqa: E501
          """delete_namespaced_network_policy  # noqa: E501
  
          delete a NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_namespaced_network_policy(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the NetworkPolicy (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.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """delete_namespaced_network_policy  # noqa: E501
  
          delete a NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_namespaced_network_policy_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the NetworkPolicy (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.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_namespaced_network_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_network_policy`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_network_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_namespaced_replica_set(self, name, namespace, **kwargs):  # noqa: E501
          """delete_namespaced_replica_set  # noqa: E501
  
          delete a ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_namespaced_replica_set(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (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.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """delete_namespaced_replica_set  # noqa: E501
  
          delete a ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_namespaced_replica_set_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (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.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_namespaced_replica_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def delete_pod_security_policy(self, name, **kwargs):  # noqa: E501
          """delete_pod_security_policy  # noqa: E501
  
          delete a PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_pod_security_policy(name, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the PodSecurityPolicy (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.delete_pod_security_policy_with_http_info(name, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_pod_security_policy_with_http_info(name, **kwargs)  # noqa: E501
              return data
  
      def delete_pod_security_policy_with_http_info(self, name, **kwargs):  # noqa: E501
          """delete_pod_security_policy  # noqa: E501
  
          delete a PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.delete_pod_security_policy_with_http_info(name, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the PodSecurityPolicy (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
          :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
          :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
          :param V1DeleteOptions body:
          :return: V1Status
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method delete_pod_security_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `delete_pod_security_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'grace_period_seconds' in local_var_params:
              query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds']))  # noqa: E501
          if 'orphan_dependents' in local_var_params:
              query_params.append(('orphanDependents', local_var_params['orphan_dependents']))  # noqa: E501
          if 'propagation_policy' in local_var_params:
              query_params.append(('propagationPolicy', local_var_params['propagation_policy']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1Status',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def get_api_resources(self, **kwargs):  # noqa: E501
          """get_api_resources  # noqa: E501
  
          get available resources  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.get_api_resources(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :return: V1APIResourceList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.get_api_resources_with_http_info(**kwargs)  # noqa: E501
          else:
              (data) = self.get_api_resources_with_http_info(**kwargs)  # noqa: E501
              return data
  
      def get_api_resources_with_http_info(self, **kwargs):  # noqa: E501
          """get_api_resources  # noqa: E501
  
          get available resources  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.get_api_resources_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :return: V1APIResourceList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = []  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method get_api_resources" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1APIResourceList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def list_daemon_set_for_all_namespaces(self, **kwargs):  # noqa: E501
          """list_daemon_set_for_all_namespaces  # noqa: E501
  
          list or watch objects of kind DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_daemon_set_for_all_namespaces(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param str pretty: If 'true', then the output is pretty printed.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1DaemonSetList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs)  # noqa: E501
          else:
              (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs)  # noqa: E501
              return data
  
      def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs):  # noqa: E501
          """list_daemon_set_for_all_namespaces  # noqa: E501
  
          list or watch objects of kind DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_daemon_set_for_all_namespaces_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param str pretty: If 'true', then the output is pretty printed.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1DaemonSetList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method list_daemon_set_for_all_namespaces" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/daemonsets', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1DaemonSetList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def list_deployment_for_all_namespaces(self, **kwargs):  # noqa: E501
          """list_deployment_for_all_namespaces  # noqa: E501
  
          list or watch objects of kind Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_deployment_for_all_namespaces(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param str pretty: If 'true', then the output is pretty printed.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: ExtensionsV1beta1DeploymentList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.list_deployment_for_all_namespaces_with_http_info(**kwargs)  # noqa: E501
          else:
              (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs)  # noqa: E501
              return data
  
      def list_deployment_for_all_namespaces_with_http_info(self, **kwargs):  # noqa: E501
          """list_deployment_for_all_namespaces  # noqa: E501
  
          list or watch objects of kind Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_deployment_for_all_namespaces_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param str pretty: If 'true', then the output is pretty printed.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: ExtensionsV1beta1DeploymentList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method list_deployment_for_all_namespaces" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/deployments', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1DeploymentList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def list_ingress_for_all_namespaces(self, **kwargs):  # noqa: E501
          """list_ingress_for_all_namespaces  # noqa: E501
  
          list or watch objects of kind Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_ingress_for_all_namespaces(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param str pretty: If 'true', then the output is pretty printed.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: ExtensionsV1beta1IngressList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.list_ingress_for_all_namespaces_with_http_info(**kwargs)  # noqa: E501
          else:
              (data) = self.list_ingress_for_all_namespaces_with_http_info(**kwargs)  # noqa: E501
              return data
  
      def list_ingress_for_all_namespaces_with_http_info(self, **kwargs):  # noqa: E501
          """list_ingress_for_all_namespaces  # noqa: E501
  
          list or watch objects of kind Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_ingress_for_all_namespaces_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param str pretty: If 'true', then the output is pretty printed.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: ExtensionsV1beta1IngressList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method list_ingress_for_all_namespaces" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/ingresses', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1IngressList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def list_namespaced_daemon_set(self, namespace, **kwargs):  # noqa: E501
          """list_namespaced_daemon_set  # noqa: E501
  
          list or watch objects of kind DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_namespaced_daemon_set(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1DaemonSetList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs)  # noqa: E501
              return data
  
      def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs):  # noqa: E501
          """list_namespaced_daemon_set  # noqa: E501
  
          list or watch objects of kind DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_namespaced_daemon_set_with_http_info(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1DaemonSetList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method list_namespaced_daemon_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1DaemonSetList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def list_namespaced_deployment(self, namespace, **kwargs):  # noqa: E501
          """list_namespaced_deployment  # noqa: E501
  
          list or watch objects of kind Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_namespaced_deployment(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: ExtensionsV1beta1DeploymentList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.list_namespaced_deployment_with_http_info(namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs)  # noqa: E501
              return data
  
      def list_namespaced_deployment_with_http_info(self, namespace, **kwargs):  # noqa: E501
          """list_namespaced_deployment  # noqa: E501
  
          list or watch objects of kind Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_namespaced_deployment_with_http_info(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: ExtensionsV1beta1DeploymentList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method list_namespaced_deployment" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1DeploymentList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def list_namespaced_ingress(self, namespace, **kwargs):  # noqa: E501
          """list_namespaced_ingress  # noqa: E501
  
          list or watch objects of kind Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_namespaced_ingress(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: ExtensionsV1beta1IngressList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.list_namespaced_ingress_with_http_info(namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.list_namespaced_ingress_with_http_info(namespace, **kwargs)  # noqa: E501
              return data
  
      def list_namespaced_ingress_with_http_info(self, namespace, **kwargs):  # noqa: E501
          """list_namespaced_ingress  # noqa: E501
  
          list or watch objects of kind Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_namespaced_ingress_with_http_info(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: ExtensionsV1beta1IngressList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method list_namespaced_ingress" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1IngressList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def list_namespaced_network_policy(self, namespace, **kwargs):  # noqa: E501
          """list_namespaced_network_policy  # noqa: E501
  
          list or watch objects of kind NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_namespaced_network_policy(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1NetworkPolicyList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.list_namespaced_network_policy_with_http_info(namespace, **kwargs)  # noqa: E501
              return data
  
      def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs):  # noqa: E501
          """list_namespaced_network_policy  # noqa: E501
  
          list or watch objects of kind NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_namespaced_network_policy_with_http_info(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1NetworkPolicyList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method list_namespaced_network_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1NetworkPolicyList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def list_namespaced_replica_set(self, namespace, **kwargs):  # noqa: E501
          """list_namespaced_replica_set  # noqa: E501
  
          list or watch objects of kind ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_namespaced_replica_set(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1ReplicaSetList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs)  # noqa: E501
              return data
  
      def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs):  # noqa: E501
          """list_namespaced_replica_set  # noqa: E501
  
          list or watch objects of kind ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_namespaced_replica_set_with_http_info(namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :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 bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1ReplicaSetList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method list_namespaced_replica_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1ReplicaSetList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def list_network_policy_for_all_namespaces(self, **kwargs):  # noqa: E501
          """list_network_policy_for_all_namespaces  # noqa: E501
  
          list or watch objects of kind NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_network_policy_for_all_namespaces(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param str pretty: If 'true', then the output is pretty printed.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1NetworkPolicyList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs)  # noqa: E501
          else:
              (data) = self.list_network_policy_for_all_namespaces_with_http_info(**kwargs)  # noqa: E501
              return data
  
      def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs):  # noqa: E501
          """list_network_policy_for_all_namespaces  # noqa: E501
  
          list or watch objects of kind NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_network_policy_for_all_namespaces_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param str pretty: If 'true', then the output is pretty printed.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1NetworkPolicyList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method list_network_policy_for_all_namespaces" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/networkpolicies', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1NetworkPolicyList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def list_pod_security_policy(self, **kwargs):  # noqa: E501
          """list_pod_security_policy  # noqa: E501
  
          list or watch objects of kind PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_pod_security_policy(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str pretty: If 'true', then the output is pretty printed.
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: ExtensionsV1beta1PodSecurityPolicyList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.list_pod_security_policy_with_http_info(**kwargs)  # noqa: E501
          else:
              (data) = self.list_pod_security_policy_with_http_info(**kwargs)  # noqa: E501
              return data
  
      def list_pod_security_policy_with_http_info(self, **kwargs):  # noqa: E501
          """list_pod_security_policy  # noqa: E501
  
          list or watch objects of kind PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_pod_security_policy_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str pretty: If 'true', then the output is pretty printed.
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: ExtensionsV1beta1PodSecurityPolicyList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method list_pod_security_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/podsecuritypolicies', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1PodSecurityPolicyList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def list_replica_set_for_all_namespaces(self, **kwargs):  # noqa: E501
          """list_replica_set_for_all_namespaces  # noqa: E501
  
          list or watch objects of kind ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_replica_set_for_all_namespaces(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param str pretty: If 'true', then the output is pretty printed.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1ReplicaSetList
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs)  # noqa: E501
          else:
              (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs)  # noqa: E501
              return data
  
      def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs):  # noqa: E501
          """list_replica_set_for_all_namespaces  # noqa: E501
  
          list or watch objects of kind ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.list_replica_set_for_all_namespaces_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is alpha and can be changed or removed without notice.
          :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
          :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
          :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
          :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
          :param str pretty: If 'true', then the output is pretty printed.
          :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
          :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
          :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
          :return: V1beta1ReplicaSetList
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method list_replica_set_for_all_namespaces" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'allow_watch_bookmarks' in local_var_params:
              query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks']))  # noqa: E501
          if '_continue' in local_var_params:
              query_params.append(('continue', local_var_params['_continue']))  # noqa: E501
          if 'field_selector' in local_var_params:
              query_params.append(('fieldSelector', local_var_params['field_selector']))  # noqa: E501
          if 'label_selector' in local_var_params:
              query_params.append(('labelSelector', local_var_params['label_selector']))  # noqa: E501
          if 'limit' in local_var_params:
              query_params.append(('limit', local_var_params['limit']))  # noqa: E501
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'resource_version' in local_var_params:
              query_params.append(('resourceVersion', local_var_params['resource_version']))  # noqa: E501
          if 'timeout_seconds' in local_var_params:
              query_params.append(('timeoutSeconds', local_var_params['timeout_seconds']))  # noqa: E501
          if 'watch' in local_var_params:
              query_params.append(('watch', local_var_params['watch']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/replicasets', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1ReplicaSetList',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_daemon_set  # noqa: E501
  
          partially update the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_daemon_set(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_daemon_set  # noqa: E501
  
          partially update the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_daemon_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1DaemonSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_daemon_set_status  # noqa: E501
  
          partially update status of the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_daemon_set_status(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_daemon_set_status  # noqa: E501
  
          partially update status of the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_daemon_set_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1DaemonSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_deployment(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_deployment  # noqa: E501
  
          partially update the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_deployment(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_deployment  # noqa: E501
  
          partially update the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_deployment" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Deployment',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_deployment_scale  # noqa: E501
  
          partially update scale of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_deployment_scale(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_deployment_scale  # noqa: E501
  
          partially update scale of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_deployment_scale" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Scale',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_deployment_status  # noqa: E501
  
          partially update status of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_deployment_status  # noqa: E501
  
          partially update status of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_deployment_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Deployment',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_ingress(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_ingress  # noqa: E501
  
          partially update the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_ingress(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_ingress  # noqa: E501
  
          partially update the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_ingress_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_ingress" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Ingress',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_ingress_status  # noqa: E501
  
          partially update status of the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_ingress_status(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_ingress_status  # noqa: E501
  
          partially update status of the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_ingress_status_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_ingress_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress_status`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Ingress',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_network_policy(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_network_policy  # noqa: E501
  
          partially update the specified NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_network_policy(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the NetworkPolicy (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: V1beta1NetworkPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_network_policy  # noqa: E501
  
          partially update the specified NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_network_policy_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the NetworkPolicy (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: V1beta1NetworkPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_network_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_network_policy`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_network_policy`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1NetworkPolicy',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_replica_set(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_replica_set  # noqa: E501
  
          partially update the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_replica_set(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_replica_set  # noqa: E501
  
          partially update the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_replica_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1ReplicaSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_replica_set_scale  # noqa: E501
  
          partially update scale of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_replica_set_scale(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_replica_set_scale  # noqa: E501
  
          partially update scale of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_replica_set_scale" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Scale',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_replica_set_status  # noqa: E501
  
          partially update status of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_replica_set_status(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_replica_set_status  # noqa: E501
  
          partially update status of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_replica_set_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1ReplicaSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_namespaced_replication_controller_dummy_scale(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_replication_controller_dummy_scale  # noqa: E501
  
          partially update scale of the specified ReplicationControllerDummy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_replication_controller_dummy_scale(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def patch_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """patch_namespaced_replication_controller_dummy_scale  # noqa: E501
  
          partially update scale of the specified ReplicationControllerDummy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_namespaced_replication_controller_dummy_scale" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_dummy_scale`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_dummy_scale`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_dummy_scale`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Scale',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def patch_pod_security_policy(self, name, body, **kwargs):  # noqa: E501
          """patch_pod_security_policy  # noqa: E501
  
          partially update the specified PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_pod_security_policy(name, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the PodSecurityPolicy (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1PodSecurityPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.patch_pod_security_policy_with_http_info(name, body, **kwargs)  # noqa: E501
          else:
              (data) = self.patch_pod_security_policy_with_http_info(name, body, **kwargs)  # noqa: E501
              return data
  
      def patch_pod_security_policy_with_http_info(self, name, body, **kwargs):  # noqa: E501
          """patch_pod_security_policy  # noqa: E501
  
          partially update the specified PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.patch_pod_security_policy_with_http_info(name, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the PodSecurityPolicy (required)
          :param UNKNOWN_BASE_TYPE body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
          :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
          :return: ExtensionsV1beta1PodSecurityPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method patch_pod_security_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `patch_pod_security_policy`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
          if 'force' in local_var_params:
              query_params.append(('force', local_var_params['force']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'PATCH',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1PodSecurityPolicy',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_daemon_set(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_daemon_set  # noqa: E501
  
          read the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_daemon_set(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (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.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_daemon_set  # noqa: E501
  
          read the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_daemon_set_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (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.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty', 'exact', 'export']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_daemon_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'exact' in local_var_params:
              query_params.append(('exact', local_var_params['exact']))  # noqa: E501
          if 'export' in local_var_params:
              query_params.append(('export', local_var_params['export']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1DaemonSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_daemon_set_status(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_daemon_set_status  # noqa: E501
  
          read status of the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_daemon_set_status(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (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: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_daemon_set_status  # noqa: E501
  
          read status of the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_daemon_set_status_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (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: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_daemon_set_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1DaemonSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_deployment(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_deployment  # noqa: E501
  
          read the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_deployment(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (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.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_deployment  # noqa: E501
  
          read the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (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.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty', 'exact', 'export']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_deployment" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'exact' in local_var_params:
              query_params.append(('exact', local_var_params['exact']))  # noqa: E501
          if 'export' in local_var_params:
              query_params.append(('export', local_var_params['export']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Deployment',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_deployment_scale(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_deployment_scale  # noqa: E501
  
          read scale of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_deployment_scale(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (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: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_deployment_scale  # noqa: E501
  
          read scale of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_deployment_scale_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (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: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_deployment_scale" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Scale',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_deployment_status(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_deployment_status  # noqa: E501
  
          read status of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_deployment_status(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (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: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_deployment_status  # noqa: E501
  
          read status of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (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: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_deployment_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Deployment',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_ingress(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_ingress  # noqa: E501
  
          read the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_ingress(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (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.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_ingress  # noqa: E501
  
          read the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_ingress_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (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.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty', 'exact', 'export']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_ingress" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'exact' in local_var_params:
              query_params.append(('exact', local_var_params['exact']))  # noqa: E501
          if 'export' in local_var_params:
              query_params.append(('export', local_var_params['export']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Ingress',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_ingress_status(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_ingress_status  # noqa: E501
  
          read status of the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_ingress_status(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (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: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_ingress_status  # noqa: E501
  
          read status of the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_ingress_status_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (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: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_ingress_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Ingress',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_network_policy(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_network_policy  # noqa: E501
  
          read the specified NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_network_policy(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the NetworkPolicy (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.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: V1beta1NetworkPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_network_policy  # noqa: E501
  
          read the specified NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_network_policy_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the NetworkPolicy (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.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: V1beta1NetworkPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty', 'exact', 'export']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_network_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_network_policy`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'exact' in local_var_params:
              query_params.append(('exact', local_var_params['exact']))  # noqa: E501
          if 'export' in local_var_params:
              query_params.append(('export', local_var_params['export']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1NetworkPolicy',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_replica_set(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_replica_set  # noqa: E501
  
          read the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_replica_set(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (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.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_replica_set  # noqa: E501
  
          read the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_replica_set_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (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.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty', 'exact', 'export']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_replica_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'exact' in local_var_params:
              query_params.append(('exact', local_var_params['exact']))  # noqa: E501
          if 'export' in local_var_params:
              query_params.append(('export', local_var_params['export']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1ReplicaSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_replica_set_scale(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_replica_set_scale  # noqa: E501
  
          read scale of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_replica_set_scale(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (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: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_replica_set_scale  # noqa: E501
  
          read scale of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_replica_set_scale_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (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: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_replica_set_scale" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Scale',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_replica_set_status(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_replica_set_status  # noqa: E501
  
          read status of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_replica_set_status(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (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: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_replica_set_status  # noqa: E501
  
          read status of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_replica_set_status_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (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: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_replica_set_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1ReplicaSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_namespaced_replication_controller_dummy_scale(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_replication_controller_dummy_scale  # noqa: E501
  
          read scale of the specified ReplicationControllerDummy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_replication_controller_dummy_scale(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (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: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, **kwargs)  # noqa: E501
          else:
              (data) = self.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, **kwargs)  # noqa: E501
              return data
  
      def read_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, **kwargs):  # noqa: E501
          """read_namespaced_replication_controller_dummy_scale  # noqa: E501
  
          read scale of the specified ReplicationControllerDummy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (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: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'pretty']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_namespaced_replication_controller_dummy_scale" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_dummy_scale`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_dummy_scale`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Scale',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def read_pod_security_policy(self, name, **kwargs):  # noqa: E501
          """read_pod_security_policy  # noqa: E501
  
          read the specified PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_pod_security_policy(name, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the PodSecurityPolicy (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: ExtensionsV1beta1PodSecurityPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.read_pod_security_policy_with_http_info(name, **kwargs)  # noqa: E501
          else:
              (data) = self.read_pod_security_policy_with_http_info(name, **kwargs)  # noqa: E501
              return data
  
      def read_pod_security_policy_with_http_info(self, name, **kwargs):  # noqa: E501
          """read_pod_security_policy  # noqa: E501
  
          read the specified PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.read_pod_security_policy_with_http_info(name, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the PodSecurityPolicy (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param bool exact: Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
          :param bool export: Should this value be exported.  Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
          :return: ExtensionsV1beta1PodSecurityPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'pretty', 'exact', 'export']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method read_pod_security_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `read_pod_security_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'exact' in local_var_params:
              query_params.append(('exact', local_var_params['exact']))  # noqa: E501
          if 'export' in local_var_params:
              query_params.append(('export', local_var_params['export']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1PodSecurityPolicy',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_daemon_set  # noqa: E501
  
          replace the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_daemon_set(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1DaemonSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_daemon_set  # noqa: E501
  
          replace the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1DaemonSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_daemon_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1DaemonSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_daemon_set_status  # noqa: E501
  
          replace status of the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_daemon_set_status(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1DaemonSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_daemon_set_status  # noqa: E501
  
          replace status of the specified DaemonSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the DaemonSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1DaemonSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1DaemonSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_daemon_set_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1DaemonSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_deployment(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_deployment  # noqa: E501
  
          replace the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_deployment(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Deployment body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_deployment  # noqa: E501
  
          replace the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Deployment body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_deployment" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Deployment',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_deployment_scale  # noqa: E501
  
          replace scale of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_deployment_scale(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Scale body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_deployment_scale  # noqa: E501
  
          replace scale of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Scale body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_deployment_scale" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Scale',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_deployment_status  # noqa: E501
  
          replace status of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Deployment body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_deployment_status  # noqa: E501
  
          replace status of the specified Deployment  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Deployment (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Deployment body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Deployment
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_deployment_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Deployment',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_ingress(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_ingress  # noqa: E501
  
          replace the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_ingress(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Ingress body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_ingress  # noqa: E501
  
          replace the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_ingress_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Ingress body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_ingress" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Ingress',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_ingress_status  # noqa: E501
  
          replace status of the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_ingress_status(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Ingress body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_ingress_status  # noqa: E501
  
          replace status of the specified Ingress  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_ingress_status_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Ingress (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Ingress body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Ingress
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_ingress_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Ingress',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_network_policy(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_network_policy  # noqa: E501
  
          replace the specified NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_network_policy(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the NetworkPolicy (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1NetworkPolicy body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1NetworkPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_network_policy  # noqa: E501
  
          replace the specified NetworkPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_network_policy_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the NetworkPolicy (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1NetworkPolicy body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1NetworkPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_network_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_network_policy`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_network_policy`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_network_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1NetworkPolicy',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_replica_set(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_replica_set  # noqa: E501
  
          replace the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_replica_set(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1ReplicaSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_replica_set  # noqa: E501
  
          replace the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1ReplicaSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_replica_set" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1ReplicaSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_replica_set_scale  # noqa: E501
  
          replace scale of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_replica_set_scale(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Scale body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_replica_set_scale  # noqa: E501
  
          replace scale of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Scale body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_replica_set_scale" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Scale',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_replica_set_status  # noqa: E501
  
          replace status of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_replica_set_status(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1ReplicaSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_replica_set_status  # noqa: E501
  
          replace status of the specified ReplicaSet  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the ReplicaSet (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1beta1ReplicaSet body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: V1beta1ReplicaSet
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_replica_set_status" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='V1beta1ReplicaSet',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_namespaced_replication_controller_dummy_scale(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_replication_controller_dummy_scale  # noqa: E501
  
          replace scale of the specified ReplicationControllerDummy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_replication_controller_dummy_scale(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Scale body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
  
      def replace_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, body, **kwargs):  # noqa: E501
          """replace_namespaced_replication_controller_dummy_scale  # noqa: E501
  
          replace scale of the specified ReplicationControllerDummy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the Scale (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param ExtensionsV1beta1Scale body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1Scale
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_namespaced_replication_controller_dummy_scale" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_dummy_scale`")  # noqa: E501
          # verify the required parameter 'namespace' is set
          if ('namespace' not in local_var_params or
                  local_var_params['namespace'] is None):
              raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_dummy_scale`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_dummy_scale`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
          if 'namespace' in local_var_params:
              path_params['namespace'] = local_var_params['namespace']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1Scale',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def replace_pod_security_policy(self, name, body, **kwargs):  # noqa: E501
          """replace_pod_security_policy  # noqa: E501
  
          replace the specified PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_pod_security_policy(name, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the PodSecurityPolicy (required)
          :param ExtensionsV1beta1PodSecurityPolicy body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1PodSecurityPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_pod_security_policy_with_http_info(name, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_pod_security_policy_with_http_info(name, body, **kwargs)  # noqa: E501
              return data
  
      def replace_pod_security_policy_with_http_info(self, name, body, **kwargs):  # noqa: E501
          """replace_pod_security_policy  # noqa: E501
  
          replace the specified PodSecurityPolicy  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_pod_security_policy_with_http_info(name, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the PodSecurityPolicy (required)
          :param ExtensionsV1beta1PodSecurityPolicy body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
          :return: ExtensionsV1beta1PodSecurityPolicy
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method replace_pod_security_policy" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'name' is set
          if ('name' not in local_var_params or
                  local_var_params['name'] is None):
              raise ValueError("Missing the required parameter `name` when calling `replace_pod_security_policy`")  # noqa: E501
          # verify the required parameter 'body' is set
          if ('body' not in local_var_params or
                  local_var_params['body'] is None):
              raise ValueError("Missing the required parameter `body` when calling `replace_pod_security_policy`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'name' in local_var_params:
              path_params['name'] = local_var_params['name']  # noqa: E501
  
          query_params = []
          if 'pretty' in local_var_params:
              query_params.append(('pretty', local_var_params['pretty']))  # noqa: E501
          if 'dry_run' in local_var_params:
              query_params.append(('dryRun', local_var_params['dry_run']))  # noqa: E501
          if 'field_manager' in local_var_params:
              query_params.append(('fieldManager', local_var_params['field_manager']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'body' in local_var_params:
              body_params = local_var_params['body']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['BearerToken']  # noqa: E501
  
          return self.api_client.call_api(
              '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='ExtensionsV1beta1PodSecurityPolicy',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  