def buckets_insert(self, bucket, project_id=None):
    """Issues a request to create a new bucket.

    Args:
      bucket: the name of the bucket.
      project_id: the project to use when inserting the bucket.
    Returns:
      A parsed bucket information dictionary.
    Raises:
      Exception if there is an error performing the operation.
    """
    args = {'project': project_id if project_id else self._project_id}
    data = {'name': bucket}

    url = Api._ENDPOINT + (Api._BUCKET_PATH % '')
    return datalab.utils.Http.request(url, args=args, data=data, credentials=self._credentials)
def buckets_insert ( self , bucket , project_id = None ) : args = { 'project' : project_id if project_id else self . _project_id } data = { 'name' : bucket } url = Api . _ENDPOINT + ( Api . _BUCKET_PATH % '' ) return datalab . utils . Http . request ( url , args = args , data = data , credentials = self . _credentials )
Issues a request to create a new bucket.

    Args:
      bucket: the name of the bucket.
      project_id: the project to use when inserting the bucket.
    Returns:
      A parsed bucket information dictionary.
    Raises:
      Exception if there is an error performing the operation.