@rest_initialiser(version_check=True, enterprise_check=True, cluster_init_check=True)
def execute(self, opts):
    'Run the backup-service repository subcommand'
    if opts.list:
        self.list_repositories(opts.state, (opts.output == 'json'))
    elif opts.get:
        self.get_repository(opts.id, opts.state, (opts.output == 'json'))
    elif opts.archive:
        self.archive_repository(opts.id, opts.new_id)
    elif opts.remove:
        self.remove_repository(opts.id, opts.state, opts.remove_data)
    elif opts.add:
        self.add_active_repository(opts.id, opts.plan, opts.backup_archive, bucket_name=opts.bucket_name, credentials_name=opts.cloud_credentials_name, credentials_id=opts.cloud_credentials_id, credentials_key=opts.cloud_credentials_key, cloud_region=opts.cloud_credentials_region, staging_dir=opts.cloud_staging_dir, cloud_endpoint=opts.cloud_endpoint, s3_path_style=opts.s3_force_path_style)
Run the backup-service repository subcommand
@rest_initialiser(version_check=True, enterprise_check=True, cluster_init_check=True)
def execute(self, opts):
    
    if opts.list:
        self.list_repositories(opts.state, (opts.output == 'json'))
    elif opts.get:
        self.get_repository(opts.id, opts.state, (opts.output == 'json'))
    elif opts.archive:
        self.archive_repository(opts.id, opts.new_id)
    elif opts.remove:
        self.remove_repository(opts.id, opts.state, opts.remove_data)
    elif opts.add:
        self.add_active_repository(opts.id, opts.plan, opts.backup_archive, bucket_name=opts.bucket_name, credentials_name=opts.cloud_credentials_name, credentials_id=opts.cloud_credentials_id, credentials_key=opts.cloud_credentials_key, cloud_region=opts.cloud_credentials_region, staging_dir=opts.cloud_staging_dir, cloud_endpoint=opts.cloud_endpoint, s3_path_style=opts.s3_force_path_style)