def __init__(self, location=None, parent=None, **kwargs):
    """Initializes a path specification.

    Args:
      location (Optional[str]): location.
      parent (Optional[PathSpec]): parent path specification.

    Raises:
      ValueError: when location is not set.
    """
    if not location:
      raise ValueError('Missing location value.')

    super(LocationPathSpec, self).__init__(parent=parent, **kwargs)
    self.location = location
def __init__ ( self , location = None , parent = None , ** kwargs ) : if not location : raise ValueError ( 'Missing location value.' ) super ( LocationPathSpec , self ) . __init__ ( parent = parent , ** kwargs ) self . location = location
Initializes a path specification.

    Args:
      location (Optional[str]): location.
      parent (Optional[PathSpec]): parent path specification.

    Raises:
      ValueError: when location is not set.