(self, bay)
return Bay.convert_with_links(res_bay)
Create a new bay.

        :param bay: a bay within the request body.
Create a new bay.
Create a new bay .
def post(self, bay):
        """Create a new bay.

        :param bay: a bay within the request body.
        """
        new_bay, node_count, master_count = self._post(bay)
        res_bay = pecan.request.rpcapi.cluster_create(new_bay,
                                                      master_count, node_count,
                                                      bay.bay_create_timeout)

        # Set the HTTP Location Header
        pecan.response.location = link.build_url('bays', res_bay.uuid)
        return Bay.convert_with_links(res_bay)
def post ( self , bay ) : new_bay , node_count , master_count = self . _post ( bay ) res_bay = pecan . request . rpcapi . cluster_create ( new_bay , master_count , node_count , bay . bay_create_timeout ) # Set the HTTP Location Header pecan . response . location = link . build_url ( 'bays' , res_bay . uuid ) return Bay . convert_with_links ( res_bay )