old_contents: __author__ = 'thauser'
  from argh import arg
  
  from pnc_cli import utils
  from pnc_cli.swagger_client.apis import BuildconfigurationsetsApi
  from pnc_cli.swagger_client.apis import BuildconfigsetrecordsApi
  
  
  sets_api = BuildconfigurationsetsApi(utils.get_api_client())
  bcsr_api = BuildconfigsetrecordsApi(utils.get_api_client())
  
  
  def _config_set_record_exists(id):
      return id in [str(x.id) for x in bcsr_api.get_all().content]
  
  
  def list_build_configuration_set_records():
      """
      List all build configuration set records.
      """
      response = utils.checked_api_call(bcsr_api, 'get_all')
      if response:
          return response.content
  
  
  @arg("id", help="ID of build configuration set record to retrieve.")
  def get_build_configuration_set_record(id):
      """
      Get a specific BuildConfigSetRecord
      """
      if not _config_set_record_exists(id):
          print("A build configuration set record with ID {} does not exist.").format(id)
          return
      response = utils.checked_api_call(bcsr_api, 'get_specific', id=id)
      if response:
          return response.content
  
  
  @arg("id", help="ID of build configuration set record to retrieve build records from.")
  def get_records_for_build_config_set(id):
      """
      Get a list of BuildRecords for the given BuildConfigSetRecord
      """
      if not id in [str(x.id) for x in sets_api.get_all().content]:
          print("A build configuration set with ID {} does not exist.").format(id)
          return
      response = utils.checked_api_call(bcsr_api, 'get_build_records', id=id)
      if response:
          return response.content
  
new_contents: __author__ = 'thauser'
  from argh import arg
  
  from pnc_cli import utils
  from pnc_cli.swagger_client.apis import BuildconfigurationsetsApi
  from pnc_cli.swagger_client.apis import BuildconfigsetrecordsApi
  
  
  sets_api = BuildconfigurationsetsApi(utils.get_api_client())
  bcsr_api = BuildconfigsetrecordsApi(utils.get_api_client())
  
  
  def _config_set_record_exists(id):
      return id in [str(x.id) for x in bcsr_api.get_all().content]
  
  
  def list_build_configuration_set_records():
      """
      List all build configuration set records.
      """
      response = utils.checked_api_call(bcsr_api, 'get_all')
      if response:
          return response.content
  
  
  @arg("id", help="ID of build configuration set record to retrieve.")
  def get_build_configuration_set_record(id):
      """
      Get a specific BuildConfigSetRecord
      """
      if not _config_set_record_exists(id):
          print("A build configuration set record with ID {} does not exist.".format(id))
          return
      response = utils.checked_api_call(bcsr_api, 'get_specific', id=id)
      if response:
          return response.content
  
  
  @arg("id", help="ID of BuildConfigSetRecord to retrieve build records from.")
  def get_records_for_build_config_set(id):
      """
      Get a list of BuildRecords for the given BuildConfigSetRecord
      """
      if not id in [str(x.id) for x in sets_api.get_all().content]:
          print("A BuildConfigurationSet with ID {} does not exist.".format(id))
          return
      response = utils.checked_api_call(bcsr_api, 'get_build_records', id=id)
      if response:
          return response.content
  
subject: tweak build config set record help text