

def create_staging_repo(self, profile_name, description):
    '\n        Creates a staging repository\n        :param profile_name: name of staging profile\n        :param description: description of created staging repository\n        :return: id of newly created staging repository\n        '
    profile = self._get_staging_profile(profile_name)
    logger.info('Creating staged repo in profile %s, description: %s', profile_name, description)
    r = self._send_json('service/local/staging/profiles/{id}/start'.format(id=profile['id']), {
        'data': {
            'description': description,
        },
    }, method='POST')
    result = r['data']['stagedRepositoryId']
    logger.info('Created staged repo with ID %s', result)
    return result

dataset/ETHPy150Open stardust85/repositorytools/repositorytools/lib/repository.py NexusProRepositoryClient.create_staging_repo/original