@staticmethod
def check_cloud_params(archive: str, **kwargs) -> Optional[List[str]]:
    'Checks that inside kwargs there is a valid set of parameters to add a cloud repository\n        Args:\n            archive (str): The archive to use for the repository.\n        '
    if (not archive.startswith('s3://')):
        return None
    creds_name = kwargs.get('credentials_name')
    region = kwargs.get('cloud_region')
    creds_id = kwargs.get('credentials_id')
    creds_key = kwargs.get('credentials_key')
    staging_dir = kwargs.get('staging_dir')
    if ((creds_name and (creds_id or creds_key)) or ((not creds_name) and (not (creds_id or creds_key)))):
        return ['must provide either --cloud-credentials-name or --cloud-credentials-key and --cloud-credentials-id']
    if (not staging_dir):
        return ['--cloud-staging-dir is required']
    if ((not creds_name) and (not region)):
        return ['--cloud-credentials-region is required']
    return None
Checks that inside kwargs there is a valid set of parameters to add a cloud repository
Args:
    archive (str): The archive to use for the repository.
@staticmethod
def check_cloud_params(archive: str, **kwargs) -> Optional[List[str]]:
    'Checks that inside kwargs there is a valid set of parameters to add a cloud repository\n        Args:\n            archive (str): The archive to use for the repository.\n        '
    if (not archive.startswith('s3://')):
        return None
    creds_name = kwargs.get('credentials_name')
    region = kwargs.get('cloud_region')
    creds_id = kwargs.get('credentials_id')
    creds_key = kwargs.get('credentials_key')
    staging_dir = kwargs.get('staging_dir')
    if ((creds_name and (creds_id or creds_key)) or ((not creds_name) and (not (creds_id or creds_key)))):
        return ['must provide either --cloud-credentials-name or --cloud-credentials-key and --cloud-credentials-id']
    if (not staging_dir):
        return ['--cloud-staging-dir is required']
    if ((not creds_name) and (not region)):
        return ['--cloud-credentials-region is required']
    return None