# Path: acos_client/v30/base.py
# class BaseV30(object):
#     def __init__(self, client):
#     def minimal_dict(self, my_dict, exclude=[]):
#     def url(self, action):
#     def _request(self, method, action, params, retry_count=0, max_retries=None,
#                  timeout=None, axapi_args=None, **kwargs):
#     def _get(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
#     def _post(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
#     def _put(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
#     def _delete(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
#     def _is_ipv6(self, ip_address):


import six
from acos_client.v30 import base

    def update(self,
               service_group_name,
               server_name,
               server_port,
               status=STATUS_ENABLE,
               member_state=True, **kwargs):
        url = self.url_base_tmpl.format(gname=service_group_name)
        url += self.url_mbr_tmpl.format(
            name=server_name,
            port=server_port
        )
        params = self._set(service_group_name,
                           server_name, server_port, status, member_state, **kwargs)
        return self._post(url, params, **kwargs)

    def replace(self,
                service_group_name,
                server_name,
                server_port,
                status=STATUS_ENABLE,
                member_state=True, **kwargs):
        url = self.url_base_tmpl.format(gname=service_group_name)
        url += self.url_mbr_tmpl.format(name=server_name,
                                        port=server_port)
        params = self._set(service_group_name,
                           server_name, server_port, status, member_state, **kwargs)
        return self._put(url, params, **kwargs)

    def delete(self, service_group_name, server_name, server_port):

# Path: acos_client/v30/base.py
# class BaseV30(object):
#     def __init__(self, client):
#     def minimal_dict(self, my_dict, exclude=[]):
#     def url(self, action):
#     def _request(self, method, action, params, retry_count=0, max_retries=None,
#                  timeout=None, axapi_args=None, **kwargs):
#     def _get(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
#     def _post(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
#     def _put(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
#     def _delete(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
#     def _is_ipv6(self, ip_address):


# Path: acos_client/v30/slb/member.py
import six
from acos_client.v30 import base


    def update(self,
               service_group_name,
               server_name,
               server_port,
               status=STATUS_ENABLE,
               member_state=True, **kwargs):
        url = self.url_base_tmpl.format(gname=service_group_name)
        url += self.url_mbr_tmpl.format(
            name=server_name,
            port=server_port
        )
        params = self._set(service_group_name,
                           server_name, server_port, status, member_state, **kwargs)
        return self._post(url, params, **kwargs)

    def replace(self,
                service_group_name,
                server_name,
                server_port,
                status=STATUS_ENABLE,
                member_state=True, **kwargs):
        url = self.url_base_tmpl.format(gname=service_group_name)
        url += self.url_mbr_tmpl.format(name=server_name,
                                        port=server_port)
        params = self._set(service_group_name,
                           server_name, server_port, status, member_state, **kwargs)
        return self._put(url, params, **kwargs)

    def delete(self, service_group_name, server_name, server_port):

        url = self.url_base_tmpl.format(gname=service_group_name)