code: def update_service_endpoints(self, endpoints, project):
          
          route_values = {}
          if project is not None:
              route_values['project'] = self._serialize.url('project', project, 'str')
          content = self._serialize.body(endpoints, '[ServiceEndpoint]')
          response = self._send(http_method='PUT',
                                location_id='e85f1c62-adfc-4b74-b618-11a150fb195e',
                                version='5.0-preview.2',
                                route_values=route_values,
                                content=content)
          return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response))
docs: UpdateServiceEndpoints.
          [Preview API] Update the service endpoints.
          :param [ServiceEndpoint] endpoints: Names of the service endpoints to update.
          :param str project: Project ID or project name
          :rtype: [ServiceEndpoint]