def _prepare_create_request(cluster):
 return messages_v2_pb2.CreateClusterRequest(parent=cluster._instance.name, cluster_id=cluster.cluster_id, cluster=data_v2_pb2.Cluster(serve_nodes=cluster.serve_nodes))

def _prepare_create_request ( cluster ) : return messages_v2_pb2 . CreateClusterRequest ( parent = cluster . _instance . name , cluster_id = cluster . cluster_id , cluster = data_v2_pb2 . Cluster ( serve_nodes = cluster . serve_nodes ) )
creates a protobuf request for a createinstance request .