# -*- coding: utf-8 -*-
import logging
from nmdc_client.collection_search import CollectionSearch
from nmdc_client.config import API_BASE_URL
from nmdc_client.decorators import has_deprecated_parameter
logger = logging.getLogger(__name__)
[docs]
@has_deprecated_parameter("env", reason="Use ``api_base_url`` instead.")
class CollectingBiosamplesFromSiteSearch(CollectionSearch):
"""
Class to interact with the NMDC API to search for records within the ``collecting_biosamples_from_site_set`` collection.
"""
def __init__(self, api_base_url: str = API_BASE_URL, env: str = ""):
super().__init__(
collection_name="collecting_biosamples_from_site_set",
api_base_url=api_base_url,
env=env,
)