code: def get_deployment_groups(self, project, name=None, action_filter=None, expand=None, continuation_token=None, top=None, ids=None):
          
          route_values = {}
          if project is not None:
              route_values['project'] = self._serialize.url('project', project, 'str')
          query_parameters = {}
          if name is not None:
              query_parameters['name'] = self._serialize.query('name', name, 'str')
          if action_filter is not None:
              query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str')
          if expand is not None:
              query_parameters['$expand'] = self._serialize.query('expand', expand, 'str')
          if continuation_token is not None:
              query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str')
          if top is not None:
              query_parameters['$top'] = self._serialize.query('top', top, 'int')
          if ids is not None:
              ids = ",".join(map(str, ids))
              query_parameters['ids'] = self._serialize.query('ids', ids, 'str')
          response = self._send(http_method='GET',
                                location_id='083c4d89-ab35-45af-aa11-7cf66895c53e',
                                version='5.0-preview.1',
                                route_values=route_values,
                                query_parameters=query_parameters)
          return self._deserialize('[DeploymentGroup]', self._unwrap_collection(response))
docs: GetDeploymentGroups.
          [Preview API] Get a list of deployment groups by name or IDs.
          :param str project: Project ID or project name
          :param str name: Name of the deployment group.
          :param str action_filter: Get only deployment groups on which this action can be performed.
          :param str expand: Include these additional details in the returned objects.
          :param str continuation_token: Get deployment groups with names greater than this continuationToken lexicographically.
          :param int top: Maximum number of deployment groups to return. Default is **1000**.
          :param [int] ids: Comma separated list of IDs of the deployment groups.
          :rtype: [DeploymentGroup]