def api23_link_aggregation_groups_patch_with_http_info(self, link_aggregation_group=None, ids=None, names=None, async_req=False, _return_http_data_only=False, _preload_content=True, _request_timeout=None):
    'PATCH link-aggregation-groups\n\n        Modify link aggregation groups by adding and removing Ethernet ports.\n        This method makes a synchronous HTTP request by default. To make an\n        asynchronous HTTP request, please pass async_req=True\n        >>> thread = api.api23_link_aggregation_groups_patch_with_http_info(link_aggregation_group, async_req=True)\n        >>> result = thread.get()\n\n        :param Linkaggregationgroup link_aggregation_group: (required)\n        :param list[str] ids: A comma-separated list of resource IDs. If after filtering, there is not at least one resource that matches each of the elements of `ids`, then an error is returned. This cannot be provided together with the `name` or `names` query parameters.\n        :param list[str] names: A comma-separated list of resource names. If there is not at least one resource that matches each of the elements of `names`, then an error is returned.\n        :param bool async_req: Request runs in separate thread and method returns multiprocessing.pool.ApplyResult.\n        :param bool _return_http_data_only: Returns only data field.\n        :param bool _preload_content: Response is converted into objects.\n        :param int _request_timeout: Total request timeout in seconds.\n                 It can also be a tuple of (connection time, read time) timeouts.\n        :return: LinkAggregationGroupResponse\n                 If the method is called asynchronously,\n                 returns the request thread.\n        '
    if (ids is not None):
        if (not isinstance(ids, list)):
            ids = [ids]
    if (names is not None):
        if (not isinstance(names, list)):
            names = [names]
    params = {k: v for (k, v) in six.iteritems(locals()) if (v is not None)}
    if params.get('filter'):
        params['filter'] = str(params['filter'])
    if params.get('sort'):
        params['sort'] = [str(_x) for _x in params['sort']]
    if (link_aggregation_group is None):
        raise TypeError('Missing the required parameter `link_aggregation_group` when calling `api23_link_aggregation_groups_patch`')
    collection_formats = {}
    path_params = {}
    query_params = []
    if ('ids' in params):
        query_params.append(('ids', params['ids']))
        collection_formats['ids'] = 'csv'
    if ('names' in params):
        query_params.append(('names', params['names']))
        collection_formats['names'] = 'csv'
    header_params = {}
    form_params = []
    local_var_files = {}
    body_params = None
    if ('link_aggregation_group' in params):
        body_params = params['link_aggregation_group']
    header_params['Accept'] = self.api_client.select_header_accept(['application/json'])
    header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json'])
    auth_settings = ['AuthorizationHeader']
    return self.api_client.call_api('/api/2.3/link-aggregation-groups', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='LinkAggregationGroupResponse', auth_settings=auth_settings, async_req=async_req, _return_http_data_only=_return_http_data_only, _preload_content=_preload_content, _request_timeout=_request_timeout, collection_formats=collection_formats)
PATCH link-aggregation-groups

Modify link aggregation groups by adding and removing Ethernet ports.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api23_link_aggregation_groups_patch_with_http_info(link_aggregation_group, async_req=True)
>>> result = thread.get()

:param Linkaggregationgroup link_aggregation_group: (required)
:param list[str] ids: A comma-separated list of resource IDs. If after filtering, there is not at least one resource that matches each of the elements of `ids`, then an error is returned. This cannot be provided together with the `name` or `names` query parameters.
:param list[str] names: A comma-separated list of resource names. If there is not at least one resource that matches each of the elements of `names`, then an error is returned.
:param bool async_req: Request runs in separate thread and method returns multiprocessing.pool.ApplyResult.
:param bool _return_http_data_only: Returns only data field.
:param bool _preload_content: Response is converted into objects.
:param int _request_timeout: Total request timeout in seconds.
         It can also be a tuple of (connection time, read time) timeouts.
:return: LinkAggregationGroupResponse
         If the method is called asynchronously,
         returns the request thread.
def api23_link_aggregation_groups_patch_with_http_info(self, link_aggregation_group=None, ids=None, names=None, async_req=False, _return_http_data_only=False, _preload_content=True, _request_timeout=None):
    'PATCH link-aggregation-groups\n\n        Modify link aggregation groups by adding and removing Ethernet ports.\n        This method makes a synchronous HTTP request by default. To make an\n        asynchronous HTTP request, please pass async_req=True\n        >>> thread = api.api23_link_aggregation_groups_patch_with_http_info(link_aggregation_group, async_req=True)\n        >>> result = thread.get()\n\n        :param Linkaggregationgroup link_aggregation_group: (required)\n        :param list[str] ids: A comma-separated list of resource IDs. If after filtering, there is not at least one resource that matches each of the elements of `ids`, then an error is returned. This cannot be provided together with the `name` or `names` query parameters.\n        :param list[str] names: A comma-separated list of resource names. If there is not at least one resource that matches each of the elements of `names`, then an error is returned.\n        :param bool async_req: Request runs in separate thread and method returns multiprocessing.pool.ApplyResult.\n        :param bool _return_http_data_only: Returns only data field.\n        :param bool _preload_content: Response is converted into objects.\n        :param int _request_timeout: Total request timeout in seconds.\n                 It can also be a tuple of (connection time, read time) timeouts.\n        :return: LinkAggregationGroupResponse\n                 If the method is called asynchronously,\n                 returns the request thread.\n        '
    if (ids is not None):
        if (not isinstance(ids, list)):
            ids = [ids]
    if (names is not None):
        if (not isinstance(names, list)):
            names = [names]
    params = {k: v for (k, v) in six.iteritems(locals()) if (v is not None)}
    if params.get('filter'):
        params['filter'] = str(params['filter'])
    if params.get('sort'):
        params['sort'] = [str(_x) for _x in params['sort']]
    if (link_aggregation_group is None):
        raise TypeError('Missing the required parameter `link_aggregation_group` when calling `api23_link_aggregation_groups_patch`')
    collection_formats = {}
    path_params = {}
    query_params = []
    if ('ids' in params):
        query_params.append(('ids', params['ids']))
        collection_formats['ids'] = 'csv'
    if ('names' in params):
        query_params.append(('names', params['names']))
        collection_formats['names'] = 'csv'
    header_params = {}
    form_params = []
    local_var_files = {}
    body_params = None
    if ('link_aggregation_group' in params):
        body_params = params['link_aggregation_group']
    header_params['Accept'] = self.api_client.select_header_accept(['application/json'])
    header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json'])
    auth_settings = ['AuthorizationHeader']
    return self.api_client.call_api('/api/2.3/link-aggregation-groups', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='LinkAggregationGroupResponse', auth_settings=auth_settings, async_req=async_req, _return_http_data_only=_return_http_data_only, _preload_content=_preload_content, _request_timeout=_request_timeout, collection_formats=collection_formats)